remove a todo item that seems to be.. done!
[mikachu/openbox.git] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([kernel/openbox.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 AC_PATH_PROG([SED], [sed])
10 test "$SED" || AC_MSG_ERROR([sed not found])
11
12 # Determine build target
13 OB_DEBUG
14 # Pick compiler specific/build target flags, and set $CVS
15 OB_COMPILER_FLAGS
16 AC_C_CONST
17 AC_C_INLINE
18
19 if test "$CVS" = "yes"; then
20     AC_PATH_PROG([FLEX], [flex])
21     test "$FLEX" || AC_MSG_ERROR([flex not found])
22
23     AC_PATH_PROG([BISON], [bison])
24     test "BISON" || AC_MSG_ERROR([bison not found])
25 fi
26
27 AC_DISABLE_STATIC
28 AC_LIBTOOL_DLOPEN
29 AC_PROG_LIBTOOL
30 AC_SUBST(LIBTOOL_DEPS)
31 LIBTOOL="$LIBTOOL --silent"
32
33 AC_PROG_INSTALL
34
35 ALL_LINGUAS=""
36 AM_GNU_GETTEXT_VERSION(0.11.5)
37 AM_GNU_GETTEXT([external])
38
39 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
40 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
41 # AC_HEADER_TIME
42 # AC_TYPE_SIGNAL
43
44 PKG_CHECK_MODULES([GLIB], [glib-2.0])
45 AC_SUBST(GLIB_CFLAGS)
46 AC_SUBST(GLIB_LIBS)
47         
48 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
49 AC_SUBST(GMODULE_CFLAGS)
50 AC_SUBST(GMODULE_LIBS)
51
52 PKG_CHECK_MODULES(XFT, [xft])
53 AC_SUBST(XFT_CFLAGS)
54 AC_SUBST(XFT_LIBS)
55
56 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
57   [
58     AC_DEFINE(USE_LIBSN)
59     AC_SUBST(LIBSN_CFLAGS)
60     AC_SUBST(LIBSN_LIBS)
61   ],
62   [
63     no_such_luck=yes
64   ]
65 )
66
67 # Check for X11 extensions
68 X11_EXT_XKB
69 X11_EXT_XRANDR
70 X11_EXT_VIDMODE
71 X11_EXT_SHAPE
72 X11_EXT_XINERAMA
73
74 AC_CONFIG_FILES([Makefile
75                  po/Makefile.in
76                  themes/Makefile
77                  data/Makefile
78                  render/Makefile
79                  kernel/Makefile
80                  plugins/Makefile
81                  plugins/placement/Makefile
82                  plugins/mouse/Makefile
83                  plugins/keyboard/Makefile
84                  plugins/menu/Makefile])
85 AC_OUTPUT
86
87 AC_MSG_RESULT
88 if test "$DEBUG" = "yes"; then
89   AC_MSG_RESULT([Creating a DEBUG build.])
90 else
91   AC_MSG_RESULT([Creating a RELEASE build.])
92 fi
93 AC_MSG_RESULT
94 AC_MSG_RESULT([configure complete, now type \"make\"])