]> Dogcows Code - chaz/openbox/blob - configure.ac
coment the USE_LIBSN defined variable
[chaz/openbox] / configure.ac
1 AC_PREREQ([2.54])
2 AC_INIT([openbox], [3.0-alpha1], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([kernel/openbox.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 AC_PATH_PROG([SED], [sed])
10 test "$SED" || AC_MSG_ERROR([sed not found])
11
12 # Determine build target
13 OB_DEBUG
14 # Pick compiler specific/build target flags, and set $CVS
15 OB_COMPILER_FLAGS
16 AC_C_CONST
17 AC_C_INLINE
18
19 AC_DISABLE_STATIC
20 AC_LIBTOOL_DLOPEN
21 AC_PROG_LIBTOOL
22 AC_SUBST(LIBTOOL_DEPS)
23 LIBTOOL="$LIBTOOL --silent"
24
25 AC_PROG_INSTALL
26
27 ALL_LINGUAS=""
28 AM_GNU_GETTEXT_VERSION(0.11.5)
29 AM_GNU_GETTEXT([external])
30
31 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
32 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
33 # AC_HEADER_TIME
34 # AC_TYPE_SIGNAL
35
36 PKG_CHECK_MODULES([GLIB], [glib-2.0])
37 AC_SUBST(GLIB_CFLAGS)
38 AC_SUBST(GLIB_LIBS)
39
40 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
41 AC_SUBST(GMODULE_CFLAGS)
42 AC_SUBST(GMODULE_LIBS)
43
44 PKG_CHECK_MODULES(XFT, [xft])
45 AC_SUBST(XFT_CFLAGS)
46 AC_SUBST(XFT_LIBS)
47
48 PKG_CHECK_MODULES(XML, [libxml-2.0])
49 AC_SUBST(XML_CFLAGS)
50 AC_SUBST(XML_LIBS)
51
52 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
53 [
54 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
55 AC_SUBST(LIBSN_CFLAGS)
56 AC_SUBST(LIBSN_LIBS)
57 ],
58 [
59 no_such_luck=yes
60 ]
61 )
62
63 PKG_CHECK_MODULES(GTK, [gtk+-2.0],
64 [
65 AC_SUBST(GTK_CFLAGS)
66 AC_SUBST(GTK_LIBS)
67 use_gtk="yes"
68
69 PKG_CHECK_MODULES(GLADE, [libglade-2.0],
70 [
71 AC_SUBST(GLADE_CFLAGS)
72 AC_SUBST(GLADE_LIBS)
73 use_glade="yes"
74 ],
75 [
76 use_glade="no"
77 AC_MSG_WARN([disabling build of the configuration tool])
78 ]
79 )
80 ],
81 [
82 use_gtk="no"
83 AC_MSG_WARN([disabling build of the configuration tool])
84 ]
85 )
86 AM_CONDITIONAL(OBCONF, [test "$use_gtk" = "yes" && test "$use_glade" = "yes"])
87
88 # Check for session management
89 X11_SM
90
91 #EFENCE_LIBS=-lefence
92 EFENCE_LIBS=""
93 AC_SUBST(EFENCE_LIBS)
94
95 # Check for X11 extensions
96 X11_EXT_XKB
97 X11_EXT_XRANDR
98 X11_EXT_VIDMODE
99 X11_EXT_SHAPE
100 X11_EXT_XINERAMA
101
102 AC_CONFIG_FILES([Makefile
103 m4/Makefile
104 po/Makefile.in
105 themes/Makefile
106 themes/ebox_data/Makefile
107 themes/fieron_data/Makefile
108 themes/fieron2_data/Makefile
109 data/Makefile
110 render/Makefile
111 parser/Makefile
112 kernel/Makefile
113 plugins/Makefile
114 plugins/resistance/Makefile
115 plugins/placement/Makefile
116 plugins/mouse/Makefile
117 plugins/keyboard/Makefile
118 plugins/menu/Makefile
119 tools/Makefile
120 tools/obconf/Makefile])
121 AC_OUTPUT
122
123 AC_MSG_RESULT
124 if test "$DEBUG" = "yes"; then
125 AC_MSG_RESULT([Creating a DEBUG build.])
126 else
127 AC_MSG_RESULT([Creating a RELEASE build.])
128 fi
129 AC_MSG_RESULT
130 AC_MSG_RESULT([configure complete, now type \"make\"])
This page took 0.039559 seconds and 5 git commands to generate.