3
AM_CONFIG_HEADER(config.h)
5
AC_CONFIG_MACRO_DIR(m4)
6
AM_INIT_AUTOMAKE(gxneur, 0.15.0)
17
PKG_PROG_PKG_CONFIG([0.20])
19
PKG_CHECK_MODULES(XNEURCONF, [xnconfig = 0.15.0])
20
PKG_CHECK_MODULES(XNEURLIB, [xneur = 0.15.0])
22
PKG_CHECK_MODULES(X11, [x11 >= 1.1], found_x11="yes", found_x11="no")
23
if test "x$found_x11" = "xno"; then
26
if test "x$no_x" = "xyes"; then
27
AC_MSG_ERROR([Can't locate your X11 installation])
30
X11_CFLAGS="$X_CFLAGS"
31
X11_LIBS="$X_LIBS -lX11"
40
#PKG_CHECK_MODULES(GTK, [gtk+-3.0], found_gtk="yes", found_gtk="no")
41
#if test "x$found_gtk" = "xno"; then
42
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.20.0], found_gtk="yes", found_gtk="no")
43
if test "x$found_gtk" = "xno"; then
44
PKG_CHECK_MODULES(GTK, [gtk+-2.0 < 2.20.0])
46
AC_DEFINE(WITH_GTK_NEW, 1, [Define if you use GTK+ >= 2.20.0 support])
49
# AC_DEFINE(WITH_GTK_NEW, 1, [Define if you use GTK+ >= 2.20.0 support])
53
AC_ARG_WITH(appindicator, [ --without-appindicator Compile without AppIndicator library support])
54
if test "x$with_appindicator" != "xno"; then
55
APPINDICATOR_REQUIRED=0.2.9
57
PKG_CHECK_MODULES(APP_INDICATOR, [appindicator-0.1 >= $APPINDICATOR_REQUIRED], found_appindicator="yes", found_appindicator="no")
58
if test "x$found_appindicator" = "xno"; then
59
PKG_CHECK_MODULES(APP_INDICATOR, [appindicator-0.1 < $APPINDICATOR_REQUIRED], found_deprec_appindicator="yes", found_deprec_appindicator="no")
61
if test "x$found_deprec_appindicator" = "xyes"; then
62
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
63
AC_DEFINE(HAVE_DEPREC_APP_INDICATOR, 1, [Have Deprecated AppIndicator])
66
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
70
AC_DEFINE(PACKAGE_GCONF_DIR, "/apps/" PACKAGE, [Define GConf directory for settings])
72
AC_DEFINE(KB_PROP_COMMAND, "/usr/bin/gnome-keyboard-properties", [Define keyboard properties command])
74
PKG_CHECK_MODULES(GLADE, [libglade-2.0 >= 2.6.0])
75
AC_SUBST(GLADE_CFLAGS)
78
#PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.0])
79
AC_ARG_WITH(gconf, [ --without-gconf Compile without GConf support])
80
if test "x$with_gconf" != "xno"; then
81
PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.0], found_gconf="yes", found_gconf="no")
82
if test "x$found_gconf" = "xyes"; then
83
AC_DEFINE(HAVE_GCONF, 1, [Have GConf])
87
AM_GNU_GETTEXT_VERSION([0.16.1])
88
AM_GNU_GETTEXT([external])
90
DEFAULT_CFLAGS="-Wall -Wextra -Werror -g0 -fPIC -std=gnu99"
91
AC_SUBST(DEFAULT_CFLAGS)
93
AC_OUTPUT([Makefile gxneur.desktop src/Makefile pixmaps/Makefile glade/Makefile po/Makefile.in])
97
$PACKAGE $VERSION configured successfully:
99
Installing into: $prefix
101
Compiler flags: $CFLAGS
103
X11 compiler flags: $X11_CFLAGS
104
X11 linker flags: $X11_LIBS
106
GTK compiler flags: $GTK_CFLAGS
107
GTK linker flags: $GTK_LIBS
109
XNeur Config flags: $XNEURCONF_CFLAGS
110
XNeur Config libs: $XNEURCONF_LIBS
112
XNeur flags: $XNEURLIB_CFLAGS
113
XNeur libs: $XNEURLIB_LIBS
117
#if (test "x$found_gtk2" != "xno") || (test "x$found_gtk3" != "xno"); then
118
if (test "x$found_gtk2" != "xno"); then
120
Use GTK+ >= 2.20.0 support
125
if test "x$with_appindicator" != "xno"; then
126
if test "x$found_appindicator" != "xno"; then
128
Use App Indicator 0.1 >= $APPINDICATOR_REQUIRED support
132
if test "x$found_deprec_appindicator" != "xno"; then
134
Use App Indicator 0.1 < $APPINDICATOR_REQUIRED support