]> Dogcows Code - chaz/openbox/blob - configure.ac
dont crash when flashing a window when it goes away, remove the timer when dying
[chaz/openbox] / configure.ac
1 AC_PREREQ([2.54])
2 AC_INIT([openbox], [3.0-alpha7], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 # Determine build target
10 OB_DEBUG
11 # Pick compiler specific/build target flags, and set $CVS
12 AM_PROG_CC_C_O
13 OB_COMPILER_FLAGS
14 AC_C_CONST
15 AC_C_INLINE
16
17 AC_DISABLE_STATIC
18 AC_LIBTOOL_DLOPEN
19 AC_PROG_LIBTOOL
20 AC_SUBST(LIBTOOL_DEPS)
21 LIBTOOL="$LIBTOOL --silent"
22
23 AC_PROG_INSTALL
24
25 ALL_LINGUAS=""
26 AM_GNU_GETTEXT_VERSION(0.12.1)
27 AM_GNU_GETTEXT([external])
28
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)
31 # AC_HEADER_TIME
32 # AC_TYPE_SIGNAL
33
34 PKG_CHECK_MODULES([GLIB], [glib-2.0])
35 AC_SUBST(GLIB_CFLAGS)
36 AC_SUBST(GLIB_LIBS)
37
38 PKG_CHECK_MODULES(XFT, [xft])
39 AC_SUBST(XFT_CFLAGS)
40 AC_SUBST(XFT_LIBS)
41
42 PKG_CHECK_MODULES(XML, [libxml-2.0])
43 AC_SUBST(XML_CFLAGS)
44 AC_SUBST(XML_LIBS)
45
46 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
47 [
48 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
49 AC_SUBST(LIBSN_CFLAGS)
50 AC_SUBST(LIBSN_LIBS)
51 ],
52 [
53 no_such_luck=yes
54 ]
55 )
56
57 PKG_CHECK_MODULES(GTK, [gtk+-2.0],
58 [
59 AC_SUBST(GTK_CFLAGS)
60 AC_SUBST(GTK_LIBS)
61 use_gtk="yes"
62
63 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0],
64 [
65 AC_SUBST(GDK_PIXBUF_CFLAGS)
66 AC_SUBST(GDK_PIXBUF_LIBS)
67 use_gdk_pixbuf="yes"
68 ],
69 [
70 use_gdk_pixbuf="no"
71 AC_MSG_WARN([disabling build of the configuration tool])
72 ]
73 )
74 ],
75 [
76 use_gtk="no"
77 AC_MSG_WARN([disabling build of the configuration tool])
78 ]
79 )
80 AM_CONDITIONAL(OBCONF,
81 [test "$use_gtk" = "yes" && test "$use_gdk_pixbuf" = "yes"])
82
83 # Check for session management
84 X11_SM
85
86 #EFENCE_LIBS=-lefence
87 EFENCE_LIBS=""
88 AC_SUBST(EFENCE_LIBS)
89
90 # Check for X11 extensions
91 X11_EXT_XKB
92 X11_EXT_XRANDR
93 X11_EXT_VIDMODE
94 X11_EXT_SHAPE
95 X11_EXT_XINERAMA
96
97 AC_CONFIG_FILES([
98 Makefile
99 m4/Makefile
100 po/Makefile.in
101 ])
102 AC_OUTPUT
103
104 AC_MSG_RESULT
105 AC_MSG_RESULT([configure complete, now type \"make\"])
This page took 0.037879 seconds and 4 git commands to generate.