2 AC_INIT([openbox], [3.999.0], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
7 dnl RR_MICRO_VERSION += 1;
8 dnl RR_INTERFACE_AGE += 1;
10 dnl if any functions have been added, set RR_INTERFACE_AGE to 0.
11 dnl if backwards compatibility has been broken,
12 dnl set RR_BINARY_AGE and RR_INTERFACE_AGE to 0.
14 dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
21 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
28 OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
30 AC_SUBST(RR_MAJOR_VERSION)
31 AC_SUBST(RR_MINOR_VERSION)
32 AC_SUBST(RR_MICRO_VERSION)
33 AC_SUBST(RR_INTERFACE_AGE)
34 AC_SUBST(RR_BINARY_AGE)
36 AC_SUBST(OBT_MAJOR_VERSION)
37 AC_SUBST(OBT_MINOR_VERSION)
38 AC_SUBST(OBT_MICRO_VERSION)
39 AC_SUBST(OBT_INTERFACE_AGE)
40 AC_SUBST(OBT_BINARY_AGE)
43 dnl Libtool versioning
44 RR_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
45 RR_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE`
46 RR_REVISION=$RR_INTERFACE_AGE
47 RR_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE`
48 RR_CURRENT_MINUS_AGE=`expr $RR_CURRENT - $RR_AGE`
50 OBT_RELEASE=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
51 OBT_CURRENT=`expr $OBT_MICRO_VERSION - $OBT_INTERFACE_AGE`
52 OBT_REVISION=$OBT_INTERFACE_AGE
53 OBT_AGE=`expr $OBT_BINARY_AGE - $OBT_INTERFACE_AGE`
54 OBT_CURRENT_MINUS_AGE=`expr $OBT_CURRENT - $OBT_AGE`
60 AC_SUBST(RR_CURRENT_MINUS_AGE)
63 AC_SUBST(OBT_REVISION)
65 AC_SUBST(OBT_CURRENT_MINUS_AGE)
67 AC_PREFIX_DEFAULT([/usr/local])
68 test "$prefix" = "NONE" && prefix=$ac_default_prefix
70 dnl Determine build target
72 dnl Pick compiler specific/build target flags, and set $CVS
79 AC_SUBST(LIBTOOL_DEPS)
80 LIBTOOL="$LIBTOOL --silent"
84 AM_GNU_GETTEXT_VERSION(0.15)
85 AM_GNU_GETTEXT([external])
87 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
88 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
92 AC_PATH_PROG([SED], [sed], [no])
93 if test "$SED" = "no"; then
94 AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.])
97 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6.0])
101 PKG_CHECK_MODULES(PANGO, [pango >= 1.8.0 pangoxft >= 1.8.0])
102 AC_SUBST(PANGO_CFLAGS)
105 PKG_CHECK_MODULES(XFT, [xft])
109 PKG_CHECK_MODULES(XML, [libxml-2.0 >= 2.6.0])
113 AC_ARG_ENABLE(startup-notification,
115 [--disable-startup-notification],
116 [disable the startup notification library. [[default=enabled]]]
118 [enable_sn=$enableval],
122 if test "$enable_sn" = yes; then
123 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0 >= 0.8],
125 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
126 AC_SUBST(LIBSN_CFLAGS)
138 AC_ARG_ENABLE(xcursor,
141 [disable use of the X Cursor library. [[default=enabled]]]
143 [enable_xcursor=$enableval],
147 if test "$enable_xcursor" = yes; then
148 PKG_CHECK_MODULES(XCURSOR, [xcursor],
150 AC_DEFINE(USE_XCURSOR, [1], [Use X Cursor library])
151 AC_SUBST(XCURSOR_CFLAGS)
152 AC_SUBST(XCURSOR_LIBS)
163 dnl Check for session management
166 #EFENCE_LIBS=-lefence
168 AC_SUBST(EFENCE_LIBS)
170 dnl Check for X11 extensions
181 render/obrender-4.0.pc
186 AC_CONFIG_COMMANDS([doc],
187 [test -d doc || mkdir doc])
188 AC_CONFIG_COMMANDS([data],
189 [test -d data || mkdir data])
190 AC_CONFIG_COMMANDS([data/xsession],
191 [test -d data/xsession || mkdir data/xsession])
195 AC_MSG_RESULT([Compiling with these options:
196 Startup Notification... $sn_found
197 X Cursor Library... $xcursor_found
198 Session Management... $SM
200 AC_MSG_RESULT([configure complete, now type "make"])