1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_HEADERS(config.h)
5 dnl Checks for programs.
9 dnl Checks for pkg-config modules.
10 PKG_CHECK_MODULES([X11], [x11])
11 PKG_CHECK_MODULES([dockapp], [dockapp])
13 dnl Checks for header files.
16 AC_CHECK_HEADERS([limits.h strings.h sys/time.h])
17 CPPFLAGS_old="$CPPFLAGS"
18 CPPFLAGS="$CPPFLAGS $dockapp_CFLAGS $X11_CFLAGS"
19 AC_CHECK_HEADERS([libdockapp/dockapp.h dockapp.h])
20 CPPFLAGS="$CPPFLAGS_old"
22 dnl Checks for typedefs, structures, and compiler characteristics.
26 dnl Checks for library functions.
30 AC_CHECK_FUNCS(strdup strstr memcpy)
32 dnl Checks for libraries.
36 [ --enable-debug enable debugging ],, enable_debug=no)
37 if test "$enable_debug" = yes; then
38 CPPFLAGS="$CPPFLAGS -DDEBUG -D_XOPEN_SOURCE=600"
39 CFLAGS="$CFLAGS -std=c99 -pedantic -Wall -Wextra -g"
42 dnl Use delt's pixmaps instead of the default ones?
43 AC_ARG_ENABLE(delt_xpms,
44 [ --enable-delt-xpms enable delt's pixmaps ],, enable_delt_xpms=no)
45 if test "$enable_delt_xpms" = yes; then
46 CPPFLAGS="$CPPFLAGS -DUSE_DELT_XPMS"
49 AC_OUTPUT(Makefile src/Makefile)