1 dnl Process this file with autoconf to produce a configure script.
4 dnl Checks for programs.
8 dnl Checks for header files.
12 AC_CHECK_HEADERS(limits.h sys/time.h)
14 dnl Checks for X installation root directory.
16 X_LIBRARY_PATH="$x_libraries"
17 XLIBS="-lX11 $X_EXTRA_LIBS"
21 if test -n "$includedir"; then
22 XCFLAGS="$XCFLAGS -I$includedir"
25 if test -n "$libdir"; then
26 XLIBS="$XLIBS -L$libdir"
29 CPPFLAGS_old="$CPPFLAGS"
30 CPPFLAGS="$CPPFLAGS $XCFLAGS"
31 AC_CHECK_HEADER(dockapp.h,,)
32 CPPFLAGS="$CPPFLAGS_old"
37 AC_SUBST(X_LIBRARY_PATH)
39 dnl Checks for typedefs, structures, and compiler characteristics.
42 dnl Checks for library functions.
46 AC_CHECK_FUNCS(strdup strstr memcpy)
48 dnl Checks for libraries.
49 AC_CHECK_LIB(X11, XCreateGC,,,$XLFLAGS $XLIBS)
50 AC_CHECK_LIB(dockapp, DAInitialize,,,$XLFLAGS $XLIBS)
54 [ --enable-debug enable debugging ],, enable_debug=no)
55 if test "$enable_debug" = yes; then
56 CFLAGS="-Wall -g -DDEBUG"
59 dnl Use delt's pixmaps instead of the default ones?
60 AC_ARG_ENABLE(delt_xpms,
61 [ --enable-delt-xpms enable delt's pixmaps ],, enable_delt_xpms=no)
62 if test "$enable_delt_xpms" = yes; then
63 CFLAGS="$CFLAGS -DUSE_DELT_XPMS"
66 AC_OUTPUT(Makefile src/Makefile)