2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([kernel/openbox.c])
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
9 AC_PATH_PROG([SED], [sed])
10 test "$SED" || AC_MSG_ERROR([sed not found])
12 # Determine build target
14 # Pick compiler specific/build target flags, and set $CVS
21 if test "$CVS" = "yes"; then
22 AC_PATH_PROG([FLEX], [flex])
23 test "$FLEX" || AC_MSG_ERROR([flex not found])
25 AC_PATH_PROG([BISON], [bison])
26 test "BISON" || AC_MSG_ERROR([bison not found])
32 AC_SUBST(LIBTOOL_DEPS)
33 LIBTOOL="$LIBTOOL --silent"
38 AM_GNU_GETTEXT_VERSION(0.11.5)
39 AM_GNU_GETTEXT([external])
41 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
42 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
46 PKG_CHECK_MODULES([GLIB], [glib-2.0])
50 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
51 AC_SUBST(GMODULE_CFLAGS)
52 AC_SUBST(GMODULE_LIBS)
54 PKG_CHECK_MODULES(XFT, xft)
58 # Check for X11 extensions
63 AC_CONFIG_FILES([Makefile
70 plugins/placement/Makefile
71 plugins/mouse/Makefile
72 plugins/keyboard/Makefile])
76 if test "$DEBUG" = "yes"; then
77 AC_MSG_RESULT([Creating a DEBUG build.])
79 AC_MSG_RESULT([Creating a RELEASE build.])
82 AC_MSG_RESULT([configure complete, now type \"make\"])