pike.git / src / configure.in

version» Context lines:

pike.git/src/configure.in:1: - AC_REVISION("$Id: configure.in,v 1.759 2004/01/09 15:25:05 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.760 2004/01/12 11:39:56 mirar Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)      rm -f config.warnings 2>/dev/null      if_autoconf(2,50,[    if test "x$cache_file" = "x/dev/null"; then    cache_file=./config.cache    if test -r "$cache_file"; then    echo "loading cache $cache_file"
pike.git/src/configure.in:2538:    with_double_precision=yes    fi   fi      if test "$ac_cv_sizeof_long_double" != 0 -a \    "x$with_long_double_precision" = xyes ; then    AC_MSG_RESULT(long double)    AC_DEFINE(WITH_LONG_DOUBLE_PRECISION_SVALUE)    AC_DEFINE(FLOAT_TYPE, long double)    AC_DEFINE(SIZEOF_FLOAT_TYPE, SIZEOF_LONG_DOUBLE) +  float_type="long double"    sizeof_float_type="$ac_cv_sizeof_long_double"   elif test "x$with_double_precision" = xyes ; then    AC_MSG_RESULT(double)    AC_DEFINE(WITH_DOUBLE_PRECISION_SVALUE)    AC_DEFINE(FLOAT_TYPE, double)    AC_DEFINE(SIZEOF_FLOAT_TYPE, SIZEOF_DOUBLE) -  +  float_type="double"    sizeof_float_type="$ac_cv_sizeof_double"   else    AC_MSG_RESULT(float)    AC_DEFINE(FLOAT_TYPE, float)    AC_DEFINE(SIZEOF_FLOAT_TYPE, SIZEOF_FLOAT) -  +  float_type="float"    sizeof_float_type="$ac_cv_sizeof_float"   fi      AC_MSG_CHECKING(for INT_TYPE)      if test "x$with_long_long_int" = x -a \    "x$with_long_int" = x -a \    "x$with_int_int" = x -a \    "x$with_short_int" = x ; then    # Choose the longest available integer that fits in a pointer.
pike.git/src/configure.in:2582:    fi    :   fi      if test "$ac_cv_sizeof_long_long" != 0 -a \    "x$with_long_long_int" = xyes ; then    AC_MSG_RESULT(long long)    AC_DEFINE(WITH_LONG_LONG_INT)    AC_DEFINE(INT_TYPE, long long)    AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF_LONG_LONG) +  int_type="long long" +  sizeof_int_type="$ac_cv_sizeof_long_long"   elif test "$ac_cv_sizeof___int64" != 0 -a \    "x$with_long_long_int" = xyes ; then    AC_MSG_RESULT(__int64)    AC_DEFINE(WITH_LONG_LONG_INT)    AC_DEFINE(INT_TYPE, __int64)    AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF___INT64) -  +  int_type="__int64" +  sizeof_int_type="$ac_cv_sizeof___int64"   elif test "x$with_long_int" = xyes ; then    AC_MSG_RESULT(long)    AC_DEFINE(WITH_LONG_INT)    AC_DEFINE(INT_TYPE, long)    AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF_LONG) -  +  int_type="long" +  sizeof_int_type="$ac_cv_sizeof_long"   dnl elif test "x$with_short_int" = xyes ; then   dnl AC_MSG_RESULT(short)   dnl AC_DEFINE(WITH_SHORT_INT)   dnl AC_DEFINE(INT_TYPE, short)   dnl AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF_SHORT)   dnl elif test "x$with_unsigned_long_int" = xyes ; then   dnl AC_MSG_RESULT(unsigned long)   dnl AC_DEFINE(WITH_UNSIGNED_LONG_INT)   dnl AC_DEFINE(INT_TYPE, unsigned long)   dnl AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF_LONG)
pike.git/src/configure.in:2620:   dnl "x$with_unsigned_long_long_int" = xyes ; then   dnl AC_MSG_RESULT(unsigned __int64)   dnl AC_DEFINE(WITH_UNSIGNED_LONG_LONG_INT)   dnl AC_DEFINE(INT_TYPE, unsigned __int64)   dnl AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF___INT64)   else    AC_MSG_RESULT(int)    AC_DEFINE(WITH_INT_INT)    AC_DEFINE(INT_TYPE, int)    AC_DEFINE(SIZEOF_INT_TYPE, SIZEOF_INT) +  int_type="int" +  sizeof_int_type="$ac_cv_sizeof_int"   fi      AC_TYPE_SIGNAL      dnl AC_CHECK_LIB(PW, alloca)      dnl Checking if poll() call is in libpoll (in general in Darwin or BSD/OS)   AC_CHECK_LIB(poll, poll)      AC_CHECK_LIB(m, floor)
pike.git/src/configure.in:6803:    echo foo >stamp-h    chmod +x precompile.sh    ])      # NOTE: M4 uses [] as quotes.      PIKE_VERSION="`sed -n -e 's/^.*PIKE_MAJOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_BUILD_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h`"   PIKE_VERSION_LONG="Pike v`sed -n -e 's/^.*PIKE_MAJOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h` release `sed -n -e 's/^.*PIKE_BUILD_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h`"       - cat >conftest.c <<EOF - #include "global.h" - -- - FLOAT_TYPE - INT_TYPE - EOF -  - $CPP -I. -I$srcdir conftest.c > conftest.cpp - sed <conftest.cpp >conftypes.txt '1,/^--$/d' -  +    if test "x$with_cdebug" = x; then    with_cdebug=no   fi   if test "x$with_rtldebug" = x; then    with_rtldebug=no   fi   if test "x$with_dmalloc" = x; then    with_dmalloc=no   fi   with_mmx=$pike_cv_sys_has_working_mmx
pike.git/src/configure.in:6835:   fi      if test "x$with_copt" = xno ; then    opt_reasons=" ($OPT_NOT_USED turned off with --without-copt)"   else    opt_reasons=   fi      rm config.info 2>/dev/null    + float_is_ieee="" + if test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_big"; then +  float_is_ieee=" (ieee big endian)" + else if test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_little"; then +  float_is_ieee=" (ieee little endian)" + else if test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_big"; then +  float_is_ieee=" (ieee big endian)" + else if test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_little"; then +  float_is_ieee=" (ieee little endian)" + fi; fi; fi; fi +    cat >>config.info <<EOF   =========================================================   $PIKE_VERSION_LONG configuration summary      install information:   prefix........ $prefix   pike binary... $prefix/bin/pike   pike library.. $prefix/pike/${PIKE_VERSION}/lib      system information:
pike.git/src/configure.in:6897:   PAD_FEATURE([dynamic loading])$pike_cv_sys_dynamic_loading   PAD_FEATURE([threads])$using_threads   PAD_FEATURE([signal handler])$signal_handler   PAD_FEATURE([cdebug])$with_cdebug   PAD_FEATURE([rtldebug])$with_rtldebug   PAD_FEATURE([dmalloc])$with_dmalloc   PAD_FEATURE([mmx])$with_mmx$mmx_reason   PAD_FEATURE([byte code format])$byte_code_format   PAD_FEATURE([module reloc])${with_relocatable_dumped_modules:-no}   PAD_FEATURE([use machine code])$with_machine_code + PAD_FEATURE([int type])$int_type ($sizeof_int_type bytes) + PAD_FEATURE([float type])$float_type ($sizeof_float_type bytes)$float_is_ieee + PAD_FEATURE([pointer size])$ac_cv_sizeof_char_p bytes   EOF      touch confdefs.h 2>/dev/null      OLD_CPPFLAGS="$CPPFLAGS"   CPPFLAGS="-I. -I$srcdir $CPPFLAGS"   AC_TRY_RUN([   #include "global.h"   #include "svalue.h"   
pike.git/src/configure.in:6918:   {    FILE *fp, *out;    char float_type[80] = "?";    char int_type[80] = "?";    char *s;    struct svalue sval;       out=fopen("config.info", "a");    if (!out) return 1;    -  fp=fopen("conftypes.txt", "r"); -  if (fp) -  { -  fgets(float_type, 79, fp); -  fgets(int_type, 79, fp); -  s=float_type; while (*s && *s!='\n' && *s!='\r') s++; *s=0; -  s=int_type; while (*s && *s!='\n' && *s!='\r') s++; *s=0; -  -  fprintf(out,"]PAD_FEATURE([float type])[%s (%d bytes)\n", -  float_type, sizeof(FLOAT_TYPE)); -  fprintf(out,"]PAD_FEATURE([int type])[%s (%d bytes)\n", -  int_type, sizeof(INT_TYPE)); -  -  fclose(fp); -  } -  -  fprintf(out,"]PAD_FEATURE([pointer size])[%d bytes\n", -  sizeof(void*)); +     fprintf(out,"]PAD_FEATURE([svalue size])[%d bytes (%d+%d+%d)\n",    sizeof(sval),    sizeof(sval.type),    sizeof(sval.subtype),    sizeof(sval.u));       fclose(out);       return 0;   }