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 header files.
13 AC_CHECK_HEADERS(limits.h sys/time.h)
15 dnl Checks for X installation root directory.
17 X_LIBRARY_PATH="$x_libraries"
18 XLIBS="-lX11 $X_EXTRA_LIBS"
22 if test -n "$includedir"; then
23 XCFLAGS="$XCFLAGS -I$includedir"
26 if test -n "$libdir"; then
27 XLIBS="$XLIBS -L$libdir"
30 CPPFLAGS_old="$CPPFLAGS"
31 CPPFLAGS="$CPPFLAGS $XCFLAGS"
32 AC_CHECK_HEADER(dockapp.h,,)
33 CPPFLAGS="$CPPFLAGS_old"
38 AC_SUBST(X_LIBRARY_PATH)
40 dnl Checks for typedefs, structures, and compiler characteristics.
43 dnl Checks for library functions.
47 AC_CHECK_FUNCS(strdup strstr memcpy)
49 dnl Checks for libraries.
50 AC_CHECK_LIB(X11, XCreateGC,,,$XLFLAGS $XLIBS)
51 AC_CHECK_LIB(dockapp, DAInitialize,,,$XLFLAGS $XLIBS)
55 [ --enable-debug enable debugging ],, enable_debug=no)
56 if test "$enable_debug" = yes; then
57 CPPFLAGS="$CPPFLAGS -DDEBUG"
58 CFLAGS="$CFLAGS -Wall -g"
61 dnl Use delt's pixmaps instead of the default ones?
62 AC_ARG_ENABLE(delt_xpms,
63 [ --enable-delt-xpms enable delt's pixmaps ],, enable_delt_xpms=no)
64 if test "$enable_delt_xpms" = yes; then
65 CPPFLAGS="$CPPFLAGS -DUSE_DELT_XPMS"
68 AC_OUTPUT(Makefile src/Makefile)