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
30 SWIG_MULTI_MODULE_SUPPORT
35 LIBTOOL="$LIBTOOL --silent"
39 AM_GNU_GETTEXT_VERSION(0.11.5)
40 AM_GNU_GETTEXT([external])
42 AC_CHECK_HEADERS(fcntl.h signal.h stdarg.h stdint.h unistd.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h)
49 # Check for X11 extensions
54 AC_CONFIG_FILES([Makefile po/Makefile.in
69 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
72 if test "$DEBUG" = "yes"; then
73 AC_MSG_RESULT([Creating a DEBUG build.])
75 AC_MSG_RESULT([Creating a RELEASE build.])
77 AC_MSG_RESULT([Using '$prefix' for installation.])
78 AC_MSG_RESULT([Using '$CXX' for C++ compiler.])
79 AC_MSG_RESULT([Building with '$CPPFLAGS' for C++ preprocessor flags.])
80 AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.])
81 AC_MSG_RESULT([Building with '$LIBS' for linker flags.])
83 AC_MSG_RESULT([configure complete, now type \"make\"])