wmxres: diff for NMU version 1.2-10.2
[dockapps.git] / wmail / configure.ac
blob049f9c2cfc6ffc905aab67fe38b6054007eef6e5
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.
8 AC_PROG_CC
9 AC_PROG_INSTALL
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.
16 AC_HEADER_DIRENT
17 AC_HEADER_STDBOOL
18 AC_HEADER_STDC
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.
26 AC_C_CONST
27 AC_TYPE_SIZE_T
29 dnl Checks for library functions.
30 AC_FUNC_FNMATCH
31 AC_FUNC_UTIME_NULL
32 AC_FUNC_VPRINTF
33 AC_CHECK_FUNCS([strdup strstr memcpy])
35 dnl Checks for libraries.
37 dnl Enable Debugging?
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])
52 AC_OUTPUT