From: Adam Dickmeiss Date: Tue, 28 Aug 2007 17:57:46 +0000 (+0000) Subject: Use AC_CHECK_TYPES for 'long long' rather then AC_CHECK_SIZEOF. AC_CHECK_SIZEOF X-Git-Tag: ZEBRA.2.0.16~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5def48f6cb987e716ea03cb13b95736a8f630c0e;p=idzebra-moved-to-github.git Use AC_CHECK_TYPES for 'long long' rather then AC_CHECK_SIZEOF. AC_CHECK_SIZEOF uses AC_TRY_RUN on, at least, on some autoconf versions. And AC_TRY_RUN is best avaoided. --- diff --git a/configure.ac b/configure.ac index cce7a19..01f7347 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Zebra, Index Data ApS, 1995-2007 -dnl $Id: configure.ac,v 1.60 2007-08-27 17:22:22 adam Exp $ +dnl $Id: configure.ac,v 1.61 2007-08-28 17:57:46 adam Exp $ dnl AC_PREREQ(2.59) AC_INIT([idzebra],[2.0.15],[zebra-help@indexdata.dk]) @@ -239,10 +239,14 @@ if test "$bits" = "64"; then else AC_MSG_RESULT(no) fi -AC_CHECK_SIZEOF([off_t]) -AC_CHECK_SIZEOF([long long]) -ZEBRA_CFLAGS="-DZEBRA_ZINT=${ac_cv_sizeof_long_long}" -AC_DEFINE_UNQUOTED(ZEBRA_ZINT,${ac_cv_sizeof_long_long}) +AC_CHECK_TYPES([long long]) +if test "${ac_cv_type_long_long}" = "yes"; then + ZINT_VALUE=1 +else + ZINT_VALUE=0 +fi +ZEBRA_CFLAGS="-DZEBRA_ZINT=${ZINT_VALUE}" +AC_DEFINE_UNQUOTED(ZEBRA_ZINT,${ZINT_VALUE}) dnl ------ Modules AC_SUBST(SHARED_MODULE_LA) SHARED_MODULE_LA=""