2 AC_INIT([openbox], [3.4.0], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
7 dnl OB_MICRO_VERSION += 1;
8 dnl OB_INTERFACE_AGE += 1;
9 dnl OB_BINARY_AGE += 1;
10 dnl if any functions have been added, set OB_INTERFACE_AGE to 0.
11 dnl if backwards compatibility has been broken,
12 dnl set OB_BINARY_AGE and OB_INTERFACE_AGE to 0.
14 dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
21 OB_VERSION=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
23 AC_SUBST(OB_MAJOR_VERSION)
24 AC_SUBST(OB_MINOR_VERSION)
25 AC_SUBST(OB_MICRO_VERSION)
26 AC_SUBST(OB_INTERFACE_AGE)
27 AC_SUBST(OB_BINARY_AGE)
30 dnl Libtool versioning
31 LT_RELEASE=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
32 LT_CURRENT=`expr $OB_MICRO_VERSION - $OB_INTERFACE_AGE`
33 LT_REVISION=$OB_INTERFACE_AGE
34 LT_AGE=`expr $OB_BINARY_AGE - $OB_INTERFACE_AGE`
35 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
41 AC_SUBST(LT_CURRENT_MINUS_AGE)
43 AC_PREFIX_DEFAULT([/usr/local])
44 test "$prefix" = "NONE" && prefix=$ac_default_prefix
46 dnl Determine build target
48 dnl Pick compiler specific/build target flags, and set $CVS
55 AC_SUBST(LIBTOOL_DEPS)
56 LIBTOOL="$LIBTOOL --silent"
60 AM_GNU_GETTEXT_VERSION(0.12.1)
61 AM_GNU_GETTEXT([external])
63 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
64 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
68 AC_PATH_PROG([SED], [sed], [no])
69 if test "$SED" = "no"; then
70 AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.])
73 PKG_CHECK_MODULES([GLIB], [glib-2.0])
77 PKG_CHECK_MODULES(PANGO, [pango pangoxft])
78 AC_SUBST(PANGO_CFLAGS)
81 PKG_CHECK_MODULES(XML, [libxml-2.0])
85 AC_ARG_ENABLE(startup-notification,
87 [--enable-startup-notification],
88 [enable the startup notification library. [[default=enabled]]]
90 [enable_sn=$enableval],
94 if test "$enable_sn" = yes; then
95 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
97 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
98 AC_SUBST(LIBSN_CFLAGS)
110 dnl Check for session management
113 #EFENCE_LIBS=-lefence
115 AC_SUBST(EFENCE_LIBS)
117 dnl Check for X11 extensions
127 render/obrender-3.0.pc
128 parser/obparser-3.0.pc
134 AC_MSG_RESULT([Compiling with these options:
135 Startup Notification... $sn_found
136 Session Management... $SM
138 AC_MSG_RESULT([configure complete, now type "make"])