2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([wmThemeCh], [0.2],
6 [alexhessemann@users.sourceforge.net],
8 AC_CONFIG_SRCDIR([src/wmThemeCh.c])
9 AC_CONFIG_HEADER([config.h])
12 # Checks for programs.
16 # Checks for libraries.
20 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS"
21 CFLAGS="$X_CFLAGS $CFLAGS"
22 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
23 LDFLAGS="$LDFLAGS $X_PRE_LIBS"
25 AC_CHECK_LIB(X11,XOpenDisplay, [], [AC_MSG_ERROR([libx11-dev missing])])
26 AC_CHECK_LIB(Xext,XShapeCombineMask)
27 AC_CHECK_LIB(Xpm,XpmReadFileToPixmap, [], [AC_MSG_ERROR([libxpm-dev missing])])
29 # Checks for header files.
32 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h \
33 X11/X.h X11/Xlib.h X11/xpm.h X11/extensions/shape.h])
35 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
42 AC_CHECK_FUNCS([strcspn strdup strspn strstr])
44 AC_CONFIG_FILES([Makefile