From fd502754926131e3562a2210ff81af111ccaf867 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 9 May 2007 20:42:52 +0000 Subject: VERSION 0.2.4: Ultimate fixes - Autoconf: check if ssize_t size_t types are missing in sys/types.h - Autoconf: really check for iconv.h residing in /usr/local - Support for older versions of BerkleyDB (fallback to original approach) --- configure.in | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 1de9595..7f85408 100644 --- a/configure.in +++ b/configure.in @@ -46,10 +46,19 @@ AM_PROG_CC_C_O AC_PROG_INSTALL AM_PROG_LIBTOOL +AC_C_CONST +AC_TYPE_SIZE_T +AC_CHECK_TYPE(ssize_t, long) + + pkgdatadir=${libdir}/rcc/ AC_SUBST(pkgdatadir) CFLAGS="$CFLAGS -Wall -Wpointer-arith" +if test ! -f /usr/include/iconv.h -a -f /usr/local/include/iconv.h ; then + CFLAGS+=" -I/usr/local/include" + LIBS+=" -L/usr/local/lib" +fi dnl Checks for programs. AC_PATH_PROG(RM, rm, /bin/rm) @@ -57,11 +66,7 @@ AC_PATH_PROG(MV, mv, /bin/mv) AC_PATH_PROG(TAR, tar, /bin/tar) dnl Checks for header files. -AC_CHECK_HEADERS(iconv.h,, [ - CFLAGS+=" -I/usr/local/include" - LIBS+=" -L/usr/local/lib" - AC_CHECK_HEADERS(iconv.h,, [AC_MSG_ERROR(Missing iconv header)]) -]) +AC_CHECK_HEADERS(iconv.h,, [AC_MSG_ERROR(Missing iconv header)]) AC_CHECK_HEADERS(mntent.h pwd.h sys/types.h sys/stat.h sys/file.h sys/socket.h sys/un.h sys/time.h sys/select.h sys/wait.h signal.h unistd.h fcntl.h) AC_TRY_COMPILE([#include ], -- cgit v1.2.3