~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Michael Vogt
  • Date: 2011-10-05 10:09:25 UTC
  • mfrom: (639.1.6 app-indicator-port)
  • Revision ID: michael.vogt@ubuntu.com-20111005100925-c0j7d7k3706145uk
port to libappindicator (LP: #779382) to ensure its visible
under unity{,-2d}

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  [CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE"]
73
73
)
74
74
 
 
75
APPINDICATOR_REQUIRED=0.0.7
 
76
AC_ARG_ENABLE(appindicator,
 
77
                        AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
 
78
                        [enable_appindicator=$enableval],
 
79
                        [enable_appindicator="auto"])
 
80
 
 
81
if test x$enable_appindicator = xauto ; then
 
82
        PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],
 
83
                         enable_appindicator="yes",
 
84
                         enable_appindicator="no")
 
85
fi
 
86
 
 
87
if test x$enable_appindicator = xyes ; then
 
88
        PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],,
 
89
                         AC_MSG_ERROR([appindicator3-0.1 is not installed]))
 
90
        PKG_CHECK_MODULES(APP_INDICATOR,
 
91
                        appindicator3-0.1 >= $APPINDICATOR_REQUIRED)
 
92
        AC_SUBST(APP_INDICATOR_CFLAGS)
 
93
        AC_SUBST(APP_INDICATOR_LIBS)
 
94
        AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
 
95
fi
 
96
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
 
97
 
 
98
 
 
99
 
75
100
AC_OUTPUT([
76
101
Makefile
77
102
src/Makefile