1 # $Id: configure.ac,v 1.19 2005/02/14 19:14:58 godisch Exp $
2 # copyright (c) 2002-2005 Martin A. Godisch <martin@godisch.de>
3 # ----------------------------------------------------------------------------
5 AC_INIT([wmwork],[0.2.5],[martin@godisch.de])
6 AC_REVISION([$Revision: 1.19 $])
7 AC_CONFIG_SRCDIR([wmwork.c])
8 AC_CONFIG_HEADER([config.h])
9 # ----------------------------------------------------------------------------
13 # ----------------------------------------------------------------------------
15 LDFLAGS="$LDFLAGS $X_LIBS"
16 AC_CHECK_LIB([X11], [XNextEvent],, [AC_MSG_ERROR(cannot find libX11.so)], [$X_LIBS])
17 AC_CHECK_LIB([Xext], [XShapeCombineMask],, [AC_MSG_ERROR(cannot find libXext.so)], [$X_LIBS])
18 AC_CHECK_LIB([Xpm], [XpmCreatePixmapFromData],, [AC_MSG_ERROR(cannot find libXpm.so)], [$X_LIBS])
19 # ----------------------------------------------------------------------------
25 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h],, [AC_MSG_ERROR([required header file missing])])
32 AC_CHECK_FUNCS([atexit gettimeofday mkdir strcspn strdup strerror strspn strstr strtol],, [AC_MSG_ERROR([required standard library function missing])])
33 # ----------------------------------------------------------------------------
34 AC_CONFIG_FILES([Makefile wmwork.1])
36 # ----------------------------------------------------------------------------