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 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0])
59 AC_SUBST(LIBSN_CFLAGS)
61 if test "$LIBSN_LIBS"; then
65 # Check for X11 extensions
72 AC_CONFIG_FILES([Makefile
79 plugins/placement/Makefile
80 plugins/mouse/Makefile
81 plugins/keyboard/Makefile
82 plugins/menu/Makefile])
86 if test "$DEBUG" = "yes"; then
87 AC_MSG_RESULT([Creating a DEBUG build.])
89 AC_MSG_RESULT([Creating a RELEASE build.])
92 AC_MSG_RESULT([configure complete, now type \"make\"])