caps for giving the build target. show it at the end
[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 AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
7
8 test "$prefix" = "NONE" && prefix="$ac_default_prefix"
9
10 AC_PATH_PROG([regex_cmd], [sed])
11 test "$regex_cmd" || AC_MSG_ERROR([sed not found])
12
13 AM_MAINTAINER_MODE
14 # Determine build target
15 OB_DEBUG
16 # Pick compiler specific/build target flags
17 OB_COMPILER_FLAGS
18
19 AC_PROG_LIBTOOL
20 LIBTOOL="$LIBTOOL --silent"
21 AC_PROG_INSTALL
22
23 ALL_LINGUAS=""
24 AM_GNU_GETTEXT_VERSION(0.11.5)
25 AM_GNU_GETTEXT([external])
26
27 PYTHON_DEVEL
28                     
29 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)
30 AC_HEADER_TIME
31 # AC_TYPE_SIGNAL
32
33 # Check for Xft2
34 XFT_DEVEL(2.0.0)
35
36 # Check for X11 extensions
37 X11_EXT_XKB
38 X11_EXT_SHAPE
39 X11_EXT_XINERAMA
40
41 AC_CONFIG_FILES([Makefile po/Makefile.in
42                 otk/Makefile
43                 src/Makefile
44                 scripts/Makefile
45                 util/Makefile
46                 util/epist/Makefile
47                 doc/Makefile
48                 doc/doxygen/Makefile
49                 data/Makefile
50                 data/buttons/Makefile
51                 data/styles/Makefile
52                 ])
53 AC_OUTPUT
54
55 AC_MSG_RESULT
56 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
57
58 AC_MSG_RESULT
59 if test "$DEBUG" = "yes"; then
60   AC_MSG_RESULT([Creating a DEBUG build.])
61 else
62   AC_MSG_RESULT([Creating a RELEASE build.])
63 fi
64 AC_MSG_RESULT([Using '$prefix' for installation.])
65 AC_MSG_RESULT([Using '$CXX' for C++ compiler.])
66 AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.])
67 AC_MSG_RESULT([Building with '$LIBS' for linker flags.])
68 AC_MSG_RESULT
69 AC_MSG_RESULT([configure complete, now type \"make\"])
70 AC_MSG_RESULT