Changeset ba0772 in git


Ignore:
Timestamp:
Jun 27, 2006, 3:57:11 PM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
5b561ba67b1fc2214bc393da85a2c8f88571ad7c
Parents:
3920458ad215165d459d13667e0d16a81109bfa9
Message:
*bricken: adjustments for mac


git-svn-id: file:///usr/local/Singular/svn/trunk@9266 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/configure

    <
    r392045 rba0772  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by GNU Autoconf 2.59.
    64#
     5# Copyright (C) 2003 Free Software Foundation, Inc.
    76# This configure script is free software; the Free Software Foundation
    87# gives unlimited permission to copy, distribute and modify it.
    9 
    10 # Defaults:
    11 ac_help=
     8## --------------------- ##
     9## M4sh Initialization.  ##
     10## --------------------- ##
     11
     12# Be Bourne compatible
     13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     14  emulate sh
     15  NULLCMD=:
     16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     17  # is contrary to our usage.  Disable this feature.
     18  alias -g '${1+"$@"}'='"$@"'
     19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     20  set -o posix
     21fi
     22DUALCASE=1; export DUALCASE # for MKS sh
     23
     24# Support unset when possible.
     25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     26  as_unset=unset
     27else
     28  as_unset=false
     29fi
     30
     31
     32# Work around bugs in pre-3.0 UWIN ksh.
     33$as_unset ENV MAIL MAILPATH
     34PS1='$ '
     35PS2='> '
     36PS4='+ '
     37
     38# NLS nuisances.
     39for as_var in \
     40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     42  LC_TELEPHONE LC_TIME
     43do
     44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     45    eval $as_var=C; export $as_var
     46  else
     47    $as_unset $as_var
     48  fi
     49done
     50
     51# Required to use basename.
     52if expr a : '\(a\)' >/dev/null 2>&1; then
     53  as_expr=expr
     54else
     55  as_expr=false
     56fi
     57
     58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     59  as_basename=basename
     60else
     61  as_basename=false
     62fi
     63
     64
     65# Name of the executable.
     66as_me=`$as_basename "$0" ||
     67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     68         X"$0" : 'X\(//\)$' \| \
     69         X"$0" : 'X\(/\)$' \| \
     70         .     : '\(.\)' 2>/dev/null ||
     71echo X/"$0" |
     72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     73          /^X\/\(\/\/\)$/{ s//\1/; q; }
     74          /^X\/\(\/\).*/{ s//\1/; q; }
     75          s/.*/./; q'`
     76
     77
     78# PATH needs CR, and LINENO needs CR and PATH.
     79# Avoid depending upon Character Ranges.
     80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     83as_cr_digits='0123456789'
     84as_cr_alnum=$as_cr_Letters$as_cr_digits
     85
     86# The user is always right.
     87if test "${PATH_SEPARATOR+set}" != set; then
     88  echo "#! /bin/sh" >conf$$.sh
     89  echo  "exit 0"   >>conf$$.sh
     90  chmod +x conf$$.sh
     91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     92    PATH_SEPARATOR=';'
     93  else
     94    PATH_SEPARATOR=:
     95  fi
     96  rm -f conf$$.sh
     97fi
     98
     99
     100  as_lineno_1=$LINENO
     101  as_lineno_2=$LINENO
     102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     103  test "x$as_lineno_1" != "x$as_lineno_2" &&
     104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     105  # Find who we are.  Look in the path if we contain no path at all
     106  # relative or not.
     107  case $0 in
     108    *[\\/]* ) as_myself=$0 ;;
     109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     110for as_dir in $PATH
     111do
     112  IFS=$as_save_IFS
     113  test -z "$as_dir" && as_dir=.
     114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     115done
     116
     117       ;;
     118  esac
     119  # We did not find ourselves, most probably we were run as `sh COMMAND'
     120  # in which case we are not to be found in the path.
     121  if test "x$as_myself" = x; then
     122    as_myself=$0
     123  fi
     124  if test ! -f "$as_myself"; then
     125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     126   { (exit 1); exit 1; }; }
     127  fi
     128  case $CONFIG_SHELL in
     129  '')
     130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     132do
     133  IFS=$as_save_IFS
     134  test -z "$as_dir" && as_dir=.
     135  for as_base in sh bash ksh sh5; do
     136         case $as_dir in
     137         /*)
     138           if ("$as_dir/$as_base" -c '
     139  as_lineno_1=$LINENO
     140  as_lineno_2=$LINENO
     141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     142  test "x$as_lineno_1" != "x$as_lineno_2" &&
     143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     146             CONFIG_SHELL=$as_dir/$as_base
     147             export CONFIG_SHELL
     148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     149           fi;;
     150         esac
     151       done
     152done
     153;;
     154  esac
     155
     156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     157  # uniformly replaced by the line number.  The first 'sed' inserts a
     158  # line-number line before each line; the second 'sed' does the real
     159  # work.  The second script uses 'N' to pair each line-number line
     160  # with the numbered line, and appends trailing '-' during
     161  # substitution so that $LINENO is not a special case at line end.
     162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     164  sed '=' <$as_myself |
     165    sed '
     166      N
     167      s,$,-,
     168      : loop
     169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     170      t loop
     171      s,-$,,
     172      s,^['$as_cr_digits']*\n,,
     173    ' >$as_me.lineno &&
     174  chmod +x $as_me.lineno ||
     175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     176   { (exit 1); exit 1; }; }
     177
     178  # Don't try to exec as it changes $[0], causing all sort of problems
     179  # (the dirname of $[0] is not the place where we might find the
     180  # original and so on.  Autoconf is especially sensible to this).
     181  . ./$as_me.lineno
     182  # Exit status is that of the last command.
     183  exit
     184}
     185
     186
     187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     188  *c*,-n*) ECHO_N= ECHO_C='
     189' ECHO_T='      ' ;;
     190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     192esac
     193
     194if expr a : '\(a\)' >/dev/null 2>&1; then
     195  as_expr=expr
     196else
     197  as_expr=false
     198fi
     199
     200rm -f conf$$ conf$$.exe conf$$.file
     201echo >conf$$.file
     202if ln -s conf$$.file conf$$ 2>/dev/null; then
     203  # We could just check for DJGPP; but this test a) works b) is more generic
     204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     205  if test -f conf$$.exe; then
     206    # Don't use ln at all; we don't have any links
     207    as_ln_s='cp -p'
     208  else
     209    as_ln_s='ln -s'
     210  fi
     211elif ln conf$$.file conf$$ 2>/dev/null; then
     212  as_ln_s=ln
     213else
     214  as_ln_s='cp -p'
     215fi
     216rm -f conf$$ conf$$.exe conf$$.file
     217
     218if mkdir -p . 2>/dev/null; then
     219  as_mkdir_p=:
     220else
     221  test -d ./-p && rmdir ./-p
     222  as_mkdir_p=false
     223fi
     224
     225as_executable_p="test -f"
     226
     227# Sed expression to map a string onto a valid CPP name.
     228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     229
     230# Sed expression to map a string onto a valid variable name.
     231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     232
     233
     234# IFS
     235# We need space, tab and new line, in precisely that order.
     236as_nl='
     237'
     238IFS="   $as_nl"
     239
     240# CDPATH.
     241$as_unset CDPATH
     242
     243
     244# Name of the host.
     245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     246# so uname gets run too.
     247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     248
     249exec 6>&1
     250
     251#
     252# Initializations.
     253#
    12254ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
     255ac_config_libobj_dir=.
     256cross_compiling=no
     257subdirs=
     258MFLAGS=
     259MAKEFLAGS=
     260SHELL=${CONFIG_SHELL-/bin/sh}
     261
     262# Maximum number of lines to put in a shell here document.
     263# This variable seems obsolete.  It should probably be removed, and
     264# only ac_max_sed_lines should be used.
     265: ${ac_max_here_lines=38}
     266
     267# Identity of this package.
     268PACKAGE_NAME=
     269PACKAGE_TARNAME=
     270PACKAGE_VERSION=
     271PACKAGE_STRING=
     272PACKAGE_BUGREPORT=
     273
     274ac_unique_file="mmalloc.cc"
    14275ac_default_prefix=`pwd`/..
    15 ac_help="$ac_help
    16   --with-rootdir=DIR      use DIR ass compiled-in root directory
    17                              (default is PREFIX)"
    18 ac_help="$ac_help
    19   --with-lex=[LEX,no]     uses LEX as lex program, default is flex"
    20 ac_help="$ac_help
    21   --with-readline=[dynamic,static,no]         
    22                           do use dynamic/static/no readline for fancy display"
    23 ac_help="$ac_help
    24   --without-MP            do not use MP (no MP links)"
    25 ac_help="$ac_help
    26   --without-dbm           do not use dbm (no DBM links)"
    27 ac_help="$ac_help
    28   --without-factory       do not use factory (no poly factorization)"
    29 ac_help="$ac_help
    30   --without-libfac        do not use libfac (no primary decompositions)"
    31 ac_help="$ac_help
    32   --with-namespaces       do compile namespace support"
    33 ac_help="$ac_help
    34   --without-dl            do not use dynamic linking, modules, and kernel"
    35 ac_help="$ac_help
    36   --with-dynamic-modules  do compile with dynamic modules support"
    37 ac_help="$ac_help
    38   --without-dynamic-kernel               
    39                           do not compile with dynamic kernel parts"
    40 ac_help="$ac_help
    41   --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic"
    42 ac_help="$ac_help
    43   --with-Plural           do compile with Plural support"
    44 ac_help="$ac_help
    45   --with-NTL              build for use with NTL."
     276# Factoring default headers for most tests.
     277ac_includes_default="\
     278#include <stdio.h>
     279#if HAVE_SYS_TYPES_H
     280# include <sys/types.h>
     281#endif
     282#if HAVE_SYS_STAT_H
     283# include <sys/stat.h>
     284#endif
     285#if STDC_HEADERS
     286# include <stdlib.h>
     287# include <stddef.h>
     288#else
     289# if HAVE_STDLIB_H
     290#  include <stdlib.h>
     291# endif
     292#endif
     293#if HAVE_STRING_H
     294# if !STDC_HEADERS && HAVE_MEMORY_H
     295#  include <memory.h>
     296# endif
     297# include <string.h>
     298#endif
     299#if HAVE_STRINGS_H
     300# include <strings.h>
     301#endif
     302#if HAVE_INTTYPES_H
     303# include <inttypes.h>
     304#else
     305# if HAVE_STDINT_H
     306#  include <stdint.h>
     307# endif
     308#endif
     309#if HAVE_UNISTD_H
     310# include <unistd.h>
     311#endif"
     312
     313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SINGUNAME EXEC_EXT SING_UNAME SINGULAR_VERSION VERSION_DATE SINGULAR_MAJOR_VERSION SINGULAR_MINOR_VERSION SINGULAR_SUB_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP PIPE CXXTEMPLFLAGS CXXNOOPTFLAGS STATIC_LDFLAGS SET_MAKE SINGULAR LEX BISON LN_S PERL LD_DYN_FLAGS SFLAGS SLDFLAGS LD ALLOCA CXXCPP HAVE_MPSR MP_LIBS NEED_LIBS DL_KERNEL LIBOBJS LTLIBOBJS'
     314ac_subst_files=''
    46315
    47316# Initialize some variables set by options.
     317ac_init_help=
     318ac_init_version=false
    48319# The variables have the same names as the options, with
    49320# dashes changed to underlines.
    50 build=NONE
    51 cache_file=./config.cache
     321cache_file=/dev/null
    52322exec_prefix=NONE
    53 host=NONE
    54323no_create=
    55 nonopt=NONE
    56324no_recursion=
    57325prefix=NONE
     
    62330site=
    63331srcdir=
    64 target=NONE
    65332verbose=
    66333x_includes=NONE
    67334x_libraries=NONE
     335
     336# Installation directory options.
     337# These are left unexpanded so users can "make install exec_prefix=/foo"
     338# and all the variables that are supposed to be based on exec_prefix
     339# by default will actually change.
     340# Use braces instead of parens because sh, perl, etc. also accept them.
    68341bindir='${exec_prefix}/bin'
    69342sbindir='${exec_prefix}/sbin'
     
    79352mandir='${prefix}/man'
    80353
    81 # Initialize some other variables.
    82 subdirs=
    83 MFLAGS= MAKEFLAGS=
    84 SHELL=${CONFIG_SHELL-/bin/sh}
    85 # Maximum number of lines to put in a shell here document.
    86 ac_max_here_lines=12
    87 
    88354ac_prev=
    89355for ac_option
    90356do
    91 
    92357  # If the previous option needs an argument, assign it.
    93358  if test -n "$ac_prev"; then
     
    97362  fi
    98363
    99   case "$ac_option" in
    100   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    101   *) ac_optarg= ;;
    102   esac
     364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    103365
    104366  # Accept the important Cygnus configure options, so we can diagnose typos.
    105367
    106   case "$ac_option" in
     368  case $ac_option in
    107369
    108370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    109371    ac_prev=bindir ;;
    110372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    111     bindir="$ac_optarg" ;;
     373    bindir=$ac_optarg ;;
    112374
    113375  -build | --build | --buil | --bui | --bu)
    114     ac_prev=build ;;
     376    ac_prev=build_alias ;;
    115377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    116     build="$ac_optarg" ;;
     378    build_alias=$ac_optarg ;;
    117379
    118380  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    121383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    122384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    123     cache_file="$ac_optarg" ;;
     385    cache_file=$ac_optarg ;;
     386
     387  --config-cache | -C)
     388    cache_file=config.cache ;;
    124389
    125390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    127392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    128393  | --da=*)
    129     datadir="$ac_optarg" ;;
     394    datadir=$ac_optarg ;;
    130395
    131396  -disable-* | --disable-*)
    132     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    133398    # Reject names that are not valid shell variable names.
    134     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    135       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    136     fi
    137     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    138     eval "enable_${ac_feature}=no" ;;
     399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     401   { (exit 1); exit 1; }; }
     402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     403    eval "enable_$ac_feature=no" ;;
    139404
    140405  -enable-* | --enable-*)
    141     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    142407    # Reject names that are not valid shell variable names.
    143     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    144       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    145     fi
    146     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    147     case "$ac_option" in
    148       *=*) ;;
     408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     410   { (exit 1); exit 1; }; }
     411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     412    case $ac_option in
     413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    149414      *) ac_optarg=yes ;;
    150415    esac
    151     eval "enable_${ac_feature}='$ac_optarg'" ;;
     416    eval "enable_$ac_feature='$ac_optarg'" ;;
    152417
    153418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    158423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    159424  | --exec=* | --exe=* | --ex=*)
    160     exec_prefix="$ac_optarg" ;;
     425    exec_prefix=$ac_optarg ;;
    161426
    162427  -gas | --gas | --ga | --g)
     
    164429    with_gas=yes ;;
    165430
    166   -help | --help | --hel | --he)
    167     # Omit some internal or obsolete options to make the list less imposing.
    168     # This message is too long to be a string in the A/UX 3.1 sh.
    169     cat << EOF
    170 Usage: configure [options] [host]
    171 Options: [defaults in brackets after descriptions]
    172 Configuration:
    173   --cache-file=FILE       cache test results in FILE
    174   --help                  print this message
    175   --no-create             do not create output files
    176   --quiet, --silent       do not print \`checking...' messages
    177   --version               print the version of autoconf that created configure
    178 Directory and file names:
    179   --prefix=PREFIX         install architecture-independent files in PREFIX
    180                           [$ac_default_prefix]
    181   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    182                           [same as prefix]
    183   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    184   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    185   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    186   --datadir=DIR           read-only architecture-independent data in DIR
    187                           [PREFIX/share]
    188   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    189   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    190                           [PREFIX/com]
    191   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    192   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    193   --includedir=DIR        C header files in DIR [PREFIX/include]
    194   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    195   --infodir=DIR           info documentation in DIR [PREFIX/info]
    196   --mandir=DIR            man documentation in DIR [PREFIX/man]
    197   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    198   --program-prefix=PREFIX prepend PREFIX to installed program names
    199   --program-suffix=SUFFIX append SUFFIX to installed program names
    200   --program-transform-name=PROGRAM
    201                           run sed PROGRAM on installed program names
    202 EOF
    203     cat << EOF
    204 Host type:
    205   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    206   --host=HOST             configure for HOST [guessed]
    207   --target=TARGET         configure for TARGET [TARGET=HOST]
    208 Features and packages:
    209   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    210   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    211   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    212   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    213   --x-includes=DIR        X include files are in DIR
    214   --x-libraries=DIR       X library files are in DIR
    215 EOF
    216     if test -n "$ac_help"; then
    217       echo "--enable and --with options recognized:$ac_help"
    218     fi
    219     exit 0 ;;
     431  -help | --help | --hel | --he | -h)
     432    ac_init_help=long ;;
     433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     434    ac_init_help=recursive ;;
     435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     436    ac_init_help=short ;;
    220437
    221438  -host | --host | --hos | --ho)
    222     ac_prev=host ;;
     439    ac_prev=host_alias ;;
    223440  -host=* | --host=* | --hos=* | --ho=*)
    224     host="$ac_optarg" ;;
     441    host_alias=$ac_optarg ;;
    225442
    226443  -includedir | --includedir | --includedi | --included | --include \
     
    229446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    230447  | --includ=* | --inclu=* | --incl=* | --inc=*)
    231     includedir="$ac_optarg" ;;
     448    includedir=$ac_optarg ;;
    232449
    233450  -infodir | --infodir | --infodi | --infod | --info | --inf)
    234451    ac_prev=infodir ;;
    235452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    236     infodir="$ac_optarg" ;;
     453    infodir=$ac_optarg ;;
    237454
    238455  -libdir | --libdir | --libdi | --libd)
    239456    ac_prev=libdir ;;
    240457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    241     libdir="$ac_optarg" ;;
     458    libdir=$ac_optarg ;;
    242459
    243460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    246463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    247464  | --libexe=* | --libex=* | --libe=*)
    248     libexecdir="$ac_optarg" ;;
     465    libexecdir=$ac_optarg ;;
    249466
    250467  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    255472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    256473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    257     localstatedir="$ac_optarg" ;;
     474    localstatedir=$ac_optarg ;;
    258475
    259476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    260477    ac_prev=mandir ;;
    261478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    262     mandir="$ac_optarg" ;;
     479    mandir=$ac_optarg ;;
    263480
    264481  -nfp | --nfp | --nf)
     
    267484
    268485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    269   | --no-cr | --no-c)
     486  | --no-cr | --no-c | -n)
    270487    no_create=yes ;;
    271488
     
    281498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    282499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    283     oldincludedir="$ac_optarg" ;;
     500    oldincludedir=$ac_optarg ;;
    284501
    285502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    286503    ac_prev=prefix ;;
    287504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    288     prefix="$ac_optarg" ;;
     505    prefix=$ac_optarg ;;
    289506
    290507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    293510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    294511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    295     program_prefix="$ac_optarg" ;;
     512    program_prefix=$ac_optarg ;;
    296513
    297514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    300517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    301518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    302     program_suffix="$ac_optarg" ;;
     519    program_suffix=$ac_optarg ;;
    303520
    304521  -program-transform-name | --program-transform-name \
     
    317534  | --program-trans=* | --program-tran=* \
    318535  | --progr-tra=* | --program-tr=* | --program-t=*)
    319     program_transform_name="$ac_optarg" ;;
     536    program_transform_name=$ac_optarg ;;
    320537
    321538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    327544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    328545  | --sbi=* | --sb=*)
    329     sbindir="$ac_optarg" ;;
     546    sbindir=$ac_optarg ;;
    330547
    331548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    338555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    339556  | --sha=* | --sh=*)
    340     sharedstatedir="$ac_optarg" ;;
     557    sharedstatedir=$ac_optarg ;;
    341558
    342559  -site | --site | --sit)
    343560    ac_prev=site ;;
    344561  -site=* | --site=* | --sit=*)
    345     site="$ac_optarg" ;;
     562    site=$ac_optarg ;;
    346563
    347564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    348565    ac_prev=srcdir ;;
    349566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    350     srcdir="$ac_optarg" ;;
     567    srcdir=$ac_optarg ;;
    351568
    352569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    355572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    356573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    357     sysconfdir="$ac_optarg" ;;
     574    sysconfdir=$ac_optarg ;;
    358575
    359576  -target | --target | --targe | --targ | --tar | --ta | --t)
    360     ac_prev=target ;;
     577    ac_prev=target_alias ;;
    361578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    362     target="$ac_optarg" ;;
     579    target_alias=$ac_optarg ;;
    363580
    364581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    365582    verbose=yes ;;
    366583
    367   -version | --version | --versio | --versi | --vers)
    368     echo "configure generated by autoconf version 2.13"
    369     exit 0 ;;
     584  -version | --version | --versio | --versi | --vers | -V)
     585    ac_init_version=: ;;
    370586
    371587  -with-* | --with-*)
    372     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    373589    # Reject names that are not valid shell variable names.
    374     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    375       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    376     fi
     590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     591      { echo "$as_me: error: invalid package name: $ac_package" >&2
     592   { (exit 1); exit 1; }; }
    377593    ac_package=`echo $ac_package| sed 's/-/_/g'`
    378     case "$ac_option" in
    379       *=*) ;;
     594    case $ac_option in
     595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    380596      *) ac_optarg=yes ;;
    381597    esac
    382     eval "with_${ac_package}='$ac_optarg'" ;;
     598    eval "with_$ac_package='$ac_optarg'" ;;
    383599
    384600  -without-* | --without-*)
    385     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    386602    # Reject names that are not valid shell variable names.
    387     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    388       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    389     fi
    390     ac_package=`echo $ac_package| sed 's/-/_/g'`
    391     eval "with_${ac_package}=no" ;;
     603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     604      { echo "$as_me: error: invalid package name: $ac_package" >&2
     605   { (exit 1); exit 1; }; }
     606    ac_package=`echo $ac_package | sed 's/-/_/g'`
     607    eval "with_$ac_package=no" ;;
    392608
    393609  --x)
     
    400616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    401617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    402     x_includes="$ac_optarg" ;;
     618    x_includes=$ac_optarg ;;
    403619
    404620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    407623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    408624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    409     x_libraries="$ac_optarg" ;;
    410 
    411   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     625    x_libraries=$ac_optarg ;;
     626
     627  -*) { echo "$as_me: error: unrecognized option: $ac_option
     628Try \`$0 --help' for more information." >&2
     629   { (exit 1); exit 1; }; }
    412630    ;;
    413631
     632  *=*)
     633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     634    # Reject names that are not valid shell variable names.
     635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     637   { (exit 1); exit 1; }; }
     638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     639    eval "$ac_envvar='$ac_optarg'"
     640    export $ac_envvar ;;
     641
    414642  *)
    415     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    416       echo "configure: warning: $ac_option: invalid host type" 1>&2
    417     fi
    418     if test "x$nonopt" != xNONE; then
    419       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    420     fi
    421     nonopt="$ac_option"
     643    # FIXME: should be removed in autoconf 3.0.
     644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    422648    ;;
    423649
     
    426652
    427653if test -n "$ac_prev"; then
    428   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    429 fi
    430 
    431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    432 
    433 # File descriptor usage:
    434 # 0 standard input
    435 # 1 file creation
    436 # 2 errors and warnings
    437 # 3 some systems may open it to /dev/tty
    438 # 4 used on the Kubota Titan
    439 # 6 checking for... messages and results
    440 # 5 compiler messages saved in config.log
    441 if test "$silent" = yes; then
    442   exec 6>/dev/null
    443 else
    444   exec 6>&1
    445 fi
    446 exec 5>./config.log
    447 
    448 echo "\
    449 This file contains any messages produced by compilers while
    450 running configure, to aid debugging if configure makes a mistake.
    451 " 1>&5
    452 
    453 # Strip out --no-create and --no-recursion so they do not pile up.
    454 # Also quote any args containing shell metacharacters.
    455 ac_configure_args=
    456 for ac_arg
     654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     655  { echo "$as_me: error: missing argument to $ac_option" >&2
     656   { (exit 1); exit 1; }; }
     657fi
     658
     659# Be sure to have absolute paths.
     660for ac_var in exec_prefix prefix
    457661do
    458   case "$ac_arg" in
    459   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    460   | --no-cr | --no-c) ;;
    461   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    462   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    463   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    464   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    465   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     662  eval ac_val=$`echo $ac_var`
     663  case $ac_val in
     664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     666   { (exit 1); exit 1; }; };;
    466667  esac
    467668done
    468669
    469 # NLS nuisances.
    470 # Only set these to C if already set.  These must not be set unconditionally
    471 # because not all systems understand e.g. LANG=C (notably SCO).
    472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    473 # Non-C LC_CTYPE values break the ctype check.
    474 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    477 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    478 
    479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    480 rm -rf conftest* confdefs.h
    481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    482 echo > confdefs.h
    483 
    484 # A filename unique to this package, relative to the directory that
    485 # configure is in, which we can look for to find out if srcdir is correct.
    486 ac_unique_file=mmalloc.cc
     670# Be sure to have absolute paths.
     671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     672              localstatedir libdir includedir oldincludedir infodir mandir
     673do
     674  eval ac_val=$`echo $ac_var`
     675  case $ac_val in
     676    [\\/$]* | ?:[\\/]* ) ;;
     677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     678   { (exit 1); exit 1; }; };;
     679  esac
     680done
     681
     682# There might be people who depend on the old broken behavior: `$host'
     683# used to hold the argument of --host etc.
     684# FIXME: To remove some day.
     685build=$build_alias
     686host=$host_alias
     687target=$target_alias
     688
     689# FIXME: To remove some day.
     690if test "x$host_alias" != x; then
     691  if test "x$build_alias" = x; then
     692    cross_compiling=maybe
     693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     694    If a cross compiler is detected then cross compile mode will be used." >&2
     695  elif test "x$build_alias" != "x$host_alias"; then
     696    cross_compiling=yes
     697  fi
     698fi
     699
     700ac_tool_prefix=
     701test -n "$host_alias" && ac_tool_prefix=$host_alias-
     702
     703test "$silent" = yes && exec 6>/dev/null
     704
    487705
    488706# Find the source files, if location was not specified.
     
    490708  ac_srcdir_defaulted=yes
    491709  # Try the directory containing this script, then its parent.
    492   ac_prog=$0
    493   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    494   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     710  ac_confdir=`(dirname "$0") 2>/dev/null ||
     711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     712         X"$0" : 'X\(//\)[^/]' \| \
     713         X"$0" : 'X\(//\)$' \| \
     714         X"$0" : 'X\(/\)' \| \
     715         .     : '\(.\)' 2>/dev/null ||
     716echo X"$0" |
     717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     718          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     719          /^X\(\/\/\)$/{ s//\1/; q; }
     720          /^X\(\/\).*/{ s//\1/; q; }
     721          s/.*/./; q'`
    495722  srcdir=$ac_confdir
    496723  if test ! -r $srcdir/$ac_unique_file; then
     
    502729if test ! -r $srcdir/$ac_unique_file; then
    503730  if test "$ac_srcdir_defaulted" = yes; then
    504     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     732   { (exit 1); exit 1; }; }
    505733  else
    506     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     735   { (exit 1); exit 1; }; }
    507736  fi
    508737fi
    509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    510 
     738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     740   { (exit 1); exit 1; }; }
     741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     742ac_env_build_alias_set=${build_alias+set}
     743ac_env_build_alias_value=$build_alias
     744ac_cv_env_build_alias_set=${build_alias+set}
     745ac_cv_env_build_alias_value=$build_alias
     746ac_env_host_alias_set=${host_alias+set}
     747ac_env_host_alias_value=$host_alias
     748ac_cv_env_host_alias_set=${host_alias+set}
     749ac_cv_env_host_alias_value=$host_alias
     750ac_env_target_alias_set=${target_alias+set}
     751ac_env_target_alias_value=$target_alias
     752ac_cv_env_target_alias_set=${target_alias+set}
     753ac_cv_env_target_alias_value=$target_alias
     754ac_env_CC_set=${CC+set}
     755ac_env_CC_value=$CC
     756ac_cv_env_CC_set=${CC+set}
     757ac_cv_env_CC_value=$CC
     758ac_env_CFLAGS_set=${CFLAGS+set}
     759ac_env_CFLAGS_value=$CFLAGS
     760ac_cv_env_CFLAGS_set=${CFLAGS+set}
     761ac_cv_env_CFLAGS_value=$CFLAGS
     762ac_env_LDFLAGS_set=${LDFLAGS+set}
     763ac_env_LDFLAGS_value=$LDFLAGS
     764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     765ac_cv_env_LDFLAGS_value=$LDFLAGS
     766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     767ac_env_CPPFLAGS_value=$CPPFLAGS
     768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     770ac_env_CPP_set=${CPP+set}
     771ac_env_CPP_value=$CPP
     772ac_cv_env_CPP_set=${CPP+set}
     773ac_cv_env_CPP_value=$CPP
     774ac_env_CXX_set=${CXX+set}
     775ac_env_CXX_value=$CXX
     776ac_cv_env_CXX_set=${CXX+set}
     777ac_cv_env_CXX_value=$CXX
     778ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     779ac_env_CXXFLAGS_value=$CXXFLAGS
     780ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     781ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     782ac_env_CXXCPP_set=${CXXCPP+set}
     783ac_env_CXXCPP_value=$CXXCPP
     784ac_cv_env_CXXCPP_set=${CXXCPP+set}
     785ac_cv_env_CXXCPP_value=$CXXCPP
     786
     787#
     788# Report the --help message.
     789#
     790if test "$ac_init_help" = "long"; then
     791  # Omit some internal or obsolete options to make the list less imposing.
     792  # This message is too long to be a string in the A/UX 3.1 sh.
     793  cat <<_ACEOF
     794\`configure' configures this package to adapt to many kinds of systems.
     795
     796Usage: $0 [OPTION]... [VAR=VALUE]...
     797
     798To assign environment variables (e.g., CC, CFLAGS...), specify them as
     799VAR=VALUE.  See below for descriptions of some of the useful variables.
     800
     801Defaults for the options are specified in brackets.
     802
     803Configuration:
     804  -h, --help              display this help and exit
     805      --help=short        display options specific to this package
     806      --help=recursive    display the short help of all the included packages
     807  -V, --version           display version information and exit
     808  -q, --quiet, --silent   do not print \`checking...' messages
     809      --cache-file=FILE   cache test results in FILE [disabled]
     810  -C, --config-cache      alias for \`--cache-file=config.cache'
     811  -n, --no-create         do not create output files
     812      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     813
     814_ACEOF
     815
     816  cat <<_ACEOF
     817Installation directories:
     818  --prefix=PREFIX         install architecture-independent files in PREFIX
     819                          [$ac_default_prefix]
     820  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     821                          [PREFIX]
     822
     823By default, \`make install' will install all the files in
     824\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     825an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     826for instance \`--prefix=\$HOME'.
     827
     828For better control, use the options below.
     829
     830Fine tuning of the installation directories:
     831  --bindir=DIR           user executables [EPREFIX/bin]
     832  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     833  --libexecdir=DIR       program executables [EPREFIX/libexec]
     834  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     835  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     836  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     837  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     838  --libdir=DIR           object code libraries [EPREFIX/lib]
     839  --includedir=DIR       C header files [PREFIX/include]
     840  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     841  --infodir=DIR          info documentation [PREFIX/info]
     842  --mandir=DIR           man documentation [PREFIX/man]
     843_ACEOF
     844
     845  cat <<\_ACEOF
     846_ACEOF
     847fi
     848
     849if test -n "$ac_init_help"; then
     850
     851  cat <<\_ACEOF
     852
     853Optional Packages:
     854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     856  --with-rootdir=DIR      use DIR ass compiled-in root directory
     857                             (default is PREFIX)
     858  --with-lex=LEX,no     uses LEX as lex program, default is flex
     859  --with-readline=dynamic,static,no
     860                          do use dynamic/static/no readline for fancy display
     861  --without-MP            do not use MP (no MP links)
     862  --without-dbm           do not use dbm (no DBM links)
     863  --without-factory       do not use factory (no poly factorization)
     864  --without-libfac        do not use libfac (no primary decompositions)
     865  --with-namespaces       do compile namespace support
     866  --without-dl            do not use dynamic linking, modules, and kernel
     867  --with-dynamic-modules  do compile with dynamic modules support
     868  --without-dynamic-kernel
     869                          do not compile with dynamic kernel parts
     870  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
     871  --with-Plural           do compile with Plural support
     872  --with-NTL              build for use with NTL.
     873
     874Some influential environment variables:
     875  CC          C compiler command
     876  CFLAGS      C compiler flags
     877  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     878              nonstandard directory <lib dir>
     879  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     880              headers in a nonstandard directory <include dir>
     881  CPP         C preprocessor
     882  CXX         C++ compiler command
     883  CXXFLAGS    C++ compiler flags
     884  CXXCPP      C++ preprocessor
     885
     886Use these variables to override the choices made by `configure' or to help
     887it to find libraries and programs with nonstandard names/locations.
     888
     889_ACEOF
     890fi
     891
     892if test "$ac_init_help" = "recursive"; then
     893  # If there are subdirs, report their specific --help.
     894  ac_popdir=`pwd`
     895  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     896    test -d $ac_dir || continue
     897    ac_builddir=.
     898
     899if test "$ac_dir" != .; then
     900  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     901  # A "../" for each directory in $ac_dir_suffix.
     902  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     903else
     904  ac_dir_suffix= ac_top_builddir=
     905fi
     906
     907case $srcdir in
     908  .)  # No --srcdir option.  We are building in place.
     909    ac_srcdir=.
     910    if test -z "$ac_top_builddir"; then
     911       ac_top_srcdir=.
     912    else
     913       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     914    fi ;;
     915  [\\/]* | ?:[\\/]* )  # Absolute path.
     916    ac_srcdir=$srcdir$ac_dir_suffix;
     917    ac_top_srcdir=$srcdir ;;
     918  *) # Relative path.
     919    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     920    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     921esac
     922
     923# Do not use `cd foo && pwd` to compute absolute paths, because
     924# the directories may not exist.
     925case `pwd` in
     926.) ac_abs_builddir="$ac_dir";;
     927*)
     928  case "$ac_dir" in
     929  .) ac_abs_builddir=`pwd`;;
     930  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     931  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     932  esac;;
     933esac
     934case $ac_abs_builddir in
     935.) ac_abs_top_builddir=${ac_top_builddir}.;;
     936*)
     937  case ${ac_top_builddir}. in
     938  .) ac_abs_top_builddir=$ac_abs_builddir;;
     939  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     940  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     941  esac;;
     942esac
     943case $ac_abs_builddir in
     944.) ac_abs_srcdir=$ac_srcdir;;
     945*)
     946  case $ac_srcdir in
     947  .) ac_abs_srcdir=$ac_abs_builddir;;
     948  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     949  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     950  esac;;
     951esac
     952case $ac_abs_builddir in
     953.) ac_abs_top_srcdir=$ac_top_srcdir;;
     954*)
     955  case $ac_top_srcdir in
     956  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     957  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     958  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     959  esac;;
     960esac
     961
     962    cd $ac_dir
     963    # Check for guested configure; otherwise get Cygnus style configure.
     964    if test -f $ac_srcdir/configure.gnu; then
     965      echo
     966      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     967    elif test -f $ac_srcdir/configure; then
     968      echo
     969      $SHELL $ac_srcdir/configure  --help=recursive
     970    elif test -f $ac_srcdir/configure.ac ||
     971           test -f $ac_srcdir/configure.in; then
     972      echo
     973      $ac_configure --help
     974    else
     975      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     976    fi
     977    cd $ac_popdir
     978  done
     979fi
     980
     981test -n "$ac_init_help" && exit 0
     982if $ac_init_version; then
     983  cat <<\_ACEOF
     984
     985Copyright (C) 2003 Free Software Foundation, Inc.
     986This configure script is free software; the Free Software Foundation
     987gives unlimited permission to copy, distribute and modify it.
     988_ACEOF
     989  exit 0
     990fi
     991exec 5>config.log
     992cat >&5 <<_ACEOF
     993This file contains any messages produced by compilers while
     994running configure, to aid debugging if configure makes a mistake.
     995
     996It was created by $as_me, which was
     997generated by GNU Autoconf 2.59.  Invocation command line was
     998
     999  $ $0 $@
     1000
     1001_ACEOF
     1002{
     1003cat <<_ASUNAME
     1004## --------- ##
     1005## Platform. ##
     1006## --------- ##
     1007
     1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1013
     1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1015/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1016
     1017/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1018/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1020hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1021/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1022/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1023/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1024
     1025_ASUNAME
     1026
     1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1028for as_dir in $PATH
     1029do
     1030  IFS=$as_save_IFS
     1031  test -z "$as_dir" && as_dir=.
     1032  echo "PATH: $as_dir"
     1033done
     1034
     1035} >&5
     1036
     1037cat >&5 <<_ACEOF
     1038
     1039
     1040## ----------- ##
     1041## Core tests. ##
     1042## ----------- ##
     1043
     1044_ACEOF
     1045
     1046
     1047# Keep a trace of the command line.
     1048# Strip out --no-create and --no-recursion so they do not pile up.
     1049# Strip out --silent because we don't want to record it for future runs.
     1050# Also quote any args containing shell meta-characters.
     1051# Make two passes to allow for proper duplicate-argument suppression.
     1052ac_configure_args=
     1053ac_configure_args0=
     1054ac_configure_args1=
     1055ac_sep=
     1056ac_must_keep_next=false
     1057for ac_pass in 1 2
     1058do
     1059  for ac_arg
     1060  do
     1061    case $ac_arg in
     1062    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1063    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1064    | -silent | --silent | --silen | --sile | --sil)
     1065      continue ;;
     1066    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1067      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1068    esac
     1069    case $ac_pass in
     1070    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1071    2)
     1072      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1073      if test $ac_must_keep_next = true; then
     1074        ac_must_keep_next=false # Got value, back to normal.
     1075      else
     1076        case $ac_arg in
     1077          *=* | --config-cache | -C | -disable-* | --disable-* \
     1078          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1079          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1080          | -with-* | --with-* | -without-* | --without-* | --x)
     1081            case "$ac_configure_args0 " in
     1082              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1083            esac
     1084            ;;
     1085          -* ) ac_must_keep_next=true ;;
     1086        esac
     1087      fi
     1088      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1089      # Get rid of the leading space.
     1090      ac_sep=" "
     1091      ;;
     1092    esac
     1093  done
     1094done
     1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1097
     1098# When interrupted or exit'd, cleanup temporary files, and complete
     1099# config.log.  We remove comments because anyway the quotes in there
     1100# would cause problems or look ugly.
     1101# WARNING: Be sure not to use single quotes in there, as some shells,
     1102# such as our DU 5.0 friend, will then `close' the trap.
     1103trap 'exit_status=$?
     1104  # Save into config.log some information that might help in debugging.
     1105  {
     1106    echo
     1107
     1108    cat <<\_ASBOX
     1109## ---------------- ##
     1110## Cache variables. ##
     1111## ---------------- ##
     1112_ASBOX
     1113    echo
     1114    # The following way of writing the cache mishandles newlines in values,
     1115{
     1116  (set) 2>&1 |
     1117    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1118    *ac_space=\ *)
     1119      sed -n \
     1120        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1121          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1122      ;;
     1123    *)
     1124      sed -n \
     1125        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1126      ;;
     1127    esac;
     1128}
     1129    echo
     1130
     1131    cat <<\_ASBOX
     1132## ----------------- ##
     1133## Output variables. ##
     1134## ----------------- ##
     1135_ASBOX
     1136    echo
     1137    for ac_var in $ac_subst_vars
     1138    do
     1139      eval ac_val=$`echo $ac_var`
     1140      echo "$ac_var='"'"'$ac_val'"'"'"
     1141    done | sort
     1142    echo
     1143
     1144    if test -n "$ac_subst_files"; then
     1145      cat <<\_ASBOX
     1146## ------------- ##
     1147## Output files. ##
     1148## ------------- ##
     1149_ASBOX
     1150      echo
     1151      for ac_var in $ac_subst_files
     1152      do
     1153        eval ac_val=$`echo $ac_var`
     1154        echo "$ac_var='"'"'$ac_val'"'"'"
     1155      done | sort
     1156      echo
     1157    fi
     1158
     1159    if test -s confdefs.h; then
     1160      cat <<\_ASBOX
     1161## ----------- ##
     1162## confdefs.h. ##
     1163## ----------- ##
     1164_ASBOX
     1165      echo
     1166      sed "/^$/d" confdefs.h | sort
     1167      echo
     1168    fi
     1169    test "$ac_signal" != 0 &&
     1170      echo "$as_me: caught signal $ac_signal"
     1171    echo "$as_me: exit $exit_status"
     1172  } >&5
     1173  rm -f core *.core &&
     1174  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1175    exit $exit_status
     1176     ' 0
     1177for ac_signal in 1 2 13 15; do
     1178  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1179done
     1180ac_signal=0
     1181
     1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1183rm -rf conftest* confdefs.h
     1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1185echo >confdefs.h
     1186
     1187# Predefined preprocessor variables.
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_NAME "$PACKAGE_NAME"
     1191_ACEOF
     1192
     1193
     1194cat >>confdefs.h <<_ACEOF
     1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1196_ACEOF
     1197
     1198
     1199cat >>confdefs.h <<_ACEOF
     1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1201_ACEOF
     1202
     1203
     1204cat >>confdefs.h <<_ACEOF
     1205#define PACKAGE_STRING "$PACKAGE_STRING"
     1206_ACEOF
     1207
     1208
     1209cat >>confdefs.h <<_ACEOF
     1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1211_ACEOF
     1212
     1213
     1214# Let the site file select an alternate cache file if it wants to.
    5111215# Prefer explicitly selected file to automatically selected ones.
    5121216if test -z "$CONFIG_SITE"; then
     
    5191223for ac_site_file in $CONFIG_SITE; do
    5201224  if test -r "$ac_site_file"; then
    521     echo "loading site script $ac_site_file"
     1225    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1226echo "$as_me: loading site script $ac_site_file" >&6;}
     1227    sed 's/^/| /' "$ac_site_file" >&5
    5221228    . "$ac_site_file"
    5231229  fi
     
    5251231
    5261232if test -r "$cache_file"; then
    527   echo "loading cache $cache_file"
    528   . $cache_file
    529 else
    530   echo "creating cache $cache_file"
    531   > $cache_file
     1233  # Some versions of bash will fail to source /dev/null (special
     1234  # files actually), so we avoid doing that.
     1235  if test -f "$cache_file"; then
     1236    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1237echo "$as_me: loading cache $cache_file" >&6;}
     1238    case $cache_file in
     1239      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1240      *)                      . ./$cache_file;;
     1241    esac
     1242  fi
     1243else
     1244  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1245echo "$as_me: creating cache $cache_file" >&6;}
     1246  >$cache_file
     1247fi
     1248
     1249# Check that the precious variables saved in the cache have kept the same
     1250# value.
     1251ac_cache_corrupted=false
     1252for ac_var in `(set) 2>&1 |
     1253               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1254  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1255  eval ac_new_set=\$ac_env_${ac_var}_set
     1256  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1257  eval ac_new_val="\$ac_env_${ac_var}_value"
     1258  case $ac_old_set,$ac_new_set in
     1259    set,)
     1260      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1262      ac_cache_corrupted=: ;;
     1263    ,set)
     1264      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1266      ac_cache_corrupted=: ;;
     1267    ,);;
     1268    *)
     1269      if test "x$ac_old_val" != "x$ac_new_val"; then
     1270        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1272        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1273echo "$as_me:   former value:  $ac_old_val" >&2;}
     1274        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1275echo "$as_me:   current value: $ac_new_val" >&2;}
     1276        ac_cache_corrupted=:
     1277      fi;;
     1278  esac
     1279  # Pass precious variables to config.status.
     1280  if test "$ac_new_set" = set; then
     1281    case $ac_new_val in
     1282    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1283      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1284    *) ac_arg=$ac_var=$ac_new_val ;;
     1285    esac
     1286    case " $ac_configure_args " in
     1287      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1288      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1289    esac
     1290  fi
     1291done
     1292if $ac_cache_corrupted; then
     1293  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1295  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1297   { (exit 1); exit 1; }; }
    5321298fi
    5331299
    5341300ac_ext=c
    535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    5361301ac_cpp='$CPP $CPPFLAGS'
    537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    539 cross_compiling=$ac_cv_prog_cc_cross
    540 
    541 ac_exeext=
    542 ac_objext=o
    543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    544   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
    545   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    546     ac_n= ac_c='
    547 ' ac_t='        '
    548   else
    549     ac_n=-n ac_c= ac_t=
    550   fi
    551 else
    552   ac_n= ac_c='\c' ac_t=
    553 fi
    554 
    555 
    556 
    557 
    558 
    559 echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    560 echo "configure:561: checking uname for singular" >&5
    561 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    562   echo $ac_n "(cached) $ac_c" 1>&6
     1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1305
     1306
     1307
     1308
     1309
     1310
     1311
     1312
     1313
     1314
     1315
     1316
     1317
     1318
     1319
     1320
     1321
     1322
     1323
     1324          ac_config_headers="$ac_config_headers mod2.h"
     1325
     1326
     1327
     1328echo "$as_me:$LINENO: checking uname for singular" >&5
     1329echo $ECHO_N "checking uname for singular... $ECHO_C" >&6
     1330if test "${ac_cv_singuname+set}" = set; then
     1331  echo $ECHO_N "(cached) $ECHO_C" >&6
    5631332else
    5641333  ac_cv_singuname="unknown"
     
    5761345fi
    5771346
    578 echo "$ac_t""$ac_cv_singuname" 1>&6
     1347echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5
     1348echo "${ECHO_T}$ac_cv_singuname" >&6
    5791349if test "$ac_cv_singuname" = unknown; then
    580   echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
     1350  { echo "$as_me:$LINENO: WARNING: Unknown architecture: Check singuname.sh" >&5
     1351echo "$as_me: WARNING: Unknown architecture: Check singuname.sh" >&2;}
    5811352  ac_cv_singuname="unknown"
    5821353fi
    583 cat >> confdefs.h <<EOF
     1354cat >>confdefs.h <<_ACEOF
    5841355#define S_UNAME "$ac_cv_singuname"
    585 EOF
     1356_ACEOF
    5861357
    5871358SINGUNAME=$ac_cv_singuname
     
    6041375SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-2}
    6051376SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}"
    606 VERSION_DATE=${VERSION_DATE:-"August 2001"}
    607 
    608 
    609 
    610 
    611 
    612 
    613 cat >> confdefs.h <<EOF
     1377VERSION_DATE=${VERSION_DATE:-"July 2003"}
     1378
     1379
     1380
     1381
     1382
     1383
     1384cat >>confdefs.h <<_ACEOF
    6141385#define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION}
    615 EOF
    616 
    617 cat >> confdefs.h <<EOF
     1386_ACEOF
     1387
     1388cat >>confdefs.h <<_ACEOF
    6181389#define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION}
    619 EOF
    620 
    621 cat >> confdefs.h <<EOF
     1390_ACEOF
     1391
     1392cat >>confdefs.h <<_ACEOF
    6221393#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    623 EOF
    624 
    625 cat >> confdefs.h <<EOF
     1394_ACEOF
     1395
     1396cat >>confdefs.h <<_ACEOF
    6261397#define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
    627 EOF
    628 
    629 cat >> confdefs.h <<EOF
     1398_ACEOF
     1399
     1400cat >>confdefs.h <<_ACEOF
    6301401#define S_VERSION2 "${VERSION_DATE}"
    631 EOF
    632 
    633 cat >> confdefs.h <<EOF
     1402_ACEOF
     1403
     1404cat >>confdefs.h <<_ACEOF
    6341405#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    635 EOF
     1406_ACEOF
    6361407
    6371408
     
    6521423  ac_cxx_set=yes
    6531424fi
    654 # Extract the first word of "gcc", so it can be a program name with args.
    655 set dummy gcc; ac_word=$2
    656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    657 echo "configure:658: checking for $ac_word" >&5
    658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    659   echo $ac_n "(cached) $ac_c" 1>&6
     1425ac_ext=c
     1426ac_cpp='$CPP $CPPFLAGS'
     1427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1429ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1430if test -n "$ac_tool_prefix"; then
     1431  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1432set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1433echo "$as_me:$LINENO: checking for $ac_word" >&5
     1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1435if test "${ac_cv_prog_CC+set}" = set; then
     1436  echo $ECHO_N "(cached) $ECHO_C" >&6
    6601437else
    6611438  if test -n "$CC"; then
    6621439  ac_cv_prog_CC="$CC" # Let the user override the test.
    6631440else
    664   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    665   ac_dummy="$PATH"
    666   for ac_dir in $ac_dummy; do
    667     test -z "$ac_dir" && ac_dir=.
    668     if test -f $ac_dir/$ac_word; then
    669       ac_cv_prog_CC="gcc"
    670       break
    671     fi
    672   done
    673   IFS="$ac_save_ifs"
    674 fi
    675 fi
    676 CC="$ac_cv_prog_CC"
     1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1442for as_dir in $PATH
     1443do
     1444  IFS=$as_save_IFS
     1445  test -z "$as_dir" && as_dir=.
     1446  for ac_exec_ext in '' $ac_executable_extensions; do
     1447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1448    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1450    break 2
     1451  fi
     1452done
     1453done
     1454
     1455fi
     1456fi
     1457CC=$ac_cv_prog_CC
    6771458if test -n "$CC"; then
    678   echo "$ac_t""$CC" 1>&6
    679 else
    680   echo "$ac_t""no" 1>&6
    681 fi
    682 
     1459  echo "$as_me:$LINENO: result: $CC" >&5
     1460echo "${ECHO_T}$CC" >&6
     1461else
     1462  echo "$as_me:$LINENO: result: no" >&5
     1463echo "${ECHO_T}no" >&6
     1464fi
     1465
     1466fi
     1467if test -z "$ac_cv_prog_CC"; then
     1468  ac_ct_CC=$CC
     1469  # Extract the first word of "gcc", so it can be a program name with args.
     1470set dummy gcc; ac_word=$2
     1471echo "$as_me:$LINENO: checking for $ac_word" >&5
     1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1474  echo $ECHO_N "(cached) $ECHO_C" >&6
     1475else
     1476  if test -n "$ac_ct_CC"; then
     1477  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1478else
     1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1480for as_dir in $PATH
     1481do
     1482  IFS=$as_save_IFS
     1483  test -z "$as_dir" && as_dir=.
     1484  for ac_exec_ext in '' $ac_executable_extensions; do
     1485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1486    ac_cv_prog_ac_ct_CC="gcc"
     1487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1488    break 2
     1489  fi
     1490done
     1491done
     1492
     1493fi
     1494fi
     1495ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1496if test -n "$ac_ct_CC"; then
     1497  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1498echo "${ECHO_T}$ac_ct_CC" >&6
     1499else
     1500  echo "$as_me:$LINENO: result: no" >&5
     1501echo "${ECHO_T}no" >&6
     1502fi
     1503
     1504  CC=$ac_ct_CC
     1505else
     1506  CC="$ac_cv_prog_CC"
     1507fi
     1508
     1509if test -z "$CC"; then
     1510  if test -n "$ac_tool_prefix"; then
     1511  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1512set dummy ${ac_tool_prefix}cc; ac_word=$2
     1513echo "$as_me:$LINENO: checking for $ac_word" >&5
     1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1515if test "${ac_cv_prog_CC+set}" = set; then
     1516  echo $ECHO_N "(cached) $ECHO_C" >&6
     1517else
     1518  if test -n "$CC"; then
     1519  ac_cv_prog_CC="$CC" # Let the user override the test.
     1520else
     1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1522for as_dir in $PATH
     1523do
     1524  IFS=$as_save_IFS
     1525  test -z "$as_dir" && as_dir=.
     1526  for ac_exec_ext in '' $ac_executable_extensions; do
     1527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1528    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1530    break 2
     1531  fi
     1532done
     1533done
     1534
     1535fi
     1536fi
     1537CC=$ac_cv_prog_CC
     1538if test -n "$CC"; then
     1539  echo "$as_me:$LINENO: result: $CC" >&5
     1540echo "${ECHO_T}$CC" >&6
     1541else
     1542  echo "$as_me:$LINENO: result: no" >&5
     1543echo "${ECHO_T}no" >&6
     1544fi
     1545
     1546fi
     1547if test -z "$ac_cv_prog_CC"; then
     1548  ac_ct_CC=$CC
     1549  # Extract the first word of "cc", so it can be a program name with args.
     1550set dummy cc; ac_word=$2
     1551echo "$as_me:$LINENO: checking for $ac_word" >&5
     1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1553if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1554  echo $ECHO_N "(cached) $ECHO_C" >&6
     1555else
     1556  if test -n "$ac_ct_CC"; then
     1557  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1558else
     1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1560for as_dir in $PATH
     1561do
     1562  IFS=$as_save_IFS
     1563  test -z "$as_dir" && as_dir=.
     1564  for ac_exec_ext in '' $ac_executable_extensions; do
     1565  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1566    ac_cv_prog_ac_ct_CC="cc"
     1567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1568    break 2
     1569  fi
     1570done
     1571done
     1572
     1573fi
     1574fi
     1575ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1576if test -n "$ac_ct_CC"; then
     1577  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1578echo "${ECHO_T}$ac_ct_CC" >&6
     1579else
     1580  echo "$as_me:$LINENO: result: no" >&5
     1581echo "${ECHO_T}no" >&6
     1582fi
     1583
     1584  CC=$ac_ct_CC
     1585else
     1586  CC="$ac_cv_prog_CC"
     1587fi
     1588
     1589fi
    6831590if test -z "$CC"; then
    6841591  # Extract the first word of "cc", so it can be a program name with args.
    6851592set dummy cc; ac_word=$2
    686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    687 echo "configure:688: checking for $ac_word" >&5
    688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    689   echo $ac_n "(cached) $ac_c" 1>&6
     1593echo "$as_me:$LINENO: checking for $ac_word" >&5
     1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1595if test "${ac_cv_prog_CC+set}" = set; then
     1596  echo $ECHO_N "(cached) $ECHO_C" >&6
    6901597else
    6911598  if test -n "$CC"; then
    6921599  ac_cv_prog_CC="$CC" # Let the user override the test.
    6931600else
    694   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    6951601  ac_prog_rejected=no
    696   ac_dummy="$PATH"
    697   for ac_dir in $ac_dummy; do
    698     test -z "$ac_dir" && ac_dir=.
    699     if test -f $ac_dir/$ac_word; then
    700       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    701         ac_prog_rejected=yes
    702         continue
    703       fi
    704       ac_cv_prog_CC="cc"
    705       break
    706     fi
    707   done
    708   IFS="$ac_save_ifs"
     1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1603for as_dir in $PATH
     1604do
     1605  IFS=$as_save_IFS
     1606  test -z "$as_dir" && as_dir=.
     1607  for ac_exec_ext in '' $ac_executable_extensions; do
     1608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1609    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     1610       ac_prog_rejected=yes
     1611       continue
     1612     fi
     1613    ac_cv_prog_CC="cc"
     1614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1615    break 2
     1616  fi
     1617done
     1618done
     1619
    7091620if test $ac_prog_rejected = yes; then
    7101621  # We found a bogon in the path, so make sure we never use it.
    7111622  set dummy $ac_cv_prog_CC
    7121623  shift
    713   if test $# -gt 0; then
     1624  if test $# != 0; then
    7141625    # We chose a different compiler from the bogus one.
    7151626    # However, it has the same basename, so the bogon will be chosen
    7161627    # first if we set CC to just the basename; use the full file name.
    7171628    shift
    718     set dummy "$ac_dir/$ac_word" "$@"
    719     shift
    720     ac_cv_prog_CC="$@"
     1629    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    7211630  fi
    7221631fi
    7231632fi
    7241633fi
    725 CC="$ac_cv_prog_CC"
     1634CC=$ac_cv_prog_CC
    7261635if test -n "$CC"; then
    727   echo "$ac_t""$CC" 1>&6
    728 else
    729   echo "$ac_t""no" 1>&6
    730 fi
    731 
    732   if test -z "$CC"; then
    733     case "`uname -s`" in
    734     *win32* | *WIN32*)
    735       # Extract the first word of "cl", so it can be a program name with args.
    736 set dummy cl; ac_word=$2
    737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    738 echo "configure:739: checking for $ac_word" >&5
    739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    740   echo $ac_n "(cached) $ac_c" 1>&6
     1636  echo "$as_me:$LINENO: result: $CC" >&5
     1637echo "${ECHO_T}$CC" >&6
     1638else
     1639  echo "$as_me:$LINENO: result: no" >&5
     1640echo "${ECHO_T}no" >&6
     1641fi
     1642
     1643fi
     1644if test -z "$CC"; then
     1645  if test -n "$ac_tool_prefix"; then
     1646  for ac_prog in cl
     1647  do
     1648    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1650echo "$as_me:$LINENO: checking for $ac_word" >&5
     1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1652if test "${ac_cv_prog_CC+set}" = set; then
     1653  echo $ECHO_N "(cached) $ECHO_C" >&6
    7411654else
    7421655  if test -n "$CC"; then
    7431656  ac_cv_prog_CC="$CC" # Let the user override the test.
    7441657else
    745   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    746   ac_dummy="$PATH"
    747   for ac_dir in $ac_dummy; do
    748     test -z "$ac_dir" && ac_dir=.
    749     if test -f $ac_dir/$ac_word; then
    750       ac_cv_prog_CC="cl"
    751       break
     1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1659for as_dir in $PATH
     1660do
     1661  IFS=$as_save_IFS
     1662  test -z "$as_dir" && as_dir=.
     1663  for ac_exec_ext in '' $ac_executable_extensions; do
     1664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1665    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1667    break 2
     1668  fi
     1669done
     1670done
     1671
     1672fi
     1673fi
     1674CC=$ac_cv_prog_CC
     1675if test -n "$CC"; then
     1676  echo "$as_me:$LINENO: result: $CC" >&5
     1677echo "${ECHO_T}$CC" >&6
     1678else
     1679  echo "$as_me:$LINENO: result: no" >&5
     1680echo "${ECHO_T}no" >&6
     1681fi
     1682
     1683    test -n "$CC" && break
     1684  done
     1685fi
     1686if test -z "$CC"; then
     1687  ac_ct_CC=$CC
     1688  for ac_prog in cl
     1689do
     1690  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1691set dummy $ac_prog; ac_word=$2
     1692echo "$as_me:$LINENO: checking for $ac_word" >&5
     1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1695  echo $ECHO_N "(cached) $ECHO_C" >&6
     1696else
     1697  if test -n "$ac_ct_CC"; then
     1698  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1699else
     1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1701for as_dir in $PATH
     1702do
     1703  IFS=$as_save_IFS
     1704  test -z "$as_dir" && as_dir=.
     1705  for ac_exec_ext in '' $ac_executable_extensions; do
     1706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1707    ac_cv_prog_ac_ct_CC="$ac_prog"
     1708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1709    break 2
     1710  fi
     1711done
     1712done
     1713
     1714fi
     1715fi
     1716ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1717if test -n "$ac_ct_CC"; then
     1718  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1719echo "${ECHO_T}$ac_ct_CC" >&6
     1720else
     1721  echo "$as_me:$LINENO: result: no" >&5
     1722echo "${ECHO_T}no" >&6
     1723fi
     1724
     1725  test -n "$ac_ct_CC" && break
     1726done
     1727
     1728  CC=$ac_ct_CC
     1729fi
     1730
     1731fi
     1732
     1733
     1734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1735See \`config.log' for more details." >&5
     1736echo "$as_me: error: no acceptable C compiler found in \$PATH
     1737See \`config.log' for more details." >&2;}
     1738   { (exit 1); exit 1; }; }
     1739
     1740# Provide some information about the compiler.
     1741echo "$as_me:$LINENO:" \
     1742     "checking for C compiler version" >&5
     1743ac_compiler=`set X $ac_compile; echo $2`
     1744{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1745  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1746  ac_status=$?
     1747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1748  (exit $ac_status); }
     1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1750  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1751  ac_status=$?
     1752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1753  (exit $ac_status); }
     1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1755  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1756  ac_status=$?
     1757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1758  (exit $ac_status); }
     1759
     1760cat >conftest.$ac_ext <<_ACEOF
     1761/* confdefs.h.  */
     1762_ACEOF
     1763cat confdefs.h >>conftest.$ac_ext
     1764cat >>conftest.$ac_ext <<_ACEOF
     1765/* end confdefs.h.  */
     1766
     1767int
     1768main ()
     1769{
     1770
     1771  ;
     1772  return 0;
     1773}
     1774_ACEOF
     1775ac_clean_files_save=$ac_clean_files
     1776ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1777# Try to create an executable without -o first, disregard a.out.
     1778# It will help us diagnose broken compilers, and finding out an intuition
     1779# of exeext.
     1780echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1781echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1782ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1783if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1784  (eval $ac_link_default) 2>&5
     1785  ac_status=$?
     1786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1787  (exit $ac_status); }; then
     1788  # Find the output, starting from the most likely.  This scheme is
     1789# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1790# resort.
     1791
     1792# Be careful to initialize this variable, since it used to be cached.
     1793# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1794ac_cv_exeext=
     1795# b.out is created by i960 compilers.
     1796for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1797do
     1798  test -f "$ac_file" || continue
     1799  case $ac_file in
     1800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1801        ;;
     1802    conftest.$ac_ext )
     1803        # This is the source file.
     1804        ;;
     1805    [ab].out )
     1806        # We found the default executable, but exeext='' is most
     1807        # certainly right.
     1808        break;;
     1809    *.* )
     1810        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1811        # FIXME: I believe we export ac_cv_exeext for Libtool,
     1812        # but it would be cool to find out if it's true.  Does anybody
     1813        # maintain Libtool? --akim.
     1814        export ac_cv_exeext
     1815        break;;
     1816    * )
     1817        break;;
     1818  esac
     1819done
     1820else
     1821  echo "$as_me: failed program was:" >&5
     1822sed 's/^/| /' conftest.$ac_ext >&5
     1823
     1824{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1825See \`config.log' for more details." >&5
     1826echo "$as_me: error: C compiler cannot create executables
     1827See \`config.log' for more details." >&2;}
     1828   { (exit 77); exit 77; }; }
     1829fi
     1830
     1831ac_exeext=$ac_cv_exeext
     1832echo "$as_me:$LINENO: result: $ac_file" >&5
     1833echo "${ECHO_T}$ac_file" >&6
     1834
     1835# Check the compiler produces executables we can run.  If not, either
     1836# the compiler is broken, or we cross compile.
     1837echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1838echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1839# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1840# If not cross compiling, check that we can run a simple program.
     1841if test "$cross_compiling" != yes; then
     1842  if { ac_try='./$ac_file'
     1843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1844  (eval $ac_try) 2>&5
     1845  ac_status=$?
     1846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1847  (exit $ac_status); }; }; then
     1848    cross_compiling=no
     1849  else
     1850    if test "$cross_compiling" = maybe; then
     1851        cross_compiling=yes
     1852    else
     1853        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1854If you meant to cross compile, use \`--host'.
     1855See \`config.log' for more details." >&5
     1856echo "$as_me: error: cannot run C compiled programs.
     1857If you meant to cross compile, use \`--host'.
     1858See \`config.log' for more details." >&2;}
     1859   { (exit 1); exit 1; }; }
    7521860    fi
    753   done
    754   IFS="$ac_save_ifs"
    755 fi
    756 fi
    757 CC="$ac_cv_prog_CC"
    758 if test -n "$CC"; then
    759   echo "$ac_t""$CC" 1>&6
    760 else
    761   echo "$ac_t""no" 1>&6
    762 fi
    763  ;;
    764     esac
    7651861  fi
    766   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    767 fi
    768 
    769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    771 
    772 ac_ext=c
    773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    774 ac_cpp='$CPP $CPPFLAGS'
    775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    777 cross_compiling=$ac_cv_prog_cc_cross
    778 
    779 cat > conftest.$ac_ext << EOF
    780 
    781 #line 782 "configure"
    782 #include "confdefs.h"
    783 
    784 main(){return(0);}
    785 EOF
    786 if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    787   ac_cv_prog_cc_works=yes
    788   # If we can't run a trivial program, we are probably using a cross compiler.
    789   if (./conftest; exit) 2>/dev/null; then
    790     ac_cv_prog_cc_cross=no
    791   else
    792     ac_cv_prog_cc_cross=yes
    793   fi
    794 else
    795   echo "configure: failed program was:" >&5
    796   cat conftest.$ac_ext >&5
    797   ac_cv_prog_cc_works=no
    798 fi
    799 rm -fr conftest*
    800 ac_ext=c
    801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    802 ac_cpp='$CPP $CPPFLAGS'
    803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    805 cross_compiling=$ac_cv_prog_cc_cross
    806 
    807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    808 if test $ac_cv_prog_cc_works = no; then
    809   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    810 fi
    811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    814 cross_compiling=$ac_cv_prog_cc_cross
    815 
    816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    817 echo "configure:818: checking whether we are using GNU C" >&5
    818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    819   echo $ac_n "(cached) $ac_c" 1>&6
    820 else
    821   cat > conftest.c <<EOF
    822 #ifdef __GNUC__
    823   yes;
     1862fi
     1863echo "$as_me:$LINENO: result: yes" >&5
     1864echo "${ECHO_T}yes" >&6
     1865
     1866rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1867ac_clean_files=$ac_clean_files_save
     1868# Check the compiler produces executables we can run.  If not, either
     1869# the compiler is broken, or we cross compile.
     1870echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1872echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1873echo "${ECHO_T}$cross_compiling" >&6
     1874
     1875echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1878  (eval $ac_link) 2>&5
     1879  ac_status=$?
     1880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1881  (exit $ac_status); }; then
     1882  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1883# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1884# work properly (i.e., refer to `conftest.exe'), while it won't with
     1885# `rm'.
     1886for ac_file in conftest.exe conftest conftest.*; do
     1887  test -f "$ac_file" || continue
     1888  case $ac_file in
     1889    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1890    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1891          export ac_cv_exeext
     1892          break;;
     1893    * ) break;;
     1894  esac
     1895done
     1896else
     1897  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1898See \`config.log' for more details." >&5
     1899echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1900See \`config.log' for more details." >&2;}
     1901   { (exit 1); exit 1; }; }
     1902fi
     1903
     1904rm -f conftest$ac_cv_exeext
     1905echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1906echo "${ECHO_T}$ac_cv_exeext" >&6
     1907
     1908rm -f conftest.$ac_ext
     1909EXEEXT=$ac_cv_exeext
     1910ac_exeext=$EXEEXT
     1911echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1912echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1913if test "${ac_cv_objext+set}" = set; then
     1914  echo $ECHO_N "(cached) $ECHO_C" >&6
     1915else
     1916  cat >conftest.$ac_ext <<_ACEOF
     1917/* confdefs.h.  */
     1918_ACEOF
     1919cat confdefs.h >>conftest.$ac_ext
     1920cat >>conftest.$ac_ext <<_ACEOF
     1921/* end confdefs.h.  */
     1922
     1923int
     1924main ()
     1925{
     1926
     1927  ;
     1928  return 0;
     1929}
     1930_ACEOF
     1931rm -f conftest.o conftest.obj
     1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1933  (eval $ac_compile) 2>&5
     1934  ac_status=$?
     1935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1936  (exit $ac_status); }; then
     1937  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1938  case $ac_file in
     1939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1940    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1941       break;;
     1942  esac
     1943done
     1944else
     1945  echo "$as_me: failed program was:" >&5
     1946sed 's/^/| /' conftest.$ac_ext >&5
     1947
     1948{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1949See \`config.log' for more details." >&5
     1950echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1951See \`config.log' for more details." >&2;}
     1952   { (exit 1); exit 1; }; }
     1953fi
     1954
     1955rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1956fi
     1957echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1958echo "${ECHO_T}$ac_cv_objext" >&6
     1959OBJEXT=$ac_cv_objext
     1960ac_objext=$OBJEXT
     1961echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     1962echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1963if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1964  echo $ECHO_N "(cached) $ECHO_C" >&6
     1965else
     1966  cat >conftest.$ac_ext <<_ACEOF
     1967/* confdefs.h.  */
     1968_ACEOF
     1969cat confdefs.h >>conftest.$ac_ext
     1970cat >>conftest.$ac_ext <<_ACEOF
     1971/* end confdefs.h.  */
     1972
     1973int
     1974main ()
     1975{
     1976#ifndef __GNUC__
     1977       choke me
    8241978#endif
    825 EOF
    826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    827   ac_cv_prog_gcc=yes
    828 else
    829   ac_cv_prog_gcc=no
    830 fi
    831 fi
    832 
    833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    834 
    835 if test $ac_cv_prog_gcc = yes; then
    836   GCC=yes
    837 else
    838   GCC=
    839 fi
    840 
    841 ac_test_CFLAGS="${CFLAGS+set}"
    842 ac_save_CFLAGS="$CFLAGS"
    843 CFLAGS=
    844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
    846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    847   echo $ac_n "(cached) $ac_c" 1>&6
    848 else
    849   echo 'void f(){}' > conftest.c
    850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1979
     1980  ;
     1981  return 0;
     1982}
     1983_ACEOF
     1984rm -f conftest.$ac_objext
     1985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1986  (eval $ac_compile) 2>conftest.er1
     1987  ac_status=$?
     1988  grep -v '^ *+' conftest.er1 >conftest.err
     1989  rm -f conftest.er1
     1990  cat conftest.err >&5
     1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1992  (exit $ac_status); } &&
     1993         { ac_try='test -z "$ac_c_werror_flag"
     1994                         || test ! -s conftest.err'
     1995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1996  (eval $ac_try) 2>&5
     1997  ac_status=$?
     1998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1999  (exit $ac_status); }; } &&
     2000         { ac_try='test -s conftest.$ac_objext'
     2001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2002  (eval $ac_try) 2>&5
     2003  ac_status=$?
     2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2005  (exit $ac_status); }; }; then
     2006  ac_compiler_gnu=yes
     2007else
     2008  echo "$as_me: failed program was:" >&5
     2009sed 's/^/| /' conftest.$ac_ext >&5
     2010
     2011ac_compiler_gnu=no
     2012fi
     2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2014ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2015
     2016fi
     2017echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2018echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2019GCC=`test $ac_compiler_gnu = yes && echo yes`
     2020ac_test_CFLAGS=${CFLAGS+set}
     2021ac_save_CFLAGS=$CFLAGS
     2022CFLAGS="-g"
     2023echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2024echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2025if test "${ac_cv_prog_cc_g+set}" = set; then
     2026  echo $ECHO_N "(cached) $ECHO_C" >&6
     2027else
     2028  cat >conftest.$ac_ext <<_ACEOF
     2029/* confdefs.h.  */
     2030_ACEOF
     2031cat confdefs.h >>conftest.$ac_ext
     2032cat >>conftest.$ac_ext <<_ACEOF
     2033/* end confdefs.h.  */
     2034
     2035int
     2036main ()
     2037{
     2038
     2039  ;
     2040  return 0;
     2041}
     2042_ACEOF
     2043rm -f conftest.$ac_objext
     2044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2045  (eval $ac_compile) 2>conftest.er1
     2046  ac_status=$?
     2047  grep -v '^ *+' conftest.er1 >conftest.err
     2048  rm -f conftest.er1
     2049  cat conftest.err >&5
     2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2051  (exit $ac_status); } &&
     2052         { ac_try='test -z "$ac_c_werror_flag"
     2053                         || test ! -s conftest.err'
     2054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2055  (eval $ac_try) 2>&5
     2056  ac_status=$?
     2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2058  (exit $ac_status); }; } &&
     2059         { ac_try='test -s conftest.$ac_objext'
     2060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2061  (eval $ac_try) 2>&5
     2062  ac_status=$?
     2063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2064  (exit $ac_status); }; }; then
    8512065  ac_cv_prog_cc_g=yes
    8522066else
    853   ac_cv_prog_cc_g=no
    854 fi
    855 rm -f conftest*
    856 
    857 fi
    858 
    859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2067  echo "$as_me: failed program was:" >&5
     2068sed 's/^/| /' conftest.$ac_ext >&5
     2069
     2070ac_cv_prog_cc_g=no
     2071fi
     2072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2073fi
     2074echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2075echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    8602076if test "$ac_test_CFLAGS" = set; then
    861   CFLAGS="$ac_save_CFLAGS"
     2077  CFLAGS=$ac_save_CFLAGS
    8622078elif test $ac_cv_prog_cc_g = yes; then
    8632079  if test "$GCC" = yes; then
     
    8732089  fi
    8742090fi
    875 
    876 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    877 echo "configure:878: checking how to run the C preprocessor" >&5
     2091echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2092echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2093if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2094  echo $ECHO_N "(cached) $ECHO_C" >&6
     2095else
     2096  ac_cv_prog_cc_stdc=no
     2097ac_save_CC=$CC
     2098cat >conftest.$ac_ext <<_ACEOF
     2099/* confdefs.h.  */
     2100_ACEOF
     2101cat confdefs.h >>conftest.$ac_ext
     2102cat >>conftest.$ac_ext <<_ACEOF
     2103/* end confdefs.h.  */
     2104#include <stdarg.h>
     2105#include <stdio.h>
     2106#include <sys/types.h>
     2107#include <sys/stat.h>
     2108/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2109struct buf { int x; };
     2110FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2111static char *e (p, i)
     2112     char **p;
     2113     int i;
     2114{
     2115  return p[i];
     2116}
     2117static char *f (char * (*g) (char **, int), char **p, ...)
     2118{
     2119  char *s;
     2120  va_list v;
     2121  va_start (v,p);
     2122  s = g (p, va_arg (v,int));
     2123  va_end (v);
     2124  return s;
     2125}
     2126
     2127/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2128   function prototypes and stuff, but not '\xHH' hex character constants.
     2129   These don't provoke an error unfortunately, instead are silently treated
     2130   as 'x'.  The following induces an error, until -std1 is added to get
     2131   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2132   array size at least.  It's necessary to write '\x00'==0 to get something
     2133   that's true only with -std1.  */
     2134int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2135
     2136int test (int i, double x);
     2137struct s1 {int (*f) (int a);};
     2138struct s2 {int (*f) (double a);};
     2139int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2140int argc;
     2141char **argv;
     2142int
     2143main ()
     2144{
     2145return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2146  ;
     2147  return 0;
     2148}
     2149_ACEOF
     2150# Don't try gcc -ansi; that turns off useful extensions and
     2151# breaks some systems' header files.
     2152# AIX                   -qlanglvl=ansi
     2153# Ultrix and OSF/1      -std1
     2154# HP-UX 10.20 and later -Ae
     2155# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2156# SVR4                  -Xc -D__EXTENSIONS__
     2157for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2158do
     2159  CC="$ac_save_CC $ac_arg"
     2160  rm -f conftest.$ac_objext
     2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2162  (eval $ac_compile) 2>conftest.er1
     2163  ac_status=$?
     2164  grep -v '^ *+' conftest.er1 >conftest.err
     2165  rm -f conftest.er1
     2166  cat conftest.err >&5
     2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2168  (exit $ac_status); } &&
     2169         { ac_try='test -z "$ac_c_werror_flag"
     2170                         || test ! -s conftest.err'
     2171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2172  (eval $ac_try) 2>&5
     2173  ac_status=$?
     2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2175  (exit $ac_status); }; } &&
     2176         { ac_try='test -s conftest.$ac_objext'
     2177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2178  (eval $ac_try) 2>&5
     2179  ac_status=$?
     2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2181  (exit $ac_status); }; }; then
     2182  ac_cv_prog_cc_stdc=$ac_arg
     2183break
     2184else
     2185  echo "$as_me: failed program was:" >&5
     2186sed 's/^/| /' conftest.$ac_ext >&5
     2187
     2188fi
     2189rm -f conftest.err conftest.$ac_objext
     2190done
     2191rm -f conftest.$ac_ext conftest.$ac_objext
     2192CC=$ac_save_CC
     2193
     2194fi
     2195
     2196case "x$ac_cv_prog_cc_stdc" in
     2197  x|xno)
     2198    echo "$as_me:$LINENO: result: none needed" >&5
     2199echo "${ECHO_T}none needed" >&6 ;;
     2200  *)
     2201    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2202echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2203    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2204esac
     2205
     2206# Some people use a C++ compiler to compile C.  Since we use `exit',
     2207# in C++ we need to declare it.  In case someone uses the same compiler
     2208# for both compiling C and C++ we need to have the C++ compiler decide
     2209# the declaration of exit, since it's the most demanding environment.
     2210cat >conftest.$ac_ext <<_ACEOF
     2211#ifndef __cplusplus
     2212  choke me
     2213#endif
     2214_ACEOF
     2215rm -f conftest.$ac_objext
     2216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2217  (eval $ac_compile) 2>conftest.er1
     2218  ac_status=$?
     2219  grep -v '^ *+' conftest.er1 >conftest.err
     2220  rm -f conftest.er1
     2221  cat conftest.err >&5
     2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2223  (exit $ac_status); } &&
     2224         { ac_try='test -z "$ac_c_werror_flag"
     2225                         || test ! -s conftest.err'
     2226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2227  (eval $ac_try) 2>&5
     2228  ac_status=$?
     2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2230  (exit $ac_status); }; } &&
     2231         { ac_try='test -s conftest.$ac_objext'
     2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2233  (eval $ac_try) 2>&5
     2234  ac_status=$?
     2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2236  (exit $ac_status); }; }; then
     2237  for ac_declaration in \
     2238   '' \
     2239   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2240   'extern "C" void std::exit (int); using std::exit;' \
     2241   'extern "C" void exit (int) throw ();' \
     2242   'extern "C" void exit (int);' \
     2243   'void exit (int);'
     2244do
     2245  cat >conftest.$ac_ext <<_ACEOF
     2246/* confdefs.h.  */
     2247_ACEOF
     2248cat confdefs.h >>conftest.$ac_ext
     2249cat >>conftest.$ac_ext <<_ACEOF
     2250/* end confdefs.h.  */
     2251$ac_declaration
     2252#include <stdlib.h>
     2253int
     2254main ()
     2255{
     2256exit (42);
     2257  ;
     2258  return 0;
     2259}
     2260_ACEOF
     2261rm -f conftest.$ac_objext
     2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2263  (eval $ac_compile) 2>conftest.er1
     2264  ac_status=$?
     2265  grep -v '^ *+' conftest.er1 >conftest.err
     2266  rm -f conftest.er1
     2267  cat conftest.err >&5
     2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2269  (exit $ac_status); } &&
     2270         { ac_try='test -z "$ac_c_werror_flag"
     2271                         || test ! -s conftest.err'
     2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2273  (eval $ac_try) 2>&5
     2274  ac_status=$?
     2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2276  (exit $ac_status); }; } &&
     2277         { ac_try='test -s conftest.$ac_objext'
     2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2279  (eval $ac_try) 2>&5
     2280  ac_status=$?
     2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2282  (exit $ac_status); }; }; then
     2283  :
     2284else
     2285  echo "$as_me: failed program was:" >&5
     2286sed 's/^/| /' conftest.$ac_ext >&5
     2287
     2288continue
     2289fi
     2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2291  cat >conftest.$ac_ext <<_ACEOF
     2292/* confdefs.h.  */
     2293_ACEOF
     2294cat confdefs.h >>conftest.$ac_ext
     2295cat >>conftest.$ac_ext <<_ACEOF
     2296/* end confdefs.h.  */
     2297$ac_declaration
     2298int
     2299main ()
     2300{
     2301exit (42);
     2302  ;
     2303  return 0;
     2304}
     2305_ACEOF
     2306rm -f conftest.$ac_objext
     2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2308  (eval $ac_compile) 2>conftest.er1
     2309  ac_status=$?
     2310  grep -v '^ *+' conftest.er1 >conftest.err
     2311  rm -f conftest.er1
     2312  cat conftest.err >&5
     2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2314  (exit $ac_status); } &&
     2315         { ac_try='test -z "$ac_c_werror_flag"
     2316                         || test ! -s conftest.err'
     2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2318  (eval $ac_try) 2>&5
     2319  ac_status=$?
     2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2321  (exit $ac_status); }; } &&
     2322         { ac_try='test -s conftest.$ac_objext'
     2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2324  (eval $ac_try) 2>&5
     2325  ac_status=$?
     2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2327  (exit $ac_status); }; }; then
     2328  break
     2329else
     2330  echo "$as_me: failed program was:" >&5
     2331sed 's/^/| /' conftest.$ac_ext >&5
     2332
     2333fi
     2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2335done
     2336rm -f conftest*
     2337if test -n "$ac_declaration"; then
     2338  echo '#ifdef __cplusplus' >>confdefs.h
     2339  echo $ac_declaration      >>confdefs.h
     2340  echo '#endif'             >>confdefs.h
     2341fi
     2342
     2343else
     2344  echo "$as_me: failed program was:" >&5
     2345sed 's/^/| /' conftest.$ac_ext >&5
     2346
     2347fi
     2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2349ac_ext=c
     2350ac_cpp='$CPP $CPPFLAGS'
     2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2354
     2355ac_ext=c
     2356ac_cpp='$CPP $CPPFLAGS'
     2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2360echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2361echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    8782362# On Suns, sometimes $CPP names a directory.
    8792363if test -n "$CPP" && test -d "$CPP"; then
     
    8812365fi
    8822366if test -z "$CPP"; then
    883 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    884   echo $ac_n "(cached) $ac_c" 1>&6
    885 else
    886     # This must be in double quotes, not single quotes, because CPP may get
    887   # substituted into the Makefile and "${CC-cc}" will confuse make.
    888   CPP="${CC-cc} -E"
     2367  if test "${ac_cv_prog_CPP+set}" = set; then
     2368  echo $ECHO_N "(cached) $ECHO_C" >&6
     2369else
     2370      # Double quotes because CPP needs to be expanded
     2371    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2372    do
     2373      ac_preproc_ok=false
     2374for ac_c_preproc_warn_flag in '' yes
     2375do
     2376  # Use a header file that comes with gcc, so configuring glibc
     2377  # with a fresh cross-compiler works.
     2378  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2379  # <limits.h> exists even on freestanding compilers.
    8892380  # On the NeXT, cc -E runs the code through the compiler's parser,
    890   # not just through cpp.
    891   cat > conftest.$ac_ext <<EOF
    892 #line 893 "configure"
    893 #include "confdefs.h"
    894 #include <assert.h>
    895 Syntax Error
    896 EOF
    897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    898 { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    900 if test -z "$ac_err"; then
     2381  # not just through cpp. "Syntax error" is here to catch this case.
     2382  cat >conftest.$ac_ext <<_ACEOF
     2383/* confdefs.h.  */
     2384_ACEOF
     2385cat confdefs.h >>conftest.$ac_ext
     2386cat >>conftest.$ac_ext <<_ACEOF
     2387/* end confdefs.h.  */
     2388#ifdef __STDC__
     2389# include <limits.h>
     2390#else
     2391# include <assert.h>
     2392#endif
     2393                     Syntax error
     2394_ACEOF
     2395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2396  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2397  ac_status=$?
     2398  grep -v '^ *+' conftest.er1 >conftest.err
     2399  rm -f conftest.er1
     2400  cat conftest.err >&5
     2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2402  (exit $ac_status); } >/dev/null; then
     2403  if test -s conftest.err; then
     2404    ac_cpp_err=$ac_c_preproc_warn_flag
     2405    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2406  else
     2407    ac_cpp_err=
     2408  fi
     2409else
     2410  ac_cpp_err=yes
     2411fi
     2412if test -z "$ac_cpp_err"; then
    9012413  :
    9022414else
    903   echo "$ac_err" >&5
    904   echo "configure: failed program was:" >&5
    905   cat conftest.$ac_ext >&5
    906   rm -rf conftest*
    907   CPP="${CC-cc} -E -traditional-cpp"
    908   cat > conftest.$ac_ext <<EOF
    909 #line 910 "configure"
    910 #include "confdefs.h"
    911 #include <assert.h>
    912 Syntax Error
    913 EOF
    914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    917 if test -z "$ac_err"; then
     2415  echo "$as_me: failed program was:" >&5
     2416sed 's/^/| /' conftest.$ac_ext >&5
     2417
     2418  # Broken: fails on valid input.
     2419continue
     2420fi
     2421rm -f conftest.err conftest.$ac_ext
     2422
     2423  # OK, works on sane cases.  Now check whether non-existent headers
     2424  # can be detected and how.
     2425  cat >conftest.$ac_ext <<_ACEOF
     2426/* confdefs.h.  */
     2427_ACEOF
     2428cat confdefs.h >>conftest.$ac_ext
     2429cat >>conftest.$ac_ext <<_ACEOF
     2430/* end confdefs.h.  */
     2431#include <ac_nonexistent.h>
     2432_ACEOF
     2433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2435  ac_status=$?
     2436  grep -v '^ *+' conftest.er1 >conftest.err
     2437  rm -f conftest.er1
     2438  cat conftest.err >&5
     2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2440  (exit $ac_status); } >/dev/null; then
     2441  if test -s conftest.err; then
     2442    ac_cpp_err=$ac_c_preproc_warn_flag
     2443    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2444  else
     2445    ac_cpp_err=
     2446  fi
     2447else
     2448  ac_cpp_err=yes
     2449fi
     2450if test -z "$ac_cpp_err"; then
     2451  # Broken: success on invalid input.
     2452continue
     2453else
     2454  echo "$as_me: failed program was:" >&5
     2455sed 's/^/| /' conftest.$ac_ext >&5
     2456
     2457  # Passes both tests.
     2458ac_preproc_ok=:
     2459break
     2460fi
     2461rm -f conftest.err conftest.$ac_ext
     2462
     2463done
     2464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2465rm -f conftest.err conftest.$ac_ext
     2466if $ac_preproc_ok; then
     2467  break
     2468fi
     2469
     2470    done
     2471    ac_cv_prog_CPP=$CPP
     2472
     2473fi
     2474  CPP=$ac_cv_prog_CPP
     2475else
     2476  ac_cv_prog_CPP=$CPP
     2477fi
     2478echo "$as_me:$LINENO: result: $CPP" >&5
     2479echo "${ECHO_T}$CPP" >&6
     2480ac_preproc_ok=false
     2481for ac_c_preproc_warn_flag in '' yes
     2482do
     2483  # Use a header file that comes with gcc, so configuring glibc
     2484  # with a fresh cross-compiler works.
     2485  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2486  # <limits.h> exists even on freestanding compilers.
     2487  # On the NeXT, cc -E runs the code through the compiler's parser,
     2488  # not just through cpp. "Syntax error" is here to catch this case.
     2489  cat >conftest.$ac_ext <<_ACEOF
     2490/* confdefs.h.  */
     2491_ACEOF
     2492cat confdefs.h >>conftest.$ac_ext
     2493cat >>conftest.$ac_ext <<_ACEOF
     2494/* end confdefs.h.  */
     2495#ifdef __STDC__
     2496# include <limits.h>
     2497#else
     2498# include <assert.h>
     2499#endif
     2500                     Syntax error
     2501_ACEOF
     2502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2503  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2504  ac_status=$?
     2505  grep -v '^ *+' conftest.er1 >conftest.err
     2506  rm -f conftest.er1
     2507  cat conftest.err >&5
     2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2509  (exit $ac_status); } >/dev/null; then
     2510  if test -s conftest.err; then
     2511    ac_cpp_err=$ac_c_preproc_warn_flag
     2512    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2513  else
     2514    ac_cpp_err=
     2515  fi
     2516else
     2517  ac_cpp_err=yes
     2518fi
     2519if test -z "$ac_cpp_err"; then
    9182520  :
    9192521else
    920   echo "$ac_err" >&5
    921   echo "configure: failed program was:" >&5
    922   cat conftest.$ac_ext >&5
    923   rm -rf conftest*
    924   CPP="${CC-cc} -nologo -E"
    925   cat > conftest.$ac_ext <<EOF
    926 #line 927 "configure"
    927 #include "confdefs.h"
    928 #include <assert.h>
    929 Syntax Error
    930 EOF
    931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    934 if test -z "$ac_err"; then
     2522  echo "$as_me: failed program was:" >&5
     2523sed 's/^/| /' conftest.$ac_ext >&5
     2524
     2525  # Broken: fails on valid input.
     2526continue
     2527fi
     2528rm -f conftest.err conftest.$ac_ext
     2529
     2530  # OK, works on sane cases.  Now check whether non-existent headers
     2531  # can be detected and how.
     2532  cat >conftest.$ac_ext <<_ACEOF
     2533/* confdefs.h.  */
     2534_ACEOF
     2535cat confdefs.h >>conftest.$ac_ext
     2536cat >>conftest.$ac_ext <<_ACEOF
     2537/* end confdefs.h.  */
     2538#include <ac_nonexistent.h>
     2539_ACEOF
     2540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2541  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2542  ac_status=$?
     2543  grep -v '^ *+' conftest.er1 >conftest.err
     2544  rm -f conftest.er1
     2545  cat conftest.err >&5
     2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2547  (exit $ac_status); } >/dev/null; then
     2548  if test -s conftest.err; then
     2549    ac_cpp_err=$ac_c_preproc_warn_flag
     2550    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2551  else
     2552    ac_cpp_err=
     2553  fi
     2554else
     2555  ac_cpp_err=yes
     2556fi
     2557if test -z "$ac_cpp_err"; then
     2558  # Broken: success on invalid input.
     2559continue
     2560else
     2561  echo "$as_me: failed program was:" >&5
     2562sed 's/^/| /' conftest.$ac_ext >&5
     2563
     2564  # Passes both tests.
     2565ac_preproc_ok=:
     2566break
     2567fi
     2568rm -f conftest.err conftest.$ac_ext
     2569
     2570done
     2571# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2572rm -f conftest.err conftest.$ac_ext
     2573if $ac_preproc_ok; then
    9352574  :
    9362575else
    937   echo "$ac_err" >&5
    938   echo "configure: failed program was:" >&5
    939   cat conftest.$ac_ext >&5
    940   rm -rf conftest*
    941   CPP=/lib/cpp
    942 fi
    943 rm -f conftest*
    944 fi
    945 rm -f conftest*
    946 fi
    947 rm -f conftest*
    948   ac_cv_prog_CPP="$CPP"
    949 fi
    950   CPP="$ac_cv_prog_CPP"
    951 else
    952   ac_cv_prog_CPP="$CPP"
    953 fi
    954 echo "$ac_t""$CPP" 1>&6
    955 
    956 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    957 do
    958 # Extract the first word of "$ac_prog", so it can be a program name with args.
    959 set dummy $ac_prog; ac_word=$2
    960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    961 echo "configure:962: checking for $ac_word" >&5
    962 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    963   echo $ac_n "(cached) $ac_c" 1>&6
     2576  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     2577See \`config.log' for more details." >&5
     2578echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     2579See \`config.log' for more details." >&2;}
     2580   { (exit 1); exit 1; }; }
     2581fi
     2582
     2583ac_ext=c
     2584ac_cpp='$CPP $CPPFLAGS'
     2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2588
     2589ac_ext=cc
     2590ac_cpp='$CXXCPP $CPPFLAGS'
     2591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2594if test -n "$ac_tool_prefix"; then
     2595  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2596  do
     2597    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2598set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2599echo "$as_me:$LINENO: checking for $ac_word" >&5
     2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2601if test "${ac_cv_prog_CXX+set}" = set; then
     2602  echo $ECHO_N "(cached) $ECHO_C" >&6
    9642603else
    9652604  if test -n "$CXX"; then
    9662605  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    9672606else
    968   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    969   ac_dummy="$PATH"
    970   for ac_dir in $ac_dummy; do
    971     test -z "$ac_dir" && ac_dir=.
    972     if test -f $ac_dir/$ac_word; then
    973       ac_cv_prog_CXX="$ac_prog"
    974       break
    975     fi
     2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2608for as_dir in $PATH
     2609do
     2610  IFS=$as_save_IFS
     2611  test -z "$as_dir" && as_dir=.
     2612  for ac_exec_ext in '' $ac_executable_extensions; do
     2613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2614    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2616    break 2
     2617  fi
     2618done
     2619done
     2620
     2621fi
     2622fi
     2623CXX=$ac_cv_prog_CXX
     2624if test -n "$CXX"; then
     2625  echo "$as_me:$LINENO: result: $CXX" >&5
     2626echo "${ECHO_T}$CXX" >&6
     2627else
     2628  echo "$as_me:$LINENO: result: no" >&5
     2629echo "${ECHO_T}no" >&6
     2630fi
     2631
     2632    test -n "$CXX" && break
    9762633  done
    977   IFS="$ac_save_ifs"
    978 fi
    979 fi
    980 CXX="$ac_cv_prog_CXX"
    981 if test -n "$CXX"; then
    982   echo "$ac_t""$CXX" 1>&6
    983 else
    984   echo "$ac_t""no" 1>&6
    985 fi
    986 
    987 test -n "$CXX" && break
     2634fi
     2635if test -z "$CXX"; then
     2636  ac_ct_CXX=$CXX
     2637  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2638do
     2639  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2640set dummy $ac_prog; ac_word=$2
     2641echo "$as_me:$LINENO: checking for $ac_word" >&5
     2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2643if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2644  echo $ECHO_N "(cached) $ECHO_C" >&6
     2645else
     2646  if test -n "$ac_ct_CXX"; then
     2647  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2648else
     2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2650for as_dir in $PATH
     2651do
     2652  IFS=$as_save_IFS
     2653  test -z "$as_dir" && as_dir=.
     2654  for ac_exec_ext in '' $ac_executable_extensions; do
     2655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2656    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2658    break 2
     2659  fi
    9882660done
    989 test -n "$CXX" || CXX="gcc"
    990 
    991 
    992 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    993 echo "configure:994: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    994 
    995 ac_ext=C
    996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    997 ac_cpp='$CXXCPP $CPPFLAGS'
    998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1000 cross_compiling=$ac_cv_prog_cxx_cross
    1001 
    1002 cat > conftest.$ac_ext << EOF
    1003 
    1004 #line 1005 "configure"
    1005 #include "confdefs.h"
    1006 
    1007 int main(){return(0);}
    1008 EOF
    1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1010   ac_cv_prog_cxx_works=yes
    1011   # If we can't run a trivial program, we are probably using a cross compiler.
    1012   if (./conftest; exit) 2>/dev/null; then
    1013     ac_cv_prog_cxx_cross=no
    1014   else
    1015     ac_cv_prog_cxx_cross=yes
    1016   fi
    1017 else
    1018   echo "configure: failed program was:" >&5
    1019   cat conftest.$ac_ext >&5
    1020   ac_cv_prog_cxx_works=no
    1021 fi
    1022 rm -fr conftest*
    1023 ac_ext=c
    1024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1025 ac_cpp='$CPP $CPPFLAGS'
    1026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1028 cross_compiling=$ac_cv_prog_cc_cross
    1029 
    1030 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    1031 if test $ac_cv_prog_cxx_works = no; then
    1032   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    1033 fi
    1034 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1035 echo "configure:1036: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1036 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    1037 cross_compiling=$ac_cv_prog_cxx_cross
    1038 
    1039 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1040 echo "configure:1041: checking whether we are using GNU C++" >&5
    1041 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    1042   echo $ac_n "(cached) $ac_c" 1>&6
    1043 else
    1044   cat > conftest.C <<EOF
    1045 #ifdef __GNUC__
    1046   yes;
     2661done
     2662
     2663fi
     2664fi
     2665ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2666if test -n "$ac_ct_CXX"; then
     2667  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2668echo "${ECHO_T}$ac_ct_CXX" >&6
     2669else
     2670  echo "$as_me:$LINENO: result: no" >&5
     2671echo "${ECHO_T}no" >&6
     2672fi
     2673
     2674  test -n "$ac_ct_CXX" && break
     2675done
     2676test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     2677
     2678  CXX=$ac_ct_CXX
     2679fi
     2680
     2681
     2682# Provide some information about the compiler.
     2683echo "$as_me:$LINENO:" \
     2684     "checking for C++ compiler version" >&5
     2685ac_compiler=`set X $ac_compile; echo $2`
     2686{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2687  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2688  ac_status=$?
     2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2690  (exit $ac_status); }
     2691{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2692  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2693  ac_status=$?
     2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2695  (exit $ac_status); }
     2696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2697  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2698  ac_status=$?
     2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2700  (exit $ac_status); }
     2701
     2702echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     2703echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     2704if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     2705  echo $ECHO_N "(cached) $ECHO_C" >&6
     2706else
     2707  cat >conftest.$ac_ext <<_ACEOF
     2708/* confdefs.h.  */
     2709_ACEOF
     2710cat confdefs.h >>conftest.$ac_ext
     2711cat >>conftest.$ac_ext <<_ACEOF
     2712/* end confdefs.h.  */
     2713
     2714int
     2715main ()
     2716{
     2717#ifndef __GNUC__
     2718       choke me
    10472719#endif
    1048 EOF
    1049 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1050   ac_cv_prog_gxx=yes
    1051 else
    1052   ac_cv_prog_gxx=no
    1053 fi
    1054 fi
    1055 
    1056 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    1057 
    1058 if test $ac_cv_prog_gxx = yes; then
    1059   GXX=yes
    1060 else
    1061   GXX=
    1062 fi
    1063 
    1064 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    1065 ac_save_CXXFLAGS="$CXXFLAGS"
    1066 CXXFLAGS=
    1067 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1068 echo "configure:1069: checking whether ${CXX-g++} accepts -g" >&5
    1069 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    1070   echo $ac_n "(cached) $ac_c" 1>&6
    1071 else
    1072   echo 'void f(){}' > conftest.cc
    1073 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     2720
     2721  ;
     2722  return 0;
     2723}
     2724_ACEOF
     2725rm -f conftest.$ac_objext
     2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2727  (eval $ac_compile) 2>conftest.er1
     2728  ac_status=$?
     2729  grep -v '^ *+' conftest.er1 >conftest.err
     2730  rm -f conftest.er1
     2731  cat conftest.err >&5
     2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2733  (exit $ac_status); } &&
     2734         { ac_try='test -z "$ac_cxx_werror_flag"
     2735                         || test ! -s conftest.err'
     2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2737  (eval $ac_try) 2>&5
     2738  ac_status=$?
     2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2740  (exit $ac_status); }; } &&
     2741         { ac_try='test -s conftest.$ac_objext'
     2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2743  (eval $ac_try) 2>&5
     2744  ac_status=$?
     2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2746  (exit $ac_status); }; }; then
     2747  ac_compiler_gnu=yes
     2748else
     2749  echo "$as_me: failed program was:" >&5
     2750sed 's/^/| /' conftest.$ac_ext >&5
     2751
     2752ac_compiler_gnu=no
     2753fi
     2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2755ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     2756
     2757fi
     2758echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     2759echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     2760GXX=`test $ac_compiler_gnu = yes && echo yes`
     2761ac_test_CXXFLAGS=${CXXFLAGS+set}
     2762ac_save_CXXFLAGS=$CXXFLAGS
     2763CXXFLAGS="-g"
     2764echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     2765echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     2766if test "${ac_cv_prog_cxx_g+set}" = set; then
     2767  echo $ECHO_N "(cached) $ECHO_C" >&6
     2768else
     2769  cat >conftest.$ac_ext <<_ACEOF
     2770/* confdefs.h.  */
     2771_ACEOF
     2772cat confdefs.h >>conftest.$ac_ext
     2773cat >>conftest.$ac_ext <<_ACEOF
     2774/* end confdefs.h.  */
     2775
     2776int
     2777main ()
     2778{
     2779
     2780  ;
     2781  return 0;
     2782}
     2783_ACEOF
     2784rm -f conftest.$ac_objext
     2785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2786  (eval $ac_compile) 2>conftest.er1
     2787  ac_status=$?
     2788  grep -v '^ *+' conftest.er1 >conftest.err
     2789  rm -f conftest.er1
     2790  cat conftest.err >&5
     2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2792  (exit $ac_status); } &&
     2793         { ac_try='test -z "$ac_cxx_werror_flag"
     2794                         || test ! -s conftest.err'
     2795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2796  (eval $ac_try) 2>&5
     2797  ac_status=$?
     2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2799  (exit $ac_status); }; } &&
     2800         { ac_try='test -s conftest.$ac_objext'
     2801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2802  (eval $ac_try) 2>&5
     2803  ac_status=$?
     2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2805  (exit $ac_status); }; }; then
    10742806  ac_cv_prog_cxx_g=yes
    10752807else
    1076   ac_cv_prog_cxx_g=no
    1077 fi
    1078 rm -f conftest*
    1079 
    1080 fi
    1081 
    1082 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     2808  echo "$as_me: failed program was:" >&5
     2809sed 's/^/| /' conftest.$ac_ext >&5
     2810
     2811ac_cv_prog_cxx_g=no
     2812fi
     2813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2814fi
     2815echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2816echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    10832817if test "$ac_test_CXXFLAGS" = set; then
    1084   CXXFLAGS="$ac_save_CXXFLAGS"
     2818  CXXFLAGS=$ac_save_CXXFLAGS
    10852819elif test $ac_cv_prog_cxx_g = yes; then
    10862820  if test "$GXX" = yes; then
     
    10962830  fi
    10972831fi
     2832for ac_declaration in \
     2833   '' \
     2834   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2835   'extern "C" void std::exit (int); using std::exit;' \
     2836   'extern "C" void exit (int) throw ();' \
     2837   'extern "C" void exit (int);' \
     2838   'void exit (int);'
     2839do
     2840  cat >conftest.$ac_ext <<_ACEOF
     2841/* confdefs.h.  */
     2842_ACEOF
     2843cat confdefs.h >>conftest.$ac_ext
     2844cat >>conftest.$ac_ext <<_ACEOF
     2845/* end confdefs.h.  */
     2846$ac_declaration
     2847#include <stdlib.h>
     2848int
     2849main ()
     2850{
     2851exit (42);
     2852  ;
     2853  return 0;
     2854}
     2855_ACEOF
     2856rm -f conftest.$ac_objext
     2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2858  (eval $ac_compile) 2>conftest.er1
     2859  ac_status=$?
     2860  grep -v '^ *+' conftest.er1 >conftest.err
     2861  rm -f conftest.er1
     2862  cat conftest.err >&5
     2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2864  (exit $ac_status); } &&
     2865         { ac_try='test -z "$ac_cxx_werror_flag"
     2866                         || test ! -s conftest.err'
     2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2868  (eval $ac_try) 2>&5
     2869  ac_status=$?
     2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2871  (exit $ac_status); }; } &&
     2872         { ac_try='test -s conftest.$ac_objext'
     2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2874  (eval $ac_try) 2>&5
     2875  ac_status=$?
     2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2877  (exit $ac_status); }; }; then
     2878  :
     2879else
     2880  echo "$as_me: failed program was:" >&5
     2881sed 's/^/| /' conftest.$ac_ext >&5
     2882
     2883continue
     2884fi
     2885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2886  cat >conftest.$ac_ext <<_ACEOF
     2887/* confdefs.h.  */
     2888_ACEOF
     2889cat confdefs.h >>conftest.$ac_ext
     2890cat >>conftest.$ac_ext <<_ACEOF
     2891/* end confdefs.h.  */
     2892$ac_declaration
     2893int
     2894main ()
     2895{
     2896exit (42);
     2897  ;
     2898  return 0;
     2899}
     2900_ACEOF
     2901rm -f conftest.$ac_objext
     2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2903  (eval $ac_compile) 2>conftest.er1
     2904  ac_status=$?
     2905  grep -v '^ *+' conftest.er1 >conftest.err
     2906  rm -f conftest.er1
     2907  cat conftest.err >&5
     2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2909  (exit $ac_status); } &&
     2910         { ac_try='test -z "$ac_cxx_werror_flag"
     2911                         || test ! -s conftest.err'
     2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2913  (eval $ac_try) 2>&5
     2914  ac_status=$?
     2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2916  (exit $ac_status); }; } &&
     2917         { ac_try='test -s conftest.$ac_objext'
     2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2919  (eval $ac_try) 2>&5
     2920  ac_status=$?
     2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2922  (exit $ac_status); }; }; then
     2923  break
     2924else
     2925  echo "$as_me: failed program was:" >&5
     2926sed 's/^/| /' conftest.$ac_ext >&5
     2927
     2928fi
     2929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2930done
     2931rm -f conftest*
     2932if test -n "$ac_declaration"; then
     2933  echo '#ifdef __cplusplus' >>confdefs.h
     2934  echo $ac_declaration      >>confdefs.h
     2935  echo '#endif'             >>confdefs.h
     2936fi
     2937
     2938ac_ext=c
     2939ac_cpp='$CPP $CPPFLAGS'
     2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
    10982943
    10992944ac_aux_dir=
     
    11072952    ac_install_sh="$ac_aux_dir/install.sh -c"
    11082953    break
     2954  elif test -f $ac_dir/shtool; then
     2955    ac_aux_dir=$ac_dir
     2956    ac_install_sh="$ac_aux_dir/shtool install -c"
     2957    break
    11092958  fi
    11102959done
    11112960if test -z "$ac_aux_dir"; then
    1112   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1113 fi
    1114 ac_config_guess=$ac_aux_dir/config.guess
    1115 ac_config_sub=$ac_aux_dir/config.sub
    1116 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2961  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2962echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2963   { (exit 1); exit 1; }; }
     2964fi
     2965ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2966ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2967ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    11172968
    11182969# Find a good install program.  We prefer a C program (faster),
     
    11232974# IRIX /sbin/install
    11242975# AIX /bin/install
     2976# AmigaOS /C/install, which installs bootblocks on floppy discs
    11252977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    11262978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    11272979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2980# OS/2's system install, which has a completely different semantic
    11282981# ./install, which can be erroneously created by make from ./install.sh.
    1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1130 echo "configure:1131: checking for a BSD compatible install" >&5
     2982echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    11312984if test -z "$INSTALL"; then
    1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1133   echo $ac_n "(cached) $ac_c" 1>&6
    1134 else
    1135     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    1136   for ac_dir in $PATH; do
    1137     # Account for people who put trailing slashes in PATH elements.
    1138     case "$ac_dir/" in
    1139     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1140     *)
    1141       # OSF1 and SCO ODT 3.0 have their own names for install.
    1142       # Don't use installbsd from OSF since it installs stuff as root
    1143       # by default.
    1144       for ac_prog in ginstall scoinst install; do
    1145         if test -f $ac_dir/$ac_prog; then
     2985if test "${ac_cv_path_install+set}" = set; then
     2986  echo $ECHO_N "(cached) $ECHO_C" >&6
     2987else
     2988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2989for as_dir in $PATH
     2990do
     2991  IFS=$as_save_IFS
     2992  test -z "$as_dir" && as_dir=.
     2993  # Account for people who put trailing slashes in PATH elements.
     2994case $as_dir/ in
     2995  ./ | .// | /cC/* | \
     2996  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2997  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2998  /usr/ucb/* ) ;;
     2999  *)
     3000    # OSF1 and SCO ODT 3.0 have their own names for install.
     3001    # Don't use installbsd from OSF since it installs stuff as root
     3002    # by default.
     3003    for ac_prog in ginstall scoinst install; do
     3004      for ac_exec_ext in '' $ac_executable_extensions; do
     3005        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    11463006          if test $ac_prog = install &&
    1147             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     3007            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    11483008            # AIX install.  It has an incompatible calling convention.
    11493009            :
     3010          elif test $ac_prog = install &&
     3011            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3012            # program-specific install script used by HP pwplus--don't use.
     3013            :
    11503014          else
    1151             ac_cv_path_install="$ac_dir/$ac_prog -c"
    1152             break 2
     3015            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3016            break 3
    11533017          fi
    11543018        fi
    11553019      done
    1156       ;;
    1157     esac
    1158   done
    1159   IFS="$ac_save_IFS"
     3020    done
     3021    ;;
     3022esac
     3023done
     3024
    11603025
    11613026fi
    11623027  if test "${ac_cv_path_install+set}" = set; then
    1163     INSTALL="$ac_cv_path_install"
     3028    INSTALL=$ac_cv_path_install
    11643029  else
    11653030    # As a last resort, use the slow shell script.  We don't cache a
     
    11673032    # break other packages using the cache if that directory is
    11683033    # removed, or if the path is relative.
    1169     INSTALL="$ac_install_sh"
     3034    INSTALL=$ac_install_sh
    11703035  fi
    11713036fi
    1172 echo "$ac_t""$INSTALL" 1>&6
     3037echo "$as_me:$LINENO: result: $INSTALL" >&5
     3038echo "${ECHO_T}$INSTALL" >&6
    11733039
    11743040# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    11763042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    11773043
    1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     3044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    11793045
    11803046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    11813047
    1182 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1183 echo "configure:1184: checking for AIX" >&5
    1184 cat > conftest.$ac_ext <<EOF
    1185 #line 1186 "configure"
    1186 #include "confdefs.h"
     3048
     3049
     3050echo "$as_me:$LINENO: checking for egrep" >&5
     3051echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3052if test "${ac_cv_prog_egrep+set}" = set; then
     3053  echo $ECHO_N "(cached) $ECHO_C" >&6
     3054else
     3055  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3056    then ac_cv_prog_egrep='grep -E'
     3057    else ac_cv_prog_egrep='egrep'
     3058    fi
     3059fi
     3060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3062 EGREP=$ac_cv_prog_egrep
     3063
     3064
     3065
     3066echo "$as_me:$LINENO: checking for AIX" >&5
     3067echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3068cat >conftest.$ac_ext <<_ACEOF
     3069/* confdefs.h.  */
     3070_ACEOF
     3071cat confdefs.h >>conftest.$ac_ext
     3072cat >>conftest.$ac_ext <<_ACEOF
     3073/* end confdefs.h.  */
    11873074#ifdef _AIX
    11883075  yes
    11893076#endif
    11903077
    1191 EOF
     3078_ACEOF
    11923079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1193   egrep "yes" >/dev/null 2>&1; then
    1194   rm -rf conftest*
    1195   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3080  $EGREP "yes" >/dev/null 2>&1; then
     3081  echo "$as_me:$LINENO: result: yes" >&5
     3082echo "${ECHO_T}yes" >&6
     3083cat >>confdefs.h <<\_ACEOF
    11963084#define _ALL_SOURCE 1
    1197 EOF
    1198 
    1199 else
    1200   rm -rf conftest*
    1201   echo "$ac_t""no" 1>&6
     3085_ACEOF
     3086
     3087else
     3088  echo "$as_me:$LINENO: result: no" >&5
     3089echo "${ECHO_T}no" >&6
    12023090fi
    12033091rm -f conftest*
     
    12083096#                       gcc3:        CC=gcc  CXX=g++
    12093097#                       other:       CC=cc   CXX=c++
    1210 echo $ac_n "checking gcc version""... $ac_c" 1>&6
    1211 echo "configure:1212: checking gcc version" >&5
    1212 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then
    1213   echo $ac_n "(cached) $ac_c" 1>&6
     3098echo "$as_me:$LINENO: checking gcc version" >&5
     3099echo $ECHO_N "checking gcc version... $ECHO_C" >&6
     3100if test "${ac_cv_c_cpp+set}" = set; then
     3101  echo $ECHO_N "(cached) $ECHO_C" >&6
    12143102else
    12153103  ac_cv_c_cp="unknown"
     
    12203108fi
    12213109
    1222 echo "$ac_t""$ac_cv_c_cpp" 1>&6
     3110echo "$as_me:$LINENO: result: $ac_cv_c_cpp" >&5
     3111echo "${ECHO_T}$ac_cv_c_cpp" >&6
    12233112
    12243113# we prefer using gcc for compiling C++ files, provided the user did
     
    12313120  fi
    12323121  temp_cflags=${CXXFLAGS}
    1233  
    1234   ac_ext=C
    1235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     3122
     3123
     3124  ac_ext=cc
    12363125ac_cpp='$CXXCPP $CPPFLAGS'
    1237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1239 cross_compiling=$ac_cv_prog_cxx_cross
     3126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    12403129
    12413130  # check whether gcc accepts --no-rtti
    1242   echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1243 echo "configure:1244: checking whether gcc accepts --no-rtti" >&5
     3131  echo "$as_me:$LINENO: checking whether gcc accepts --no-rtti" >&5
     3132echo $ECHO_N "checking whether gcc accepts --no-rtti... $ECHO_C" >&6
    12443133  CXXFLAGS="${CXXFLAGS} --no-rtti"
    1245   if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
    1246   echo $ac_n "(cached) $ac_c" 1>&6
    1247 else
    1248   cat > conftest.$ac_ext <<EOF
    1249 #line 1250 "configure"
    1250 #include "confdefs.h"
    1251 
    1252 int main() {
    1253 
    1254 ; return 0; }
    1255 EOF
    1256 if { (eval echo configure:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1257   rm -rf conftest*
     3134  if test "${ac_cv_cxx_have_rtti+set}" = set; then
     3135  echo $ECHO_N "(cached) $ECHO_C" >&6
     3136else
     3137
     3138cat >conftest.$ac_ext <<_ACEOF
     3139/* confdefs.h.  */
     3140_ACEOF
     3141cat confdefs.h >>conftest.$ac_ext
     3142cat >>conftest.$ac_ext <<_ACEOF
     3143/* end confdefs.h.  */
     3144
     3145int
     3146main ()
     3147{
     3148
     3149  ;
     3150  return 0;
     3151}
     3152_ACEOF
     3153rm -f conftest.$ac_objext
     3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3155  (eval $ac_compile) 2>conftest.er1
     3156  ac_status=$?
     3157  grep -v '^ *+' conftest.er1 >conftest.err
     3158  rm -f conftest.er1
     3159  cat conftest.err >&5
     3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3161  (exit $ac_status); } &&
     3162         { ac_try='test -z "$ac_cxx_werror_flag"
     3163                         || test ! -s conftest.err'
     3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3165  (eval $ac_try) 2>&5
     3166  ac_status=$?
     3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3168  (exit $ac_status); }; } &&
     3169         { ac_try='test -s conftest.$ac_objext'
     3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3171  (eval $ac_try) 2>&5
     3172  ac_status=$?
     3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3174  (exit $ac_status); }; }; then
    12583175  ac_cv_cxx_have_rtti=yes
    12593176else
    1260   echo "configure: failed program was:" >&5
    1261   cat conftest.$ac_ext >&5
    1262   rm -rf conftest*
    1263   ac_cv_cxx_have_rtti=no
    1264 fi
    1265 rm -f conftest*
    1266  
    1267 fi
    1268 
    1269   echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
     3177  echo "$as_me: failed program was:" >&5
     3178sed 's/^/| /' conftest.$ac_ext >&5
     3179
     3180ac_cv_cxx_have_rtti=no
     3181fi
     3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3183
     3184fi
     3185
     3186  echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5
     3187echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6
    12703188  if test "${ac_cv_cxx_have_rtti}" != yes; then
    12713189  CXXFLAGS=$temp_flags
     
    12753193
    12763194# check whether gcc accepts --no-exceptions
    1277   echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1278 echo "configure:1279: checking whether gcc accepts --no-exceptions" >&5
     3195  echo "$as_me:$LINENO: checking whether gcc accepts --no-exceptions" >&5
     3196echo $ECHO_N "checking whether gcc accepts --no-exceptions... $ECHO_C" >&6
    12793197  CXXFLAGS="${CXXFLAGS} --no-exceptions"
    1280   if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
    1281   echo $ac_n "(cached) $ac_c" 1>&6
    1282 else
    1283   cat > conftest.$ac_ext <<EOF
    1284 #line 1285 "configure"
    1285 #include "confdefs.h"
    1286 
    1287 int main() {
    1288 
    1289 ; return 0; }
    1290 EOF
    1291 if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1292   rm -rf conftest*
     3198  if test "${ac_cv_cxx_have_exceptions+set}" = set; then
     3199  echo $ECHO_N "(cached) $ECHO_C" >&6
     3200else
     3201  cat >conftest.$ac_ext <<_ACEOF
     3202/* confdefs.h.  */
     3203_ACEOF
     3204cat confdefs.h >>conftest.$ac_ext
     3205cat >>conftest.$ac_ext <<_ACEOF
     3206/* end confdefs.h.  */
     3207
     3208int
     3209main ()
     3210{
     3211
     3212  ;
     3213  return 0;
     3214}
     3215_ACEOF
     3216rm -f conftest.$ac_objext conftest$ac_exeext
     3217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3218  (eval $ac_link) 2>conftest.er1
     3219  ac_status=$?
     3220  grep -v '^ *+' conftest.er1 >conftest.err
     3221  rm -f conftest.er1
     3222  cat conftest.err >&5
     3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3224  (exit $ac_status); } &&
     3225         { ac_try='test -z "$ac_cxx_werror_flag"
     3226                         || test ! -s conftest.err'
     3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3228  (eval $ac_try) 2>&5
     3229  ac_status=$?
     3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3231  (exit $ac_status); }; } &&
     3232         { ac_try='test -s conftest$ac_exeext'
     3233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3234  (eval $ac_try) 2>&5
     3235  ac_status=$?
     3236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3237  (exit $ac_status); }; }; then
    12933238  ac_cv_cxx_have_exceptions=yes
    12943239else
    1295   echo "configure: failed program was:" >&5
    1296   cat conftest.$ac_ext >&5
    1297   rm -rf conftest*
    1298   ac_cv_cxx_have_exceptions=no
    1299 fi
    1300 rm -f conftest*
    1301  
    1302 fi
    1303 
    1304   echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
     3240  echo "$as_me: failed program was:" >&5
     3241sed 's/^/| /' conftest.$ac_ext >&5
     3242
     3243ac_cv_cxx_have_exceptions=no
     3244fi
     3245rm -f conftest.err conftest.$ac_objext \
     3246      conftest$ac_exeext conftest.$ac_ext
     3247
     3248fi
     3249
     3250  echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5
     3251echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6
    13053252  if test "${ac_cv_cxx_have_exceptions}" != yes; then
    13063253  CXXFLAGS=$temp_flags
     
    13103257
    13113258  ac_ext=c
    1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    13133259ac_cpp='$CPP $CPPFLAGS'
    1314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1316 cross_compiling=$ac_cv_prog_cc_cross
     3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
    13173263
    13183264  CXXFLAGS=$temp_flags
     
    13213267
    13223268# check whether the compiler accepts -pipe
    1323 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1324 echo "configure:1325: checking whether compiler accepts -pipe" >&5
     3269echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&5
     3270echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&6
    13253271temp_cflags=${CFLAGS}
    13263272CFLAGS="${CFLAGS} -pipe"
    1327 if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
    1328   echo $ac_n "(cached) $ac_c" 1>&6
    1329 else
    1330   cat > conftest.$ac_ext <<EOF
    1331 #line 1332 "configure"
    1332 #include "confdefs.h"
    1333 
    1334 int main() {
    1335 
    1336 ; return 0; }
    1337 EOF
    1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1339   rm -rf conftest*
     3273if test "${ac_cv_cxx_have_pipe+set}" = set; then
     3274  echo $ECHO_N "(cached) $ECHO_C" >&6
     3275else
     3276  cat >conftest.$ac_ext <<_ACEOF
     3277/* confdefs.h.  */
     3278_ACEOF
     3279cat confdefs.h >>conftest.$ac_ext
     3280cat >>conftest.$ac_ext <<_ACEOF
     3281/* end confdefs.h.  */
     3282
     3283int
     3284main ()
     3285{
     3286
     3287  ;
     3288  return 0;
     3289}
     3290_ACEOF
     3291rm -f conftest.$ac_objext
     3292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3293  (eval $ac_compile) 2>conftest.er1
     3294  ac_status=$?
     3295  grep -v '^ *+' conftest.er1 >conftest.err
     3296  rm -f conftest.er1
     3297  cat conftest.err >&5
     3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3299  (exit $ac_status); } &&
     3300         { ac_try='test -z "$ac_c_werror_flag"
     3301                         || test ! -s conftest.err'
     3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3303  (eval $ac_try) 2>&5
     3304  ac_status=$?
     3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3306  (exit $ac_status); }; } &&
     3307         { ac_try='test -s conftest.$ac_objext'
     3308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3309  (eval $ac_try) 2>&5
     3310  ac_status=$?
     3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3312  (exit $ac_status); }; }; then
    13403313  ac_cv_cxx_have_pipe=yes
    13413314else
    1342   echo "configure: failed program was:" >&5
    1343   cat conftest.$ac_ext >&5
    1344   rm -rf conftest*
    1345   ac_cv_cxx_have_pipe=no
    1346 fi
    1347 rm -f conftest*
    1348 
    1349 fi
    1350 
    1351 echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
     3315  echo "$as_me: failed program was:" >&5
     3316sed 's/^/| /' conftest.$ac_ext >&5
     3317
     3318ac_cv_cxx_have_pipe=no
     3319fi
     3320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3321
     3322fi
     3323
     3324echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5
     3325echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6
    13523326CFLAGS=${temp_cflags}
    13533327if test "${ac_cv_cxx_have_pipe}" != yes; then
     
    13593333
    13603334# Customize CFLAGS
    1361 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1362 echo "configure:1363: checking whether _AIX is defined" >&5
    1363 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    1364   echo $ac_n "(cached) $ac_c" 1>&6
    1365 else
    1366   cat > conftest.$ac_ext <<EOF
    1367 #line 1368 "configure"
    1368 #include "confdefs.h"
     3335echo "$as_me:$LINENO: checking whether _AIX is defined" >&5
     3336echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6
     3337if test "${ac_cv_is_aix+set}" = set; then
     3338  echo $ECHO_N "(cached) $ECHO_C" >&6
     3339else
     3340  cat >conftest.$ac_ext <<_ACEOF
     3341/* confdefs.h.  */
     3342_ACEOF
     3343cat confdefs.h >>conftest.$ac_ext
     3344cat >>conftest.$ac_ext <<_ACEOF
     3345/* end confdefs.h.  */
    13693346#ifdef _AIX
    13703347    yes
    13713348#endif
    13723349
    1373 EOF
     3350_ACEOF
    13743351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1375   egrep "yes" >/dev/null 2>&1; then
    1376   rm -rf conftest*
     3352  $EGREP "yes" >/dev/null 2>&1; then
    13773353  ac_cv_is_aix=yes
    13783354else
    1379   rm -rf conftest*
    13803355  ac_cv_is_aix=no
    13813356fi
     
    13853360
    13863361if test "$ac_cv_is_aix" = yes; then
    1387   echo "$ac_t""yes" 1>&6
    1388 else
    1389   echo "$ac_t""no" 1>&6
     3362  echo "$as_me:$LINENO: result: yes" >&5
     3363echo "${ECHO_T}yes" >&6
     3364else
     3365  echo "$as_me:$LINENO: result: no" >&5
     3366echo "${ECHO_T}no" >&6
    13903367fi
    13913368
     
    14153392fi
    14163393
    1417 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1418 echo "configure:1419: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1419 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1420 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1421   echo $ac_n "(cached) $ac_c" 1>&6
    1422 else
    1423   cat > conftestmake <<\EOF
     3394echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3395echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     3396set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     3397if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     3398  echo $ECHO_N "(cached) $ECHO_C" >&6
     3399else
     3400  cat >conftest.make <<\_ACEOF
    14243401all:
    1425         @echo 'ac_maketemp="${MAKE}"'
    1426 EOF
     3402        @echo 'ac_maketemp="$(MAKE)"'
     3403_ACEOF
    14273404# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1428 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     3405eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    14293406if test -n "$ac_maketemp"; then
    14303407  eval ac_cv_prog_make_${ac_make}_set=yes
     
    14323409  eval ac_cv_prog_make_${ac_make}_set=no
    14333410fi
    1434 rm -f conftestmake
     3411rm -f conftest.make
    14353412fi
    14363413if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1437   echo "$ac_t""yes" 1>&6
     3414  echo "$as_me:$LINENO: result: yes" >&5
     3415echo "${ECHO_T}yes" >&6
    14383416  SET_MAKE=
    14393417else
    1440   echo "$ac_t""no" 1>&6
     3418  echo "$as_me:$LINENO: result: no" >&5
     3419echo "${ECHO_T}no" >&6
    14413420  SET_MAKE="MAKE=${MAKE-make}"
    14423421fi
     
    14493428test "x$prefix" = xNONE && prefix=$ac_default_prefix
    14503429if test "${with_rootdir+set}" != set; then
    1451   cat >> confdefs.h <<EOF
     3430  cat >>confdefs.h <<_ACEOF
    14523431#define S_ROOT_DIR "${prefix}"
    1453 EOF
    1454 
    1455 else
    1456   cat >> confdefs.h <<EOF
     3432_ACEOF
     3433
     3434else
     3435  cat >>confdefs.h <<_ACEOF
    14573436#define S_ROOT_DIR "${with_rootdir}"
    1458 EOF
     3437_ACEOF
    14593438
    14603439fi
     
    14693448SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
    14703449
    1471 cat >> confdefs.h <<EOF
     3450cat >>confdefs.h <<_ACEOF
    14723451#define S_BIN_DIR "${bindir}"
    1473 EOF
     3452_ACEOF
    14743453
    14753454
     
    14983477# lex
    14993478if test "${with_lex+set}" != set; then
    1500   echo $ac_n "checking for flex""... $ac_c" 1>&6
    1501 echo "configure:1502: checking for flex" >&5
     3479  echo "$as_me:$LINENO: checking for flex" >&5
     3480echo $ECHO_N "checking for flex... $ECHO_C" >&6
    15023481    cmd="egrep [2-9]\.[5-9]"
    1503     if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    1504   echo $ac_n "(cached) $ac_c" 1>&6
     3482    if test "${ac_cv_prog_flex+set}" = set; then
     3483  echo $ECHO_N "(cached) $ECHO_C" >&6
    15053484else
    15063485  if (flex --version >/dev/null 2>&1)
     
    15113490    fi
    15123491  fi
    1513  
     3492
    15143493fi
    15153494
    15163495    if test "${ac_cv_prog_flex+set}" = set; then
    1517     echo "$ac_t""flex" 1>&6
     3496    echo "$as_me:$LINENO: result: flex" >&5
     3497echo "${ECHO_T}flex" >&6
    15183498    LEX=flex
    1519    
     3499
    15203500  else
    1521     { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; }
     3501    { { echo "$as_me:$LINENO: error: can not find flex with version greater 2.4" >&5
     3502echo "$as_me: error: can not find flex with version greater 2.4" >&2;}
     3503   { (exit 1); exit 1; }; }
    15223504  fi
    15233505elif test "${with_lex}" = no; then
    1524   echo "configure: warning: building without lex -- make might fail" 1>&2
     3506  { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
     3507echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
    15253508else
    15263509  unset LEX
     
    15283511  for ac_prog in ${with_lex}
    15293512do
    1530 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3513  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15313514set dummy $ac_prog; ac_word=$2
    1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1533 echo "configure:1534: checking for $ac_word" >&5
    1534 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    1535   echo $ac_n "(cached) $ac_c" 1>&6
     3515echo "$as_me:$LINENO: checking for $ac_word" >&5
     3516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3517if test "${ac_cv_prog_LEX+set}" = set; then
     3518  echo $ECHO_N "(cached) $ECHO_C" >&6
    15363519else
    15373520  if test -n "$LEX"; then
    15383521  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    15393522else
    1540   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1541   ac_dummy="$PATH"
    1542   for ac_dir in $ac_dummy; do
    1543     test -z "$ac_dir" && ac_dir=.
    1544     if test -f $ac_dir/$ac_word; then
    1545       ac_cv_prog_LEX="$ac_prog"
    1546       break
    1547     fi
    1548   done
    1549   IFS="$ac_save_ifs"
    1550 fi
    1551 fi
    1552 LEX="$ac_cv_prog_LEX"
     3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3524for as_dir in $PATH
     3525do
     3526  IFS=$as_save_IFS
     3527  test -z "$as_dir" && as_dir=.
     3528  for ac_exec_ext in '' $ac_executable_extensions; do
     3529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3530    ac_cv_prog_LEX="$ac_prog"
     3531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3532    break 2
     3533  fi
     3534done
     3535done
     3536
     3537fi
     3538fi
     3539LEX=$ac_cv_prog_LEX
    15533540if test -n "$LEX"; then
    1554   echo "$ac_t""$LEX" 1>&6
    1555 else
    1556   echo "$ac_t""no" 1>&6
    1557 fi
    1558 
    1559 test -n "$LEX" && break
     3541  echo "$as_me:$LINENO: result: $LEX" >&5
     3542echo "${ECHO_T}$LEX" >&6
     3543else
     3544  echo "$as_me:$LINENO: result: no" >&5
     3545echo "${ECHO_T}no" >&6
     3546fi
     3547
     3548  test -n "$LEX" && break
    15603549done
    15613550
    15623551  if test "x${LEX}" = x; then
    1563     echo "configure: warning: building without lex -- make might fail" 1>&2
     3552    { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
     3553echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
    15643554  fi
    15653555fi
     
    15683558for ac_prog in bison
    15693559do
    1570 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3560  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15713561set dummy $ac_prog; ac_word=$2
    1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1573 echo "configure:1574: checking for $ac_word" >&5
    1574 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    1575   echo $ac_n "(cached) $ac_c" 1>&6
     3562echo "$as_me:$LINENO: checking for $ac_word" >&5
     3563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3564if test "${ac_cv_prog_BISON+set}" = set; then
     3565  echo $ECHO_N "(cached) $ECHO_C" >&6
    15763566else
    15773567  if test -n "$BISON"; then
    15783568  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    15793569else
    1580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1581   ac_dummy="$PATH"
    1582   for ac_dir in $ac_dummy; do
    1583     test -z "$ac_dir" && ac_dir=.
    1584     if test -f $ac_dir/$ac_word; then
    1585       ac_cv_prog_BISON="$ac_prog"
    1586       break
    1587     fi
    1588   done
    1589   IFS="$ac_save_ifs"
    1590 fi
    1591 fi
    1592 BISON="$ac_cv_prog_BISON"
     3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3571for as_dir in $PATH
     3572do
     3573  IFS=$as_save_IFS
     3574  test -z "$as_dir" && as_dir=.
     3575  for ac_exec_ext in '' $ac_executable_extensions; do
     3576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3577    ac_cv_prog_BISON="$ac_prog"
     3578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3579    break 2
     3580  fi
     3581done
     3582done
     3583
     3584fi
     3585fi
     3586BISON=$ac_cv_prog_BISON
    15933587if test -n "$BISON"; then
    1594   echo "$ac_t""$BISON" 1>&6
    1595 else
    1596   echo "$ac_t""no" 1>&6
    1597 fi
    1598 
    1599 test -n "$BISON" && break
     3588  echo "$as_me:$LINENO: result: $BISON" >&5
     3589echo "${ECHO_T}$BISON" >&6
     3590else
     3591  echo "$as_me:$LINENO: result: no" >&5
     3592echo "${ECHO_T}no" >&6
     3593fi
     3594
     3595  test -n "$BISON" && break
    16003596done
    16013597
    16023598if test "${BISON+set}" != set; then
    1603   echo "configure: warning: did not find bison -- make might fail" 1>&2
     3599  { echo "$as_me:$LINENO: WARNING: did not find bison -- make might fail" >&5
     3600echo "$as_me: WARNING: did not find bison -- make might fail" >&2;}
    16043601fi
    16053602
    16063603# ln -s
    1607 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1608 echo "configure:1609: checking whether ln -s works" >&5
    1609 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1610   echo $ac_n "(cached) $ac_c" 1>&6
    1611 else
    1612   rm -f conftestdata
    1613 if ln -s X conftestdata 2>/dev/null
    1614 then
    1615   rm -f conftestdata
    1616   ac_cv_prog_LN_S="ln -s"
    1617 else
    1618   ac_cv_prog_LN_S=ln
    1619 fi
    1620 fi
    1621 LN_S="$ac_cv_prog_LN_S"
    1622 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1623   echo "$ac_t""yes" 1>&6
    1624 else
    1625   echo "$ac_t""no" 1>&6
     3604echo "$as_me:$LINENO: checking whether ln -s works" >&5
     3605echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     3606LN_S=$as_ln_s
     3607if test "$LN_S" = "ln -s"; then
     3608  echo "$as_me:$LINENO: result: yes" >&5
     3609echo "${ECHO_T}yes" >&6
     3610else
     3611  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     3612echo "${ECHO_T}no, using $LN_S" >&6
    16263613fi
    16273614
     
    16293616for ac_prog in perl5 perl
    16303617do
    1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3618  # Extract the first word of "$ac_prog", so it can be a program name with args.
    16323619set dummy $ac_prog; ac_word=$2
    1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1634 echo "configure:1635: checking for $ac_word" >&5
    1635 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    1636   echo $ac_n "(cached) $ac_c" 1>&6
     3620echo "$as_me:$LINENO: checking for $ac_word" >&5
     3621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3622if test "${ac_cv_prog_PERL+set}" = set; then
     3623  echo $ECHO_N "(cached) $ECHO_C" >&6
    16373624else
    16383625  if test -n "$PERL"; then
    16393626  ac_cv_prog_PERL="$PERL" # Let the user override the test.
    16403627else
    1641   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1642   ac_dummy="$PATH"
    1643   for ac_dir in $ac_dummy; do
    1644     test -z "$ac_dir" && ac_dir=.
    1645     if test -f $ac_dir/$ac_word; then
    1646       ac_cv_prog_PERL="$ac_prog"
    1647       break
    1648     fi
    1649   done
    1650   IFS="$ac_save_ifs"
    1651 fi
    1652 fi
    1653 PERL="$ac_cv_prog_PERL"
     3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3629for as_dir in $PATH
     3630do
     3631  IFS=$as_save_IFS
     3632  test -z "$as_dir" && as_dir=.
     3633  for ac_exec_ext in '' $ac_executable_extensions; do
     3634  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3635    ac_cv_prog_PERL="$ac_prog"
     3636    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3637    break 2
     3638  fi
     3639done
     3640done
     3641
     3642fi
     3643fi
     3644PERL=$ac_cv_prog_PERL
    16543645if test -n "$PERL"; then
    1655   echo "$ac_t""$PERL" 1>&6
    1656 else
    1657   echo "$ac_t""no" 1>&6
    1658 fi
    1659 
    1660 test -n "$PERL" && break
     3646  echo "$as_me:$LINENO: result: $PERL" >&5
     3647echo "${ECHO_T}$PERL" >&6
     3648else
     3649  echo "$as_me:$LINENO: result: no" >&5
     3650echo "${ECHO_T}no" >&6
     3651fi
     3652
     3653  test -n "$PERL" && break
    16613654done
    16623655
     
    16663659# it really is the last thing to link with
    16673660if test "$ac_cv_singuname" != ix86-Win; then
    1668 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1669 echo "configure:1670: checking for atof in -lm" >&5
    1670 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    1671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1672   echo $ac_n "(cached) $ac_c" 1>&6
    1673 else
    1674   ac_save_LIBS="$LIBS"
     3661
     3662echo "$as_me:$LINENO: checking for atof in -lm" >&5
     3663echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6
     3664if test "${ac_cv_lib_m_atof+set}" = set; then
     3665  echo $ECHO_N "(cached) $ECHO_C" >&6
     3666else
     3667  ac_check_lib_save_LIBS=$LIBS
    16753668LIBS="-lm  $LIBS"
    1676 cat > conftest.$ac_ext <<EOF
    1677 #line 1678 "configure"
    1678 #include "confdefs.h"
     3669cat >conftest.$ac_ext <<_ACEOF
     3670/* confdefs.h.  */
     3671_ACEOF
     3672cat confdefs.h >>conftest.$ac_ext
     3673cat >>conftest.$ac_ext <<_ACEOF
     3674/* end confdefs.h.  */
     3675
    16793676/* Override any gcc2 internal prototype to avoid an error.  */
     3677#ifdef __cplusplus
     3678extern "C"
     3679#endif
    16803680/* We use char because int might match the return type of a gcc2
    1681     builtin and then its argument prototype would still apply.  */
    1682 char atof();
    1683 
    1684 int main() {
    1685 atof()
    1686 ; return 0; }
    1687 EOF
    1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1689   rm -rf conftest*
    1690   eval "ac_cv_lib_$ac_lib_var=yes"
    1691 else
    1692   echo "configure: failed program was:" >&5
    1693   cat conftest.$ac_ext >&5
    1694   rm -rf conftest*
    1695   eval "ac_cv_lib_$ac_lib_var=no"
    1696 fi
    1697 rm -f conftest*
    1698 LIBS="$ac_save_LIBS"
    1699 
    1700 fi
    1701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1702   echo "$ac_t""yes" 1>&6
    1703     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1704     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1705   cat >> confdefs.h <<EOF
    1706 #define $ac_tr_lib 1
    1707 EOF
     3681   builtin and then its argument prototype would still apply.  */
     3682char atof ();
     3683int
     3684main ()
     3685{
     3686atof ();
     3687  ;
     3688  return 0;
     3689}
     3690_ACEOF
     3691rm -f conftest.$ac_objext conftest$ac_exeext
     3692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3693  (eval $ac_link) 2>conftest.er1
     3694  ac_status=$?
     3695  grep -v '^ *+' conftest.er1 >conftest.err
     3696  rm -f conftest.er1
     3697  cat conftest.err >&5
     3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3699  (exit $ac_status); } &&
     3700         { ac_try='test -z "$ac_c_werror_flag"
     3701                         || test ! -s conftest.err'
     3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3703  (eval $ac_try) 2>&5
     3704  ac_status=$?
     3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3706  (exit $ac_status); }; } &&
     3707         { ac_try='test -s conftest$ac_exeext'
     3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3709  (eval $ac_try) 2>&5
     3710  ac_status=$?
     3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3712  (exit $ac_status); }; }; then
     3713  ac_cv_lib_m_atof=yes
     3714else
     3715  echo "$as_me: failed program was:" >&5
     3716sed 's/^/| /' conftest.$ac_ext >&5
     3717
     3718ac_cv_lib_m_atof=no
     3719fi
     3720rm -f conftest.err conftest.$ac_objext \
     3721      conftest$ac_exeext conftest.$ac_ext
     3722LIBS=$ac_check_lib_save_LIBS
     3723fi
     3724echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5
     3725echo "${ECHO_T}$ac_cv_lib_m_atof" >&6
     3726if test $ac_cv_lib_m_atof = yes; then
     3727  cat >>confdefs.h <<_ACEOF
     3728#define HAVE_LIBM 1
     3729_ACEOF
    17083730
    17093731  LIBS="-lm $LIBS"
    17103732
    1711 else
    1712   echo "$ac_t""no" 1>&6
    17133733fi
    17143734
     
    17203740case "$ac_cv_singuname" in
    17213741        HPUX*)
    1722           echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    1723 echo "configure:1724: checking for shl_load in -ldld" >&5
    1724 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    1725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1726   echo $ac_n "(cached) $ac_c" 1>&6
    1727 else
    1728   ac_save_LIBS="$LIBS"
     3742
     3743echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     3744echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
     3745if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     3746  echo $ECHO_N "(cached) $ECHO_C" >&6
     3747else
     3748  ac_check_lib_save_LIBS=$LIBS
    17293749LIBS="-ldld  $LIBS"
    1730 cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
    1732 #include "confdefs.h"
     3750cat >conftest.$ac_ext <<_ACEOF
     3751/* confdefs.h.  */
     3752_ACEOF
     3753cat confdefs.h >>conftest.$ac_ext
     3754cat >>conftest.$ac_ext <<_ACEOF
     3755/* end confdefs.h.  */
     3756
    17333757/* Override any gcc2 internal prototype to avoid an error.  */
     3758#ifdef __cplusplus
     3759extern "C"
     3760#endif
    17343761/* We use char because int might match the return type of a gcc2
    1735     builtin and then its argument prototype would still apply.  */
    1736 char shl_load();
    1737 
    1738 int main() {
    1739 shl_load()
    1740 ; return 0; }
    1741 EOF
    1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1743   rm -rf conftest*
    1744   eval "ac_cv_lib_$ac_lib_var=yes"
    1745 else
    1746   echo "configure: failed program was:" >&5
    1747   cat conftest.$ac_ext >&5
    1748   rm -rf conftest*
    1749   eval "ac_cv_lib_$ac_lib_var=no"
    1750 fi
    1751 rm -f conftest*
    1752 LIBS="$ac_save_LIBS"
    1753 
    1754 fi
    1755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1756   echo "$ac_t""yes" 1>&6
    1757     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1758     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1759   cat >> confdefs.h <<EOF
    1760 #define $ac_tr_lib 1
    1761 EOF
     3762   builtin and then its argument prototype would still apply.  */
     3763char shl_load ();
     3764int
     3765main ()
     3766{
     3767shl_load ();
     3768  ;
     3769  return 0;
     3770}
     3771_ACEOF
     3772rm -f conftest.$ac_objext conftest$ac_exeext
     3773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3774  (eval $ac_link) 2>conftest.er1
     3775  ac_status=$?
     3776  grep -v '^ *+' conftest.er1 >conftest.err
     3777  rm -f conftest.er1
     3778  cat conftest.err >&5
     3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3780  (exit $ac_status); } &&
     3781         { ac_try='test -z "$ac_c_werror_flag"
     3782                         || test ! -s conftest.err'
     3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3784  (eval $ac_try) 2>&5
     3785  ac_status=$?
     3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3787  (exit $ac_status); }; } &&
     3788         { ac_try='test -s conftest$ac_exeext'
     3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3790  (eval $ac_try) 2>&5
     3791  ac_status=$?
     3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3793  (exit $ac_status); }; }; then
     3794  ac_cv_lib_dld_shl_load=yes
     3795else
     3796  echo "$as_me: failed program was:" >&5
     3797sed 's/^/| /' conftest.$ac_ext >&5
     3798
     3799ac_cv_lib_dld_shl_load=no
     3800fi
     3801rm -f conftest.err conftest.$ac_objext \
     3802      conftest$ac_exeext conftest.$ac_ext
     3803LIBS=$ac_check_lib_save_LIBS
     3804fi
     3805echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     3806echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
     3807if test $ac_cv_lib_dld_shl_load = yes; then
     3808  cat >>confdefs.h <<_ACEOF
     3809#define HAVE_LIBDLD 1
     3810_ACEOF
    17623811
    17633812  LIBS="-ldld $LIBS"
    17643813
    1765 else
    1766   echo "$ac_t""no" 1>&6
    17673814fi
    17683815
     
    17763823        ;;
    17773824        *Linux*)
    1778           echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1779 echo "configure:1780: checking for dlopen in -ldl" >&5
    1780 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    1781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1782   echo $ac_n "(cached) $ac_c" 1>&6
    1783 else
    1784   ac_save_LIBS="$LIBS"
     3825
     3826echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     3827echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     3828if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     3829  echo $ECHO_N "(cached) $ECHO_C" >&6
     3830else
     3831  ac_check_lib_save_LIBS=$LIBS
    17853832LIBS="-ldl  $LIBS"
    1786 cat > conftest.$ac_ext <<EOF
    1787 #line 1788 "configure"
    1788 #include "confdefs.h"
     3833cat >conftest.$ac_ext <<_ACEOF
     3834/* confdefs.h.  */
     3835_ACEOF
     3836cat confdefs.h >>conftest.$ac_ext
     3837cat >>conftest.$ac_ext <<_ACEOF
     3838/* end confdefs.h.  */
     3839
    17893840/* Override any gcc2 internal prototype to avoid an error.  */
     3841#ifdef __cplusplus
     3842extern "C"
     3843#endif
    17903844/* We use char because int might match the return type of a gcc2
    1791     builtin and then its argument prototype would still apply.  */
    1792 char dlopen();
    1793 
    1794 int main() {
    1795 dlopen()
    1796 ; return 0; }
    1797 EOF
    1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1799   rm -rf conftest*
    1800   eval "ac_cv_lib_$ac_lib_var=yes"
    1801 else
    1802   echo "configure: failed program was:" >&5
    1803   cat conftest.$ac_ext >&5
    1804   rm -rf conftest*
    1805   eval "ac_cv_lib_$ac_lib_var=no"
    1806 fi
    1807 rm -f conftest*
    1808 LIBS="$ac_save_LIBS"
    1809 
    1810 fi
    1811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1812   echo "$ac_t""yes" 1>&6
    1813     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1814     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1815   cat >> confdefs.h <<EOF
    1816 #define $ac_tr_lib 1
    1817 EOF
     3845   builtin and then its argument prototype would still apply.  */
     3846char dlopen ();
     3847int
     3848main ()
     3849{
     3850dlopen ();
     3851  ;
     3852  return 0;
     3853}
     3854_ACEOF
     3855rm -f conftest.$ac_objext conftest$ac_exeext
     3856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3857  (eval $ac_link) 2>conftest.er1
     3858  ac_status=$?
     3859  grep -v '^ *+' conftest.er1 >conftest.err
     3860  rm -f conftest.er1
     3861  cat conftest.err >&5
     3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3863  (exit $ac_status); } &&
     3864         { ac_try='test -z "$ac_c_werror_flag"
     3865                         || test ! -s conftest.err'
     3866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3867  (eval $ac_try) 2>&5
     3868  ac_status=$?
     3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3870  (exit $ac_status); }; } &&
     3871         { ac_try='test -s conftest$ac_exeext'
     3872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3873  (eval $ac_try) 2>&5
     3874  ac_status=$?
     3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3876  (exit $ac_status); }; }; then
     3877  ac_cv_lib_dl_dlopen=yes
     3878else
     3879  echo "$as_me: failed program was:" >&5
     3880sed 's/^/| /' conftest.$ac_ext >&5
     3881
     3882ac_cv_lib_dl_dlopen=no
     3883fi
     3884rm -f conftest.err conftest.$ac_objext \
     3885      conftest$ac_exeext conftest.$ac_ext
     3886LIBS=$ac_check_lib_save_LIBS
     3887fi
     3888echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     3889echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     3890if test $ac_cv_lib_dl_dlopen = yes; then
     3891  cat >>confdefs.h <<_ACEOF
     3892#define HAVE_LIBDL 1
     3893_ACEOF
    18183894
    18193895  LIBS="-ldl $LIBS"
    18203896
    1821 else
    1822   echo "$ac_t""no" 1>&6
    18233897fi
    18243898
     
    18393913        ;;
    18403914        SunOS-5)
    1841           echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1842 echo "configure:1843: checking for dlopen in -ldl" >&5
    1843 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    1844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1845   echo $ac_n "(cached) $ac_c" 1>&6
    1846 else
    1847   ac_save_LIBS="$LIBS"
     3915
     3916echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     3917echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     3918if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     3919  echo $ECHO_N "(cached) $ECHO_C" >&6
     3920else
     3921  ac_check_lib_save_LIBS=$LIBS
    18483922LIBS="-ldl  $LIBS"
    1849 cat > conftest.$ac_ext <<EOF
    1850 #line 1851 "configure"
    1851 #include "confdefs.h"
     3923cat >conftest.$ac_ext <<_ACEOF
     3924/* confdefs.h.  */
     3925_ACEOF
     3926cat confdefs.h >>conftest.$ac_ext
     3927cat >>conftest.$ac_ext <<_ACEOF
     3928/* end confdefs.h.  */
     3929
    18523930/* Override any gcc2 internal prototype to avoid an error.  */
     3931#ifdef __cplusplus
     3932extern "C"
     3933#endif
    18533934/* We use char because int might match the return type of a gcc2
    1854     builtin and then its argument prototype would still apply.  */
    1855 char dlopen();
    1856 
    1857 int main() {
    1858 dlopen()
    1859 ; return 0; }
    1860 EOF
    1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1862   rm -rf conftest*
    1863   eval "ac_cv_lib_$ac_lib_var=yes"
    1864 else
    1865   echo "configure: failed program was:" >&5
    1866   cat conftest.$ac_ext >&5
    1867   rm -rf conftest*
    1868   eval "ac_cv_lib_$ac_lib_var=no"
    1869 fi
    1870 rm -f conftest*
    1871 LIBS="$ac_save_LIBS"
    1872 
    1873 fi
    1874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1875   echo "$ac_t""yes" 1>&6
    1876     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1877     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1878   cat >> confdefs.h <<EOF
    1879 #define $ac_tr_lib 1
    1880 EOF
     3935   builtin and then its argument prototype would still apply.  */
     3936char dlopen ();
     3937int
     3938main ()
     3939{
     3940dlopen ();
     3941  ;
     3942  return 0;
     3943}
     3944_ACEOF
     3945rm -f conftest.$ac_objext conftest$ac_exeext
     3946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3947  (eval $ac_link) 2>conftest.er1
     3948  ac_status=$?
     3949  grep -v '^ *+' conftest.er1 >conftest.err
     3950  rm -f conftest.er1
     3951  cat conftest.err >&5
     3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3953  (exit $ac_status); } &&
     3954         { ac_try='test -z "$ac_c_werror_flag"
     3955                         || test ! -s conftest.err'
     3956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3957  (eval $ac_try) 2>&5
     3958  ac_status=$?
     3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3960  (exit $ac_status); }; } &&
     3961         { ac_try='test -s conftest$ac_exeext'
     3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3963  (eval $ac_try) 2>&5
     3964  ac_status=$?
     3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3966  (exit $ac_status); }; }; then
     3967  ac_cv_lib_dl_dlopen=yes
     3968else
     3969  echo "$as_me: failed program was:" >&5
     3970sed 's/^/| /' conftest.$ac_ext >&5
     3971
     3972ac_cv_lib_dl_dlopen=no
     3973fi
     3974rm -f conftest.err conftest.$ac_objext \
     3975      conftest$ac_exeext conftest.$ac_ext
     3976LIBS=$ac_check_lib_save_LIBS
     3977fi
     3978echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     3979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     3980if test $ac_cv_lib_dl_dlopen = yes; then
     3981  cat >>confdefs.h <<_ACEOF
     3982#define HAVE_LIBDL 1
     3983_ACEOF
    18813984
    18823985  LIBS="-ldl $LIBS"
    18833986
    1884 else
    1885   echo "$ac_t""no" 1>&6
    18863987fi
    18873988
     
    18943995          fi
    18953996        ;;
     3997        #use export MACOSX_DEPLOYMENT_TARGET=10.3
     3998        ppcMac-darwin)
     3999
     4000echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4001echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     4002if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     4003  echo $ECHO_N "(cached) $ECHO_C" >&6
     4004else
     4005  ac_check_lib_save_LIBS=$LIBS
     4006LIBS="-ldl  $LIBS"
     4007cat >conftest.$ac_ext <<_ACEOF
     4008/* confdefs.h.  */
     4009_ACEOF
     4010cat confdefs.h >>conftest.$ac_ext
     4011cat >>conftest.$ac_ext <<_ACEOF
     4012/* end confdefs.h.  */
     4013
     4014/* Override any gcc2 internal prototype to avoid an error.  */
     4015#ifdef __cplusplus
     4016extern "C"
     4017#endif
     4018/* We use char because int might match the return type of a gcc2
     4019   builtin and then its argument prototype would still apply.  */
     4020char dlopen ();
     4021int
     4022main ()
     4023{
     4024dlopen ();
     4025  ;
     4026  return 0;
     4027}
     4028_ACEOF
     4029rm -f conftest.$ac_objext conftest$ac_exeext
     4030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4031  (eval $ac_link) 2>conftest.er1
     4032  ac_status=$?
     4033  grep -v '^ *+' conftest.er1 >conftest.err
     4034  rm -f conftest.er1
     4035  cat conftest.err >&5
     4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4037  (exit $ac_status); } &&
     4038         { ac_try='test -z "$ac_c_werror_flag"
     4039                         || test ! -s conftest.err'
     4040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4041  (eval $ac_try) 2>&5
     4042  ac_status=$?
     4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4044  (exit $ac_status); }; } &&
     4045         { ac_try='test -s conftest$ac_exeext'
     4046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4047  (eval $ac_try) 2>&5
     4048  ac_status=$?
     4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4050  (exit $ac_status); }; }; then
     4051  ac_cv_lib_dl_dlopen=yes
     4052else
     4053  echo "$as_me: failed program was:" >&5
     4054sed 's/^/| /' conftest.$ac_ext >&5
     4055
     4056ac_cv_lib_dl_dlopen=no
     4057fi
     4058rm -f conftest.err conftest.$ac_objext \
     4059      conftest$ac_exeext conftest.$ac_ext
     4060LIBS=$ac_check_lib_save_LIBS
     4061fi
     4062echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4063echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     4064if test $ac_cv_lib_dl_dlopen = yes; then
     4065  cat >>confdefs.h <<_ACEOF
     4066#define HAVE_LIBDL 1
     4067_ACEOF
     4068
     4069  LIBS="-ldl $LIBS"
     4070
     4071fi
     4072
     4073          if test "$ac_cv_lib_dl_dlopen" = yes; then
     4074                LD_DYN_FLAGS="-ldl -dynamic"
     4075                SFLAGS="-fpic -DPIC"
     4076                SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup"
     4077                LD=libtool
     4078                ac_lib_dl=yes
     4079          fi
     4080        ;;
     4081        i386Mac-darwin)
     4082
     4083echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4084echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     4085if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     4086  echo $ECHO_N "(cached) $ECHO_C" >&6
     4087else
     4088  ac_check_lib_save_LIBS=$LIBS
     4089LIBS="-ldl  $LIBS"
     4090cat >conftest.$ac_ext <<_ACEOF
     4091/* confdefs.h.  */
     4092_ACEOF
     4093cat confdefs.h >>conftest.$ac_ext
     4094cat >>conftest.$ac_ext <<_ACEOF
     4095/* end confdefs.h.  */
     4096
     4097/* Override any gcc2 internal prototype to avoid an error.  */
     4098#ifdef __cplusplus
     4099extern "C"
     4100#endif
     4101/* We use char because int might match the return type of a gcc2
     4102   builtin and then its argument prototype would still apply.  */
     4103char dlopen ();
     4104int
     4105main ()
     4106{
     4107dlopen ();
     4108  ;
     4109  return 0;
     4110}
     4111_ACEOF
     4112rm -f conftest.$ac_objext conftest$ac_exeext
     4113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4114  (eval $ac_link) 2>conftest.er1
     4115  ac_status=$?
     4116  grep -v '^ *+' conftest.er1 >conftest.err
     4117  rm -f conftest.er1
     4118  cat conftest.err >&5
     4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4120  (exit $ac_status); } &&
     4121         { ac_try='test -z "$ac_c_werror_flag"
     4122                         || test ! -s conftest.err'
     4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4124  (eval $ac_try) 2>&5
     4125  ac_status=$?
     4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4127  (exit $ac_status); }; } &&
     4128         { ac_try='test -s conftest$ac_exeext'
     4129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4130  (eval $ac_try) 2>&5
     4131  ac_status=$?
     4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4133  (exit $ac_status); }; }; then
     4134  ac_cv_lib_dl_dlopen=yes
     4135else
     4136  echo "$as_me: failed program was:" >&5
     4137sed 's/^/| /' conftest.$ac_ext >&5
     4138
     4139ac_cv_lib_dl_dlopen=no
     4140fi
     4141rm -f conftest.err conftest.$ac_objext \
     4142      conftest$ac_exeext conftest.$ac_ext
     4143LIBS=$ac_check_lib_save_LIBS
     4144fi
     4145echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4146echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     4147if test $ac_cv_lib_dl_dlopen = yes; then
     4148  cat >>confdefs.h <<_ACEOF
     4149#define HAVE_LIBDL 1
     4150_ACEOF
     4151
     4152  LIBS="-ldl $LIBS"
     4153
     4154fi
     4155
     4156          if test "$ac_cv_lib_dl_dlopen" = yes; then
     4157                LD_DYN_FLAGS="-ldl -dynamic"
     4158                SFLAGS="-fpic -DPIC"
     4159                SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup"
     4160                LD=libtool
     4161                ac_lib_dl=yes
     4162          fi
     4163        ;;
    18964164esac
    18974165
     
    19034171
    19044172# heder file checks
    1905 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1906 echo "configure:1907: checking for ANSI C header files" >&5
    1907 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1908   echo $ac_n "(cached) $ac_c" 1>&6
    1909 else
    1910   cat > conftest.$ac_ext <<EOF
    1911 #line 1912 "configure"
    1912 #include "confdefs.h"
     4173echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4174echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4175if test "${ac_cv_header_stdc+set}" = set; then
     4176  echo $ECHO_N "(cached) $ECHO_C" >&6
     4177else
     4178  cat >conftest.$ac_ext <<_ACEOF
     4179/* confdefs.h.  */
     4180_ACEOF
     4181cat confdefs.h >>conftest.$ac_ext
     4182cat >>conftest.$ac_ext <<_ACEOF
     4183/* end confdefs.h.  */
    19134184#include <stdlib.h>
    19144185#include <stdarg.h>
    19154186#include <string.h>
    19164187#include <float.h>
    1917 EOF
    1918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1919 { (eval echo configure:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1921 if test -z "$ac_err"; then
    1922   rm -rf conftest*
     4188
     4189int
     4190main ()
     4191{
     4192
     4193  ;
     4194  return 0;
     4195}
     4196_ACEOF
     4197rm -f conftest.$ac_objext
     4198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4199  (eval $ac_compile) 2>conftest.er1
     4200  ac_status=$?
     4201  grep -v '^ *+' conftest.er1 >conftest.err
     4202  rm -f conftest.er1
     4203  cat conftest.err >&5
     4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4205  (exit $ac_status); } &&
     4206         { ac_try='test -z "$ac_c_werror_flag"
     4207                         || test ! -s conftest.err'
     4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4209  (eval $ac_try) 2>&5
     4210  ac_status=$?
     4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4212  (exit $ac_status); }; } &&
     4213         { ac_try='test -s conftest.$ac_objext'
     4214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4215  (eval $ac_try) 2>&5
     4216  ac_status=$?
     4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4218  (exit $ac_status); }; }; then
    19234219  ac_cv_header_stdc=yes
    19244220else
    1925   echo "$ac_err" >&5
    1926   echo "configure: failed program was:" >&5
    1927   cat conftest.$ac_ext >&5
    1928   rm -rf conftest*
    1929   ac_cv_header_stdc=no
    1930 fi
    1931 rm -f conftest*
     4221  echo "$as_me: failed program was:" >&5
     4222sed 's/^/| /' conftest.$ac_ext >&5
     4223
     4224ac_cv_header_stdc=no
     4225fi
     4226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    19324227
    19334228if test $ac_cv_header_stdc = yes; then
    19344229  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1935 cat > conftest.$ac_ext <<EOF
    1936 #line 1937 "configure"
    1937 #include "confdefs.h"
     4230  cat >conftest.$ac_ext <<_ACEOF
     4231/* confdefs.h.  */
     4232_ACEOF
     4233cat confdefs.h >>conftest.$ac_ext
     4234cat >>conftest.$ac_ext <<_ACEOF
     4235/* end confdefs.h.  */
    19384236#include <string.h>
    1939 EOF
     4237
     4238_ACEOF
    19404239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1941   egrep "memchr" >/dev/null 2>&1; then
     4240  $EGREP "memchr" >/dev/null 2>&1; then
    19424241  :
    19434242else
    1944   rm -rf conftest*
    19454243  ac_cv_header_stdc=no
    19464244fi
     
    19514249if test $ac_cv_header_stdc = yes; then
    19524250  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1953 cat > conftest.$ac_ext <<EOF
    1954 #line 1955 "configure"
    1955 #include "confdefs.h"
     4251  cat >conftest.$ac_ext <<_ACEOF
     4252/* confdefs.h.  */
     4253_ACEOF
     4254cat confdefs.h >>conftest.$ac_ext
     4255cat >>conftest.$ac_ext <<_ACEOF
     4256/* end confdefs.h.  */
    19564257#include <stdlib.h>
    1957 EOF
     4258
     4259_ACEOF
    19584260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1959   egrep "free" >/dev/null 2>&1; then
     4261  $EGREP "free" >/dev/null 2>&1; then
    19604262  :
    19614263else
    1962   rm -rf conftest*
    19634264  ac_cv_header_stdc=no
    19644265fi
     
    19694270if test $ac_cv_header_stdc = yes; then
    19704271  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1971 if test "$cross_compiling" = yes; then
     4272  if test "$cross_compiling" = yes; then
    19724273  :
    19734274else
    1974   cat > conftest.$ac_ext <<EOF
    1975 #line 1976 "configure"
    1976 #include "confdefs.h"
     4275  cat >conftest.$ac_ext <<_ACEOF
     4276/* confdefs.h.  */
     4277_ACEOF
     4278cat confdefs.h >>conftest.$ac_ext
     4279cat >>conftest.$ac_ext <<_ACEOF
     4280/* end confdefs.h.  */
    19774281#include <ctype.h>
    1978 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1979 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4282#if ((' ' & 0x0FF) == 0x020)
     4283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4285#else
     4286# define ISLOWER(c) \
     4287                   (('a' <= (c) && (c) <= 'i') \
     4288                     || ('j' <= (c) && (c) <= 'r') \
     4289                     || ('s' <= (c) && (c) <= 'z'))
     4290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4291#endif
     4292
    19804293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1981 int main () { int i; for (i = 0; i < 256; i++)
    1982 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1983 exit (0); }
    1984 
    1985 EOF
    1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1987 then
     4294int
     4295main ()
     4296{
     4297  int i;
     4298  for (i = 0; i < 256; i++)
     4299    if (XOR (islower (i), ISLOWER (i))
     4300        || toupper (i) != TOUPPER (i))
     4301      exit(2);
     4302  exit (0);
     4303}
     4304_ACEOF
     4305rm -f conftest$ac_exeext
     4306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4307  (eval $ac_link) 2>&5
     4308  ac_status=$?
     4309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4310  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4312  (eval $ac_try) 2>&5
     4313  ac_status=$?
     4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4315  (exit $ac_status); }; }; then
    19884316  :
    19894317else
    1990   echo "configure: failed program was:" >&5
    1991   cat conftest.$ac_ext >&5
    1992   rm -fr conftest*
    1993   ac_cv_header_stdc=no
    1994 fi
    1995 rm -fr conftest*
    1996 fi
    1997 
    1998 fi
    1999 fi
    2000 
    2001 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     4318  echo "$as_me: program exited with status $ac_status" >&5
     4319echo "$as_me: failed program was:" >&5
     4320sed 's/^/| /' conftest.$ac_ext >&5
     4321
     4322( exit $ac_status )
     4323ac_cv_header_stdc=no
     4324fi
     4325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4326fi
     4327fi
     4328fi
     4329echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4330echo "${ECHO_T}$ac_cv_header_stdc" >&6
    20024331if test $ac_cv_header_stdc = yes; then
    2003   cat >> confdefs.h <<\EOF
     4332
     4333cat >>confdefs.h <<\_ACEOF
    20044334#define STDC_HEADERS 1
    2005 EOF
    2006 
    2007 fi
    2008 
    2009 for ac_hdr in limits.h unistd.h
     4335_ACEOF
     4336
     4337fi
     4338
     4339# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4340
     4341
     4342
     4343
     4344
     4345
     4346
     4347
     4348
     4349for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4350                  inttypes.h stdint.h unistd.h
    20104351do
    2011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2013 echo "configure:2014: checking for $ac_hdr" >&5
    2014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2015   echo $ac_n "(cached) $ac_c" 1>&6
    2016 else
    2017   cat > conftest.$ac_ext <<EOF
    2018 #line 2019 "configure"
    2019 #include "confdefs.h"
    2020 #include <$ac_hdr>
    2021 EOF
    2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2025 if test -z "$ac_err"; then
    2026   rm -rf conftest*
    2027   eval "ac_cv_header_$ac_safe=yes"
    2028 else
    2029   echo "$ac_err" >&5
    2030   echo "configure: failed program was:" >&5
    2031   cat conftest.$ac_ext >&5
    2032   rm -rf conftest*
    2033   eval "ac_cv_header_$ac_safe=no"
    2034 fi
    2035 rm -f conftest*
    2036 fi
    2037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2038   echo "$ac_t""yes" 1>&6
    2039     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2040   cat >> confdefs.h <<EOF
    2041 #define $ac_tr_hdr 1
    2042 EOF
    2043  
    2044 else
    2045   echo "$ac_t""no" 1>&6
    2046 { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; }
    2047 fi
     4352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4353echo "$as_me:$LINENO: checking for $ac_header" >&5
     4354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4355if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4356  echo $ECHO_N "(cached) $ECHO_C" >&6
     4357else
     4358  cat >conftest.$ac_ext <<_ACEOF
     4359/* confdefs.h.  */
     4360_ACEOF
     4361cat confdefs.h >>conftest.$ac_ext
     4362cat >>conftest.$ac_ext <<_ACEOF
     4363/* end confdefs.h.  */
     4364$ac_includes_default
     4365
     4366#include <$ac_header>
     4367_ACEOF
     4368rm -f conftest.$ac_objext
     4369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4370  (eval $ac_compile) 2>conftest.er1
     4371  ac_status=$?
     4372  grep -v '^ *+' conftest.er1 >conftest.err
     4373  rm -f conftest.er1
     4374  cat conftest.err >&5
     4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4376  (exit $ac_status); } &&
     4377         { ac_try='test -z "$ac_c_werror_flag"
     4378                         || test ! -s conftest.err'
     4379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4380  (eval $ac_try) 2>&5
     4381  ac_status=$?
     4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4383  (exit $ac_status); }; } &&
     4384         { ac_try='test -s conftest.$ac_objext'
     4385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4386  (eval $ac_try) 2>&5
     4387  ac_status=$?
     4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4389  (exit $ac_status); }; }; then
     4390  eval "$as_ac_Header=yes"
     4391else
     4392  echo "$as_me: failed program was:" >&5
     4393sed 's/^/| /' conftest.$ac_ext >&5
     4394
     4395eval "$as_ac_Header=no"
     4396fi
     4397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4398fi
     4399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4401if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4402  cat >>confdefs.h <<_ACEOF
     4403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4404_ACEOF
     4405
     4406fi
     4407
    20484408done
    20494409
    20504410
    2051 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
     4411
     4412
     4413for ac_header in limits.h unistd.h
     4414do
     4415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4416if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4417  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4419if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4420  echo $ECHO_N "(cached) $ECHO_C" >&6
     4421fi
     4422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4424else
     4425  # Is the header compilable?
     4426echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4428cat >conftest.$ac_ext <<_ACEOF
     4429/* confdefs.h.  */
     4430_ACEOF
     4431cat confdefs.h >>conftest.$ac_ext
     4432cat >>conftest.$ac_ext <<_ACEOF
     4433/* end confdefs.h.  */
     4434$ac_includes_default
     4435#include <$ac_header>
     4436_ACEOF
     4437rm -f conftest.$ac_objext
     4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4439  (eval $ac_compile) 2>conftest.er1
     4440  ac_status=$?
     4441  grep -v '^ *+' conftest.er1 >conftest.err
     4442  rm -f conftest.er1
     4443  cat conftest.err >&5
     4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4445  (exit $ac_status); } &&
     4446         { ac_try='test -z "$ac_c_werror_flag"
     4447                         || test ! -s conftest.err'
     4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4449  (eval $ac_try) 2>&5
     4450  ac_status=$?
     4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4452  (exit $ac_status); }; } &&
     4453         { ac_try='test -s conftest.$ac_objext'
     4454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4455  (eval $ac_try) 2>&5
     4456  ac_status=$?
     4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4458  (exit $ac_status); }; }; then
     4459  ac_header_compiler=yes
     4460else
     4461  echo "$as_me: failed program was:" >&5
     4462sed 's/^/| /' conftest.$ac_ext >&5
     4463
     4464ac_header_compiler=no
     4465fi
     4466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4468echo "${ECHO_T}$ac_header_compiler" >&6
     4469
     4470# Is the header present?
     4471echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4473cat >conftest.$ac_ext <<_ACEOF
     4474/* confdefs.h.  */
     4475_ACEOF
     4476cat confdefs.h >>conftest.$ac_ext
     4477cat >>conftest.$ac_ext <<_ACEOF
     4478/* end confdefs.h.  */
     4479#include <$ac_header>
     4480_ACEOF
     4481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4483  ac_status=$?
     4484  grep -v '^ *+' conftest.er1 >conftest.err
     4485  rm -f conftest.er1
     4486  cat conftest.err >&5
     4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4488  (exit $ac_status); } >/dev/null; then
     4489  if test -s conftest.err; then
     4490    ac_cpp_err=$ac_c_preproc_warn_flag
     4491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4492  else
     4493    ac_cpp_err=
     4494  fi
     4495else
     4496  ac_cpp_err=yes
     4497fi
     4498if test -z "$ac_cpp_err"; then
     4499  ac_header_preproc=yes
     4500else
     4501  echo "$as_me: failed program was:" >&5
     4502sed 's/^/| /' conftest.$ac_ext >&5
     4503
     4504  ac_header_preproc=no
     4505fi
     4506rm -f conftest.err conftest.$ac_ext
     4507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4508echo "${ECHO_T}$ac_header_preproc" >&6
     4509
     4510# So?  What about this header?
     4511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4512  yes:no: )
     4513    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4515    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4517    ac_header_preproc=yes
     4518    ;;
     4519  no:yes:* )
     4520    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4522    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4523echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4524    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4526    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4527echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4530    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4532    (
     4533      cat <<\_ASBOX
     4534## ------------------------------------------ ##
     4535## Report this to the AC_PACKAGE_NAME lists.  ##
     4536## ------------------------------------------ ##
     4537_ASBOX
     4538    ) |
     4539      sed "s/^/$as_me: WARNING:     /" >&2
     4540    ;;
     4541esac
     4542echo "$as_me:$LINENO: checking for $ac_header" >&5
     4543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4544if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4545  echo $ECHO_N "(cached) $ECHO_C" >&6
     4546else
     4547  eval "$as_ac_Header=\$ac_header_preproc"
     4548fi
     4549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4551
     4552fi
     4553if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4554  cat >>confdefs.h <<_ACEOF
     4555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4556_ACEOF
     4557
     4558else
     4559  { { echo "$as_me:$LINENO: error: Can not compile without limits.h unistd.h" >&5
     4560echo "$as_me: error: Can not compile without limits.h unistd.h" >&2;}
     4561   { (exit 1); exit 1; }; }
     4562fi
     4563
     4564done
     4565
     4566
     4567
     4568
     4569
     4570
     4571
     4572
     4573
     4574
     4575
     4576
     4577
     4578
     4579
     4580
     4581
     4582for ac_header in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
    20524583 sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \
    20534584 termios.h term.h readline/readline.h
    20544585do
    2055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2057 echo "configure:2058: checking for $ac_hdr" >&5
    2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2059   echo $ac_n "(cached) $ac_c" 1>&6
    2060 else
    2061   cat > conftest.$ac_ext <<EOF
    2062 #line 2063 "configure"
    2063 #include "confdefs.h"
    2064 #include <$ac_hdr>
    2065 EOF
    2066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2067 { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2069 if test -z "$ac_err"; then
    2070   rm -rf conftest*
    2071   eval "ac_cv_header_$ac_safe=yes"
    2072 else
    2073   echo "$ac_err" >&5
    2074   echo "configure: failed program was:" >&5
    2075   cat conftest.$ac_ext >&5
    2076   rm -rf conftest*
    2077   eval "ac_cv_header_$ac_safe=no"
    2078 fi
    2079 rm -f conftest*
    2080 fi
    2081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2082   echo "$ac_t""yes" 1>&6
    2083     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2084   cat >> confdefs.h <<EOF
    2085 #define $ac_tr_hdr 1
    2086 EOF
    2087  
    2088 else
    2089   echo "$ac_t""no" 1>&6
    2090 fi
     4586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4587if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4588  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4590if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4591  echo $ECHO_N "(cached) $ECHO_C" >&6
     4592fi
     4593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4595else
     4596  # Is the header compilable?
     4597echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4599cat >conftest.$ac_ext <<_ACEOF
     4600/* confdefs.h.  */
     4601_ACEOF
     4602cat confdefs.h >>conftest.$ac_ext
     4603cat >>conftest.$ac_ext <<_ACEOF
     4604/* end confdefs.h.  */
     4605$ac_includes_default
     4606#include <$ac_header>
     4607_ACEOF
     4608rm -f conftest.$ac_objext
     4609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4610  (eval $ac_compile) 2>conftest.er1
     4611  ac_status=$?
     4612  grep -v '^ *+' conftest.er1 >conftest.err
     4613  rm -f conftest.er1
     4614  cat conftest.err >&5
     4615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4616  (exit $ac_status); } &&
     4617         { ac_try='test -z "$ac_c_werror_flag"
     4618                         || test ! -s conftest.err'
     4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4620  (eval $ac_try) 2>&5
     4621  ac_status=$?
     4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4623  (exit $ac_status); }; } &&
     4624         { ac_try='test -s conftest.$ac_objext'
     4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4626  (eval $ac_try) 2>&5
     4627  ac_status=$?
     4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4629  (exit $ac_status); }; }; then
     4630  ac_header_compiler=yes
     4631else
     4632  echo "$as_me: failed program was:" >&5
     4633sed 's/^/| /' conftest.$ac_ext >&5
     4634
     4635ac_header_compiler=no
     4636fi
     4637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4639echo "${ECHO_T}$ac_header_compiler" >&6
     4640
     4641# Is the header present?
     4642echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4644cat >conftest.$ac_ext <<_ACEOF
     4645/* confdefs.h.  */
     4646_ACEOF
     4647cat confdefs.h >>conftest.$ac_ext
     4648cat >>conftest.$ac_ext <<_ACEOF
     4649/* end confdefs.h.  */
     4650#include <$ac_header>
     4651_ACEOF
     4652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4654  ac_status=$?
     4655  grep -v '^ *+' conftest.er1 >conftest.err
     4656  rm -f conftest.er1
     4657  cat conftest.err >&5
     4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4659  (exit $ac_status); } >/dev/null; then
     4660  if test -s conftest.err; then
     4661    ac_cpp_err=$ac_c_preproc_warn_flag
     4662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4663  else
     4664    ac_cpp_err=
     4665  fi
     4666else
     4667  ac_cpp_err=yes
     4668fi
     4669if test -z "$ac_cpp_err"; then
     4670  ac_header_preproc=yes
     4671else
     4672  echo "$as_me: failed program was:" >&5
     4673sed 's/^/| /' conftest.$ac_ext >&5
     4674
     4675  ac_header_preproc=no
     4676fi
     4677rm -f conftest.err conftest.$ac_ext
     4678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4679echo "${ECHO_T}$ac_header_preproc" >&6
     4680
     4681# So?  What about this header?
     4682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4683  yes:no: )
     4684    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4688    ac_header_preproc=yes
     4689    ;;
     4690  no:yes:* )
     4691    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4693    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4694echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4695    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4697    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4698echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4701    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4703    (
     4704      cat <<\_ASBOX
     4705## ------------------------------------------ ##
     4706## Report this to the AC_PACKAGE_NAME lists.  ##
     4707## ------------------------------------------ ##
     4708_ASBOX
     4709    ) |
     4710      sed "s/^/$as_me: WARNING:     /" >&2
     4711    ;;
     4712esac
     4713echo "$as_me:$LINENO: checking for $ac_header" >&5
     4714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4715if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4716  echo $ECHO_N "(cached) $ECHO_C" >&6
     4717else
     4718  eval "$as_ac_Header=\$ac_header_preproc"
     4719fi
     4720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4722
     4723fi
     4724if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4725  cat >>confdefs.h <<_ACEOF
     4726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4727_ACEOF
     4728
     4729fi
     4730
    20914731done
    20924732
    20934733
    20944734# typedefs, structures
    2095 echo $ac_n "checking for working const""... $ac_c" 1>&6
    2096 echo "configure:2097: checking for working const" >&5
    2097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    2098   echo $ac_n "(cached) $ac_c" 1>&6
    2099 else
    2100   cat > conftest.$ac_ext <<EOF
    2101 #line 2102 "configure"
    2102 #include "confdefs.h"
    2103 
    2104 int main() {
    2105 
    2106 /* Ultrix mips cc rejects this.  */
    2107 typedef int charset[2]; const charset x;
    2108 /* SunOS 4.1.1 cc rejects this.  */
    2109 char const *const *ccp;
    2110 char **p;
    2111 /* NEC SVR4.0.2 mips cc rejects this.  */
    2112 struct point {int x, y;};
    2113 static struct point const zero = {0,0};
    2114 /* AIX XL C 1.02.0.0 rejects this.
    2115    It does not let you subtract one const X* pointer from another in an arm
    2116    of an if-expression whose if-part is not a constant expression */
    2117 const char *g = "string";
    2118 ccp = &g + (g ? g-g : 0);
    2119 /* HPUX 7.0 cc rejects these. */
    2120 ++ccp;
    2121 p = (char**) ccp;
    2122 ccp = (char const *const *) p;
    2123 { /* SCO 3.2v4 cc rejects this.  */
    2124   char *t;
    2125   char const *s = 0 ? (char *) 0 : (char const *) 0;
    2126 
    2127   *t++ = 0;
     4735echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     4736echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     4737if test "${ac_cv_c_const+set}" = set; then
     4738  echo $ECHO_N "(cached) $ECHO_C" >&6
     4739else
     4740  cat >conftest.$ac_ext <<_ACEOF
     4741/* confdefs.h.  */
     4742_ACEOF
     4743cat confdefs.h >>conftest.$ac_ext
     4744cat >>conftest.$ac_ext <<_ACEOF
     4745/* end confdefs.h.  */
     4746
     4747int
     4748main ()
     4749{
     4750/* FIXME: Include the comments suggested by Paul. */
     4751#ifndef __cplusplus
     4752  /* Ultrix mips cc rejects this.  */
     4753  typedef int charset[2];
     4754  const charset x;
     4755  /* SunOS 4.1.1 cc rejects this.  */
     4756  char const *const *ccp;
     4757  char **p;
     4758  /* NEC SVR4.0.2 mips cc rejects this.  */
     4759  struct point {int x, y;};
     4760  static struct point const zero = {0,0};
     4761  /* AIX XL C 1.02.0.0 rejects this.
     4762     It does not let you subtract one const X* pointer from another in
     4763     an arm of an if-expression whose if-part is not a constant
     4764     expression */
     4765  const char *g = "string";
     4766  ccp = &g + (g ? g-g : 0);
     4767  /* HPUX 7.0 cc rejects these. */
     4768  ++ccp;
     4769  p = (char**) ccp;
     4770  ccp = (char const *const *) p;
     4771  { /* SCO 3.2v4 cc rejects this.  */
     4772    char *t;
     4773    char const *s = 0 ? (char *) 0 : (char const *) 0;
     4774
     4775    *t++ = 0;
     4776  }
     4777  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     4778    int x[] = {25, 17};
     4779    const int *foo = &x[0];
     4780    ++foo;
     4781  }
     4782  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     4783    typedef const int *iptr;
     4784    iptr p = 0;
     4785    ++p;
     4786  }
     4787  { /* AIX XL C 1.02.0.0 rejects this saying
     4788       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     4789    struct s { int j; const int *ap[3]; };
     4790    struct s *b; b->j = 5;
     4791  }
     4792  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     4793    const int foo = 10;
     4794  }
     4795#endif
     4796
     4797  ;
     4798  return 0;
    21284799}
    2129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    2130   int x[] = {25, 17};
    2131   const int *foo = &x[0];
    2132   ++foo;
    2133 }
    2134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    2135   typedef const int *iptr;
    2136   iptr p = 0;
    2137   ++p;
    2138 }
    2139 { /* AIX XL C 1.02.0.0 rejects this saying
    2140      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    2141   struct s { int j; const int *ap[3]; };
    2142   struct s *b; b->j = 5;
    2143 }
    2144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    2145   const int foo = 10;
    2146 }
    2147 
    2148 ; return 0; }
    2149 EOF
    2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2151   rm -rf conftest*
     4800_ACEOF
     4801rm -f conftest.$ac_objext
     4802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4803  (eval $ac_compile) 2>conftest.er1
     4804  ac_status=$?
     4805  grep -v '^ *+' conftest.er1 >conftest.err
     4806  rm -f conftest.er1
     4807  cat conftest.err >&5
     4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4809  (exit $ac_status); } &&
     4810         { ac_try='test -z "$ac_c_werror_flag"
     4811                         || test ! -s conftest.err'
     4812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4813  (eval $ac_try) 2>&5
     4814  ac_status=$?
     4815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4816  (exit $ac_status); }; } &&
     4817         { ac_try='test -s conftest.$ac_objext'
     4818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4819  (eval $ac_try) 2>&5
     4820  ac_status=$?
     4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4822  (exit $ac_status); }; }; then
    21524823  ac_cv_c_const=yes
    21534824else
    2154   echo "configure: failed program was:" >&5
    2155   cat conftest.$ac_ext >&5
    2156   rm -rf conftest*
    2157   ac_cv_c_const=no
    2158 fi
    2159 rm -f conftest*
    2160 fi
    2161 
    2162 echo "$ac_t""$ac_cv_c_const" 1>&6
     4825  echo "$as_me: failed program was:" >&5
     4826sed 's/^/| /' conftest.$ac_ext >&5
     4827
     4828ac_cv_c_const=no
     4829fi
     4830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4831fi
     4832echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     4833echo "${ECHO_T}$ac_cv_c_const" >&6
    21634834if test $ac_cv_c_const = no; then
    2164   cat >> confdefs.h <<\EOF
    2165 #define const
    2166 EOF
    2167 
    2168 fi
    2169 
    2170 echo $ac_n "checking for inline""... $ac_c" 1>&6
    2171 echo "configure:2172: checking for inline" >&5
    2172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    2173   echo $ac_n "(cached) $ac_c" 1>&6
     4835
     4836cat >>confdefs.h <<\_ACEOF
     4837#define const
     4838_ACEOF
     4839
     4840fi
     4841
     4842echo "$as_me:$LINENO: checking for inline" >&5
     4843echo $ECHO_N "checking for inline... $ECHO_C" >&6
     4844if test "${ac_cv_c_inline+set}" = set; then
     4845  echo $ECHO_N "(cached) $ECHO_C" >&6
    21744846else
    21754847  ac_cv_c_inline=no
    21764848for ac_kw in inline __inline__ __inline; do
    2177   cat > conftest.$ac_ext <<EOF
    2178 #line 2179 "configure"
    2179 #include "confdefs.h"
    2180 
    2181 int main() {
    2182 } $ac_kw foo() {
    2183 ; return 0; }
    2184 EOF
    2185 if { (eval echo configure:2186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2186   rm -rf conftest*
     4849  cat >conftest.$ac_ext <<_ACEOF
     4850/* confdefs.h.  */
     4851_ACEOF
     4852cat confdefs.h >>conftest.$ac_ext
     4853cat >>conftest.$ac_ext <<_ACEOF
     4854/* end confdefs.h.  */
     4855#ifndef __cplusplus
     4856typedef int foo_t;
     4857static $ac_kw foo_t static_foo () {return 0; }
     4858$ac_kw foo_t foo () {return 0; }
     4859#endif
     4860
     4861_ACEOF
     4862rm -f conftest.$ac_objext
     4863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4864  (eval $ac_compile) 2>conftest.er1
     4865  ac_status=$?
     4866  grep -v '^ *+' conftest.er1 >conftest.err
     4867  rm -f conftest.er1
     4868  cat conftest.err >&5
     4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4870  (exit $ac_status); } &&
     4871         { ac_try='test -z "$ac_c_werror_flag"
     4872                         || test ! -s conftest.err'
     4873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4874  (eval $ac_try) 2>&5
     4875  ac_status=$?
     4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4877  (exit $ac_status); }; } &&
     4878         { ac_try='test -s conftest.$ac_objext'
     4879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4880  (eval $ac_try) 2>&5
     4881  ac_status=$?
     4882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4883  (exit $ac_status); }; }; then
    21874884  ac_cv_c_inline=$ac_kw; break
    21884885else
    2189   echo "configure: failed program was:" >&5
    2190   cat conftest.$ac_ext >&5
    2191 fi
    2192 rm -f conftest*
     4886  echo "$as_me: failed program was:" >&5
     4887sed 's/^/| /' conftest.$ac_ext >&5
     4888
     4889fi
     4890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    21934891done
    21944892
    21954893fi
    2196 
    2197 echo "$ac_t""$ac_cv_c_inline" 1>&6
    2198 case "$ac_cv_c_inline" in
     4894echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
     4895echo "${ECHO_T}$ac_cv_c_inline" >&6
     4896
     4897
     4898case $ac_cv_c_inline in
    21994899  inline | yes) ;;
    2200   no) cat >> confdefs.h <<\EOF
    2201 #define inline
    2202 EOF
    2203  ;;
    2204   *)  cat >> confdefs.h <<EOF
    2205 #define inline $ac_cv_c_inline
    2206 EOF
    2207  ;;
     4900  *)
     4901    case $ac_cv_c_inline in
     4902      no) ac_val=;;
     4903      *) ac_val=$ac_cv_c_inline;;
     4904    esac
     4905    cat >>confdefs.h <<_ACEOF
     4906#ifndef __cplusplus
     4907#define inline $ac_val
     4908#endif
     4909_ACEOF
     4910    ;;
    22084911esac
    22094912
    2210 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    2211 echo "configure:2212: checking for size_t" >&5
    2212 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    2213   echo $ac_n "(cached) $ac_c" 1>&6
    2214 else
    2215   cat > conftest.$ac_ext <<EOF
    2216 #line 2217 "configure"
    2217 #include "confdefs.h"
    2218 #include <sys/types.h>
    2219 #if STDC_HEADERS
    2220 #include <stdlib.h>
    2221 #include <stddef.h>
    2222 #endif
    2223 EOF
    2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2225   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2226   rm -rf conftest*
     4913echo "$as_me:$LINENO: checking for size_t" >&5
     4914echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     4915if test "${ac_cv_type_size_t+set}" = set; then
     4916  echo $ECHO_N "(cached) $ECHO_C" >&6
     4917else
     4918  cat >conftest.$ac_ext <<_ACEOF
     4919/* confdefs.h.  */
     4920_ACEOF
     4921cat confdefs.h >>conftest.$ac_ext
     4922cat >>conftest.$ac_ext <<_ACEOF
     4923/* end confdefs.h.  */
     4924$ac_includes_default
     4925int
     4926main ()
     4927{
     4928if ((size_t *) 0)
     4929  return 0;
     4930if (sizeof (size_t))
     4931  return 0;
     4932  ;
     4933  return 0;
     4934}
     4935_ACEOF
     4936rm -f conftest.$ac_objext
     4937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4938  (eval $ac_compile) 2>conftest.er1
     4939  ac_status=$?
     4940  grep -v '^ *+' conftest.er1 >conftest.err
     4941  rm -f conftest.er1
     4942  cat conftest.err >&5
     4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4944  (exit $ac_status); } &&
     4945         { ac_try='test -z "$ac_c_werror_flag"
     4946                         || test ! -s conftest.err'
     4947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4948  (eval $ac_try) 2>&5
     4949  ac_status=$?
     4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4951  (exit $ac_status); }; } &&
     4952         { ac_try='test -s conftest.$ac_objext'
     4953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4954  (eval $ac_try) 2>&5
     4955  ac_status=$?
     4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4957  (exit $ac_status); }; }; then
    22274958  ac_cv_type_size_t=yes
    22284959else
    2229   rm -rf conftest*
    2230   ac_cv_type_size_t=no
    2231 fi
    2232 rm -f conftest*
    2233 
    2234 fi
    2235 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    2236 if test $ac_cv_type_size_t = no; then
    2237   cat >> confdefs.h <<\EOF
     4960  echo "$as_me: failed program was:" >&5
     4961sed 's/^/| /' conftest.$ac_ext >&5
     4962
     4963ac_cv_type_size_t=no
     4964fi
     4965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4966fi
     4967echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     4968echo "${ECHO_T}$ac_cv_type_size_t" >&6
     4969if test $ac_cv_type_size_t = yes; then
     4970  :
     4971else
     4972
     4973cat >>confdefs.h <<_ACEOF
    22384974#define size_t unsigned
    2239 EOF
    2240 
    2241 fi
    2242 
    2243 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    2244 echo "configure:2245: checking whether struct tm is in sys/time.h or time.h" >&5
    2245 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    2246   echo $ac_n "(cached) $ac_c" 1>&6
    2247 else
    2248   cat > conftest.$ac_ext <<EOF
    2249 #line 2250 "configure"
    2250 #include "confdefs.h"
     4975_ACEOF
     4976
     4977fi
     4978
     4979echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     4980echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     4981if test "${ac_cv_struct_tm+set}" = set; then
     4982  echo $ECHO_N "(cached) $ECHO_C" >&6
     4983else
     4984  cat >conftest.$ac_ext <<_ACEOF
     4985/* confdefs.h.  */
     4986_ACEOF
     4987cat confdefs.h >>conftest.$ac_ext
     4988cat >>conftest.$ac_ext <<_ACEOF
     4989/* end confdefs.h.  */
    22514990#include <sys/types.h>
    22524991#include <time.h>
    2253 int main() {
     4992
     4993int
     4994main ()
     4995{
    22544996struct tm *tp; tp->tm_sec;
    2255 ; return 0; }
    2256 EOF
    2257 if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2258   rm -rf conftest*
     4997  ;
     4998  return 0;
     4999}
     5000_ACEOF
     5001rm -f conftest.$ac_objext
     5002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5003  (eval $ac_compile) 2>conftest.er1
     5004  ac_status=$?
     5005  grep -v '^ *+' conftest.er1 >conftest.err
     5006  rm -f conftest.er1
     5007  cat conftest.err >&5
     5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5009  (exit $ac_status); } &&
     5010         { ac_try='test -z "$ac_c_werror_flag"
     5011                         || test ! -s conftest.err'
     5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5013  (eval $ac_try) 2>&5
     5014  ac_status=$?
     5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5016  (exit $ac_status); }; } &&
     5017         { ac_try='test -s conftest.$ac_objext'
     5018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5019  (eval $ac_try) 2>&5
     5020  ac_status=$?
     5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5022  (exit $ac_status); }; }; then
    22595023  ac_cv_struct_tm=time.h
    22605024else
    2261   echo "configure: failed program was:" >&5
    2262   cat conftest.$ac_ext >&5
    2263   rm -rf conftest*
    2264   ac_cv_struct_tm=sys/time.h
    2265 fi
    2266 rm -f conftest*
    2267 fi
    2268 
    2269 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     5025  echo "$as_me: failed program was:" >&5
     5026sed 's/^/| /' conftest.$ac_ext >&5
     5027
     5028ac_cv_struct_tm=sys/time.h
     5029fi
     5030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5031fi
     5032echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     5033echo "${ECHO_T}$ac_cv_struct_tm" >&6
    22705034if test $ac_cv_struct_tm = sys/time.h; then
    2271   cat >> confdefs.h <<\EOF
     5035
     5036cat >>confdefs.h <<\_ACEOF
    22725037#define TM_IN_SYS_TIME 1
    2273 EOF
    2274 
    2275 fi
    2276 
    2277 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    2278 echo "configure:2279: checking whether time.h and sys/time.h may both be included" >&5
    2279 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    2280   echo $ac_n "(cached) $ac_c" 1>&6
    2281 else
    2282   cat > conftest.$ac_ext <<EOF
    2283 #line 2284 "configure"
    2284 #include "confdefs.h"
     5038_ACEOF
     5039
     5040fi
     5041
     5042echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     5043echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     5044if test "${ac_cv_header_time+set}" = set; then
     5045  echo $ECHO_N "(cached) $ECHO_C" >&6
     5046else
     5047  cat >conftest.$ac_ext <<_ACEOF
     5048/* confdefs.h.  */
     5049_ACEOF
     5050cat confdefs.h >>conftest.$ac_ext
     5051cat >>conftest.$ac_ext <<_ACEOF
     5052/* end confdefs.h.  */
    22855053#include <sys/types.h>
    22865054#include <sys/time.h>
    22875055#include <time.h>
    2288 int main() {
    2289 struct tm *tp;
    2290 ; return 0; }
    2291 EOF
    2292 if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2293   rm -rf conftest*
     5056
     5057int
     5058main ()
     5059{
     5060if ((struct tm *) 0)
     5061return 0;
     5062  ;
     5063  return 0;
     5064}
     5065_ACEOF
     5066rm -f conftest.$ac_objext
     5067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5068  (eval $ac_compile) 2>conftest.er1
     5069  ac_status=$?
     5070  grep -v '^ *+' conftest.er1 >conftest.err
     5071  rm -f conftest.er1
     5072  cat conftest.err >&5
     5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5074  (exit $ac_status); } &&
     5075         { ac_try='test -z "$ac_c_werror_flag"
     5076                         || test ! -s conftest.err'
     5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5078  (eval $ac_try) 2>&5
     5079  ac_status=$?
     5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5081  (exit $ac_status); }; } &&
     5082         { ac_try='test -s conftest.$ac_objext'
     5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5084  (eval $ac_try) 2>&5
     5085  ac_status=$?
     5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5087  (exit $ac_status); }; }; then
    22945088  ac_cv_header_time=yes
    22955089else
    2296   echo "configure: failed program was:" >&5
    2297   cat conftest.$ac_ext >&5
    2298   rm -rf conftest*
    2299   ac_cv_header_time=no
    2300 fi
    2301 rm -f conftest*
    2302 fi
    2303 
    2304 echo "$ac_t""$ac_cv_header_time" 1>&6
     5090  echo "$as_me: failed program was:" >&5
     5091sed 's/^/| /' conftest.$ac_ext >&5
     5092
     5093ac_cv_header_time=no
     5094fi
     5095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5096fi
     5097echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     5098echo "${ECHO_T}$ac_cv_header_time" >&6
    23055099if test $ac_cv_header_time = yes; then
    2306   cat >> confdefs.h <<\EOF
     5100
     5101cat >>confdefs.h <<\_ACEOF
    23075102#define TIME_WITH_SYS_TIME 1
    2308 EOF
     5103_ACEOF
    23095104
    23105105fi
     
    23145109# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    23155110# for constant arguments.  Useless!
    2316 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2317 echo "configure:2318: checking for working alloca.h" >&5
    2318 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2319   echo $ac_n "(cached) $ac_c" 1>&6
    2320 else
    2321   cat > conftest.$ac_ext <<EOF
    2322 #line 2323 "configure"
    2323 #include "confdefs.h"
     5111echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5112echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5113if test "${ac_cv_working_alloca_h+set}" = set; then
     5114  echo $ECHO_N "(cached) $ECHO_C" >&6
     5115else
     5116  cat >conftest.$ac_ext <<_ACEOF
     5117/* confdefs.h.  */
     5118_ACEOF
     5119cat confdefs.h >>conftest.$ac_ext
     5120cat >>conftest.$ac_ext <<_ACEOF
     5121/* end confdefs.h.  */
    23245122#include <alloca.h>
    2325 int main() {
    2326 char *p = alloca(2 * sizeof(int));
    2327 ; return 0; }
    2328 EOF
    2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2330   rm -rf conftest*
    2331   ac_cv_header_alloca_h=yes
    2332 else
    2333   echo "configure: failed program was:" >&5
    2334   cat conftest.$ac_ext >&5
    2335   rm -rf conftest*
    2336   ac_cv_header_alloca_h=no
    2337 fi
    2338 rm -f conftest*
    2339 fi
    2340 
    2341 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2342 if test $ac_cv_header_alloca_h = yes; then
    2343   cat >> confdefs.h <<\EOF
     5123int
     5124main ()
     5125{
     5126char *p = (char *) alloca (2 * sizeof (int));
     5127  ;
     5128  return 0;
     5129}
     5130_ACEOF
     5131rm -f conftest.$ac_objext conftest$ac_exeext
     5132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5133  (eval $ac_link) 2>conftest.er1
     5134  ac_status=$?
     5135  grep -v '^ *+' conftest.er1 >conftest.err
     5136  rm -f conftest.er1
     5137  cat conftest.err >&5
     5138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5139  (exit $ac_status); } &&
     5140         { ac_try='test -z "$ac_c_werror_flag"
     5141                         || test ! -s conftest.err'
     5142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5143  (eval $ac_try) 2>&5
     5144  ac_status=$?
     5145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5146  (exit $ac_status); }; } &&
     5147         { ac_try='test -s conftest$ac_exeext'
     5148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5149  (eval $ac_try) 2>&5
     5150  ac_status=$?
     5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5152  (exit $ac_status); }; }; then
     5153  ac_cv_working_alloca_h=yes
     5154else
     5155  echo "$as_me: failed program was:" >&5
     5156sed 's/^/| /' conftest.$ac_ext >&5
     5157
     5158ac_cv_working_alloca_h=no
     5159fi
     5160rm -f conftest.err conftest.$ac_objext \
     5161      conftest$ac_exeext conftest.$ac_ext
     5162fi
     5163echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     5164echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5165if test $ac_cv_working_alloca_h = yes; then
     5166
     5167cat >>confdefs.h <<\_ACEOF
    23445168#define HAVE_ALLOCA_H 1
    2345 EOF
    2346 
    2347 fi
    2348 
    2349 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2350 echo "configure:2351: checking for alloca" >&5
    2351 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2352   echo $ac_n "(cached) $ac_c" 1>&6
    2353 else
    2354   cat > conftest.$ac_ext <<EOF
    2355 #line 2356 "configure"
    2356 #include "confdefs.h"
    2357 
     5169_ACEOF
     5170
     5171fi
     5172
     5173echo "$as_me:$LINENO: checking for alloca" >&5
     5174echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     5175if test "${ac_cv_func_alloca_works+set}" = set; then
     5176  echo $ECHO_N "(cached) $ECHO_C" >&6
     5177else
     5178  cat >conftest.$ac_ext <<_ACEOF
     5179/* confdefs.h.  */
     5180_ACEOF
     5181cat confdefs.h >>conftest.$ac_ext
     5182cat >>conftest.$ac_ext <<_ACEOF
     5183/* end confdefs.h.  */
    23585184#ifdef __GNUC__
    23595185# define alloca __builtin_alloca
     
    23775203#endif
    23785204
    2379 int main() {
    2380 char *p = (char *) alloca(1);
    2381 ; return 0; }
    2382 EOF
    2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2384   rm -rf conftest*
     5205int
     5206main ()
     5207{
     5208char *p = (char *) alloca (1);
     5209  ;
     5210  return 0;
     5211}
     5212_ACEOF
     5213rm -f conftest.$ac_objext conftest$ac_exeext
     5214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5215  (eval $ac_link) 2>conftest.er1
     5216  ac_status=$?
     5217  grep -v '^ *+' conftest.er1 >conftest.err
     5218  rm -f conftest.er1
     5219  cat conftest.err >&5
     5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5221  (exit $ac_status); } &&
     5222         { ac_try='test -z "$ac_c_werror_flag"
     5223                         || test ! -s conftest.err'
     5224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5225  (eval $ac_try) 2>&5
     5226  ac_status=$?
     5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5228  (exit $ac_status); }; } &&
     5229         { ac_try='test -s conftest$ac_exeext'
     5230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5231  (eval $ac_try) 2>&5
     5232  ac_status=$?
     5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5234  (exit $ac_status); }; }; then
    23855235  ac_cv_func_alloca_works=yes
    23865236else
    2387   echo "configure: failed program was:" >&5
    2388   cat conftest.$ac_ext >&5
    2389   rm -rf conftest*
    2390   ac_cv_func_alloca_works=no
    2391 fi
    2392 rm -f conftest*
    2393 fi
    2394 
    2395 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     5237  echo "$as_me: failed program was:" >&5
     5238sed 's/^/| /' conftest.$ac_ext >&5
     5239
     5240ac_cv_func_alloca_works=no
     5241fi
     5242rm -f conftest.err conftest.$ac_objext \
     5243      conftest$ac_exeext conftest.$ac_ext
     5244fi
     5245echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     5246echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5247
    23965248if test $ac_cv_func_alloca_works = yes; then
    2397   cat >> confdefs.h <<\EOF
     5249
     5250cat >>confdefs.h <<\_ACEOF
    23985251#define HAVE_ALLOCA 1
    2399 EOF
    2400 
    2401 fi
    2402 
    2403 if test $ac_cv_func_alloca_works = no; then
     5252_ACEOF
     5253
     5254else
    24045255  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2405   # that cause trouble.  Some versions do not even contain alloca or
    2406   # contain a buggy version.  If you still want to use their alloca,
    2407   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2408   ALLOCA=alloca.${ac_objext}
    2409   cat >> confdefs.h <<\EOF
     5256# that cause trouble.  Some versions do not even contain alloca or
     5257# contain a buggy version.  If you still want to use their alloca,
     5258# use ar to extract alloca.o from them instead of compiling alloca.c.
     5259
     5260ALLOCA=alloca.$ac_objext
     5261
     5262cat >>confdefs.h <<\_ACEOF
    24105263#define C_ALLOCA 1
    2411 EOF
    2412 
    2413 
    2414 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2415 echo "configure:2416: checking whether alloca needs Cray hooks" >&5
    2416 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2417   echo $ac_n "(cached) $ac_c" 1>&6
    2418 else
    2419   cat > conftest.$ac_ext <<EOF
    2420 #line 2421 "configure"
    2421 #include "confdefs.h"
     5264_ACEOF
     5265
     5266
     5267echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     5268echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     5269if test "${ac_cv_os_cray+set}" = set; then
     5270  echo $ECHO_N "(cached) $ECHO_C" >&6
     5271else
     5272  cat >conftest.$ac_ext <<_ACEOF
     5273/* confdefs.h.  */
     5274_ACEOF
     5275cat confdefs.h >>conftest.$ac_ext
     5276cat >>conftest.$ac_ext <<_ACEOF
     5277/* end confdefs.h.  */
    24225278#if defined(CRAY) && ! defined(CRAY2)
    24235279webecray
     
    24265282#endif
    24275283
    2428 EOF
     5284_ACEOF
    24295285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2430   egrep "webecray" >/dev/null 2>&1; then
    2431   rm -rf conftest*
     5286  $EGREP "webecray" >/dev/null 2>&1; then
    24325287  ac_cv_os_cray=yes
    24335288else
    2434   rm -rf conftest*
    24355289  ac_cv_os_cray=no
    24365290fi
     
    24385292
    24395293fi
    2440 
    2441 echo "$ac_t""$ac_cv_os_cray" 1>&6
     5294echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     5295echo "${ECHO_T}$ac_cv_os_cray" >&6
    24425296if test $ac_cv_os_cray = yes; then
    2443 for ac_func in _getb67 GETB67 getb67; do
    2444   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2445 echo "configure:2446: checking for $ac_func" >&5
    2446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2447   echo $ac_n "(cached) $ac_c" 1>&6
    2448 else
    2449   cat > conftest.$ac_ext <<EOF
    2450 #line 2451 "configure"
    2451 #include "confdefs.h"
     5297  for ac_func in _getb67 GETB67 getb67; do
     5298    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5299echo "$as_me:$LINENO: checking for $ac_func" >&5
     5300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5301if eval "test \"\${$as_ac_var+set}\" = set"; then
     5302  echo $ECHO_N "(cached) $ECHO_C" >&6
     5303else
     5304  cat >conftest.$ac_ext <<_ACEOF
     5305/* confdefs.h.  */
     5306_ACEOF
     5307cat confdefs.h >>conftest.$ac_ext
     5308cat >>conftest.$ac_ext <<_ACEOF
     5309/* end confdefs.h.  */
     5310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5311   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5312#define $ac_func innocuous_$ac_func
     5313
    24525314/* System header to define __stub macros and hopefully few prototypes,
    2453     which can conflict with char $ac_func(); below.  */
    2454 #include <assert.h>
     5315    which can conflict with char $ac_func (); below.
     5316    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5317    <limits.h> exists even on freestanding compilers.  */
     5318
     5319#ifdef __STDC__
     5320# include <limits.h>
     5321#else
     5322# include <assert.h>
     5323#endif
     5324
     5325#undef $ac_func
     5326
    24555327/* Override any gcc2 internal prototype to avoid an error.  */
     5328#ifdef __cplusplus
     5329extern "C"
     5330{
     5331#endif
    24565332/* We use char because int might match the return type of a gcc2
    2457     builtin and then its argument prototype would still apply.  */
    2458 char $ac_func();
    2459 
    2460 int main() {
    2461