added flakey parentrel for solids and some mean spirited asserts
[dana/openbox.git] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 # AC_CONFIG_HEADERS(config.h)
4 AC_LANG([C])
5 AC_ENABLE_STATIC([no])
6 AC_ENABLE_SHARED([yes])
7
8 AC_PREFIX_DEFAULT([/usr/local])
9 test "$prefix" = "NONE" && prefix=$ac_default_prefix
10
11 ##AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
12
13 AC_PATH_PROG([SED], [sed])
14 test "$SED" || AC_MSG_ERROR([sed not found])
15
16 ##AM_MAINTAINER_MODE
17 # Determine build target
18 OB_DEBUG
19 # Pick compiler specific/build target flags, and set $CVS
20 OB_COMPILER_FLAGS
21 AC_C_CONST
22 AC_C_INLINE
23
24 # XXX ADD --disable-nls option to this XXX
25 CPPFLAGS="$CPPFLAGS -DENABLE_NLS"
26 # XXX                                  XXX
27
28 PKG_CHECK_MODULES([GLIB], [glib-2.0])
29 AC_SUBST(GLIB_CFLAGS)
30 AC_SUBST(GLIB_LIBS)
31         
32 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
33 AC_SUBST(GMODULE_CFLAGS)
34 AC_SUBST(GMODULE_LIBS)
35
36 AC_PATH_PROG([FLEX], [flex])
37 test "$FLEX" || AC_MSG_ERROR([flex not found])
38
39 AC_PATH_PROG([BISON], [bison])
40 test "BISON" || AC_MSG_ERROR([bison not found])
41
42 AC_PROG_LIBTOOL
43 LIBTOOL="$LIBTOOL --silent"
44 AC_PROG_INSTALL
45
46 ##ALL_LINGUAS=""
47 ##AM_GNU_GETTEXT_VERSION(0.11.5)
48 ##AM_GNU_GETTEXT([external])
49
50 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
51 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
52 # AC_HEADER_TIME
53 # AC_TYPE_SIGNAL
54
55 PKG_CHECK_MODULES(XFT, xft)
56 AC_SUBST(XFT_CFLAGS)
57 AC_SUBST(XFT_LIBS)
58
59 # Check for X11 extensions
60 X11_EXT_XKB
61 X11_EXT_SHAPE
62 X11_EXT_XINERAMA
63
64 AC_CONFIG_FILES([build/Makefile.incl])
65 # po/Makefile.in
66 #               kernel/Makefile
67 #               render/Makefile
68 #               engines/Makefile
69 #               engines/openbox/Makefile
70 #               plugins/Makefile
71 #               plugins/keyboard/Makefile
72 #               plugins/mouse/Makefile
73 #               plugins/placement/Makefile
74 #               doc/Makefile
75 #               doc/doxygen/Makefile
76 #               data/Makefile
77 #               data/buttons/Makefile
78 #               themes/Makefile
79 #               themes/openbox/Makefile])
80 AC_OUTPUT
81
82 AC_MSG_RESULT
83 if test "$DEBUG" = "yes"; then
84   AC_MSG_RESULT([Creating a DEBUG build.])
85 else
86   AC_MSG_RESULT([Creating a RELEASE build.])
87 fi
88 AC_MSG_RESULT
89 AC_MSG_RESULT([configure complete, now type \"make\"])