1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([wmail], [2.3], [wmaker-dev@googlegroups.com])
3 AC_CONFIG_HEADERS(config.h)
4 AC_CONFIG_SRCDIR([src/wmail.c])
5 AM_INIT_AUTOMAKE([foreign])
7 dnl Checks for programs.
11 dnl Checks for pkg-config modules.
12 PKG_CHECK_MODULES([X11], [x11])
13 PKG_CHECK_MODULES([dockapp], [dockapp])
15 dnl Checks for header files.
19 AC_CHECK_HEADERS([limits.h strings.h sys/time.h])
20 CPPFLAGS_old="$CPPFLAGS"
21 CPPFLAGS="$CPPFLAGS $dockapp_CFLAGS $X11_CFLAGS"
22 AC_CHECK_HEADERS([libdockapp/dockapp.h dockapp.h])
23 CPPFLAGS="$CPPFLAGS_old"
25 dnl Checks for typedefs, structures, and compiler characteristics.
29 dnl Checks for library functions.
33 AC_CHECK_FUNCS([strdup strstr memcpy])
35 dnl Checks for libraries.
38 AC_ARG_ENABLE(debug, [ --enable-debug enable debugging ],
39 enable_debug=yes, enable_debug=no)
40 AC_MSG_CHECKING([whether to enable debugging])
41 AC_MSG_RESULT([$enable_debug])
42 AM_CONDITIONAL([ENABLE_DEBUG], [test x$enable_debug = xyes])
44 dnl Use delt's pixmaps instead of the default ones?
45 AC_ARG_ENABLE(delt_xpms, [ --enable-delt-xpms enable delt's pixmaps ],
46 enable_delt_xpms=yes, enable_delt_xpms=no)
47 AC_MSG_CHECKING([whether to enable delt's pixmaps])
48 AC_MSG_RESULT([$enable_delt_xpms])
49 AM_CONDITIONAL([ENABLE_DELT_XPMS], [test x$enable_delt_xpms = xyes])
51 AC_CONFIG_FILES([Makefile src/Makefile])