2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 # AC_CONFIG_HEADERS(config.h)
6 AC_ENABLE_SHARED([yes])
8 AC_PREFIX_DEFAULT([/usr/local])
9 test "$prefix" = "NONE" && prefix=$ac_default_prefix
11 ##AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
13 AC_PATH_PROG([SED], [sed])
14 test "$SED" || AC_MSG_ERROR([sed not found])
17 # Determine build target
19 # Pick compiler specific/build target flags, and set $CVS
24 PKG_CHECK_MODULES([GLIB], [glib-2.0])
28 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
29 AC_SUBST(GMODULE_CFLAGS)
30 AC_SUBST(GMODULE_LIBS)
32 AC_PATH_PROG([FLEX], [flex])
33 test "$FLEX" || AC_MSG_ERROR([flex not found])
35 AC_PATH_PROG([BISON], [bison])
36 test "BISON" || AC_MSG_ERROR([bison not found])
39 LIBTOOL="$LIBTOOL --silent"
43 ##AM_GNU_GETTEXT_VERSION(0.11.5)
44 ##AM_GNU_GETTEXT([external])
46 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
47 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
51 PKG_CHECK_MODULES(XFT, xft)
55 # Check for X11 extensions
60 AC_CONFIG_FILES([build/Makefile.incl])
65 # engines/openbox/Makefile
67 # plugins/keyboard/Makefile
68 # plugins/mouse/Makefile
69 # plugins/placement/Makefile
71 # doc/doxygen/Makefile
73 # data/buttons/Makefile
75 # themes/openbox/Makefile])
79 AC_MSG_RESULT([$PACKAGE_NAME version $PACKAGE_VERSION configured successfully.])
82 if test "$DEBUG" = "yes"; then
83 AC_MSG_RESULT([Creating a DEBUG build.])
85 AC_MSG_RESULT([Creating a RELEASE build.])
88 AC_MSG_RESULT([configure complete, now type \"make\"])