root/configure.ac

Revision 680127076a15d34b15e89a7d6ad8cb77840b04cf, 2.5 kB (checked in by Dave Foster <daf@minuslab.net>, 4 months ago)

Ready for 1.4.

  • Property mode set to 100644
Line 
1 AC_PREREQ(2.59)
2 AC_INIT([nitrogen],[1.4],[daf@minuslab.net])
3 AC_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE
5 AC_ISC_POSIX
6 AC_HEADER_STDC++
7 AC_PROG_CXX
8 AC_PROG_RANLIB
9 AC_PROG_INSTALL
10
11 ALL_LINGUAS=""
12 AM_GNU_GETTEXT_VERSION(0.16)
13 AM_GNU_GETTEXT([external])
14 AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Name of gettext locale directory])
15
16 AC_LANG([C++])
17 AC_LANG_COMPILER_REQUIRE
18 AC_HEADER_STDC([])
19
20 dnl
21 dnl Our depend list
22 dnl
23
24 GLIB2_VERSION=2.6.0
25 GTK2_VERSION=2.10.0
26 GTKMM2_VERSION=2.10.0
27 GTHREAD2_VERSION=2.6.0
28
29 AC_SUBST(GLIB2_VERSION)
30 AC_SUBST(GTK2_VERSION)
31
32
33 PKG_CHECK_MODULES(GLIB2,[glib-2.0 >= $GLIB2_VERSION])
34 PKG_CHECK_MODULES(GTK2,[gtk+-2.0 >= $GTK2_VERSION])
35 PKG_CHECK_MODULES(GTKMM2, [gtkmm-2.4 >= $GTKMM2_VERSION])
36 PKG_CHECK_MODULES(GTHREAD2, [gthread-2.0 >= $GTHREAD2_VERSION])
37
38
39 NITROGEN_LIBS="$GLIB2_LIBS $GTK2_LIBS $GTKMM2_LIBS $GTHREAD2_LIBS"
40 NITROGEN_CFLAGS="$GLIB2_CFLAGS $GTK2_CFLAGS $GTKMM2_CFLAGS $GTHREAD2_CFLAGS"
41
42 dnl do some autotools picen to get inotify
43 AC_ARG_ENABLE(inotify, [  --disable-inotify       disable support for inotify watching of dirs (default: enabled)], [enable_inotify=$enableval],[enable_inotify=yes])
44
45 AC_ARG_ENABLE(debug, [  --enable-debug       enable debugging flags ])
46
47 if test "$enable_debug" = "yes"; then
48  CXXFLAGS+=" -g -g3 -ggdb -DDEBUG"
49 fi
50
51 if test x$enable_inotify = xyes; then
52         AC_DEFINE(USE_INOTIFY, 1, [Define to enable inotify dir watching])
53 fi
54
55 dnl now do some proper checking for Xinerama
56 AC_ARG_ENABLE(xinerama, [  --disable-xinerama      disable support for Xinerama (default: enabled)], [enable_xinerama=$enableval],[enable_xinerama=yes])
57
58 if test x$enable_xinerama = xyes; then
59         AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
60                                         [AC_DEFINE(USE_XINERAMA, 1, [Define to enable Xinerama])
61                                          NITROGEN_LIBS="$NITROGEN_LIBS -lXinerama"],
62                                         [enable_xinerama=no])
63 fi
64
65 AC_SUBST(NITROGEN_LIBS)
66 AC_SUBST(NITROGEN_CFLAGS)
67
68 AC_CONFIG_FILES(Makefile src/Makefile data/Makefile data/icons/Makefile po/Makefile.in)
69 AC_OUTPUT
70
71 dnl syscrash says don't test for inotify support in kernel for some reason
72 echo ""
73 echo "##########################################"
74 echo ""
75 echo "Options:"
76 echo ""
77
78 if test x$enable_inotify = xyes; then
79         echo "inotify support ............. enabled"
80 else
81         echo "inotify support ............. disabled"
82 fi
83
84 if test x$enable_xinerama = xyes; then
85         echo "xinerama support ............ enabled"
86 else
87         echo "xinerama support ............ disabled"
88 fi
89
90 echo ""
91 echo "##########################################"
92 echo ""
93 echo "You are now ready to compile nitrogen"
94 echo "Type \"make\" to compile nitrogen"
Note: See TracBrowser for help on using the browser.