3 #AC_CONFIG_HEADERS(config.h)
6 AC_ENABLE_SHARED([yes])
8 AC_PREFIX_DEFAULT([/usr/local])
9 if test "$prefix" = "NONE"; then
10 prefix=$ac_default_prefix
11 ac_configure_args="$ac_configure_args --prefix $prefix"
14 AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
16 ##AC_PATH_PROG([awk_cmd], [awk]) # used by swig.m4
17 ##test "$awk_cmd" || AC_MSG_ERROR([awk not found])
18 AC_PATH_PROG([regex_cmd], [sed])
19 test "$regex_cmd" || AC_MSG_ERROR([sed not found])
22 # Determine build target
24 # Pick compiler specific/build target flags, and set $CVS
27 PKG_CHECK_MODULES(GLIB, glib-2.0)
31 PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
32 AC_SUBST(GMODULE_CFLAGS)
33 AC_SUBST(GMODULE_LIBS)
37 LIBTOOL="$LIBTOOL --silent"
41 AM_GNU_GETTEXT_VERSION(0.11.5)
42 AM_GNU_GETTEXT([external])
44 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdlib.h)
45 AC_CHECK_HEADERS(unistd.h sys/select.h sys/time.h sys/wait.h)
49 PKG_CHECK_MODULES(XFT, xft)
53 # Check for X11 extensions
58 AC_CONFIG_FILES([Makefile po/Makefile.in
63 engines/openbox/Makefile
65 plugins/keyboard/Makefile
71 themes/openbox/Makefile
76 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
79 if test "$DEBUG" = "yes"; then
80 AC_MSG_RESULT([Creating a DEBUG build.])
82 AC_MSG_RESULT([Creating a RELEASE build.])
85 AC_MSG_RESULT([configure complete, now type \"make\"])