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(libcitadel, 1.09, https://uncensored.citadel.org)
10 AC_CONFIG_SRCDIR(Makefile.in)
11 AC_CONFIG_AUX_DIR(conftools)
15 dnl Increment LIBREVISION if source code has changed at all
17 dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
19 dnl If the API changes compatibly (i.e. simply adding a new function
20 dnl without changing or removing earlier interfaces), then increment LIBAGE.
22 dnl If the API changes incompatibly set LIBAGE back to 0
29 sinclude(conftools/libtool.m4)
30 sinclude(conftools/ac_c_bigendian_cross.m4)
38 dnl Checks for programs.
42 if test "$GCC" = yes ; then
44 dnl Be careful about adding the -fexceptions option; some versions of
45 dnl GCC don't support it and it causes extra warnings that are only
46 dnl distracting; avoid.
48 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
49 CFLAGS="$OLDCFLAGS -fexceptions"
50 AC_MSG_CHECKING(whether $CC accepts -fexceptions)
53 AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS")
54 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
57 dnl Checks for header files.
60 AC_CHECK_HEADER(sys/mman.h, [CFLAGS="$CFLAGS -D HAVE_MMAP"])
63 dnl Checks for typedefs, structures, and compiler characteristics.
67 AC_CHECK_FUNCS(memmove bcopy)
69 AC_CONFIG_FILES(Makefile libcitadel.pc)
72 abs_srcdir="`cd $srcdir && pwd`"
74 if test "$abs_srcdir" != "$abs_builddir"; then