1
dnl Process this file with autoconf to produce a configure script.
3
AC_INIT(src/update-notifier.c)
4
AM_INIT_AUTOMAKE(update-notifier, 0.41.5)
5
AM_CONFIG_HEADER(config.h)
16
pkg_modules="glib-2.0 >= 2.34 gtk+-3.0 libnotify gio-2.0 >= 2.26 x11 json-glib-1.0"
18
PKG_CHECK_EXISTS(gudev-1.0, [ HAVE_GUDEV=1 ])
19
if test "x$HAVE_GUDEV" != "x"; then
20
pkg_modules="$pkg_modules gudev-1.0"
21
AC_DEFINE(HAVE_GUDEV, 1, [Use gudev-1.0])
23
AC_WARN(No gudev-1.0, disable uevent handling)
27
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
29
GETTEXT_PACKAGE=update-notifier
30
AC_SUBST(GETTEXT_PACKAGE)
31
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
32
AC_PROG_INTLTOOL([0.23])
34
dnl Add the languages which your application supports here.
35
ALL_LINGUAS=`(cd "$srcdir/po" && ls *.po) | sed 's/\.po$//' | tr '\n' ' '`
39
dnl AC_ARG_WITH(pkg-manager, [ --with-pkg-manager=PATH Package manager to use.])
40
dnl if test "x$with_pkg_manager" != "x"; then
41
dnl AC_DEFINE_UNQUOTED(PKG_MANAGER, "$with_pkg_manager", [Package manager to use.])
44
dnl The following piece will be enabled when we release update-manager
46
dnl AC_PATH_PROG(UPDATE_MANAGER, update-manager, no)
47
dnl if test "x$UPDATE_MANAGER" = "xno"; then
48
dnl AC_MSG_ERROR(Couldn't find update-manager. Please install the update-manager package.)
52
AC_ARG_ENABLE([system-config-printer],
53
AS_HELP_STRING([--enable-system-config-printer], [enable on-demand launching of system-config-printer]),
54
[], [enable_debug=no])
55
if test "x$enable_system_config_printer" = "xyes"; then
56
AC_DEFINE(ENABLE_SCP, [1], [On-demand launching of system-config-printer.])
59
AC_ARG_ENABLE([deprecations],
60
[AS_HELP_STRING([--enable-deprecations],
61
[allow deprecated API usage @<:@default=yes@:>@])],
63
[enable_deprecations=yes])
64
AS_IF([test "x$enable_deprecations" = xno],
65
[CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE"]
68
APPINDICATOR_REQUIRED=0.0.7
69
AC_ARG_ENABLE(appindicator,
70
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
71
[enable_appindicator=$enableval],
72
[enable_appindicator="auto"])
74
if test x$enable_appindicator = xauto ; then
75
PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],
76
enable_appindicator="yes",
77
enable_appindicator="no")
80
if test x$enable_appindicator = xyes ; then
81
PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],,
82
AC_MSG_ERROR([appindicator3-0.1 is not installed]))
83
PKG_CHECK_MODULES(APP_INDICATOR,
84
appindicator3-0.1 >= $APPINDICATOR_REQUIRED)
85
AC_SUBST(APP_INDICATOR_CFLAGS)
86
AC_SUBST(APP_INDICATOR_LIBS)
87
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
89
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
99
pixmaps/16x16/Makefile
100
pixmaps/22x22/Makefile
101
pixmaps/24x24/Makefile
102
pixmaps/48x48/Makefile
103
pixmaps/scalable/Makefile