check for stdio.h
[dana/openbox.git] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([kernel/openbox.c])
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([SED], [sed])
17 test "$SED" || AC_MSG_ERROR([sed not found])
18
19 AM_MAINTAINER_MODE
20 # Determine build target
21 OB_DEBUG
22 # Pick compiler specific/build target flags, and set $CVS
23 OB_COMPILER_FLAGS
24
25 PKG_CHECK_MODULES([GLIB], [glib-2.0])
26 AC_SUBST(GLIB_CFLAGS)
27 AC_SUBST(GLIB_LIBS)
28         
29 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
30 AC_SUBST(GMODULE_CFLAGS)
31 AC_SUBST(GMODULE_LIBS)
32
33 AM_PROG_LEX     
34 AC_PROG_LIBTOOL
35 LIBTOOL="$LIBTOOL --silent"
36 AC_PROG_INSTALL
37
38 ALL_LINGUAS=""
39 AM_GNU_GETTEXT_VERSION(0.11.5)
40 AM_GNU_GETTEXT([external])
41
42 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
43 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
44 # AC_HEADER_TIME
45 # AC_TYPE_SIGNAL
46
47 PKG_CHECK_MODULES(XFT, xft)
48 AC_SUBST(XFT_CFLAGS)
49 AC_SUBST(XFT_LIBS)
50
51 # Check for X11 extensions
52 X11_EXT_XKB
53 X11_EXT_SHAPE
54 X11_EXT_XINERAMA
55
56 AC_CONFIG_FILES([Makefile po/Makefile.in
57                 kernel/Makefile
58                 render/Makefile
59                 engines/Makefile
60                 engines/openbox/Makefile
61                 plugins/Makefile
62                 plugins/keyboard/Makefile
63                 plugins/mouse/Makefile
64                 plugins/placement/Makefile
65                 doc/Makefile
66                 doc/doxygen/Makefile
67                 data/Makefile
68                 data/buttons/Makefile
69                 themes/Makefile
70                 themes/openbox/Makefile])
71 AC_OUTPUT
72
73 AC_MSG_RESULT
74 AC_MSG_RESULT([$PACKAGE version $VERSION configured successfully.])
75
76 AC_MSG_RESULT
77 if test "$DEBUG" = "yes"; then
78   AC_MSG_RESULT([Creating a DEBUG build.])
79 else
80   AC_MSG_RESULT([Creating a RELEASE build.])
81 fi
82 AC_MSG_RESULT
83 AC_MSG_RESULT([configure complete, now type \"make\"])