1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([wmclockmon], [0.8.1], [tnemeth@free.fr])
5 AC_CONFIG_AUX_DIR([build-aux])
6 AM_INIT_AUTOMAKE([no-dist-gzip dist-xz])
7 AC_CONFIG_SRCDIR([src/main.c])
8 AC_CONFIG_HEADERS([config.h])
12 dnl Checks for programs.
18 PKG_CHECK_MODULES([gtk], [gtk+-2.0])
20 dnl ===========================================
22 dnl ===========================================
24 PKG_CHECK_MODULES([x11], [x11])
25 PKG_CHECK_MODULES([xext], [xext])
26 PKG_CHECK_MODULES([xpm], [xpm])
28 dnl ===============================================
29 dnl End of stuff that uses X
30 dnl ===============================================
36 AC_ARG_ENABLE([debug],
37 [AS_HELP_STRING([--enable-debug], [turn on debugging [default=no]])])
38 AS_IF([test "$enable_debug" = yes], [
39 debug_CFLAGS="-Wall -g -ansi -pedantic"
40 AC_DEFINE([DEBUG], [1], [use debug code])
42 AC_SUBST([debug_CFLAGS])
52 SETGID_FLAGS="-g kmem -m 2755 -o root"
54 [linux*|netbsd*|openbsd*|solaris*], [],
55 [AC_MSG_ERROR([Sorry, ${host_os} is not supported yet])])
56 AC_SUBST([SETGID_FLAGS])
58 dnl Checks for header files.
59 AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h])
61 dnl Checks for typedefs, structures, and compiler characteristics.
65 dnl Checks for library functions.
67 AC_CHECK_FUNCS([select strtoul uname])
69 AC_CONFIG_FILES([Makefile
73 wmclockmon-config/Makefile
74 wmclockmon-cal/Makefile])