1 dnl configuration script for libcitadel
2 dnl Process this file with autoconf to produce a configure script.
5 dnl Ensure that libcitadel is configured with autoconf 2.52 or newer
8 AC_INIT(citadel, 1.00, example@example.com)
9 undefine([expat_version])
11 AC_CONFIG_SRCDIR(Makefile.in)
12 AC_CONFIG_AUX_DIR(conftools)
16 dnl Increment LIBREVISION if source code has changed at all
18 dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
20 dnl If the API changes compatibly (i.e. simply adding a new function
21 dnl without changing or removing earlier interfaces), then increment LIBAGE.
23 dnl If the API changes incompatibly set LIBAGE back to 0
30 sinclude(conftools/libtool.m4)
31 sinclude(conftools/ac_c_bigendian_cross.m4)
40 dnl Checks for programs.
44 if test "$GCC" = yes ; then
46 dnl Be careful about adding the -fexceptions option; some versions of
47 dnl GCC don't support it and it causes extra warnings that are only
48 dnl distracting; avoid.
50 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
51 CFLAGS="$OLDCFLAGS -fexceptions"
52 AC_MSG_CHECKING(whether $CC accepts -fexceptions)
55 AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS")
56 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
59 dnl Checks for header files.
62 dnl Checks for typedefs, structures, and compiler characteristics.
64 dnl Note: Avoid using AC_C_BIGENDIAN because it does not
65 dnl work in a cross compile.
70 AC_CHECK_FUNCS(memmove bcopy)
72 AC_CONFIG_FILES(Makefile)
75 abs_srcdir="`cd $srcdir && pwd`"
77 if test "$abs_srcdir" != "$abs_builddir"; then