Add missing libraries to examples' Makefiles
[dockapps.git] / wmthemech / configure.ac
blobf3fe03b63882d888aa29627e4bdd0a601b972289
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([wmThemeCh], [0.2],
6         [alexhessemann@users.sourceforge.net],
7         [wmthemech])
8 AC_CONFIG_SRCDIR([src/wmThemeCh.c])
9 AC_CONFIG_HEADER([config.h])
10 AM_INIT_AUTOMAKE
12 # Checks for programs.
13 AC_PROG_CC
14 AC_PROG_INSTALL
16 # Checks for libraries.
18 AC_PATH_XTRA
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.
30 AC_HEADER_DIRENT
31 AC_HEADER_STDC
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.
36 AC_C_CONST
38 # Checks for library functions.
39 AC_FUNC_MALLOC
40 AC_FUNC_REALLOC
41 AC_FUNC_STAT
42 AC_CHECK_FUNCS([strcspn strdup strspn strstr])
44 AC_CONFIG_FILES([Makefile
45                  src/Makefile])
46 AC_OUTPUT