1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([wmclockmon], [0.8.1], [wmaker-dev@googlegroups.com])
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])
9 AC_CONFIG_MACRO_DIRS([m4])
13 dnl Checks for programs.
20 AM_CONDITIONAL([HAVE___ATTRIBUTE__], [test "$ax_cv___attribute__" = "yes"])
22 PKG_CHECK_MODULES([gtk], [gtk+-3.0])
24 dnl ===========================================
26 dnl ===========================================
28 PKG_CHECK_MODULES([x11], [x11])
29 PKG_CHECK_MODULES([xext], [xext])
30 PKG_CHECK_MODULES([xpm], [xpm])
32 dnl ===============================================
33 dnl End of stuff that uses X
34 dnl ===============================================
40 AC_ARG_ENABLE([debug],
41 [AS_HELP_STRING([--enable-debug], [turn on debugging [default=no]])])
42 AS_IF([test "$enable_debug" = yes], [
43 debug_CPPFLAGS="-D_XOPEN_SOURCE=700 -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED"
44 debug_CFLAGS="-Wall -Wextra -std=c11 -pedantic"
45 AC_DEFINE([DEBUG], [1], [use debug code])
47 AC_SUBST([debug_CPPFLAGS])
48 AC_SUBST([debug_CFLAGS])
58 SETGID_FLAGS="-g kmem -m 2755 -o root"
60 [linux*|netbsd*|openbsd*|solaris*], [],
61 [AC_MSG_ERROR([Sorry, ${host_os} is not supported yet])])
62 AC_SUBST([SETGID_FLAGS])
64 dnl Checks for header files.
65 AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h])
67 dnl Checks for typedefs, structures, and compiler characteristics.
71 dnl Checks for library functions.
73 AC_CHECK_FUNCS([select strtoul uname])
75 AC_CONFIG_FILES([Makefile
79 wmclockmon-config/Makefile
80 wmclockmon-cal/Makefile])