2 AC_INIT([openbox], [3.0-alpha7], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
9 # Determine build target
11 # Pick compiler specific/build target flags, and set $CVS
20 AC_SUBST(LIBTOOL_DEPS)
21 LIBTOOL="$LIBTOOL --silent"
26 AM_GNU_GETTEXT_VERSION(0.12.1)
27 AM_GNU_GETTEXT([external])
29 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
30 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
34 PKG_CHECK_MODULES([GLIB], [glib-2.0])
38 PKG_CHECK_MODULES(XFT, [xft])
42 PKG_CHECK_MODULES(XML, [libxml-2.0])
46 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
48 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
49 AC_SUBST(LIBSN_CFLAGS)
57 PKG_CHECK_MODULES(GTK, [gtk+-2.0],
63 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0],
65 AC_SUBST(GDK_PIXBUF_CFLAGS)
66 AC_SUBST(GDK_PIXBUF_LIBS)
71 AC_MSG_WARN([disabling build of the configuration tool])
77 AC_MSG_WARN([disabling build of the configuration tool])
80 AM_CONDITIONAL(OBCONF,
81 [test "$use_gtk" = "yes" && test "$use_gdk_pixbuf" = "yes"])
83 # Check for session management
90 # Check for X11 extensions
105 AC_MSG_RESULT([configure complete, now type \"make\"])