]> Dogcows Code - chaz/openbox/blob - configure.ac
add 'grab_server' for grabbing .. the .. server!
[chaz/openbox] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([src/main.cc])
3 #AC_CONFIG_HEADERS(config.h)
4 AC_LANG([C])
5 AC_ENABLE_STATIC([no])
6 AC_ENABLE_SHARED([yes])
7
8 AC_PREFIX_DEFAULT([/usr/local])
9 if test "$prefix" = "NONE"; then
10 prefix=$ac_default_prefix
11 ac_configure_args="$ac_configure_args --prefix $prefix"
12 fi
13
14 AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
15
16 ##AC_PATH_PROG([awk_cmd], [awk]) # used by swig.m4
17 ##test "$awk_cmd" || AC_MSG_ERROR([awk not found])
18 AC_PATH_PROG([regex_cmd], [sed])
19 test "$regex_cmd" || AC_MSG_ERROR([sed not found])
20
21 AM_MAINTAINER_MODE
22 # Determine build target
23 OB_DEBUG
24 # Pick compiler specific/build target flags, and set $CVS
25 OB_COMPILER_FLAGS
26
27 PKG_CHECK_MODULES(GLIB, glib-2.0)
28 AC_SUBST(GLIB_CFLAGS)
29 AC_SUBST(GLIB_LIBS)
30
31 PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
32 AC_SUBST(GMODULE_CFLAGS)
33 AC_SUBST(GMODULE_LIBS)
34
35 AC_PROG_LN_S
36 AC_PROG_LIBTOOL
37 LIBTOOL="$LIBTOOL --silent"
38 AC_PROG_INSTALL
39
40 ALL_LINGUAS=""
41 AM_GNU_GETTEXT_VERSION(0.11.5)
42 AM_GNU_GETTEXT([external])
43
44 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdlib.h)
45 AC_CHECK_HEADERS(unistd.h sys/select.h sys/time.h sys/wait.h)
46 # AC_HEADER_TIME
47 # AC_TYPE_SIGNAL
48
49 PKG_CHECK_MODULES(XFT, xft)
50 AC_SUBST(XFT_CFLAGS)
51 AC_SUBST(XFT_LIBS)
52
53 # Check for X11 extensions
54 X11_EXT_XKB
55 X11_EXT_SHAPE
56 X11_EXT_XINERAMA
57
58 AC_CONFIG_FILES([Makefile po/Makefile.in
59 c/Makefile
60 kernel/Makefile
61 render/Makefile
62 engines/Makefile
63 engines/openbox/Makefile
64 plugins/Makefile
65 plugins/keyboard/Makefile
66 doc/Makefile
67 doc/doxygen/Makefile
68 data/Makefile
69 data/buttons/Makefile
70 themes/Makefile
71 themes/openbox/Makefile
72 ])
73 AC_OUTPUT
74
75 AC_MSG_RESULT
76 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
77
78 AC_MSG_RESULT
79 if test "$DEBUG" = "yes"; then
80 AC_MSG_RESULT([Creating a DEBUG build.])
81 else
82 AC_MSG_RESULT([Creating a RELEASE build.])
83 fi
84 AC_MSG_RESULT
85 AC_MSG_RESULT([configure complete, now type \"make\"])
This page took 0.041622 seconds and 4 git commands to generate.