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([regex_cmd], [sed])
17 test "$regex_cmd" || AC_MSG_ERROR([sed not found])
20 # Determine build target
22 # Pick compiler specific/build target flags
28 LIBTOOL="$LIBTOOL --silent"
32 AM_GNU_GETTEXT_VERSION(0.11.5)
33 AM_GNU_GETTEXT([external])
37 AC_CHECK_HEADERS(ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h)
44 # Check for X11 extensions
49 AC_CONFIG_FILES([Makefile po/Makefile.in
63 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
66 if test "$DEBUG" = "yes"; then
67 AC_MSG_RESULT([Creating a DEBUG build.])
69 AC_MSG_RESULT([Creating a RELEASE build.])
71 AC_MSG_RESULT([Using '$prefix' for installation.])
72 AC_MSG_RESULT([Using '$CXX' for C++ compiler.])
73 AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.])
74 AC_MSG_RESULT([Building with '$LIBS' for linker flags.])
76 AC_MSG_RESULT([configure complete, now type \"make\"])