summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 20:42:52 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 20:42:52 +0000
commitfd502754926131e3562a2210ff81af111ccaf867 (patch)
treeff62efd1b045adec527bce51a0aa939a0eca020e /configure.in
parentc72478ce90d83e355ad7782991d20cbbd2664fd3 (diff)
downloadlibrcc-fd502754926131e3562a2210ff81af111ccaf867.tar.gz
librcc-fd502754926131e3562a2210ff81af111ccaf867.tar.bz2
librcc-fd502754926131e3562a2210ff81af111ccaf867.tar.xz
librcc-fd502754926131e3562a2210ff81af111ccaf867.zip
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)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 10 insertions, 5 deletions
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 <langinfo.h>],