-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.ac
71 lines (55 loc) · 2.32 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gtimer,1.1.7)
AC_CONFIG_SRCDIR(main.c)
AM_INIT_AUTOMAKE
dnl Checks for programs.
AC_PROG_CC
dnl Checks for header files.
dnl AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h sys/types unistd.h string.h libintl.h)
dnl ALL_LINGUAS="fr"
dnl ud_GNU_GETTEXT
dnl AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(No GTK found. Set the path right or install it.))
dnl #if test "x$GTK_MAJOR_VERSION" = "x1" -a "x$GTK_MAJOR_VERSION" = "x0"; then
dnl # echo "Configure found an old version of GTK. While gtimer will still work fine,"
dnl # echo "it would be best to upgrade it."
dnl # AC_DEFINE(GTK_VERSION_20)
dnl #fi
dnl ScreenSaver extension support
ssext=yes
AC_ARG_ENABLE(shm,
[ --disable-ssext disable usage of ScreenSaver extension],
ssext=$enableval, ssext=yes)
if test "$ssext" = yes; then
AC_CHECK_LIB(Xss, XScreenSaverQueryInfo, [GTK_LIBS="-lXss $GTK_LIBS"
ok=yes
AC_DEFINE(HAVE_SCREEN_SAVER_EXT)], ok=no, $GTK_LIBS)
fi
APPINDICATOR_REQUIRED=0.0.7
AC_ARG_ENABLE(appindicator,
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
[enable_appindicator=$enableval],
[enable_appindicator="auto"])
if test x$enable_appindicator = xauto ; then
PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],
enable_appindicator="yes",
enable_appindicator="no")
fi
if test x$enable_appindicator = xyes ; then
PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],,
AC_MSG_ERROR([appindicator-0.1 is not installed]))
PKG_CHECK_MODULES(APP_INDICATOR,
appindicator-0.1 >= $APPINDICATOR_REQUIRED)
AC_SUBST(APP_INDICATOR_CFLAGS)
AC_SUBST(APP_INDICATOR_LIBS)
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
fi
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
UILIBS="-lX11 $GTK_LIBS"
UIFLAGS="$GTK_CFLAGS $GTK_VERSION_FLAGS"
AC_SUBST(UILIBS)
AC_SUBST(UIFLAGS)
AC_OUTPUT(Makefile)
dnl AC_OUTPUT([Makefile intl/Makefile po/Makefile.in],
dnl [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])