no caps in the package name!
[dana/openbox.git] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([src/main.cc])
3 AC_CONFIG_HEADERS(config.h)
4 AC_LANG(C++)
5
6 # Determine build target
7 OB_DEBUG
8
9 AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
10
11 test "$prefix" = "NONE" && prefix="$ac_default_prefix"
12
13 AC_PATH_PROG([regex_cmd], [sed])
14 test "$regex_cmd" || AC_MSG_ERROR([sed not found])
15
16 AM_MAINTAINER_MODE
17 # Pick compiler specific/build target flags
18 OB_COMPILER_FLAGS
19
20 AC_PROG_LIBTOOL
21 LIBTOOL="$LIBTOOL --silent"
22 AC_PROG_INSTALL
23
24 ALL_LINGUAS=""
25 AM_GNU_GETTEXT_VERSION(0.11.5)
26 AM_GNU_GETTEXT([external])
27
28 PYTHON_DEVEL
29                     
30 AC_CHECK_HEADERS(ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h stdlib.h string.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h)
31 AC_HEADER_TIME
32 # AC_TYPE_SIGNAL
33
34 # Check for Xft2
35 XFT_DEVEL(2.0.0)
36
37 # Check for X11 extensions
38 X11_EXT_XKB
39 X11_EXT_SHAPE
40 X11_EXT_XINERAMA
41
42 AC_CONFIG_FILES([Makefile po/Makefile.in
43                 otk/Makefile
44                 src/Makefile
45                 scripts/Makefile
46                 util/Makefile
47                 util/epist/Makefile
48                 doc/Makefile
49                 doc/doxygen/Makefile
50                 data/Makefile
51                 data/buttons/Makefile
52                 data/styles/Makefile
53                 ])
54 AC_OUTPUT
55
56 AC_MSG_RESULT
57 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
58
59 AC_MSG_RESULT
60 AC_MSG_RESULT([Using '$prefix' for installation.])
61 AC_MSG_RESULT([Using '$CXX' for C++ compiler.])
62 AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.])
63 AC_MSG_RESULT([Building with '$LIBS' for linker flags.])
64 AC_MSG_RESULT
65 AC_MSG_RESULT([configure complete, now type \"make\"])
66 AC_MSG_RESULT