Changeset ba0772 in git for kernel/configure


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


git-svn-id: file:///usr/local/Singular/svn/trunk@9266 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 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 
     5333   builtin and then its argument prototype would still apply.  */
     5334char $ac_func ();
    24625335/* The GNU C library defines this for functions which it implements
    24635336    to always fail with ENOSYS.  Some functions are actually named
     
    24665339choke me
    24675340#else
    2468 $ac_func();
     5341char (*f) () = $ac_func;
    24695342#endif
    2470 
    2471 ; return 0; }
    2472 EOF
    2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2474   rm -rf conftest*
    2475   eval "ac_cv_func_$ac_func=yes"
    2476 else
    2477   echo "configure: failed program was:" >&5
    2478   cat conftest.$ac_ext >&5
    2479   rm -rf conftest*
    2480   eval "ac_cv_func_$ac_func=no"
    2481 fi
    2482 rm -f conftest*
    2483 fi
    2484 
    2485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2486   echo "$ac_t""yes" 1>&6
    2487   cat >> confdefs.h <<EOF
     5343#ifdef __cplusplus
     5344}
     5345#endif
     5346
     5347int
     5348main ()
     5349{
     5350return f != $ac_func;
     5351  ;
     5352  return 0;
     5353}
     5354_ACEOF
     5355rm -f conftest.$ac_objext conftest$ac_exeext
     5356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5357  (eval $ac_link) 2>conftest.er1
     5358  ac_status=$?
     5359  grep -v '^ *+' conftest.er1 >conftest.err
     5360  rm -f conftest.er1
     5361  cat conftest.err >&5
     5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5363  (exit $ac_status); } &&
     5364         { ac_try='test -z "$ac_c_werror_flag"
     5365                         || test ! -s conftest.err'
     5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5367  (eval $ac_try) 2>&5
     5368  ac_status=$?
     5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5370  (exit $ac_status); }; } &&
     5371         { ac_try='test -s conftest$ac_exeext'
     5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5373  (eval $ac_try) 2>&5
     5374  ac_status=$?
     5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5376  (exit $ac_status); }; }; then
     5377  eval "$as_ac_var=yes"
     5378else
     5379  echo "$as_me: failed program was:" >&5
     5380sed 's/^/| /' conftest.$ac_ext >&5
     5381
     5382eval "$as_ac_var=no"
     5383fi
     5384rm -f conftest.err conftest.$ac_objext \
     5385      conftest$ac_exeext conftest.$ac_ext
     5386fi
     5387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5389if test `eval echo '${'$as_ac_var'}'` = yes; then
     5390
     5391cat >>confdefs.h <<_ACEOF
    24885392#define CRAY_STACKSEG_END $ac_func
    2489 EOF
    2490 
    2491   break
    2492 else
    2493   echo "$ac_t""no" 1>&6
    2494 fi
    2495 
    2496 done
    2497 fi
    2498 
    2499 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2500 echo "configure:2501: checking stack direction for C alloca" >&5
    2501 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2502   echo $ac_n "(cached) $ac_c" 1>&6
     5393_ACEOF
     5394
     5395    break
     5396fi
     5397
     5398  done
     5399fi
     5400
     5401echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
     5402echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     5403if test "${ac_cv_c_stack_direction+set}" = set; then
     5404  echo $ECHO_N "(cached) $ECHO_C" >&6
    25035405else
    25045406  if test "$cross_compiling" = yes; then
    25055407  ac_cv_c_stack_direction=0
    25065408else
    2507   cat > conftest.$ac_ext <<EOF
    2508 #line 2509 "configure"
    2509 #include "confdefs.h"
     5409  cat >conftest.$ac_ext <<_ACEOF
     5410/* confdefs.h.  */
     5411_ACEOF
     5412cat confdefs.h >>conftest.$ac_ext
     5413cat >>conftest.$ac_ext <<_ACEOF
     5414/* end confdefs.h.  */
     5415int
    25105416find_stack_direction ()
    25115417{
     
    25205426    return (&dummy > addr) ? 1 : -1;
    25215427}
     5428
     5429int
    25225430main ()
    25235431{
    2524   exit (find_stack_direction() < 0);
     5432  exit (find_stack_direction () < 0);
    25255433}
    2526 EOF
    2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2528 then
     5434_ACEOF
     5435rm -f conftest$ac_exeext
     5436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5437  (eval $ac_link) 2>&5
     5438  ac_status=$?
     5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5440  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5442  (eval $ac_try) 2>&5
     5443  ac_status=$?
     5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5445  (exit $ac_status); }; }; then
    25295446  ac_cv_c_stack_direction=1
    25305447else
    2531   echo "configure: failed program was:" >&5
    2532   cat conftest.$ac_ext >&5
    2533   rm -fr conftest*
    2534   ac_cv_c_stack_direction=-1
    2535 fi
    2536 rm -fr conftest*
    2537 fi
    2538 
    2539 fi
    2540 
    2541 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2542 cat >> confdefs.h <<EOF
     5448  echo "$as_me: program exited with status $ac_status" >&5
     5449echo "$as_me: failed program was:" >&5
     5450sed 's/^/| /' conftest.$ac_ext >&5
     5451
     5452( exit $ac_status )
     5453ac_cv_c_stack_direction=-1
     5454fi
     5455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5456fi
     5457fi
     5458echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
     5459echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     5460
     5461cat >>confdefs.h <<_ACEOF
    25435462#define STACK_DIRECTION $ac_cv_c_stack_direction
    2544 EOF
    2545 
    2546 fi
    2547 
    2548 if test $ac_cv_prog_gcc = yes; then
    2549     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2550 echo "configure:2551: checking whether ${CC-cc} needs -traditional" >&5
    2551 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2552   echo $ac_n "(cached) $ac_c" 1>&6
     5463_ACEOF
     5464
     5465
     5466fi
     5467
     5468if test $ac_cv_c_compiler_gnu = yes; then
     5469    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
     5470echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     5471if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     5472  echo $ECHO_N "(cached) $ECHO_C" >&6
    25535473else
    25545474    ac_pattern="Autoconf.*'x'"
    2555   cat > conftest.$ac_ext <<EOF
    2556 #line 2557 "configure"
    2557 #include "confdefs.h"
     5475  cat >conftest.$ac_ext <<_ACEOF
     5476/* confdefs.h.  */
     5477_ACEOF
     5478cat confdefs.h >>conftest.$ac_ext
     5479cat >>conftest.$ac_ext <<_ACEOF
     5480/* end confdefs.h.  */
    25585481#include <sgtty.h>
    25595482Autoconf TIOCGETP
    2560 EOF
     5483_ACEOF
    25615484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2562   egrep "$ac_pattern" >/dev/null 2>&1; then
    2563   rm -rf conftest*
     5485  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    25645486  ac_cv_prog_gcc_traditional=yes
    25655487else
    2566   rm -rf conftest*
    25675488  ac_cv_prog_gcc_traditional=no
    25685489fi
     
    25715492
    25725493  if test $ac_cv_prog_gcc_traditional = no; then
    2573     cat > conftest.$ac_ext <<EOF
    2574 #line 2575 "configure"
    2575 #include "confdefs.h"
     5494    cat >conftest.$ac_ext <<_ACEOF
     5495/* confdefs.h.  */
     5496_ACEOF
     5497cat confdefs.h >>conftest.$ac_ext
     5498cat >>conftest.$ac_ext <<_ACEOF
     5499/* end confdefs.h.  */
    25765500#include <termio.h>
    25775501Autoconf TCGETA
    2578 EOF
     5502_ACEOF
    25795503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2580   egrep "$ac_pattern" >/dev/null 2>&1; then
    2581   rm -rf conftest*
     5504  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    25825505  ac_cv_prog_gcc_traditional=yes
    25835506fi
     
    25865509  fi
    25875510fi
    2588 
    2589 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     5511echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
     5512echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    25905513  if test $ac_cv_prog_gcc_traditional = yes; then
    25915514    CC="$CC -traditional"
     
    25935516fi
    25945517
    2595 for ac_hdr in unistd.h
     5518
     5519
     5520for ac_header in stdlib.h unistd.h
    25965521do
    2597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2599 echo "configure:2600: checking for $ac_hdr" >&5
    2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2601   echo $ac_n "(cached) $ac_c" 1>&6
    2602 else
    2603   cat > conftest.$ac_ext <<EOF
    2604 #line 2605 "configure"
    2605 #include "confdefs.h"
    2606 #include <$ac_hdr>
    2607 EOF
    2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2611 if test -z "$ac_err"; then
    2612   rm -rf conftest*
    2613   eval "ac_cv_header_$ac_safe=yes"
    2614 else
    2615   echo "$ac_err" >&5
    2616   echo "configure: failed program was:" >&5
    2617   cat conftest.$ac_ext >&5
    2618   rm -rf conftest*
    2619   eval "ac_cv_header_$ac_safe=no"
    2620 fi
    2621 rm -f conftest*
    2622 fi
    2623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2624   echo "$ac_t""yes" 1>&6
    2625     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2626   cat >> confdefs.h <<EOF
    2627 #define $ac_tr_hdr 1
    2628 EOF
    2629  
    2630 else
    2631   echo "$ac_t""no" 1>&6
    2632 fi
     5522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5523if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5524  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5526if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5527  echo $ECHO_N "(cached) $ECHO_C" >&6
     5528fi
     5529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5531else
     5532  # Is the header compilable?
     5533echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5535cat >conftest.$ac_ext <<_ACEOF
     5536/* confdefs.h.  */
     5537_ACEOF
     5538cat confdefs.h >>conftest.$ac_ext
     5539cat >>conftest.$ac_ext <<_ACEOF
     5540/* end confdefs.h.  */
     5541$ac_includes_default
     5542#include <$ac_header>
     5543_ACEOF
     5544rm -f conftest.$ac_objext
     5545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5546  (eval $ac_compile) 2>conftest.er1
     5547  ac_status=$?
     5548  grep -v '^ *+' conftest.er1 >conftest.err
     5549  rm -f conftest.er1
     5550  cat conftest.err >&5
     5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5552  (exit $ac_status); } &&
     5553         { ac_try='test -z "$ac_c_werror_flag"
     5554                         || test ! -s conftest.err'
     5555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5556  (eval $ac_try) 2>&5
     5557  ac_status=$?
     5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5559  (exit $ac_status); }; } &&
     5560         { ac_try='test -s conftest.$ac_objext'
     5561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5562  (eval $ac_try) 2>&5
     5563  ac_status=$?
     5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5565  (exit $ac_status); }; }; then
     5566  ac_header_compiler=yes
     5567else
     5568  echo "$as_me: failed program was:" >&5
     5569sed 's/^/| /' conftest.$ac_ext >&5
     5570
     5571ac_header_compiler=no
     5572fi
     5573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5575echo "${ECHO_T}$ac_header_compiler" >&6
     5576
     5577# Is the header present?
     5578echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5580cat >conftest.$ac_ext <<_ACEOF
     5581/* confdefs.h.  */
     5582_ACEOF
     5583cat confdefs.h >>conftest.$ac_ext
     5584cat >>conftest.$ac_ext <<_ACEOF
     5585/* end confdefs.h.  */
     5586#include <$ac_header>
     5587_ACEOF
     5588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5590  ac_status=$?
     5591  grep -v '^ *+' conftest.er1 >conftest.err
     5592  rm -f conftest.er1
     5593  cat conftest.err >&5
     5594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5595  (exit $ac_status); } >/dev/null; then
     5596  if test -s conftest.err; then
     5597    ac_cpp_err=$ac_c_preproc_warn_flag
     5598    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5599  else
     5600    ac_cpp_err=
     5601  fi
     5602else
     5603  ac_cpp_err=yes
     5604fi
     5605if test -z "$ac_cpp_err"; then
     5606  ac_header_preproc=yes
     5607else
     5608  echo "$as_me: failed program was:" >&5
     5609sed 's/^/| /' conftest.$ac_ext >&5
     5610
     5611  ac_header_preproc=no
     5612fi
     5613rm -f conftest.err conftest.$ac_ext
     5614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5615echo "${ECHO_T}$ac_header_preproc" >&6
     5616
     5617# So?  What about this header?
     5618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5619  yes:no: )
     5620    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5622    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5624    ac_header_preproc=yes
     5625    ;;
     5626  no:yes:* )
     5627    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5629    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5630echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5631    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5633    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5634echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5635    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5637    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5639    (
     5640      cat <<\_ASBOX
     5641## ------------------------------------------ ##
     5642## Report this to the AC_PACKAGE_NAME lists.  ##
     5643## ------------------------------------------ ##
     5644_ASBOX
     5645    ) |
     5646      sed "s/^/$as_me: WARNING:     /" >&2
     5647    ;;
     5648esac
     5649echo "$as_me:$LINENO: checking for $ac_header" >&5
     5650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5651if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5652  echo $ECHO_N "(cached) $ECHO_C" >&6
     5653else
     5654  eval "$as_ac_Header=\$ac_header_preproc"
     5655fi
     5656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5658
     5659fi
     5660if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5661  cat >>confdefs.h <<_ACEOF
     5662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5663_ACEOF
     5664
     5665fi
     5666
    26335667done
     5668
    26345669
    26355670for ac_func in getpagesize
    26365671do
    2637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2638 echo "configure:2639: checking for $ac_func" >&5
    2639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2640   echo $ac_n "(cached) $ac_c" 1>&6
    2641 else
    2642   cat > conftest.$ac_ext <<EOF
    2643 #line 2644 "configure"
    2644 #include "confdefs.h"
     5672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5673echo "$as_me:$LINENO: checking for $ac_func" >&5
     5674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5675if eval "test \"\${$as_ac_var+set}\" = set"; then
     5676  echo $ECHO_N "(cached) $ECHO_C" >&6
     5677else
     5678  cat >conftest.$ac_ext <<_ACEOF
     5679/* confdefs.h.  */
     5680_ACEOF
     5681cat confdefs.h >>conftest.$ac_ext
     5682cat >>conftest.$ac_ext <<_ACEOF
     5683/* end confdefs.h.  */
     5684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5685   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5686#define $ac_func innocuous_$ac_func
     5687
    26455688/* System header to define __stub macros and hopefully few prototypes,
    2646     which can conflict with char $ac_func(); below.  */
    2647 #include <assert.h>
     5689    which can conflict with char $ac_func (); below.
     5690    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5691    <limits.h> exists even on freestanding compilers.  */
     5692
     5693#ifdef __STDC__
     5694# include <limits.h>
     5695#else
     5696# include <assert.h>
     5697#endif
     5698
     5699#undef $ac_func
     5700
    26485701/* Override any gcc2 internal prototype to avoid an error.  */
     5702#ifdef __cplusplus
     5703extern "C"
     5704{
     5705#endif
    26495706/* We use char because int might match the return type of a gcc2
    2650     builtin and then its argument prototype would still apply.  */
    2651 char $ac_func();
    2652 
    2653 int main() {
    2654 
     5707   builtin and then its argument prototype would still apply.  */
     5708char $ac_func ();
    26555709/* The GNU C library defines this for functions which it implements
    26565710    to always fail with ENOSYS.  Some functions are actually named
     
    26595713choke me
    26605714#else
    2661 $ac_func();
     5715char (*f) () = $ac_func;
    26625716#endif
    2663 
    2664 ; return 0; }
    2665 EOF
    2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2667   rm -rf conftest*
    2668   eval "ac_cv_func_$ac_func=yes"
    2669 else
    2670   echo "configure: failed program was:" >&5
    2671   cat conftest.$ac_ext >&5
    2672   rm -rf conftest*
    2673   eval "ac_cv_func_$ac_func=no"
    2674 fi
    2675 rm -f conftest*
    2676 fi
    2677 
    2678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2679   echo "$ac_t""yes" 1>&6
    2680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2681   cat >> confdefs.h <<EOF
    2682 #define $ac_tr_func 1
    2683 EOF
    2684  
    2685 else
    2686   echo "$ac_t""no" 1>&6
     5717#ifdef __cplusplus
     5718}
     5719#endif
     5720
     5721int
     5722main ()
     5723{
     5724return f != $ac_func;
     5725  ;
     5726  return 0;
     5727}
     5728_ACEOF
     5729rm -f conftest.$ac_objext conftest$ac_exeext
     5730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5731  (eval $ac_link) 2>conftest.er1
     5732  ac_status=$?
     5733  grep -v '^ *+' conftest.er1 >conftest.err
     5734  rm -f conftest.er1
     5735  cat conftest.err >&5
     5736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5737  (exit $ac_status); } &&
     5738         { ac_try='test -z "$ac_c_werror_flag"
     5739                         || test ! -s conftest.err'
     5740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5741  (eval $ac_try) 2>&5
     5742  ac_status=$?
     5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5744  (exit $ac_status); }; } &&
     5745         { ac_try='test -s conftest$ac_exeext'
     5746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5747  (eval $ac_try) 2>&5
     5748  ac_status=$?
     5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5750  (exit $ac_status); }; }; then
     5751  eval "$as_ac_var=yes"
     5752else
     5753  echo "$as_me: failed program was:" >&5
     5754sed 's/^/| /' conftest.$ac_ext >&5
     5755
     5756eval "$as_ac_var=no"
     5757fi
     5758rm -f conftest.err conftest.$ac_objext \
     5759      conftest$ac_exeext conftest.$ac_ext
     5760fi
     5761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5763if test `eval echo '${'$as_ac_var'}'` = yes; then
     5764  cat >>confdefs.h <<_ACEOF
     5765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5766_ACEOF
     5767
    26875768fi
    26885769done
    26895770
    2690 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2691 echo "configure:2692: checking for working mmap" >&5
    2692 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    2693   echo $ac_n "(cached) $ac_c" 1>&6
     5771echo "$as_me:$LINENO: checking for working mmap" >&5
     5772echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
     5773if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
     5774  echo $ECHO_N "(cached) $ECHO_C" >&6
    26945775else
    26955776  if test "$cross_compiling" = yes; then
    26965777  ac_cv_func_mmap_fixed_mapped=no
    26975778else
    2698   cat > conftest.$ac_ext <<EOF
    2699 #line 2700 "configure"
    2700 #include "confdefs.h"
     5779  cat >conftest.$ac_ext <<_ACEOF
     5780/* confdefs.h.  */
     5781_ACEOF
     5782cat confdefs.h >>conftest.$ac_ext
     5783cat >>conftest.$ac_ext <<_ACEOF
     5784/* end confdefs.h.  */
     5785$ac_includes_default
     5786/* malloc might have been renamed as rpl_malloc. */
     5787#undef malloc
    27015788
    27025789/* Thanks to Mike Haertel and Jim Avera for this test.
     
    27125799   address.  (There have been systems where private was not correctly
    27135800   implemented like the infamous i386 svr4.0, and systems where the
    2714    VM page cache was not coherent with the filesystem buffer cache
     5801   VM page cache was not coherent with the file system buffer cache
    27155802   like early versions of FreeBSD and possibly contemporary NetBSD.)
    27165803   For shared mappings, we should conversely verify that changes get
    2717    propogated back to all the places they're supposed to be.
     5804   propagated back to all the places they're supposed to be.
    27185805
    27195806   Grep wants private fixed already mapped.
     
    27215808   * does it exist and is it safe to write into the mmap'd area
    27225809   * how to use it (BSD variants)  */
    2723 #include <sys/types.h>
     5810
    27245811#include <fcntl.h>
    27255812#include <sys/mman.h>
    27265813
     5814#if !STDC_HEADERS && !HAVE_STDLIB_H
     5815char *malloc ();
     5816#endif
     5817
    27275818/* This mess was copied from the GNU getpagesize.h.  */
    2728 #ifndef HAVE_GETPAGESIZE
    2729 # ifdef HAVE_UNISTD_H
    2730 #  include <unistd.h>
    2731 # endif
    2732 
     5819#if !HAVE_GETPAGESIZE
    27335820/* Assume that all systems that can run configure have sys/param.h.  */
    2734 # ifndef HAVE_SYS_PARAM_H
     5821# if !HAVE_SYS_PARAM_H
    27355822#  define HAVE_SYS_PARAM_H 1
    27365823# endif
     
    27395826#  define getpagesize() sysconf(_SC_PAGESIZE)
    27405827# else /* no _SC_PAGESIZE */
    2741 #  ifdef HAVE_SYS_PARAM_H
     5828#  if HAVE_SYS_PARAM_H
    27425829#   include <sys/param.h>
    27435830#   ifdef EXEC_PAGESIZE
     
    27665853#endif /* no HAVE_GETPAGESIZE */
    27675854
    2768 #ifdef __cplusplus
    2769 extern "C" { void *malloc(unsigned); }
    2770 #else
    2771 char *malloc();
    2772 #endif
    2773 
    27745855int
    2775 main()
     5856main ()
    27765857{
    2777         char *data, *data2, *data3;
    2778         int i, pagesize;
    2779         int fd;
    2780 
    2781         pagesize = getpagesize();
    2782 
    2783         /*
    2784          * First, make a file with some known garbage in it.
    2785          */
    2786         data = malloc(pagesize);
    2787         if (!data)
    2788                 exit(1);
    2789         for (i = 0; i < pagesize; ++i)
    2790                 *(data + i) = rand();
    2791         umask(0);
    2792         fd = creat("conftestmmap", 0600);
    2793         if (fd < 0)
    2794                 exit(1);
    2795         if (write(fd, data, pagesize) != pagesize)
    2796                 exit(1);
    2797         close(fd);
    2798 
    2799         /*
    2800          * Next, try to mmap the file at a fixed address which
    2801          * already has something else allocated at it.  If we can,
    2802          * also make sure that we see the same garbage.
    2803          */
    2804         fd = open("conftestmmap", O_RDWR);
    2805         if (fd < 0)
    2806                 exit(1);
    2807         data2 = malloc(2 * pagesize);
    2808         if (!data2)
    2809                 exit(1);
    2810         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
    2811         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
    2812             MAP_PRIVATE | MAP_FIXED, fd, 0L))
    2813                 exit(1);
    2814         for (i = 0; i < pagesize; ++i)
    2815                 if (*(data + i) != *(data2 + i))
    2816                         exit(1);
    2817 
    2818         /*
    2819          * Finally, make sure that changes to the mapped area
    2820          * do not percolate back to the file as seen by read().
    2821          * (This is a bug on some variants of i386 svr4.0.)
    2822          */
    2823         for (i = 0; i < pagesize; ++i)
    2824                 *(data2 + i) = *(data2 + i) + 1;
    2825         data3 = malloc(pagesize);
    2826         if (!data3)
    2827                 exit(1);
    2828         if (read(fd, data3, pagesize) != pagesize)
    2829                 exit(1);
    2830         for (i = 0; i < pagesize; ++i)
    2831                 if (*(data + i) != *(data3 + i))
    2832                         exit(1);
    2833         close(fd);
    2834         unlink("conftestmmap");
    2835         exit(0);
     5858  char *data, *data2, *data3;
     5859  int i, pagesize;
     5860  int fd;
     5861
     5862  pagesize = getpagesize ();
     5863
     5864  /* First, make a file with some known garbage in it. */
     5865  data = (char *) malloc (pagesize);
     5866  if (!data)
     5867    exit (1);
     5868  for (i = 0; i < pagesize; ++i)
     5869    *(data + i) = rand ();
     5870  umask (0);
     5871  fd = creat ("conftest.mmap", 0600);
     5872  if (fd < 0)
     5873    exit (1);
     5874  if (write (fd, data, pagesize) != pagesize)
     5875    exit (1);
     5876  close (fd);
     5877
     5878  /* Next, try to mmap the file at a fixed address which already has
     5879     something else allocated at it.  If we can, also make sure that
     5880     we see the same garbage.  */
     5881  fd = open ("conftest.mmap", O_RDWR);
     5882  if (fd < 0)
     5883    exit (1);
     5884  data2 = (char *) malloc (2 * pagesize);
     5885  if (!data2)
     5886    exit (1);
     5887  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
     5888  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
     5889                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
     5890    exit (1);
     5891  for (i = 0; i < pagesize; ++i)
     5892    if (*(data + i) != *(data2 + i))
     5893      exit (1);
     5894
     5895  /* Finally, make sure that changes to the mapped area do not
     5896     percolate back to the file as seen by read().  (This is a bug on
     5897     some variants of i386 svr4.0.)  */
     5898  for (i = 0; i < pagesize; ++i)
     5899    *(data2 + i) = *(data2 + i) + 1;
     5900  data3 = (char *) malloc (pagesize);
     5901  if (!data3)
     5902    exit (1);
     5903  if (read (fd, data3, pagesize) != pagesize)
     5904    exit (1);
     5905  for (i = 0; i < pagesize; ++i)
     5906    if (*(data + i) != *(data3 + i))
     5907      exit (1);
     5908  close (fd);
     5909  exit (0);
    28365910}
    2837 
    2838 EOF
    2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2840 then
     5911_ACEOF
     5912rm -f conftest$ac_exeext
     5913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5914  (eval $ac_link) 2>&5
     5915  ac_status=$?
     5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5917  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5919  (eval $ac_try) 2>&5
     5920  ac_status=$?
     5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5922  (exit $ac_status); }; }; then
    28415923  ac_cv_func_mmap_fixed_mapped=yes
    28425924else
    2843   echo "configure: failed program was:" >&5
    2844   cat conftest.$ac_ext >&5
    2845   rm -fr conftest*
    2846   ac_cv_func_mmap_fixed_mapped=no
    2847 fi
    2848 rm -fr conftest*
    2849 fi
    2850 
    2851 fi
    2852 
    2853 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
     5925  echo "$as_me: program exited with status $ac_status" >&5
     5926echo "$as_me: failed program was:" >&5
     5927sed 's/^/| /' conftest.$ac_ext >&5
     5928
     5929( exit $ac_status )
     5930ac_cv_func_mmap_fixed_mapped=no
     5931fi
     5932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5933fi
     5934fi
     5935echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
     5936echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
    28545937if test $ac_cv_func_mmap_fixed_mapped = yes; then
    2855   cat >> confdefs.h <<\EOF
     5938
     5939cat >>confdefs.h <<\_ACEOF
    28565940#define HAVE_MMAP 1
    2857 EOF
    2858 
    2859 fi
    2860 
    2861 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2862 echo "configure:2863: checking return type of signal handlers" >&5
    2863 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2864   echo $ac_n "(cached) $ac_c" 1>&6
    2865 else
    2866   cat > conftest.$ac_ext <<EOF
    2867 #line 2868 "configure"
    2868 #include "confdefs.h"
     5941_ACEOF
     5942
     5943fi
     5944rm -f conftest.mmap
     5945
     5946echo "$as_me:$LINENO: checking return type of signal handlers" >&5
     5947echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     5948if test "${ac_cv_type_signal+set}" = set; then
     5949  echo $ECHO_N "(cached) $ECHO_C" >&6
     5950else
     5951  cat >conftest.$ac_ext <<_ACEOF
     5952/* confdefs.h.  */
     5953_ACEOF
     5954cat confdefs.h >>conftest.$ac_ext
     5955cat >>conftest.$ac_ext <<_ACEOF
     5956/* end confdefs.h.  */
    28695957#include <sys/types.h>
    28705958#include <signal.h>
    28715959#ifdef signal
    2872 #undef signal
     5960# undef signal
    28735961#endif
    28745962#ifdef __cplusplus
     
    28785966#endif
    28795967
    2880 int main() {
     5968int
     5969main ()
     5970{
    28815971int i;
    2882 ; return 0; }
    2883 EOF
    2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2885   rm -rf conftest*
     5972  ;
     5973  return 0;
     5974}
     5975_ACEOF
     5976rm -f conftest.$ac_objext
     5977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5978  (eval $ac_compile) 2>conftest.er1
     5979  ac_status=$?
     5980  grep -v '^ *+' conftest.er1 >conftest.err
     5981  rm -f conftest.er1
     5982  cat conftest.err >&5
     5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5984  (exit $ac_status); } &&
     5985         { ac_try='test -z "$ac_c_werror_flag"
     5986                         || test ! -s conftest.err'
     5987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5988  (eval $ac_try) 2>&5
     5989  ac_status=$?
     5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5991  (exit $ac_status); }; } &&
     5992         { ac_try='test -s conftest.$ac_objext'
     5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5994  (eval $ac_try) 2>&5
     5995  ac_status=$?
     5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5997  (exit $ac_status); }; }; then
    28865998  ac_cv_type_signal=void
    28875999else
    2888   echo "configure: failed program was:" >&5
    2889   cat conftest.$ac_ext >&5
    2890   rm -rf conftest*
    2891   ac_cv_type_signal=int
    2892 fi
    2893 rm -f conftest*
    2894 fi
    2895 
    2896 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2897 cat >> confdefs.h <<EOF
     6000  echo "$as_me: failed program was:" >&5
     6001sed 's/^/| /' conftest.$ac_ext >&5
     6002
     6003ac_cv_type_signal=int
     6004fi
     6005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6006fi
     6007echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
     6008echo "${ECHO_T}$ac_cv_type_signal" >&6
     6009
     6010cat >>confdefs.h <<_ACEOF
    28986011#define RETSIGTYPE $ac_cv_type_signal
    2899 EOF
    2900 
    2901 
    2902 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2903 echo "configure:2904: checking for vprintf" >&5
    2904 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2905   echo $ac_n "(cached) $ac_c" 1>&6
    2906 else
    2907   cat > conftest.$ac_ext <<EOF
    2908 #line 2909 "configure"
    2909 #include "confdefs.h"
     6012_ACEOF
     6013
     6014
     6015
     6016for ac_func in vprintf
     6017do
     6018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6019echo "$as_me:$LINENO: checking for $ac_func" >&5
     6020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     6021if eval "test \"\${$as_ac_var+set}\" = set"; then
     6022  echo $ECHO_N "(cached) $ECHO_C" >&6
     6023else
     6024  cat >conftest.$ac_ext <<_ACEOF
     6025/* confdefs.h.  */
     6026_ACEOF
     6027cat confdefs.h >>conftest.$ac_ext
     6028cat >>conftest.$ac_ext <<_ACEOF
     6029/* end confdefs.h.  */
     6030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     6031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6032#define $ac_func innocuous_$ac_func
     6033
    29106034/* System header to define __stub macros and hopefully few prototypes,
    2911     which can conflict with char vprintf(); below.  */
    2912 #include <assert.h>
     6035    which can conflict with char $ac_func (); below.
     6036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6037    <limits.h> exists even on freestanding compilers.  */
     6038
     6039#ifdef __STDC__
     6040# include <limits.h>
     6041#else
     6042# include <assert.h>
     6043#endif
     6044
     6045#undef $ac_func
     6046
    29136047/* Override any gcc2 internal prototype to avoid an error.  */
     6048#ifdef __cplusplus
     6049extern "C"
     6050{
     6051#endif
    29146052/* We use char because int might match the return type of a gcc2
    2915     builtin and then its argument prototype would still apply.  */
    2916 char vprintf();
    2917 
    2918 int main() {
    2919 
     6053   builtin and then its argument prototype would still apply.  */
     6054char $ac_func ();
    29206055/* The GNU C library defines this for functions which it implements
    29216056    to always fail with ENOSYS.  Some functions are actually named
    29226057    something starting with __ and the normal name is an alias.  */
    2923 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     6058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    29246059choke me
    29256060#else
    2926 vprintf();
     6061char (*f) () = $ac_func;
    29276062#endif
    2928 
    2929 ; return 0; }
    2930 EOF
    2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2932   rm -rf conftest*
    2933   eval "ac_cv_func_vprintf=yes"
    2934 else
    2935   echo "configure: failed program was:" >&5
    2936   cat conftest.$ac_ext >&5
    2937   rm -rf conftest*
    2938   eval "ac_cv_func_vprintf=no"
    2939 fi
    2940 rm -f conftest*
    2941 fi
    2942 
    2943 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2944   echo "$ac_t""yes" 1>&6
    2945   cat >> confdefs.h <<\EOF
    2946 #define HAVE_VPRINTF 1
    2947 EOF
    2948 
    2949 else
    2950   echo "$ac_t""no" 1>&6
    2951 fi
    2952 
    2953 if test "$ac_cv_func_vprintf" != yes; then
    2954 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2955 echo "configure:2956: checking for _doprnt" >&5
    2956 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2957   echo $ac_n "(cached) $ac_c" 1>&6
    2958 else
    2959   cat > conftest.$ac_ext <<EOF
    2960 #line 2961 "configure"
    2961 #include "confdefs.h"
     6063#ifdef __cplusplus
     6064}
     6065#endif
     6066
     6067int
     6068main ()
     6069{
     6070return f != $ac_func;
     6071  ;
     6072  return 0;
     6073}
     6074_ACEOF
     6075rm -f conftest.$ac_objext conftest$ac_exeext
     6076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6077  (eval $ac_link) 2>conftest.er1
     6078  ac_status=$?
     6079  grep -v '^ *+' conftest.er1 >conftest.err
     6080  rm -f conftest.er1
     6081  cat conftest.err >&5
     6082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6083  (exit $ac_status); } &&
     6084         { ac_try='test -z "$ac_c_werror_flag"
     6085                         || test ! -s conftest.err'
     6086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6087  (eval $ac_try) 2>&5
     6088  ac_status=$?
     6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6090  (exit $ac_status); }; } &&
     6091         { ac_try='test -s conftest$ac_exeext'
     6092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6093  (eval $ac_try) 2>&5
     6094  ac_status=$?
     6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6096  (exit $ac_status); }; }; then
     6097  eval "$as_ac_var=yes"
     6098else
     6099  echo "$as_me: failed program was:" >&5
     6100sed 's/^/| /' conftest.$ac_ext >&5
     6101
     6102eval "$as_ac_var=no"
     6103fi
     6104rm -f conftest.err conftest.$ac_objext \
     6105      conftest$ac_exeext conftest.$ac_ext
     6106fi
     6107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6109if test `eval echo '${'$as_ac_var'}'` = yes; then
     6110  cat >>confdefs.h <<_ACEOF
     6111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6112_ACEOF
     6113
     6114echo "$as_me:$LINENO: checking for _doprnt" >&5
     6115echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     6116if test "${ac_cv_func__doprnt+set}" = set; then
     6117  echo $ECHO_N "(cached) $ECHO_C" >&6
     6118else
     6119  cat >conftest.$ac_ext <<_ACEOF
     6120/* confdefs.h.  */
     6121_ACEOF
     6122cat confdefs.h >>conftest.$ac_ext
     6123cat >>conftest.$ac_ext <<_ACEOF
     6124/* end confdefs.h.  */
     6125/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     6126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6127#define _doprnt innocuous__doprnt
     6128
    29626129/* System header to define __stub macros and hopefully few prototypes,
    2963     which can conflict with char _doprnt(); below.  */
    2964 #include <assert.h>
     6130    which can conflict with char _doprnt (); below.
     6131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6132    <limits.h> exists even on freestanding compilers.  */
     6133
     6134#ifdef __STDC__
     6135# include <limits.h>
     6136#else
     6137# include <assert.h>
     6138#endif
     6139
     6140#undef _doprnt
     6141
    29656142/* Override any gcc2 internal prototype to avoid an error.  */
     6143#ifdef __cplusplus
     6144extern "C"
     6145{
     6146#endif
    29666147/* We use char because int might match the return type of a gcc2
    2967     builtin and then its argument prototype would still apply.  */
    2968 char _doprnt();
    2969 
    2970 int main() {
    2971 
     6148   builtin and then its argument prototype would still apply.  */
     6149char _doprnt ();
    29726150/* The GNU C library defines this for functions which it implements
    29736151    to always fail with ENOSYS.  Some functions are actually named
     
    29766154choke me
    29776155#else
    2978 _doprnt();
     6156char (*f) () = _doprnt;
    29796157#endif
    2980 
    2981 ; return 0; }
    2982 EOF
    2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2984   rm -rf conftest*
    2985   eval "ac_cv_func__doprnt=yes"
    2986 else
    2987   echo "configure: failed program was:" >&5
    2988   cat conftest.$ac_ext >&5
    2989   rm -rf conftest*
    2990   eval "ac_cv_func__doprnt=no"
    2991 fi
    2992 rm -f conftest*
    2993 fi
    2994 
    2995 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2996   echo "$ac_t""yes" 1>&6
    2997   cat >> confdefs.h <<\EOF
     6158#ifdef __cplusplus
     6159}
     6160#endif
     6161
     6162int
     6163main ()
     6164{
     6165return f != _doprnt;
     6166  ;
     6167  return 0;
     6168}
     6169_ACEOF
     6170rm -f conftest.$ac_objext conftest$ac_exeext
     6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6172  (eval $ac_link) 2>conftest.er1
     6173  ac_status=$?
     6174  grep -v '^ *+' conftest.er1 >conftest.err
     6175  rm -f conftest.er1
     6176  cat conftest.err >&5
     6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6178  (exit $ac_status); } &&
     6179         { ac_try='test -z "$ac_c_werror_flag"
     6180                         || test ! -s conftest.err'
     6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6182  (eval $ac_try) 2>&5
     6183  ac_status=$?
     6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6185  (exit $ac_status); }; } &&
     6186         { ac_try='test -s conftest$ac_exeext'
     6187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6188  (eval $ac_try) 2>&5
     6189  ac_status=$?
     6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6191  (exit $ac_status); }; }; then
     6192  ac_cv_func__doprnt=yes
     6193else
     6194  echo "$as_me: failed program was:" >&5
     6195sed 's/^/| /' conftest.$ac_ext >&5
     6196
     6197ac_cv_func__doprnt=no
     6198fi
     6199rm -f conftest.err conftest.$ac_objext \
     6200      conftest$ac_exeext conftest.$ac_ext
     6201fi
     6202echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
     6203echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     6204if test $ac_cv_func__doprnt = yes; then
     6205
     6206cat >>confdefs.h <<\_ACEOF
    29986207#define HAVE_DOPRNT 1
    2999 EOF
    3000 
    3001 else
    3002   echo "$ac_t""no" 1>&6
    3003 fi
    3004 
    3005 fi
    3006 
    3007 
    3008 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6
    3009 echo "configure:3010: checking for library containing setenv" >&5
    3010 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then
    3011   echo $ac_n "(cached) $ac_c" 1>&6
    3012 else
    3013   ac_func_search_save_LIBS="$LIBS"
    3014 ac_cv_search_setenv="no"
    3015 cat > conftest.$ac_ext <<EOF
    3016 #line 3017 "configure"
    3017 #include "confdefs.h"
     6208_ACEOF
     6209
     6210fi
     6211
     6212fi
     6213done
     6214
     6215
     6216echo "$as_me:$LINENO: checking for library containing setenv" >&5
     6217echo $ECHO_N "checking for library containing setenv... $ECHO_C" >&6
     6218if test "${ac_cv_search_setenv+set}" = set; then
     6219  echo $ECHO_N "(cached) $ECHO_C" >&6
     6220else
     6221  ac_func_search_save_LIBS=$LIBS
     6222ac_cv_search_setenv=no
     6223cat >conftest.$ac_ext <<_ACEOF
     6224/* confdefs.h.  */
     6225_ACEOF
     6226cat confdefs.h >>conftest.$ac_ext
     6227cat >>conftest.$ac_ext <<_ACEOF
     6228/* end confdefs.h.  */
     6229
    30186230/* Override any gcc2 internal prototype to avoid an error.  */
     6231#ifdef __cplusplus
     6232extern "C"
     6233#endif
    30196234/* We use char because int might match the return type of a gcc2
    3020     builtin and then its argument prototype would still apply.  */
    3021 char setenv();
    3022 
    3023 int main() {
    3024 setenv()
    3025 ; return 0; }
    3026 EOF
    3027 if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3028   rm -rf conftest*
     6235   builtin and then its argument prototype would still apply.  */
     6236char setenv ();
     6237int
     6238main ()
     6239{
     6240setenv ();
     6241  ;
     6242  return 0;
     6243}
     6244_ACEOF
     6245rm -f conftest.$ac_objext conftest$ac_exeext
     6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6247  (eval $ac_link) 2>conftest.er1
     6248  ac_status=$?
     6249  grep -v '^ *+' conftest.er1 >conftest.err
     6250  rm -f conftest.er1
     6251  cat conftest.err >&5
     6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6253  (exit $ac_status); } &&
     6254         { ac_try='test -z "$ac_c_werror_flag"
     6255                         || test ! -s conftest.err'
     6256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6257  (eval $ac_try) 2>&5
     6258  ac_status=$?
     6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6260  (exit $ac_status); }; } &&
     6261         { ac_try='test -s conftest$ac_exeext'
     6262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6263  (eval $ac_try) 2>&5
     6264  ac_status=$?
     6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6266  (exit $ac_status); }; }; then
    30296267  ac_cv_search_setenv="none required"
    30306268else
    3031   echo "configure: failed program was:" >&5
    3032   cat conftest.$ac_ext >&5
    3033 fi
    3034 rm -f conftest*
    3035 test "$ac_cv_search_setenv" = "no" && for i in bsd; do
    3036 LIBS="-l$i  $ac_func_search_save_LIBS"
    3037 cat > conftest.$ac_ext <<EOF
    3038 #line 3039 "configure"
    3039 #include "confdefs.h"
     6269  echo "$as_me: failed program was:" >&5
     6270sed 's/^/| /' conftest.$ac_ext >&5
     6271
     6272fi
     6273rm -f conftest.err conftest.$ac_objext \
     6274      conftest$ac_exeext conftest.$ac_ext
     6275if test "$ac_cv_search_setenv" = no; then
     6276  for ac_lib in bsd; do
     6277    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     6278    cat >conftest.$ac_ext <<_ACEOF
     6279/* confdefs.h.  */
     6280_ACEOF
     6281cat confdefs.h >>conftest.$ac_ext
     6282cat >>conftest.$ac_ext <<_ACEOF
     6283/* end confdefs.h.  */
     6284
    30406285/* Override any gcc2 internal prototype to avoid an error.  */
     6286#ifdef __cplusplus
     6287extern "C"
     6288#endif
    30416289/* We use char because int might match the return type of a gcc2
    3042     builtin and then its argument prototype would still apply.  */
    3043 char setenv();
    3044 
    3045 int main() {
    3046 setenv()
    3047 ; return 0; }
    3048 EOF
    3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3050   rm -rf conftest*
    3051   ac_cv_search_setenv="-l$i"
     6290   builtin and then its argument prototype would still apply.  */
     6291char setenv ();
     6292int
     6293main ()
     6294{
     6295setenv ();
     6296  ;
     6297  return 0;
     6298}
     6299_ACEOF
     6300rm -f conftest.$ac_objext conftest$ac_exeext
     6301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6302  (eval $ac_link) 2>conftest.er1
     6303  ac_status=$?
     6304  grep -v '^ *+' conftest.er1 >conftest.err
     6305  rm -f conftest.er1
     6306  cat conftest.err >&5
     6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6308  (exit $ac_status); } &&
     6309         { ac_try='test -z "$ac_c_werror_flag"
     6310                         || test ! -s conftest.err'
     6311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6312  (eval $ac_try) 2>&5
     6313  ac_status=$?
     6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6315  (exit $ac_status); }; } &&
     6316         { ac_try='test -s conftest$ac_exeext'
     6317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6318  (eval $ac_try) 2>&5
     6319  ac_status=$?
     6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6321  (exit $ac_status); }; }; then
     6322  ac_cv_search_setenv="-l$ac_lib"
    30526323break
    30536324else
    3054   echo "configure: failed program was:" >&5
    3055   cat conftest.$ac_ext >&5
    3056 fi
    3057 rm -f conftest*
    3058 done
    3059 LIBS="$ac_func_search_save_LIBS"
    3060 fi
    3061 
    3062 echo "$ac_t""$ac_cv_search_setenv" 1>&6
    3063 if test "$ac_cv_search_setenv" != "no"; then
     6325  echo "$as_me: failed program was:" >&5
     6326sed 's/^/| /' conftest.$ac_ext >&5
     6327
     6328fi
     6329rm -f conftest.err conftest.$ac_objext \
     6330      conftest$ac_exeext conftest.$ac_ext
     6331  done
     6332fi
     6333LIBS=$ac_func_search_save_LIBS
     6334fi
     6335echo "$as_me:$LINENO: result: $ac_cv_search_setenv" >&5
     6336echo "${ECHO_T}$ac_cv_search_setenv" >&6
     6337if test "$ac_cv_search_setenv" != no; then
    30646338  test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS"
    3065  
    3066 else :
    3067  
    3068 fi
     6339
     6340fi
     6341
     6342
     6343
     6344
     6345
     6346
     6347
     6348
     6349
     6350
     6351
     6352
     6353
    30696354for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \
    30706355 sleep usleep getpwnam popen setenv
    30716356do
    3072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3073 echo "configure:3074: checking for $ac_func" >&5
    3074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    3075   echo $ac_n "(cached) $ac_c" 1>&6
    3076 else
    3077   cat > conftest.$ac_ext <<EOF
    3078 #line 3079 "configure"
    3079 #include "confdefs.h"
     6357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6358echo "$as_me:$LINENO: checking for $ac_func" >&5
     6359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     6360if eval "test \"\${$as_ac_var+set}\" = set"; then
     6361  echo $ECHO_N "(cached) $ECHO_C" >&6
     6362else
     6363  cat >conftest.$ac_ext <<_ACEOF
     6364/* confdefs.h.  */
     6365_ACEOF
     6366cat confdefs.h >>conftest.$ac_ext
     6367cat >>conftest.$ac_ext <<_ACEOF
     6368/* end confdefs.h.  */
     6369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     6370   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6371#define $ac_func innocuous_$ac_func
     6372
    30806373/* System header to define __stub macros and hopefully few prototypes,
    3081     which can conflict with char $ac_func(); below.  */
    3082 #include <assert.h>
     6374    which can conflict with char $ac_func (); below.
     6375    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6376    <limits.h> exists even on freestanding compilers.  */
     6377
     6378#ifdef __STDC__
     6379# include <limits.h>
     6380#else
     6381# include <assert.h>
     6382#endif
     6383
     6384#undef $ac_func
     6385
    30836386/* Override any gcc2 internal prototype to avoid an error.  */
     6387#ifdef __cplusplus
     6388extern "C"
     6389{
     6390#endif
    30846391/* We use char because int might match the return type of a gcc2
    3085     builtin and then its argument prototype would still apply.  */
    3086 char $ac_func();
    3087 
    3088 int main() {
    3089 
     6392   builtin and then its argument prototype would still apply.  */
     6393char $ac_func ();
    30906394/* The GNU C library defines this for functions which it implements
    30916395    to always fail with ENOSYS.  Some functions are actually named
     
    30946398choke me
    30956399#else
    3096 $ac_func();
     6400char (*f) () = $ac_func;
    30976401#endif
    3098 
    3099 ; return 0; }
    3100 EOF
    3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3102   rm -rf conftest*
    3103   eval "ac_cv_func_$ac_func=yes"
    3104 else
    3105   echo "configure: failed program was:" >&5
    3106   cat conftest.$ac_ext >&5
    3107   rm -rf conftest*
    3108   eval "ac_cv_func_$ac_func=no"
    3109 fi
    3110 rm -f conftest*
    3111 fi
    3112 
    3113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    3114   echo "$ac_t""yes" 1>&6
    3115     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    3116   cat >> confdefs.h <<EOF
    3117 #define $ac_tr_func 1
    3118 EOF
    3119  
    3120 else
    3121   echo "$ac_t""no" 1>&6
     6402#ifdef __cplusplus
     6403}
     6404#endif
     6405
     6406int
     6407main ()
     6408{
     6409return f != $ac_func;
     6410  ;
     6411  return 0;
     6412}
     6413_ACEOF
     6414rm -f conftest.$ac_objext conftest$ac_exeext
     6415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6416  (eval $ac_link) 2>conftest.er1
     6417  ac_status=$?
     6418  grep -v '^ *+' conftest.er1 >conftest.err
     6419  rm -f conftest.er1
     6420  cat conftest.err >&5
     6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6422  (exit $ac_status); } &&
     6423         { ac_try='test -z "$ac_c_werror_flag"
     6424                         || test ! -s conftest.err'
     6425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6426  (eval $ac_try) 2>&5
     6427  ac_status=$?
     6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6429  (exit $ac_status); }; } &&
     6430         { ac_try='test -s conftest$ac_exeext'
     6431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6432  (eval $ac_try) 2>&5
     6433  ac_status=$?
     6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6435  (exit $ac_status); }; }; then
     6436  eval "$as_ac_var=yes"
     6437else
     6438  echo "$as_me: failed program was:" >&5
     6439sed 's/^/| /' conftest.$ac_ext >&5
     6440
     6441eval "$as_ac_var=no"
     6442fi
     6443rm -f conftest.err conftest.$ac_objext \
     6444      conftest$ac_exeext conftest.$ac_ext
     6445fi
     6446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6448if test `eval echo '${'$as_ac_var'}'` = yes; then
     6449  cat >>confdefs.h <<_ACEOF
     6450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6451_ACEOF
     6452
    31226453fi
    31236454done
     
    31276458
    31286459# arithmetic shifts
    3129 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
    3130 echo "configure:3131: checking whether your machine has correct arithmetic shifts" >&5
    3131 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    3132   echo $ac_n "(cached) $ac_c" 1>&6
     6460echo "$as_me:$LINENO: checking whether your machine has correct arithmetic shifts" >&5
     6461echo $ECHO_N "checking whether your machine has correct arithmetic shifts... $ECHO_C" >&6
     6462if test "${ac_cv_shift+set}" = set; then
     6463  echo $ECHO_N "(cached) $ECHO_C" >&6
    31336464else
    31346465  if test "$cross_compiling" = yes; then
     
    31366467     ac_cv_shift=yes;
    31376468   else
    3138      echo "$ac_t""no" 1>&6
    3139      { echo "configure: error: cross compilation without default value" 1>&2; exit 1; }
     6469     echo "$as_me:$LINENO: result: no" >&5
     6470echo "${ECHO_T}no" >&6
     6471     { { echo "$as_me:$LINENO: error: cross compilation without default value" >&5
     6472echo "$as_me: error: cross compilation without default value" >&2;}
     6473   { (exit 1); exit 1; }; }
    31406474   fi
    31416475else
    3142   cat > conftest.$ac_ext <<EOF
    3143 #line 3144 "configure"
    3144 #include "confdefs.h"
    3145  int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    3146 EOF
    3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3148 then
     6476  cat >conftest.$ac_ext <<_ACEOF
     6477/* confdefs.h.  */
     6478_ACEOF
     6479cat confdefs.h >>conftest.$ac_ext
     6480cat >>conftest.$ac_ext <<_ACEOF
     6481/* end confdefs.h.  */
     6482 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
     6483_ACEOF
     6484rm -f conftest$ac_exeext
     6485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6486  (eval $ac_link) 2>&5
     6487  ac_status=$?
     6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6489  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6491  (eval $ac_try) 2>&5
     6492  ac_status=$?
     6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6494  (exit $ac_status); }; }; then
    31496495  ac_cv_shift=yes
    31506496else
    3151   echo "configure: failed program was:" >&5
    3152   cat conftest.$ac_ext >&5
    3153   rm -fr conftest*
    3154   ac_cv_shift=no
    3155 fi
    3156 rm -fr conftest*
    3157 fi
    3158 
     6497  echo "$as_me: program exited with status $ac_status" >&5
     6498echo "$as_me: failed program was:" >&5
     6499sed 's/^/| /' conftest.$ac_ext >&5
     6500
     6501( exit $ac_status )
     6502ac_cv_shift=no
     6503fi
     6504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6505fi
    31596506fi
    31606507
    31616508
    31626509if test "$ac_cv_shift" = yes; then
    3163   echo "$ac_t""yes" 1>&6
    3164 else
    3165   echo "$ac_t""no" 1>&6
    3166   { echo "configure: error: need  -2 >> 1 == -1" 1>&2; exit 1; }
     6510  echo "$as_me:$LINENO: result: yes" >&5
     6511echo "${ECHO_T}yes" >&6
     6512else
     6513  echo "$as_me:$LINENO: result: no" >&5
     6514echo "${ECHO_T}no" >&6
     6515  { { echo "$as_me:$LINENO: error: need  -2 >> 1 == -1" >&5
     6516echo "$as_me: error: need  -2 >> 1 == -1" >&2;}
     6517   { (exit 1); exit 1; }; }
    31676518fi
    31686519
    31696520
    31706521# check for a peculiar constructor initialization
    3171 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    3172 echo "configure:3173: checking whether explicit C++ constructor calls are allowed" >&5
    3173 
    3174 ac_ext=C
    3175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     6522echo "$as_me:$LINENO: checking whether explicit C++ constructor calls are allowed" >&5
     6523echo $ECHO_N "checking whether explicit C++ constructor calls are allowed... $ECHO_C" >&6
     6524
     6525
     6526ac_ext=cc
    31766527ac_cpp='$CXXCPP $CPPFLAGS'
    3177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3179 cross_compiling=$ac_cv_prog_cxx_cross
    3180 
    3181 if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then
    3182   echo $ac_n "(cached) $ac_c" 1>&6
    3183 else
    3184   cat > conftest.$ac_ext <<EOF
    3185 #line 3186 "configure"
    3186 #include "confdefs.h"
    3187 
    3188 int main() {
     6528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     6531
     6532if test "${ac_cv_explicit_const+set}" = set; then
     6533  echo $ECHO_N "(cached) $ECHO_C" >&6
     6534else
     6535  cat >conftest.$ac_ext <<_ACEOF
     6536/* confdefs.h.  */
     6537_ACEOF
     6538cat confdefs.h >>conftest.$ac_ext
     6539cat >>conftest.$ac_ext <<_ACEOF
     6540/* end confdefs.h.  */
     6541
     6542int
     6543main ()
     6544{
    31896545class testclass
    31906546  {
     
    31996555  ptr.testclass(1);
    32006556
    3201 ; return 0; }
    3202 EOF
    3203 if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3204   rm -rf conftest*
     6557  ;
     6558  return 0;
     6559}
     6560_ACEOF
     6561rm -f conftest.$ac_objext
     6562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6563  (eval $ac_compile) 2>conftest.er1
     6564  ac_status=$?
     6565  grep -v '^ *+' conftest.er1 >conftest.err
     6566  rm -f conftest.er1
     6567  cat conftest.err >&5
     6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6569  (exit $ac_status); } &&
     6570         { ac_try='test -z "$ac_cxx_werror_flag"
     6571                         || test ! -s conftest.err'
     6572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6573  (eval $ac_try) 2>&5
     6574  ac_status=$?
     6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6576  (exit $ac_status); }; } &&
     6577         { ac_try='test -s conftest.$ac_objext'
     6578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6579  (eval $ac_try) 2>&5
     6580  ac_status=$?
     6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6582  (exit $ac_status); }; }; then
    32056583  ac_cv_explicit_const=yes
    32066584else
    3207   echo "configure: failed program was:" >&5
    3208   cat conftest.$ac_ext >&5
    3209   rm -rf conftest*
    3210   ac_cv_explicit_const=no
    3211 fi
    3212 rm -f conftest*
     6585  echo "$as_me: failed program was:" >&5
     6586sed 's/^/| /' conftest.$ac_ext >&5
     6587
     6588ac_cv_explicit_const=no
     6589fi
     6590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    32136591fi
    32146592
    32156593ac_ext=c
    3216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    32176594ac_cpp='$CPP $CPPFLAGS'
    3218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3220 cross_compiling=$ac_cv_prog_cc_cross
    3221 
    3222 echo "$ac_t""$ac_cv_explicit_const" 1>&6
     6595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6597ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6598
     6599echo "$as_me:$LINENO: result: $ac_cv_explicit_const" >&5
     6600echo "${ECHO_T}$ac_cv_explicit_const" >&6
    32236601if test "$ac_cv_explicit_const" = yes; then
    3224   cat >> confdefs.h <<\EOF
     6602  cat >>confdefs.h <<\_ACEOF
    32256603#define HAVE_EXPLICIT_CONSTR 1
    3226 EOF
     6604_ACEOF
    32276605
    32286606fi
    32296607
    32306608# sprintf returns number of printed chars
    3231 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    3232 echo "configure:3233: checking whether vsprintf returns number of printed chars" >&5
    3233 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    3234   echo $ac_n "(cached) $ac_c" 1>&6
     6609echo "$as_me:$LINENO: checking whether vsprintf returns number of printed chars" >&5
     6610echo $ECHO_N "checking whether vsprintf returns number of printed chars... $ECHO_C" >&6
     6611if test "${ac_cv_returns_n_of_chars+set}" = set; then
     6612  echo $ECHO_N "(cached) $ECHO_C" >&6
    32356613else
    32366614  if test "$cross_compiling" = yes; then
    32376615  ac_cv_returns_n_of_chars=no
    32386616else
    3239   cat > conftest.$ac_ext <<EOF
    3240 #line 3241 "configure"
    3241 #include "confdefs.h"
     6617  cat >conftest.$ac_ext <<_ACEOF
     6618/* confdefs.h.  */
     6619_ACEOF
     6620cat confdefs.h >>conftest.$ac_ext
     6621cat >>conftest.$ac_ext <<_ACEOF
     6622/* end confdefs.h.  */
    32426623#include <stdio.h>
    32436624 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    3244 EOF
    3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3246 then
     6625_ACEOF
     6626rm -f conftest$ac_exeext
     6627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6628  (eval $ac_link) 2>&5
     6629  ac_status=$?
     6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6633  (eval $ac_try) 2>&5
     6634  ac_status=$?
     6635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6636  (exit $ac_status); }; }; then
    32476637  ac_cv_returns_n_of_chars=yes
    32486638else
    3249   echo "configure: failed program was:" >&5
    3250   cat conftest.$ac_ext >&5
    3251   rm -fr conftest*
    3252   ac_cv_returns_n_of_chars=no
    3253 fi
    3254 rm -fr conftest*
    3255 fi
    3256 
     6639  echo "$as_me: program exited with status $ac_status" >&5
     6640echo "$as_me: failed program was:" >&5
     6641sed 's/^/| /' conftest.$ac_ext >&5
     6642
     6643( exit $ac_status )
     6644ac_cv_returns_n_of_chars=no
     6645fi
     6646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6647fi
    32576648fi
    32586649
    32596650if test "$ac_cv_returns_n_of_chars" = yes; then
    3260   echo "$ac_t""yes" 1>&6
    3261 else
    3262   echo "$ac_t""no" 1>&6
    3263   cat >> confdefs.h <<\EOF
     6651  echo "$as_me:$LINENO: result: yes" >&5
     6652echo "${ECHO_T}yes" >&6
     6653else
     6654  echo "$as_me:$LINENO: result: no" >&5
     6655echo "${ECHO_T}no" >&6
     6656  cat >>confdefs.h <<\_ACEOF
    32646657#define BSD_SPRINTF 1
    3265 EOF
     6658_ACEOF
    32666659
    32676660fi
    32686661
    32696662# determine ALIGN_8
    3270 echo $ac_n "checking size of char""... $ac_c" 1>&6
    3271 echo "configure:3272: checking size of char" >&5
    3272 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    3273   echo $ac_n "(cached) $ac_c" 1>&6
    3274 else
     6663echo "$as_me:$LINENO: checking for char" >&5
     6664echo $ECHO_N "checking for char... $ECHO_C" >&6
     6665if test "${ac_cv_type_char+set}" = set; then
     6666  echo $ECHO_N "(cached) $ECHO_C" >&6
     6667else
     6668  cat >conftest.$ac_ext <<_ACEOF
     6669/* confdefs.h.  */
     6670_ACEOF
     6671cat confdefs.h >>conftest.$ac_ext
     6672cat >>conftest.$ac_ext <<_ACEOF
     6673/* end confdefs.h.  */
     6674$ac_includes_default
     6675int
     6676main ()
     6677{
     6678if ((char *) 0)
     6679  return 0;
     6680if (sizeof (char))
     6681  return 0;
     6682  ;
     6683  return 0;
     6684}
     6685_ACEOF
     6686rm -f conftest.$ac_objext
     6687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6688  (eval $ac_compile) 2>conftest.er1
     6689  ac_status=$?
     6690  grep -v '^ *+' conftest.er1 >conftest.err
     6691  rm -f conftest.er1
     6692  cat conftest.err >&5
     6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6694  (exit $ac_status); } &&
     6695         { ac_try='test -z "$ac_c_werror_flag"
     6696                         || test ! -s conftest.err'
     6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6698  (eval $ac_try) 2>&5
     6699  ac_status=$?
     6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6701  (exit $ac_status); }; } &&
     6702         { ac_try='test -s conftest.$ac_objext'
     6703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6704  (eval $ac_try) 2>&5
     6705  ac_status=$?
     6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6707  (exit $ac_status); }; }; then
     6708  ac_cv_type_char=yes
     6709else
     6710  echo "$as_me: failed program was:" >&5
     6711sed 's/^/| /' conftest.$ac_ext >&5
     6712
     6713ac_cv_type_char=no
     6714fi
     6715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6716fi
     6717echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
     6718echo "${ECHO_T}$ac_cv_type_char" >&6
     6719
     6720echo "$as_me:$LINENO: checking size of char" >&5
     6721echo $ECHO_N "checking size of char... $ECHO_C" >&6
     6722if test "${ac_cv_sizeof_char+set}" = set; then
     6723  echo $ECHO_N "(cached) $ECHO_C" >&6
     6724else
     6725  if test "$ac_cv_type_char" = yes; then
     6726  # The cast to unsigned long works around a bug in the HP C Compiler
     6727  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     6728  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     6729  # This bug is HP SR number 8606223364.
    32756730  if test "$cross_compiling" = yes; then
    3276   ac_cv_sizeof_char=1
    3277 else
    3278   cat > conftest.$ac_ext <<EOF
    3279 #line 3280 "configure"
    3280 #include "confdefs.h"
     6731  # Depending upon the size, compute the lo and hi bounds.
     6732cat >conftest.$ac_ext <<_ACEOF
     6733/* confdefs.h.  */
     6734_ACEOF
     6735cat confdefs.h >>conftest.$ac_ext
     6736cat >>conftest.$ac_ext <<_ACEOF
     6737/* end confdefs.h.  */
     6738$ac_includes_default
     6739int
     6740main ()
     6741{
     6742static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
     6743test_array [0] = 0
     6744
     6745  ;
     6746  return 0;
     6747}
     6748_ACEOF
     6749rm -f conftest.$ac_objext
     6750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6751  (eval $ac_compile) 2>conftest.er1
     6752  ac_status=$?
     6753  grep -v '^ *+' conftest.er1 >conftest.err
     6754  rm -f conftest.er1
     6755  cat conftest.err >&5
     6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6757  (exit $ac_status); } &&
     6758         { ac_try='test -z "$ac_c_werror_flag"
     6759                         || test ! -s conftest.err'
     6760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6761  (eval $ac_try) 2>&5
     6762  ac_status=$?
     6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6764  (exit $ac_status); }; } &&
     6765         { ac_try='test -s conftest.$ac_objext'
     6766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6767  (eval $ac_try) 2>&5
     6768  ac_status=$?
     6769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6770  (exit $ac_status); }; }; then
     6771  ac_lo=0 ac_mid=0
     6772  while :; do
     6773    cat >conftest.$ac_ext <<_ACEOF
     6774/* confdefs.h.  */
     6775_ACEOF
     6776cat confdefs.h >>conftest.$ac_ext
     6777cat >>conftest.$ac_ext <<_ACEOF
     6778/* end confdefs.h.  */
     6779$ac_includes_default
     6780int
     6781main ()
     6782{
     6783static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
     6784test_array [0] = 0
     6785
     6786  ;
     6787  return 0;
     6788}
     6789_ACEOF
     6790rm -f conftest.$ac_objext
     6791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6792  (eval $ac_compile) 2>conftest.er1
     6793  ac_status=$?
     6794  grep -v '^ *+' conftest.er1 >conftest.err
     6795  rm -f conftest.er1
     6796  cat conftest.err >&5
     6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6798  (exit $ac_status); } &&
     6799         { ac_try='test -z "$ac_c_werror_flag"
     6800                         || test ! -s conftest.err'
     6801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6802  (eval $ac_try) 2>&5
     6803  ac_status=$?
     6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6805  (exit $ac_status); }; } &&
     6806         { ac_try='test -s conftest.$ac_objext'
     6807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6808  (eval $ac_try) 2>&5
     6809  ac_status=$?
     6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6811  (exit $ac_status); }; }; then
     6812  ac_hi=$ac_mid; break
     6813else
     6814  echo "$as_me: failed program was:" >&5
     6815sed 's/^/| /' conftest.$ac_ext >&5
     6816
     6817ac_lo=`expr $ac_mid + 1`
     6818                    if test $ac_lo -le $ac_mid; then
     6819                      ac_lo= ac_hi=
     6820                      break
     6821                    fi
     6822                    ac_mid=`expr 2 '*' $ac_mid + 1`
     6823fi
     6824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6825  done
     6826else
     6827  echo "$as_me: failed program was:" >&5
     6828sed 's/^/| /' conftest.$ac_ext >&5
     6829
     6830cat >conftest.$ac_ext <<_ACEOF
     6831/* confdefs.h.  */
     6832_ACEOF
     6833cat confdefs.h >>conftest.$ac_ext
     6834cat >>conftest.$ac_ext <<_ACEOF
     6835/* end confdefs.h.  */
     6836$ac_includes_default
     6837int
     6838main ()
     6839{
     6840static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
     6841test_array [0] = 0
     6842
     6843  ;
     6844  return 0;
     6845}
     6846_ACEOF
     6847rm -f conftest.$ac_objext
     6848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6849  (eval $ac_compile) 2>conftest.er1
     6850  ac_status=$?
     6851  grep -v '^ *+' conftest.er1 >conftest.err
     6852  rm -f conftest.er1
     6853  cat conftest.err >&5
     6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6855  (exit $ac_status); } &&
     6856         { ac_try='test -z "$ac_c_werror_flag"
     6857                         || test ! -s conftest.err'
     6858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6859  (eval $ac_try) 2>&5
     6860  ac_status=$?
     6861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6862  (exit $ac_status); }; } &&
     6863         { ac_try='test -s conftest.$ac_objext'
     6864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6865  (eval $ac_try) 2>&5
     6866  ac_status=$?
     6867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6868  (exit $ac_status); }; }; then
     6869  ac_hi=-1 ac_mid=-1
     6870  while :; do
     6871    cat >conftest.$ac_ext <<_ACEOF
     6872/* confdefs.h.  */
     6873_ACEOF
     6874cat confdefs.h >>conftest.$ac_ext
     6875cat >>conftest.$ac_ext <<_ACEOF
     6876/* end confdefs.h.  */
     6877$ac_includes_default
     6878int
     6879main ()
     6880{
     6881static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
     6882test_array [0] = 0
     6883
     6884  ;
     6885  return 0;
     6886}
     6887_ACEOF
     6888rm -f conftest.$ac_objext
     6889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6890  (eval $ac_compile) 2>conftest.er1
     6891  ac_status=$?
     6892  grep -v '^ *+' conftest.er1 >conftest.err
     6893  rm -f conftest.er1
     6894  cat conftest.err >&5
     6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6896  (exit $ac_status); } &&
     6897         { ac_try='test -z "$ac_c_werror_flag"
     6898                         || test ! -s conftest.err'
     6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6900  (eval $ac_try) 2>&5
     6901  ac_status=$?
     6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6903  (exit $ac_status); }; } &&
     6904         { ac_try='test -s conftest.$ac_objext'
     6905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6906  (eval $ac_try) 2>&5
     6907  ac_status=$?
     6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6909  (exit $ac_status); }; }; then
     6910  ac_lo=$ac_mid; break
     6911else
     6912  echo "$as_me: failed program was:" >&5
     6913sed 's/^/| /' conftest.$ac_ext >&5
     6914
     6915ac_hi=`expr '(' $ac_mid ')' - 1`
     6916                       if test $ac_mid -le $ac_hi; then
     6917                         ac_lo= ac_hi=
     6918                         break
     6919                       fi
     6920                       ac_mid=`expr 2 '*' $ac_mid`
     6921fi
     6922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6923  done
     6924else
     6925  echo "$as_me: failed program was:" >&5
     6926sed 's/^/| /' conftest.$ac_ext >&5
     6927
     6928ac_lo= ac_hi=
     6929fi
     6930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6931fi
     6932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6933# Binary search between lo and hi bounds.
     6934while test "x$ac_lo" != "x$ac_hi"; do
     6935  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     6936  cat >conftest.$ac_ext <<_ACEOF
     6937/* confdefs.h.  */
     6938_ACEOF
     6939cat confdefs.h >>conftest.$ac_ext
     6940cat >>conftest.$ac_ext <<_ACEOF
     6941/* end confdefs.h.  */
     6942$ac_includes_default
     6943int
     6944main ()
     6945{
     6946static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
     6947test_array [0] = 0
     6948
     6949  ;
     6950  return 0;
     6951}
     6952_ACEOF
     6953rm -f conftest.$ac_objext
     6954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6955  (eval $ac_compile) 2>conftest.er1
     6956  ac_status=$?
     6957  grep -v '^ *+' conftest.er1 >conftest.err
     6958  rm -f conftest.er1
     6959  cat conftest.err >&5
     6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6961  (exit $ac_status); } &&
     6962         { ac_try='test -z "$ac_c_werror_flag"
     6963                         || test ! -s conftest.err'
     6964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6965  (eval $ac_try) 2>&5
     6966  ac_status=$?
     6967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6968  (exit $ac_status); }; } &&
     6969         { ac_try='test -s conftest.$ac_objext'
     6970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6971  (eval $ac_try) 2>&5
     6972  ac_status=$?
     6973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6974  (exit $ac_status); }; }; then
     6975  ac_hi=$ac_mid
     6976else
     6977  echo "$as_me: failed program was:" >&5
     6978sed 's/^/| /' conftest.$ac_ext >&5
     6979
     6980ac_lo=`expr '(' $ac_mid ')' + 1`
     6981fi
     6982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6983done
     6984case $ac_lo in
     6985?*) ac_cv_sizeof_char=$ac_lo;;
     6986'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
     6987See \`config.log' for more details." >&5
     6988echo "$as_me: error: cannot compute sizeof (char), 77
     6989See \`config.log' for more details." >&2;}
     6990   { (exit 1); exit 1; }; } ;;
     6991esac
     6992else
     6993  if test "$cross_compiling" = yes; then
     6994  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     6995See \`config.log' for more details." >&5
     6996echo "$as_me: error: cannot run test program while cross compiling
     6997See \`config.log' for more details." >&2;}
     6998   { (exit 1); exit 1; }; }
     6999else
     7000  cat >conftest.$ac_ext <<_ACEOF
     7001/* confdefs.h.  */
     7002_ACEOF
     7003cat confdefs.h >>conftest.$ac_ext
     7004cat >>conftest.$ac_ext <<_ACEOF
     7005/* end confdefs.h.  */
     7006$ac_includes_default
     7007long longval () { return (long) (sizeof (char)); }
     7008unsigned long ulongval () { return (long) (sizeof (char)); }
    32817009#include <stdio.h>
    3282 main()
     7010#include <stdlib.h>
     7011int
     7012main ()
    32837013{
    3284   FILE *f=fopen("conftestval", "w");
    3285   if (!f) exit(1);
    3286   fprintf(f, "%d\n", sizeof(char));
    3287   exit(0);
     7014
     7015  FILE *f = fopen ("conftest.val", "w");
     7016  if (! f)
     7017    exit (1);
     7018  if (((long) (sizeof (char))) < 0)
     7019    {
     7020      long i = longval ();
     7021      if (i != ((long) (sizeof (char))))
     7022        exit (1);
     7023      fprintf (f, "%ld\n", i);
     7024    }
     7025  else
     7026    {
     7027      unsigned long i = ulongval ();
     7028      if (i != ((long) (sizeof (char))))
     7029        exit (1);
     7030      fprintf (f, "%lu\n", i);
     7031    }
     7032  exit (ferror (f) || fclose (f) != 0);
     7033
     7034  ;
     7035  return 0;
    32887036}
    3289 EOF
    3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3291 then
    3292   ac_cv_sizeof_char=`cat conftestval`
    3293 else
    3294   echo "configure: failed program was:" >&5
    3295   cat conftest.$ac_ext >&5
    3296   rm -fr conftest*
     7037_ACEOF
     7038rm -f conftest$ac_exeext
     7039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7040  (eval $ac_link) 2>&5
     7041  ac_status=$?
     7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7043  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7045  (eval $ac_try) 2>&5
     7046  ac_status=$?
     7047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7048  (exit $ac_status); }; }; then
     7049  ac_cv_sizeof_char=`cat conftest.val`
     7050else
     7051  echo "$as_me: program exited with status $ac_status" >&5
     7052echo "$as_me: failed program was:" >&5
     7053sed 's/^/| /' conftest.$ac_ext >&5
     7054
     7055( exit $ac_status )
     7056{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
     7057See \`config.log' for more details." >&5
     7058echo "$as_me: error: cannot compute sizeof (char), 77
     7059See \`config.log' for more details." >&2;}
     7060   { (exit 1); exit 1; }; }
     7061fi
     7062rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7063fi
     7064fi
     7065rm -f conftest.val
     7066else
    32977067  ac_cv_sizeof_char=0
    32987068fi
    3299 rm -fr conftest*
    3300 fi
    3301 
    3302 fi
    3303 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
    3304 cat >> confdefs.h <<EOF
     7069fi
     7070echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
     7071echo "${ECHO_T}$ac_cv_sizeof_char" >&6
     7072cat >>confdefs.h <<_ACEOF
    33057073#define SIZEOF_CHAR $ac_cv_sizeof_char
    3306 EOF
    3307 
    3308 
    3309 echo $ac_n "checking size of short""... $ac_c" 1>&6
    3310 echo "configure:3311: checking size of short" >&5
    3311 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    3312   echo $ac_n "(cached) $ac_c" 1>&6
    3313 else
     7074_ACEOF
     7075
     7076
     7077echo "$as_me:$LINENO: checking for short" >&5
     7078echo $ECHO_N "checking for short... $ECHO_C" >&6
     7079if test "${ac_cv_type_short+set}" = set; then
     7080  echo $ECHO_N "(cached) $ECHO_C" >&6
     7081else
     7082  cat >conftest.$ac_ext <<_ACEOF
     7083/* confdefs.h.  */
     7084_ACEOF
     7085cat confdefs.h >>conftest.$ac_ext
     7086cat >>conftest.$ac_ext <<_ACEOF
     7087/* end confdefs.h.  */
     7088$ac_includes_default
     7089int
     7090main ()
     7091{
     7092if ((short *) 0)
     7093  return 0;
     7094if (sizeof (short))
     7095  return 0;
     7096  ;
     7097  return 0;
     7098}
     7099_ACEOF
     7100rm -f conftest.$ac_objext
     7101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7102  (eval $ac_compile) 2>conftest.er1
     7103  ac_status=$?
     7104  grep -v '^ *+' conftest.er1 >conftest.err
     7105  rm -f conftest.er1
     7106  cat conftest.err >&5
     7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7108  (exit $ac_status); } &&
     7109         { ac_try='test -z "$ac_c_werror_flag"
     7110                         || test ! -s conftest.err'
     7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7112  (eval $ac_try) 2>&5
     7113  ac_status=$?
     7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7115  (exit $ac_status); }; } &&
     7116         { ac_try='test -s conftest.$ac_objext'
     7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7118  (eval $ac_try) 2>&5
     7119  ac_status=$?
     7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7121  (exit $ac_status); }; }; then
     7122  ac_cv_type_short=yes
     7123else
     7124  echo "$as_me: failed program was:" >&5
     7125sed 's/^/| /' conftest.$ac_ext >&5
     7126
     7127ac_cv_type_short=no
     7128fi
     7129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7130fi
     7131echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
     7132echo "${ECHO_T}$ac_cv_type_short" >&6
     7133
     7134echo "$as_me:$LINENO: checking size of short" >&5
     7135echo $ECHO_N "checking size of short... $ECHO_C" >&6
     7136if test "${ac_cv_sizeof_short+set}" = set; then
     7137  echo $ECHO_N "(cached) $ECHO_C" >&6
     7138else
     7139  if test "$ac_cv_type_short" = yes; then
     7140  # The cast to unsigned long works around a bug in the HP C Compiler
     7141  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     7142  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     7143  # This bug is HP SR number 8606223364.
    33147144  if test "$cross_compiling" = yes; then
    3315   ac_cv_sizeof_short=2
    3316 else
    3317   cat > conftest.$ac_ext <<EOF
    3318 #line 3319 "configure"
    3319 #include "confdefs.h"
     7145  # Depending upon the size, compute the lo and hi bounds.
     7146cat >conftest.$ac_ext <<_ACEOF
     7147/* confdefs.h.  */
     7148_ACEOF
     7149cat confdefs.h >>conftest.$ac_ext
     7150cat >>conftest.$ac_ext <<_ACEOF
     7151/* end confdefs.h.  */
     7152$ac_includes_default
     7153int
     7154main ()
     7155{
     7156static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
     7157test_array [0] = 0
     7158
     7159  ;
     7160  return 0;
     7161}
     7162_ACEOF
     7163rm -f conftest.$ac_objext
     7164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7165  (eval $ac_compile) 2>conftest.er1
     7166  ac_status=$?
     7167  grep -v '^ *+' conftest.er1 >conftest.err
     7168  rm -f conftest.er1
     7169  cat conftest.err >&5
     7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7171  (exit $ac_status); } &&
     7172         { ac_try='test -z "$ac_c_werror_flag"
     7173                         || test ! -s conftest.err'
     7174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7175  (eval $ac_try) 2>&5
     7176  ac_status=$?
     7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7178  (exit $ac_status); }; } &&
     7179         { ac_try='test -s conftest.$ac_objext'
     7180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7181  (eval $ac_try) 2>&5
     7182  ac_status=$?
     7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7184  (exit $ac_status); }; }; then
     7185  ac_lo=0 ac_mid=0
     7186  while :; do
     7187    cat >conftest.$ac_ext <<_ACEOF
     7188/* confdefs.h.  */
     7189_ACEOF
     7190cat confdefs.h >>conftest.$ac_ext
     7191cat >>conftest.$ac_ext <<_ACEOF
     7192/* end confdefs.h.  */
     7193$ac_includes_default
     7194int
     7195main ()
     7196{
     7197static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
     7198test_array [0] = 0
     7199
     7200  ;
     7201  return 0;
     7202}
     7203_ACEOF
     7204rm -f conftest.$ac_objext
     7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7206  (eval $ac_compile) 2>conftest.er1
     7207  ac_status=$?
     7208  grep -v '^ *+' conftest.er1 >conftest.err
     7209  rm -f conftest.er1
     7210  cat conftest.err >&5
     7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7212  (exit $ac_status); } &&
     7213         { ac_try='test -z "$ac_c_werror_flag"
     7214                         || test ! -s conftest.err'
     7215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7216  (eval $ac_try) 2>&5
     7217  ac_status=$?
     7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7219  (exit $ac_status); }; } &&
     7220         { ac_try='test -s conftest.$ac_objext'
     7221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7222  (eval $ac_try) 2>&5
     7223  ac_status=$?
     7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7225  (exit $ac_status); }; }; then
     7226  ac_hi=$ac_mid; break
     7227else
     7228  echo "$as_me: failed program was:" >&5
     7229sed 's/^/| /' conftest.$ac_ext >&5
     7230
     7231ac_lo=`expr $ac_mid + 1`
     7232                    if test $ac_lo -le $ac_mid; then
     7233                      ac_lo= ac_hi=
     7234                      break
     7235                    fi
     7236                    ac_mid=`expr 2 '*' $ac_mid + 1`
     7237fi
     7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7239  done
     7240else
     7241  echo "$as_me: failed program was:" >&5
     7242sed 's/^/| /' conftest.$ac_ext >&5
     7243
     7244cat >conftest.$ac_ext <<_ACEOF
     7245/* confdefs.h.  */
     7246_ACEOF
     7247cat confdefs.h >>conftest.$ac_ext
     7248cat >>conftest.$ac_ext <<_ACEOF
     7249/* end confdefs.h.  */
     7250$ac_includes_default
     7251int
     7252main ()
     7253{
     7254static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
     7255test_array [0] = 0
     7256
     7257  ;
     7258  return 0;
     7259}
     7260_ACEOF
     7261rm -f conftest.$ac_objext
     7262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7263  (eval $ac_compile) 2>conftest.er1
     7264  ac_status=$?
     7265  grep -v '^ *+' conftest.er1 >conftest.err
     7266  rm -f conftest.er1
     7267  cat conftest.err >&5
     7268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7269  (exit $ac_status); } &&
     7270         { ac_try='test -z "$ac_c_werror_flag"
     7271                         || test ! -s conftest.err'
     7272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7273  (eval $ac_try) 2>&5
     7274  ac_status=$?
     7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7276  (exit $ac_status); }; } &&
     7277         { ac_try='test -s conftest.$ac_objext'
     7278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7279  (eval $ac_try) 2>&5
     7280  ac_status=$?
     7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7282  (exit $ac_status); }; }; then
     7283  ac_hi=-1 ac_mid=-1
     7284  while :; do
     7285    cat >conftest.$ac_ext <<_ACEOF
     7286/* confdefs.h.  */
     7287_ACEOF
     7288cat confdefs.h >>conftest.$ac_ext
     7289cat >>conftest.$ac_ext <<_ACEOF
     7290/* end confdefs.h.  */
     7291$ac_includes_default
     7292int
     7293main ()
     7294{
     7295static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
     7296test_array [0] = 0
     7297
     7298  ;
     7299  return 0;
     7300}
     7301_ACEOF
     7302rm -f conftest.$ac_objext
     7303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7304  (eval $ac_compile) 2>conftest.er1
     7305  ac_status=$?
     7306  grep -v '^ *+' conftest.er1 >conftest.err
     7307  rm -f conftest.er1
     7308  cat conftest.err >&5
     7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7310  (exit $ac_status); } &&
     7311         { ac_try='test -z "$ac_c_werror_flag"
     7312                         || test ! -s conftest.err'
     7313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7314  (eval $ac_try) 2>&5
     7315  ac_status=$?
     7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7317  (exit $ac_status); }; } &&
     7318         { ac_try='test -s conftest.$ac_objext'
     7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7320  (eval $ac_try) 2>&5
     7321  ac_status=$?
     7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7323  (exit $ac_status); }; }; then
     7324  ac_lo=$ac_mid; break
     7325else
     7326  echo "$as_me: failed program was:" >&5
     7327sed 's/^/| /' conftest.$ac_ext >&5
     7328
     7329ac_hi=`expr '(' $ac_mid ')' - 1`
     7330                       if test $ac_mid -le $ac_hi; then
     7331                         ac_lo= ac_hi=
     7332                         break
     7333                       fi
     7334                       ac_mid=`expr 2 '*' $ac_mid`
     7335fi
     7336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7337  done
     7338else
     7339  echo "$as_me: failed program was:" >&5
     7340sed 's/^/| /' conftest.$ac_ext >&5
     7341
     7342ac_lo= ac_hi=
     7343fi
     7344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7345fi
     7346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7347# Binary search between lo and hi bounds.
     7348while test "x$ac_lo" != "x$ac_hi"; do
     7349  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     7350  cat >conftest.$ac_ext <<_ACEOF
     7351/* confdefs.h.  */
     7352_ACEOF
     7353cat confdefs.h >>conftest.$ac_ext
     7354cat >>conftest.$ac_ext <<_ACEOF
     7355/* end confdefs.h.  */
     7356$ac_includes_default
     7357int
     7358main ()
     7359{
     7360static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
     7361test_array [0] = 0
     7362
     7363  ;
     7364  return 0;
     7365}
     7366_ACEOF
     7367rm -f conftest.$ac_objext
     7368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7369  (eval $ac_compile) 2>conftest.er1
     7370  ac_status=$?
     7371  grep -v '^ *+' conftest.er1 >conftest.err
     7372  rm -f conftest.er1
     7373  cat conftest.err >&5
     7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7375  (exit $ac_status); } &&
     7376         { ac_try='test -z "$ac_c_werror_flag"
     7377                         || test ! -s conftest.err'
     7378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7379  (eval $ac_try) 2>&5
     7380  ac_status=$?
     7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7382  (exit $ac_status); }; } &&
     7383         { ac_try='test -s conftest.$ac_objext'
     7384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7385  (eval $ac_try) 2>&5
     7386  ac_status=$?
     7387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7388  (exit $ac_status); }; }; then
     7389  ac_hi=$ac_mid
     7390else
     7391  echo "$as_me: failed program was:" >&5
     7392sed 's/^/| /' conftest.$ac_ext >&5
     7393
     7394ac_lo=`expr '(' $ac_mid ')' + 1`
     7395fi
     7396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7397done
     7398case $ac_lo in
     7399?*) ac_cv_sizeof_short=$ac_lo;;
     7400'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
     7401See \`config.log' for more details." >&5
     7402echo "$as_me: error: cannot compute sizeof (short), 77
     7403See \`config.log' for more details." >&2;}
     7404   { (exit 1); exit 1; }; } ;;
     7405esac
     7406else
     7407  if test "$cross_compiling" = yes; then
     7408  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     7409See \`config.log' for more details." >&5
     7410echo "$as_me: error: cannot run test program while cross compiling
     7411See \`config.log' for more details." >&2;}
     7412   { (exit 1); exit 1; }; }
     7413else
     7414  cat >conftest.$ac_ext <<_ACEOF
     7415/* confdefs.h.  */
     7416_ACEOF
     7417cat confdefs.h >>conftest.$ac_ext
     7418cat >>conftest.$ac_ext <<_ACEOF
     7419/* end confdefs.h.  */
     7420$ac_includes_default
     7421long longval () { return (long) (sizeof (short)); }
     7422unsigned long ulongval () { return (long) (sizeof (short)); }
    33207423#include <stdio.h>
    3321 main()
     7424#include <stdlib.h>
     7425int
     7426main ()
    33227427{
    3323   FILE *f=fopen("conftestval", "w");
    3324   if (!f) exit(1);
    3325   fprintf(f, "%d\n", sizeof(short));
    3326   exit(0);
     7428
     7429  FILE *f = fopen ("conftest.val", "w");
     7430  if (! f)
     7431    exit (1);
     7432  if (((long) (sizeof (short))) < 0)
     7433    {
     7434      long i = longval ();
     7435      if (i != ((long) (sizeof (short))))
     7436        exit (1);
     7437      fprintf (f, "%ld\n", i);
     7438    }
     7439  else
     7440    {
     7441      unsigned long i = ulongval ();
     7442      if (i != ((long) (sizeof (short))))
     7443        exit (1);
     7444      fprintf (f, "%lu\n", i);
     7445    }
     7446  exit (ferror (f) || fclose (f) != 0);
     7447
     7448  ;
     7449  return 0;
    33277450}
    3328 EOF
    3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3330 then
    3331   ac_cv_sizeof_short=`cat conftestval`
    3332 else
    3333   echo "configure: failed program was:" >&5
    3334   cat conftest.$ac_ext >&5
    3335   rm -fr conftest*
     7451_ACEOF
     7452rm -f conftest$ac_exeext
     7453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7454  (eval $ac_link) 2>&5
     7455  ac_status=$?
     7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7457  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7459  (eval $ac_try) 2>&5
     7460  ac_status=$?
     7461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7462  (exit $ac_status); }; }; then
     7463  ac_cv_sizeof_short=`cat conftest.val`
     7464else
     7465  echo "$as_me: program exited with status $ac_status" >&5
     7466echo "$as_me: failed program was:" >&5
     7467sed 's/^/| /' conftest.$ac_ext >&5
     7468
     7469( exit $ac_status )
     7470{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
     7471See \`config.log' for more details." >&5
     7472echo "$as_me: error: cannot compute sizeof (short), 77
     7473See \`config.log' for more details." >&2;}
     7474   { (exit 1); exit 1; }; }
     7475fi
     7476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7477fi
     7478fi
     7479rm -f conftest.val
     7480else
    33367481  ac_cv_sizeof_short=0
    33377482fi
    3338 rm -fr conftest*
    3339 fi
    3340 
    3341 fi
    3342 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
    3343 cat >> confdefs.h <<EOF
     7483fi
     7484echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
     7485echo "${ECHO_T}$ac_cv_sizeof_short" >&6
     7486cat >>confdefs.h <<_ACEOF
    33447487#define SIZEOF_SHORT $ac_cv_sizeof_short
    3345 EOF
    3346 
    3347 
    3348 echo $ac_n "checking size of int""... $ac_c" 1>&6
    3349 echo "configure:3350: checking size of int" >&5
    3350 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    3351   echo $ac_n "(cached) $ac_c" 1>&6
    3352 else
     7488_ACEOF
     7489
     7490
     7491echo "$as_me:$LINENO: checking for int" >&5
     7492echo $ECHO_N "checking for int... $ECHO_C" >&6
     7493if test "${ac_cv_type_int+set}" = set; then
     7494  echo $ECHO_N "(cached) $ECHO_C" >&6
     7495else
     7496  cat >conftest.$ac_ext <<_ACEOF
     7497/* confdefs.h.  */
     7498_ACEOF
     7499cat confdefs.h >>conftest.$ac_ext
     7500cat >>conftest.$ac_ext <<_ACEOF
     7501/* end confdefs.h.  */
     7502$ac_includes_default
     7503int
     7504main ()
     7505{
     7506if ((int *) 0)
     7507  return 0;
     7508if (sizeof (int))
     7509  return 0;
     7510  ;
     7511  return 0;
     7512}
     7513_ACEOF
     7514rm -f conftest.$ac_objext
     7515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7516  (eval $ac_compile) 2>conftest.er1
     7517  ac_status=$?
     7518  grep -v '^ *+' conftest.er1 >conftest.err
     7519  rm -f conftest.er1
     7520  cat conftest.err >&5
     7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7522  (exit $ac_status); } &&
     7523         { ac_try='test -z "$ac_c_werror_flag"
     7524                         || test ! -s conftest.err'
     7525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7526  (eval $ac_try) 2>&5
     7527  ac_status=$?
     7528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7529  (exit $ac_status); }; } &&
     7530         { ac_try='test -s conftest.$ac_objext'
     7531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7532  (eval $ac_try) 2>&5
     7533  ac_status=$?
     7534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7535  (exit $ac_status); }; }; then
     7536  ac_cv_type_int=yes
     7537else
     7538  echo "$as_me: failed program was:" >&5
     7539sed 's/^/| /' conftest.$ac_ext >&5
     7540
     7541ac_cv_type_int=no
     7542fi
     7543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7544fi
     7545echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
     7546echo "${ECHO_T}$ac_cv_type_int" >&6
     7547
     7548echo "$as_me:$LINENO: checking size of int" >&5
     7549echo $ECHO_N "checking size of int... $ECHO_C" >&6
     7550if test "${ac_cv_sizeof_int+set}" = set; then
     7551  echo $ECHO_N "(cached) $ECHO_C" >&6
     7552else
     7553  if test "$ac_cv_type_int" = yes; then
     7554  # The cast to unsigned long works around a bug in the HP C Compiler
     7555  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     7556  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     7557  # This bug is HP SR number 8606223364.
    33537558  if test "$cross_compiling" = yes; then
    3354   ac_cv_sizeof_int=4
    3355 else
    3356   cat > conftest.$ac_ext <<EOF
    3357 #line 3358 "configure"
    3358 #include "confdefs.h"
     7559  # Depending upon the size, compute the lo and hi bounds.
     7560cat >conftest.$ac_ext <<_ACEOF
     7561/* confdefs.h.  */
     7562_ACEOF
     7563cat confdefs.h >>conftest.$ac_ext
     7564cat >>conftest.$ac_ext <<_ACEOF
     7565/* end confdefs.h.  */
     7566$ac_includes_default
     7567int
     7568main ()
     7569{
     7570static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
     7571test_array [0] = 0
     7572
     7573  ;
     7574  return 0;
     7575}
     7576_ACEOF
     7577rm -f conftest.$ac_objext
     7578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7579  (eval $ac_compile) 2>conftest.er1
     7580  ac_status=$?
     7581  grep -v '^ *+' conftest.er1 >conftest.err
     7582  rm -f conftest.er1
     7583  cat conftest.err >&5
     7584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7585  (exit $ac_status); } &&
     7586         { ac_try='test -z "$ac_c_werror_flag"
     7587                         || test ! -s conftest.err'
     7588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7589  (eval $ac_try) 2>&5
     7590  ac_status=$?
     7591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7592  (exit $ac_status); }; } &&
     7593         { ac_try='test -s conftest.$ac_objext'
     7594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7595  (eval $ac_try) 2>&5
     7596  ac_status=$?
     7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7598  (exit $ac_status); }; }; then
     7599  ac_lo=0 ac_mid=0
     7600  while :; do
     7601    cat >conftest.$ac_ext <<_ACEOF
     7602/* confdefs.h.  */
     7603_ACEOF
     7604cat confdefs.h >>conftest.$ac_ext
     7605cat >>conftest.$ac_ext <<_ACEOF
     7606/* end confdefs.h.  */
     7607$ac_includes_default
     7608int
     7609main ()
     7610{
     7611static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
     7612test_array [0] = 0
     7613
     7614  ;
     7615  return 0;
     7616}
     7617_ACEOF
     7618rm -f conftest.$ac_objext
     7619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7620  (eval $ac_compile) 2>conftest.er1
     7621  ac_status=$?
     7622  grep -v '^ *+' conftest.er1 >conftest.err
     7623  rm -f conftest.er1
     7624  cat conftest.err >&5
     7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7626  (exit $ac_status); } &&
     7627         { ac_try='test -z "$ac_c_werror_flag"
     7628                         || test ! -s conftest.err'
     7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7630  (eval $ac_try) 2>&5
     7631  ac_status=$?
     7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7633  (exit $ac_status); }; } &&
     7634         { ac_try='test -s conftest.$ac_objext'
     7635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7636  (eval $ac_try) 2>&5
     7637  ac_status=$?
     7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7639  (exit $ac_status); }; }; then
     7640  ac_hi=$ac_mid; break
     7641else
     7642  echo "$as_me: failed program was:" >&5
     7643sed 's/^/| /' conftest.$ac_ext >&5
     7644
     7645ac_lo=`expr $ac_mid + 1`
     7646                    if test $ac_lo -le $ac_mid; then
     7647                      ac_lo= ac_hi=
     7648                      break
     7649                    fi
     7650                    ac_mid=`expr 2 '*' $ac_mid + 1`
     7651fi
     7652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7653  done
     7654else
     7655  echo "$as_me: failed program was:" >&5
     7656sed 's/^/| /' conftest.$ac_ext >&5
     7657
     7658cat >conftest.$ac_ext <<_ACEOF
     7659/* confdefs.h.  */
     7660_ACEOF
     7661cat confdefs.h >>conftest.$ac_ext
     7662cat >>conftest.$ac_ext <<_ACEOF
     7663/* end confdefs.h.  */
     7664$ac_includes_default
     7665int
     7666main ()
     7667{
     7668static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
     7669test_array [0] = 0
     7670
     7671  ;
     7672  return 0;
     7673}
     7674_ACEOF
     7675rm -f conftest.$ac_objext
     7676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7677  (eval $ac_compile) 2>conftest.er1
     7678  ac_status=$?
     7679  grep -v '^ *+' conftest.er1 >conftest.err
     7680  rm -f conftest.er1
     7681  cat conftest.err >&5
     7682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7683  (exit $ac_status); } &&
     7684         { ac_try='test -z "$ac_c_werror_flag"
     7685                         || test ! -s conftest.err'
     7686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7687  (eval $ac_try) 2>&5
     7688  ac_status=$?
     7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7690  (exit $ac_status); }; } &&
     7691         { ac_try='test -s conftest.$ac_objext'
     7692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7693  (eval $ac_try) 2>&5
     7694  ac_status=$?
     7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7696  (exit $ac_status); }; }; then
     7697  ac_hi=-1 ac_mid=-1
     7698  while :; do
     7699    cat >conftest.$ac_ext <<_ACEOF
     7700/* confdefs.h.  */
     7701_ACEOF
     7702cat confdefs.h >>conftest.$ac_ext
     7703cat >>conftest.$ac_ext <<_ACEOF
     7704/* end confdefs.h.  */
     7705$ac_includes_default
     7706int
     7707main ()
     7708{
     7709static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
     7710test_array [0] = 0
     7711
     7712  ;
     7713  return 0;
     7714}
     7715_ACEOF
     7716rm -f conftest.$ac_objext
     7717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7718  (eval $ac_compile) 2>conftest.er1
     7719  ac_status=$?
     7720  grep -v '^ *+' conftest.er1 >conftest.err
     7721  rm -f conftest.er1
     7722  cat conftest.err >&5
     7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7724  (exit $ac_status); } &&
     7725         { ac_try='test -z "$ac_c_werror_flag"
     7726                         || test ! -s conftest.err'
     7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7728  (eval $ac_try) 2>&5
     7729  ac_status=$?
     7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7731  (exit $ac_status); }; } &&
     7732         { ac_try='test -s conftest.$ac_objext'
     7733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7734  (eval $ac_try) 2>&5
     7735  ac_status=$?
     7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7737  (exit $ac_status); }; }; then
     7738  ac_lo=$ac_mid; break
     7739else
     7740  echo "$as_me: failed program was:" >&5
     7741sed 's/^/| /' conftest.$ac_ext >&5
     7742
     7743ac_hi=`expr '(' $ac_mid ')' - 1`
     7744                       if test $ac_mid -le $ac_hi; then
     7745                         ac_lo= ac_hi=
     7746                         break
     7747                       fi
     7748                       ac_mid=`expr 2 '*' $ac_mid`
     7749fi
     7750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7751  done
     7752else
     7753  echo "$as_me: failed program was:" >&5
     7754sed 's/^/| /' conftest.$ac_ext >&5
     7755
     7756ac_lo= ac_hi=
     7757fi
     7758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7759fi
     7760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7761# Binary search between lo and hi bounds.
     7762while test "x$ac_lo" != "x$ac_hi"; do
     7763  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     7764  cat >conftest.$ac_ext <<_ACEOF
     7765/* confdefs.h.  */
     7766_ACEOF
     7767cat confdefs.h >>conftest.$ac_ext
     7768cat >>conftest.$ac_ext <<_ACEOF
     7769/* end confdefs.h.  */
     7770$ac_includes_default
     7771int
     7772main ()
     7773{
     7774static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
     7775test_array [0] = 0
     7776
     7777  ;
     7778  return 0;
     7779}
     7780_ACEOF
     7781rm -f conftest.$ac_objext
     7782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7783  (eval $ac_compile) 2>conftest.er1
     7784  ac_status=$?
     7785  grep -v '^ *+' conftest.er1 >conftest.err
     7786  rm -f conftest.er1
     7787  cat conftest.err >&5
     7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7789  (exit $ac_status); } &&
     7790         { ac_try='test -z "$ac_c_werror_flag"
     7791                         || test ! -s conftest.err'
     7792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7793  (eval $ac_try) 2>&5
     7794  ac_status=$?
     7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7796  (exit $ac_status); }; } &&
     7797         { ac_try='test -s conftest.$ac_objext'
     7798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7799  (eval $ac_try) 2>&5
     7800  ac_status=$?
     7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7802  (exit $ac_status); }; }; then
     7803  ac_hi=$ac_mid
     7804else
     7805  echo "$as_me: failed program was:" >&5
     7806sed 's/^/| /' conftest.$ac_ext >&5
     7807
     7808ac_lo=`expr '(' $ac_mid ')' + 1`
     7809fi
     7810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7811done
     7812case $ac_lo in
     7813?*) ac_cv_sizeof_int=$ac_lo;;
     7814'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
     7815See \`config.log' for more details." >&5
     7816echo "$as_me: error: cannot compute sizeof (int), 77
     7817See \`config.log' for more details." >&2;}
     7818   { (exit 1); exit 1; }; } ;;
     7819esac
     7820else
     7821  if test "$cross_compiling" = yes; then
     7822  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     7823See \`config.log' for more details." >&5
     7824echo "$as_me: error: cannot run test program while cross compiling
     7825See \`config.log' for more details." >&2;}
     7826   { (exit 1); exit 1; }; }
     7827else
     7828  cat >conftest.$ac_ext <<_ACEOF
     7829/* confdefs.h.  */
     7830_ACEOF
     7831cat confdefs.h >>conftest.$ac_ext
     7832cat >>conftest.$ac_ext <<_ACEOF
     7833/* end confdefs.h.  */
     7834$ac_includes_default
     7835long longval () { return (long) (sizeof (int)); }
     7836unsigned long ulongval () { return (long) (sizeof (int)); }
    33597837#include <stdio.h>
    3360 main()
     7838#include <stdlib.h>
     7839int
     7840main ()
    33617841{
    3362   FILE *f=fopen("conftestval", "w");
    3363   if (!f) exit(1);
    3364   fprintf(f, "%d\n", sizeof(int));
    3365   exit(0);
     7842
     7843  FILE *f = fopen ("conftest.val", "w");
     7844  if (! f)
     7845    exit (1);
     7846  if (((long) (sizeof (int))) < 0)
     7847    {
     7848      long i = longval ();
     7849      if (i != ((long) (sizeof (int))))
     7850        exit (1);
     7851      fprintf (f, "%ld\n", i);
     7852    }
     7853  else
     7854    {
     7855      unsigned long i = ulongval ();
     7856      if (i != ((long) (sizeof (int))))
     7857        exit (1);
     7858      fprintf (f, "%lu\n", i);
     7859    }
     7860  exit (ferror (f) || fclose (f) != 0);
     7861
     7862  ;
     7863  return 0;
    33667864}
    3367 EOF
    3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3369 then
    3370   ac_cv_sizeof_int=`cat conftestval`
    3371 else
    3372   echo "configure: failed program was:" >&5
    3373   cat conftest.$ac_ext >&5
    3374   rm -fr conftest*
     7865_ACEOF
     7866rm -f conftest$ac_exeext
     7867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7868  (eval $ac_link) 2>&5
     7869  ac_status=$?
     7870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7871  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7873  (eval $ac_try) 2>&5
     7874  ac_status=$?
     7875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7876  (exit $ac_status); }; }; then
     7877  ac_cv_sizeof_int=`cat conftest.val`
     7878else
     7879  echo "$as_me: program exited with status $ac_status" >&5
     7880echo "$as_me: failed program was:" >&5
     7881sed 's/^/| /' conftest.$ac_ext >&5
     7882
     7883( exit $ac_status )
     7884{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
     7885See \`config.log' for more details." >&5
     7886echo "$as_me: error: cannot compute sizeof (int), 77
     7887See \`config.log' for more details." >&2;}
     7888   { (exit 1); exit 1; }; }
     7889fi
     7890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7891fi
     7892fi
     7893rm -f conftest.val
     7894else
    33757895  ac_cv_sizeof_int=0
    33767896fi
    3377 rm -fr conftest*
    3378 fi
    3379 
    3380 fi
    3381 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
    3382 cat >> confdefs.h <<EOF
     7897fi
     7898echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
     7899echo "${ECHO_T}$ac_cv_sizeof_int" >&6
     7900cat >>confdefs.h <<_ACEOF
    33837901#define SIZEOF_INT $ac_cv_sizeof_int
    3384 EOF
    3385 
    3386 
    3387 echo $ac_n "checking size of long""... $ac_c" 1>&6
    3388 echo "configure:3389: checking size of long" >&5
    3389 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    3390   echo $ac_n "(cached) $ac_c" 1>&6
    3391 else
     7902_ACEOF
     7903
     7904
     7905echo "$as_me:$LINENO: checking for long" >&5
     7906echo $ECHO_N "checking for long... $ECHO_C" >&6
     7907if test "${ac_cv_type_long+set}" = set; then
     7908  echo $ECHO_N "(cached) $ECHO_C" >&6
     7909else
     7910  cat >conftest.$ac_ext <<_ACEOF
     7911/* confdefs.h.  */
     7912_ACEOF
     7913cat confdefs.h >>conftest.$ac_ext
     7914cat >>conftest.$ac_ext <<_ACEOF
     7915/* end confdefs.h.  */
     7916$ac_includes_default
     7917int
     7918main ()
     7919{
     7920if ((long *) 0)
     7921  return 0;
     7922if (sizeof (long))
     7923  return 0;
     7924  ;
     7925  return 0;
     7926}
     7927_ACEOF
     7928rm -f conftest.$ac_objext
     7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7930  (eval $ac_compile) 2>conftest.er1
     7931  ac_status=$?
     7932  grep -v '^ *+' conftest.er1 >conftest.err
     7933  rm -f conftest.er1
     7934  cat conftest.err >&5
     7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7936  (exit $ac_status); } &&
     7937         { ac_try='test -z "$ac_c_werror_flag"
     7938                         || test ! -s conftest.err'
     7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7940  (eval $ac_try) 2>&5
     7941  ac_status=$?
     7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7943  (exit $ac_status); }; } &&
     7944         { ac_try='test -s conftest.$ac_objext'
     7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7946  (eval $ac_try) 2>&5
     7947  ac_status=$?
     7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7949  (exit $ac_status); }; }; then
     7950  ac_cv_type_long=yes
     7951else
     7952  echo "$as_me: failed program was:" >&5
     7953sed 's/^/| /' conftest.$ac_ext >&5
     7954
     7955ac_cv_type_long=no
     7956fi
     7957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7958fi
     7959echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
     7960echo "${ECHO_T}$ac_cv_type_long" >&6
     7961
     7962echo "$as_me:$LINENO: checking size of long" >&5
     7963echo $ECHO_N "checking size of long... $ECHO_C" >&6
     7964if test "${ac_cv_sizeof_long+set}" = set; then
     7965  echo $ECHO_N "(cached) $ECHO_C" >&6
     7966else
     7967  if test "$ac_cv_type_long" = yes; then
     7968  # The cast to unsigned long works around a bug in the HP C Compiler
     7969  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     7970  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     7971  # This bug is HP SR number 8606223364.
    33927972  if test "$cross_compiling" = yes; then
    3393   ac_cv_sizeof_long=4
    3394 else
    3395   cat > conftest.$ac_ext <<EOF
    3396 #line 3397 "configure"
    3397 #include "confdefs.h"
     7973  # Depending upon the size, compute the lo and hi bounds.
     7974cat >conftest.$ac_ext <<_ACEOF
     7975/* confdefs.h.  */
     7976_ACEOF
     7977cat confdefs.h >>conftest.$ac_ext
     7978cat >>conftest.$ac_ext <<_ACEOF
     7979/* end confdefs.h.  */
     7980$ac_includes_default
     7981int
     7982main ()
     7983{
     7984static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
     7985test_array [0] = 0
     7986
     7987  ;
     7988  return 0;
     7989}
     7990_ACEOF
     7991rm -f conftest.$ac_objext
     7992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7993  (eval $ac_compile) 2>conftest.er1
     7994  ac_status=$?
     7995  grep -v '^ *+' conftest.er1 >conftest.err
     7996  rm -f conftest.er1
     7997  cat conftest.err >&5
     7998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7999  (exit $ac_status); } &&
     8000         { ac_try='test -z "$ac_c_werror_flag"
     8001                         || test ! -s conftest.err'
     8002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8003  (eval $ac_try) 2>&5
     8004  ac_status=$?
     8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8006  (exit $ac_status); }; } &&
     8007         { ac_try='test -s conftest.$ac_objext'
     8008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8009  (eval $ac_try) 2>&5
     8010  ac_status=$?
     8011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8012  (exit $ac_status); }; }; then
     8013  ac_lo=0 ac_mid=0
     8014  while :; do
     8015    cat >conftest.$ac_ext <<_ACEOF
     8016/* confdefs.h.  */
     8017_ACEOF
     8018cat confdefs.h >>conftest.$ac_ext
     8019cat >>conftest.$ac_ext <<_ACEOF
     8020/* end confdefs.h.  */
     8021$ac_includes_default
     8022int
     8023main ()
     8024{
     8025static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
     8026test_array [0] = 0
     8027
     8028  ;
     8029  return 0;
     8030}
     8031_ACEOF
     8032rm -f conftest.$ac_objext
     8033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8034  (eval $ac_compile) 2>conftest.er1
     8035  ac_status=$?
     8036  grep -v '^ *+' conftest.er1 >conftest.err
     8037  rm -f conftest.er1
     8038  cat conftest.err >&5
     8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8040  (exit $ac_status); } &&
     8041         { ac_try='test -z "$ac_c_werror_flag"
     8042                         || test ! -s conftest.err'
     8043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8044  (eval $ac_try) 2>&5
     8045  ac_status=$?
     8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8047  (exit $ac_status); }; } &&
     8048         { ac_try='test -s conftest.$ac_objext'
     8049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8050  (eval $ac_try) 2>&5
     8051  ac_status=$?
     8052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8053  (exit $ac_status); }; }; then
     8054  ac_hi=$ac_mid; break
     8055else
     8056  echo "$as_me: failed program was:" >&5
     8057sed 's/^/| /' conftest.$ac_ext >&5
     8058
     8059ac_lo=`expr $ac_mid + 1`
     8060                    if test $ac_lo -le $ac_mid; then
     8061                      ac_lo= ac_hi=
     8062                      break
     8063                    fi
     8064                    ac_mid=`expr 2 '*' $ac_mid + 1`
     8065fi
     8066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8067  done
     8068else
     8069  echo "$as_me: failed program was:" >&5
     8070sed 's/^/| /' conftest.$ac_ext >&5
     8071
     8072cat >conftest.$ac_ext <<_ACEOF
     8073/* confdefs.h.  */
     8074_ACEOF
     8075cat confdefs.h >>conftest.$ac_ext
     8076cat >>conftest.$ac_ext <<_ACEOF
     8077/* end confdefs.h.  */
     8078$ac_includes_default
     8079int
     8080main ()
     8081{
     8082static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
     8083test_array [0] = 0
     8084
     8085  ;
     8086  return 0;
     8087}
     8088_ACEOF
     8089rm -f conftest.$ac_objext
     8090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8091  (eval $ac_compile) 2>conftest.er1
     8092  ac_status=$?
     8093  grep -v '^ *+' conftest.er1 >conftest.err
     8094  rm -f conftest.er1
     8095  cat conftest.err >&5
     8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8097  (exit $ac_status); } &&
     8098         { ac_try='test -z "$ac_c_werror_flag"
     8099                         || test ! -s conftest.err'
     8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8101  (eval $ac_try) 2>&5
     8102  ac_status=$?
     8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8104  (exit $ac_status); }; } &&
     8105         { ac_try='test -s conftest.$ac_objext'
     8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8107  (eval $ac_try) 2>&5
     8108  ac_status=$?
     8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8110  (exit $ac_status); }; }; then
     8111  ac_hi=-1 ac_mid=-1
     8112  while :; do
     8113    cat >conftest.$ac_ext <<_ACEOF
     8114/* confdefs.h.  */
     8115_ACEOF
     8116cat confdefs.h >>conftest.$ac_ext
     8117cat >>conftest.$ac_ext <<_ACEOF
     8118/* end confdefs.h.  */
     8119$ac_includes_default
     8120int
     8121main ()
     8122{
     8123static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
     8124test_array [0] = 0
     8125
     8126  ;
     8127  return 0;
     8128}
     8129_ACEOF
     8130rm -f conftest.$ac_objext
     8131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8132  (eval $ac_compile) 2>conftest.er1
     8133  ac_status=$?
     8134  grep -v '^ *+' conftest.er1 >conftest.err
     8135  rm -f conftest.er1
     8136  cat conftest.err >&5
     8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8138  (exit $ac_status); } &&
     8139         { ac_try='test -z "$ac_c_werror_flag"
     8140                         || test ! -s conftest.err'
     8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8142  (eval $ac_try) 2>&5
     8143  ac_status=$?
     8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8145  (exit $ac_status); }; } &&
     8146         { ac_try='test -s conftest.$ac_objext'
     8147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8148  (eval $ac_try) 2>&5
     8149  ac_status=$?
     8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8151  (exit $ac_status); }; }; then
     8152  ac_lo=$ac_mid; break
     8153else
     8154  echo "$as_me: failed program was:" >&5
     8155sed 's/^/| /' conftest.$ac_ext >&5
     8156
     8157ac_hi=`expr '(' $ac_mid ')' - 1`
     8158                       if test $ac_mid -le $ac_hi; then
     8159                         ac_lo= ac_hi=
     8160                         break
     8161                       fi
     8162                       ac_mid=`expr 2 '*' $ac_mid`
     8163fi
     8164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8165  done
     8166else
     8167  echo "$as_me: failed program was:" >&5
     8168sed 's/^/| /' conftest.$ac_ext >&5
     8169
     8170ac_lo= ac_hi=
     8171fi
     8172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8173fi
     8174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8175# Binary search between lo and hi bounds.
     8176while test "x$ac_lo" != "x$ac_hi"; do
     8177  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     8178  cat >conftest.$ac_ext <<_ACEOF
     8179/* confdefs.h.  */
     8180_ACEOF
     8181cat confdefs.h >>conftest.$ac_ext
     8182cat >>conftest.$ac_ext <<_ACEOF
     8183/* end confdefs.h.  */
     8184$ac_includes_default
     8185int
     8186main ()
     8187{
     8188static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
     8189test_array [0] = 0
     8190
     8191  ;
     8192  return 0;
     8193}
     8194_ACEOF
     8195rm -f conftest.$ac_objext
     8196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8197  (eval $ac_compile) 2>conftest.er1
     8198  ac_status=$?
     8199  grep -v '^ *+' conftest.er1 >conftest.err
     8200  rm -f conftest.er1
     8201  cat conftest.err >&5
     8202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8203  (exit $ac_status); } &&
     8204         { ac_try='test -z "$ac_c_werror_flag"
     8205                         || test ! -s conftest.err'
     8206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8207  (eval $ac_try) 2>&5
     8208  ac_status=$?
     8209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8210  (exit $ac_status); }; } &&
     8211         { ac_try='test -s conftest.$ac_objext'
     8212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8213  (eval $ac_try) 2>&5
     8214  ac_status=$?
     8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8216  (exit $ac_status); }; }; then
     8217  ac_hi=$ac_mid
     8218else
     8219  echo "$as_me: failed program was:" >&5
     8220sed 's/^/| /' conftest.$ac_ext >&5
     8221
     8222ac_lo=`expr '(' $ac_mid ')' + 1`
     8223fi
     8224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8225done
     8226case $ac_lo in
     8227?*) ac_cv_sizeof_long=$ac_lo;;
     8228'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
     8229See \`config.log' for more details." >&5
     8230echo "$as_me: error: cannot compute sizeof (long), 77
     8231See \`config.log' for more details." >&2;}
     8232   { (exit 1); exit 1; }; } ;;
     8233esac
     8234else
     8235  if test "$cross_compiling" = yes; then
     8236  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     8237See \`config.log' for more details." >&5
     8238echo "$as_me: error: cannot run test program while cross compiling
     8239See \`config.log' for more details." >&2;}
     8240   { (exit 1); exit 1; }; }
     8241else
     8242  cat >conftest.$ac_ext <<_ACEOF
     8243/* confdefs.h.  */
     8244_ACEOF
     8245cat confdefs.h >>conftest.$ac_ext
     8246cat >>conftest.$ac_ext <<_ACEOF
     8247/* end confdefs.h.  */
     8248$ac_includes_default
     8249long longval () { return (long) (sizeof (long)); }
     8250unsigned long ulongval () { return (long) (sizeof (long)); }
    33988251#include <stdio.h>
    3399 main()
     8252#include <stdlib.h>
     8253int
     8254main ()
    34008255{
    3401   FILE *f=fopen("conftestval", "w");
    3402   if (!f) exit(1);
    3403   fprintf(f, "%d\n", sizeof(long));
    3404   exit(0);
     8256
     8257  FILE *f = fopen ("conftest.val", "w");
     8258  if (! f)
     8259    exit (1);
     8260  if (((long) (sizeof (long))) < 0)
     8261    {
     8262      long i = longval ();
     8263      if (i != ((long) (sizeof (long))))
     8264        exit (1);
     8265      fprintf (f, "%ld\n", i);
     8266    }
     8267  else
     8268    {
     8269      unsigned long i = ulongval ();
     8270      if (i != ((long) (sizeof (long))))
     8271        exit (1);
     8272      fprintf (f, "%lu\n", i);
     8273    }
     8274  exit (ferror (f) || fclose (f) != 0);
     8275
     8276  ;
     8277  return 0;
    34058278}
    3406 EOF
    3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3408 then
    3409   ac_cv_sizeof_long=`cat conftestval`
    3410 else
    3411   echo "configure: failed program was:" >&5
    3412   cat conftest.$ac_ext >&5
    3413   rm -fr conftest*
     8279_ACEOF
     8280rm -f conftest$ac_exeext
     8281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8282  (eval $ac_link) 2>&5
     8283  ac_status=$?
     8284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8285  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     8286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8287  (eval $ac_try) 2>&5
     8288  ac_status=$?
     8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8290  (exit $ac_status); }; }; then
     8291  ac_cv_sizeof_long=`cat conftest.val`
     8292else
     8293  echo "$as_me: program exited with status $ac_status" >&5
     8294echo "$as_me: failed program was:" >&5
     8295sed 's/^/| /' conftest.$ac_ext >&5
     8296
     8297( exit $ac_status )
     8298{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
     8299See \`config.log' for more details." >&5
     8300echo "$as_me: error: cannot compute sizeof (long), 77
     8301See \`config.log' for more details." >&2;}
     8302   { (exit 1); exit 1; }; }
     8303fi
     8304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     8305fi
     8306fi
     8307rm -f conftest.val
     8308else
    34148309  ac_cv_sizeof_long=0
    34158310fi
    3416 rm -fr conftest*
    3417 fi
    3418 
    3419 fi
    3420 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
    3421 cat >> confdefs.h <<EOF
     8311fi
     8312echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
     8313echo "${ECHO_T}$ac_cv_sizeof_long" >&6
     8314cat >>confdefs.h <<_ACEOF
    34228315#define SIZEOF_LONG $ac_cv_sizeof_long
    3423 EOF
    3424 
    3425 
    3426 echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3427 echo "configure:3428: checking size of void*" >&5
    3428 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    3429   echo $ac_n "(cached) $ac_c" 1>&6
    3430 else
     8316_ACEOF
     8317
     8318
     8319echo "$as_me:$LINENO: checking for void*" >&5
     8320echo $ECHO_N "checking for void*... $ECHO_C" >&6
     8321if test "${ac_cv_type_voidp+set}" = set; then
     8322  echo $ECHO_N "(cached) $ECHO_C" >&6
     8323else
     8324  cat >conftest.$ac_ext <<_ACEOF
     8325/* confdefs.h.  */
     8326_ACEOF
     8327cat confdefs.h >>conftest.$ac_ext
     8328cat >>conftest.$ac_ext <<_ACEOF
     8329/* end confdefs.h.  */
     8330$ac_includes_default
     8331int
     8332main ()
     8333{
     8334if ((void* *) 0)
     8335  return 0;
     8336if (sizeof (void*))
     8337  return 0;
     8338  ;
     8339  return 0;
     8340}
     8341_ACEOF
     8342rm -f conftest.$ac_objext
     8343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8344  (eval $ac_compile) 2>conftest.er1
     8345  ac_status=$?
     8346  grep -v '^ *+' conftest.er1 >conftest.err
     8347  rm -f conftest.er1
     8348  cat conftest.err >&5
     8349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8350  (exit $ac_status); } &&
     8351         { ac_try='test -z "$ac_c_werror_flag"
     8352                         || test ! -s conftest.err'
     8353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8354  (eval $ac_try) 2>&5
     8355  ac_status=$?
     8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8357  (exit $ac_status); }; } &&
     8358         { ac_try='test -s conftest.$ac_objext'
     8359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8360  (eval $ac_try) 2>&5
     8361  ac_status=$?
     8362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8363  (exit $ac_status); }; }; then
     8364  ac_cv_type_voidp=yes
     8365else
     8366  echo "$as_me: failed program was:" >&5
     8367sed 's/^/| /' conftest.$ac_ext >&5
     8368
     8369ac_cv_type_voidp=no
     8370fi
     8371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8372fi
     8373echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
     8374echo "${ECHO_T}$ac_cv_type_voidp" >&6
     8375
     8376echo "$as_me:$LINENO: checking size of void*" >&5
     8377echo $ECHO_N "checking size of void*... $ECHO_C" >&6
     8378if test "${ac_cv_sizeof_voidp+set}" = set; then
     8379  echo $ECHO_N "(cached) $ECHO_C" >&6
     8380else
     8381  if test "$ac_cv_type_voidp" = yes; then
     8382  # The cast to unsigned long works around a bug in the HP C Compiler
     8383  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     8384  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     8385  # This bug is HP SR number 8606223364.
    34318386  if test "$cross_compiling" = yes; then
    3432   ac_cv_sizeof_voidp=4
    3433 else
    3434   cat > conftest.$ac_ext <<EOF
    3435 #line 3436 "configure"
    3436 #include "confdefs.h"
     8387  # Depending upon the size, compute the lo and hi bounds.
     8388cat >conftest.$ac_ext <<_ACEOF
     8389/* confdefs.h.  */
     8390_ACEOF
     8391cat confdefs.h >>conftest.$ac_ext
     8392cat >>conftest.$ac_ext <<_ACEOF
     8393/* end confdefs.h.  */
     8394$ac_includes_default
     8395int
     8396main ()
     8397{
     8398static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
     8399test_array [0] = 0
     8400
     8401  ;
     8402  return 0;
     8403}
     8404_ACEOF
     8405rm -f conftest.$ac_objext
     8406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8407  (eval $ac_compile) 2>conftest.er1
     8408  ac_status=$?
     8409  grep -v '^ *+' conftest.er1 >conftest.err
     8410  rm -f conftest.er1
     8411  cat conftest.err >&5
     8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8413  (exit $ac_status); } &&
     8414         { ac_try='test -z "$ac_c_werror_flag"
     8415                         || test ! -s conftest.err'
     8416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8417  (eval $ac_try) 2>&5
     8418  ac_status=$?
     8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8420  (exit $ac_status); }; } &&
     8421         { ac_try='test -s conftest.$ac_objext'
     8422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8423  (eval $ac_try) 2>&5
     8424  ac_status=$?
     8425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8426  (exit $ac_status); }; }; then
     8427  ac_lo=0 ac_mid=0
     8428  while :; do
     8429    cat >conftest.$ac_ext <<_ACEOF
     8430/* confdefs.h.  */
     8431_ACEOF
     8432cat confdefs.h >>conftest.$ac_ext
     8433cat >>conftest.$ac_ext <<_ACEOF
     8434/* end confdefs.h.  */
     8435$ac_includes_default
     8436int
     8437main ()
     8438{
     8439static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
     8440test_array [0] = 0
     8441
     8442  ;
     8443  return 0;
     8444}
     8445_ACEOF
     8446rm -f conftest.$ac_objext
     8447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8448  (eval $ac_compile) 2>conftest.er1
     8449  ac_status=$?
     8450  grep -v '^ *+' conftest.er1 >conftest.err
     8451  rm -f conftest.er1
     8452  cat conftest.err >&5
     8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8454  (exit $ac_status); } &&
     8455         { ac_try='test -z "$ac_c_werror_flag"
     8456                         || test ! -s conftest.err'
     8457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8458  (eval $ac_try) 2>&5
     8459  ac_status=$?
     8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8461  (exit $ac_status); }; } &&
     8462         { ac_try='test -s conftest.$ac_objext'
     8463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8464  (eval $ac_try) 2>&5
     8465  ac_status=$?
     8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8467  (exit $ac_status); }; }; then
     8468  ac_hi=$ac_mid; break
     8469else
     8470  echo "$as_me: failed program was:" >&5
     8471sed 's/^/| /' conftest.$ac_ext >&5
     8472
     8473ac_lo=`expr $ac_mid + 1`
     8474                    if test $ac_lo -le $ac_mid; then
     8475                      ac_lo= ac_hi=
     8476                      break
     8477                    fi
     8478                    ac_mid=`expr 2 '*' $ac_mid + 1`
     8479fi
     8480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8481  done
     8482else
     8483  echo "$as_me: failed program was:" >&5
     8484sed 's/^/| /' conftest.$ac_ext >&5
     8485
     8486cat >conftest.$ac_ext <<_ACEOF
     8487/* confdefs.h.  */
     8488_ACEOF
     8489cat confdefs.h >>conftest.$ac_ext
     8490cat >>conftest.$ac_ext <<_ACEOF
     8491/* end confdefs.h.  */
     8492$ac_includes_default
     8493int
     8494main ()
     8495{
     8496static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
     8497test_array [0] = 0
     8498
     8499  ;
     8500  return 0;
     8501}
     8502_ACEOF
     8503rm -f conftest.$ac_objext
     8504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8505  (eval $ac_compile) 2>conftest.er1
     8506  ac_status=$?
     8507  grep -v '^ *+' conftest.er1 >conftest.err
     8508  rm -f conftest.er1
     8509  cat conftest.err >&5
     8510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8511  (exit $ac_status); } &&
     8512         { ac_try='test -z "$ac_c_werror_flag"
     8513                         || test ! -s conftest.err'
     8514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8515  (eval $ac_try) 2>&5
     8516  ac_status=$?
     8517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8518  (exit $ac_status); }; } &&
     8519         { ac_try='test -s conftest.$ac_objext'
     8520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8521  (eval $ac_try) 2>&5
     8522  ac_status=$?
     8523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8524  (exit $ac_status); }; }; then
     8525  ac_hi=-1 ac_mid=-1
     8526  while :; do
     8527    cat >conftest.$ac_ext <<_ACEOF
     8528/* confdefs.h.  */
     8529_ACEOF
     8530cat confdefs.h >>conftest.$ac_ext
     8531cat >>conftest.$ac_ext <<_ACEOF
     8532/* end confdefs.h.  */
     8533$ac_includes_default
     8534int
     8535main ()
     8536{
     8537static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
     8538test_array [0] = 0
     8539
     8540  ;
     8541  return 0;
     8542}
     8543_ACEOF
     8544rm -f conftest.$ac_objext
     8545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8546  (eval $ac_compile) 2>conftest.er1
     8547  ac_status=$?
     8548  grep -v '^ *+' conftest.er1 >conftest.err
     8549  rm -f conftest.er1
     8550  cat conftest.err >&5
     8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8552  (exit $ac_status); } &&
     8553         { ac_try='test -z "$ac_c_werror_flag"
     8554                         || test ! -s conftest.err'
     8555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8556  (eval $ac_try) 2>&5
     8557  ac_status=$?
     8558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8559  (exit $ac_status); }; } &&
     8560         { ac_try='test -s conftest.$ac_objext'
     8561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8562  (eval $ac_try) 2>&5
     8563  ac_status=$?
     8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8565  (exit $ac_status); }; }; then
     8566  ac_lo=$ac_mid; break
     8567else
     8568  echo "$as_me: failed program was:" >&5
     8569sed 's/^/| /' conftest.$ac_ext >&5
     8570
     8571ac_hi=`expr '(' $ac_mid ')' - 1`
     8572                       if test $ac_mid -le $ac_hi; then
     8573                         ac_lo= ac_hi=
     8574                         break
     8575                       fi
     8576                       ac_mid=`expr 2 '*' $ac_mid`
     8577fi
     8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8579  done
     8580else
     8581  echo "$as_me: failed program was:" >&5
     8582sed 's/^/| /' conftest.$ac_ext >&5
     8583
     8584ac_lo= ac_hi=
     8585fi
     8586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8587fi
     8588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8589# Binary search between lo and hi bounds.
     8590while test "x$ac_lo" != "x$ac_hi"; do
     8591  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     8592  cat >conftest.$ac_ext <<_ACEOF
     8593/* confdefs.h.  */
     8594_ACEOF
     8595cat confdefs.h >>conftest.$ac_ext
     8596cat >>conftest.$ac_ext <<_ACEOF
     8597/* end confdefs.h.  */
     8598$ac_includes_default
     8599int
     8600main ()
     8601{
     8602static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
     8603test_array [0] = 0
     8604
     8605  ;
     8606  return 0;
     8607}
     8608_ACEOF
     8609rm -f conftest.$ac_objext
     8610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8611  (eval $ac_compile) 2>conftest.er1
     8612  ac_status=$?
     8613  grep -v '^ *+' conftest.er1 >conftest.err
     8614  rm -f conftest.er1
     8615  cat conftest.err >&5
     8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8617  (exit $ac_status); } &&
     8618         { ac_try='test -z "$ac_c_werror_flag"
     8619                         || test ! -s conftest.err'
     8620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8621  (eval $ac_try) 2>&5
     8622  ac_status=$?
     8623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8624  (exit $ac_status); }; } &&
     8625         { ac_try='test -s conftest.$ac_objext'
     8626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8627  (eval $ac_try) 2>&5
     8628  ac_status=$?
     8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8630  (exit $ac_status); }; }; then
     8631  ac_hi=$ac_mid
     8632else
     8633  echo "$as_me: failed program was:" >&5
     8634sed 's/^/| /' conftest.$ac_ext >&5
     8635
     8636ac_lo=`expr '(' $ac_mid ')' + 1`
     8637fi
     8638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8639done
     8640case $ac_lo in
     8641?*) ac_cv_sizeof_voidp=$ac_lo;;
     8642'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
     8643See \`config.log' for more details." >&5
     8644echo "$as_me: error: cannot compute sizeof (void*), 77
     8645See \`config.log' for more details." >&2;}
     8646   { (exit 1); exit 1; }; } ;;
     8647esac
     8648else
     8649  if test "$cross_compiling" = yes; then
     8650  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     8651See \`config.log' for more details." >&5
     8652echo "$as_me: error: cannot run test program while cross compiling
     8653See \`config.log' for more details." >&2;}
     8654   { (exit 1); exit 1; }; }
     8655else
     8656  cat >conftest.$ac_ext <<_ACEOF
     8657/* confdefs.h.  */
     8658_ACEOF
     8659cat confdefs.h >>conftest.$ac_ext
     8660cat >>conftest.$ac_ext <<_ACEOF
     8661/* end confdefs.h.  */
     8662$ac_includes_default
     8663long longval () { return (long) (sizeof (void*)); }
     8664unsigned long ulongval () { return (long) (sizeof (void*)); }
    34378665#include <stdio.h>
    3438 main()
     8666#include <stdlib.h>
     8667int
     8668main ()
    34398669{
    3440   FILE *f=fopen("conftestval", "w");
    3441   if (!f) exit(1);
    3442   fprintf(f, "%d\n", sizeof(void*));
    3443   exit(0);
     8670
     8671  FILE *f = fopen ("conftest.val", "w");
     8672  if (! f)
     8673    exit (1);
     8674  if (((long) (sizeof (void*))) < 0)
     8675    {
     8676      long i = longval ();
     8677      if (i != ((long) (sizeof (void*))))
     8678        exit (1);
     8679      fprintf (f, "%ld\n", i);
     8680    }
     8681  else
     8682    {
     8683      unsigned long i = ulongval ();
     8684      if (i != ((long) (sizeof (void*))))
     8685        exit (1);
     8686      fprintf (f, "%lu\n", i);
     8687    }
     8688  exit (ferror (f) || fclose (f) != 0);
     8689
     8690  ;
     8691  return 0;
    34448692}
    3445 EOF
    3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3447 then
    3448   ac_cv_sizeof_voidp=`cat conftestval`
    3449 else
    3450   echo "configure: failed program was:" >&5
    3451   cat conftest.$ac_ext >&5
    3452   rm -fr conftest*
     8693_ACEOF
     8694rm -f conftest$ac_exeext
     8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8696  (eval $ac_link) 2>&5
     8697  ac_status=$?
     8698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8699  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     8700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8701  (eval $ac_try) 2>&5
     8702  ac_status=$?
     8703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8704  (exit $ac_status); }; }; then
     8705  ac_cv_sizeof_voidp=`cat conftest.val`
     8706else
     8707  echo "$as_me: program exited with status $ac_status" >&5
     8708echo "$as_me: failed program was:" >&5
     8709sed 's/^/| /' conftest.$ac_ext >&5
     8710
     8711( exit $ac_status )
     8712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
     8713See \`config.log' for more details." >&5
     8714echo "$as_me: error: cannot compute sizeof (void*), 77
     8715See \`config.log' for more details." >&2;}
     8716   { (exit 1); exit 1; }; }
     8717fi
     8718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     8719fi
     8720fi
     8721rm -f conftest.val
     8722else
    34538723  ac_cv_sizeof_voidp=0
    34548724fi
    3455 rm -fr conftest*
    3456 fi
    3457 
    3458 fi
    3459 echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
    3460 cat >> confdefs.h <<EOF
     8725fi
     8726echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
     8727echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
     8728cat >>confdefs.h <<_ACEOF
    34618729#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
    3462 EOF
    3463 
    3464 
    3465 echo $ac_n "checking size of double""... $ac_c" 1>&6
    3466 echo "configure:3467: checking size of double" >&5
    3467 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    3468   echo $ac_n "(cached) $ac_c" 1>&6
    3469 else
     8730_ACEOF
     8731
     8732
     8733echo "$as_me:$LINENO: checking for double" >&5
     8734echo $ECHO_N "checking for double... $ECHO_C" >&6
     8735if test "${ac_cv_type_double+set}" = set; then
     8736  echo $ECHO_N "(cached) $ECHO_C" >&6
     8737else
     8738  cat >conftest.$ac_ext <<_ACEOF
     8739/* confdefs.h.  */
     8740_ACEOF
     8741cat confdefs.h >>conftest.$ac_ext
     8742cat >>conftest.$ac_ext <<_ACEOF
     8743/* end confdefs.h.  */
     8744$ac_includes_default
     8745int
     8746main ()
     8747{
     8748if ((double *) 0)
     8749  return 0;
     8750if (sizeof (double))
     8751  return 0;
     8752  ;
     8753  return 0;
     8754}
     8755_ACEOF
     8756rm -f conftest.$ac_objext
     8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8758  (eval $ac_compile) 2>conftest.er1
     8759  ac_status=$?
     8760  grep -v '^ *+' conftest.er1 >conftest.err
     8761  rm -f conftest.er1
     8762  cat conftest.err >&5
     8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8764  (exit $ac_status); } &&
     8765         { ac_try='test -z "$ac_c_werror_flag"
     8766                         || test ! -s conftest.err'
     8767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8768  (eval $ac_try) 2>&5
     8769  ac_status=$?
     8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8771  (exit $ac_status); }; } &&
     8772         { ac_try='test -s conftest.$ac_objext'
     8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8774  (eval $ac_try) 2>&5
     8775  ac_status=$?
     8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8777  (exit $ac_status); }; }; then
     8778  ac_cv_type_double=yes
     8779else
     8780  echo "$as_me: failed program was:" >&5
     8781sed 's/^/| /' conftest.$ac_ext >&5
     8782
     8783ac_cv_type_double=no
     8784fi
     8785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8786fi
     8787echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
     8788echo "${ECHO_T}$ac_cv_type_double" >&6
     8789
     8790echo "$as_me:$LINENO: checking size of double" >&5
     8791echo $ECHO_N "checking size of double... $ECHO_C" >&6
     8792if test "${ac_cv_sizeof_double+set}" = set; then
     8793  echo $ECHO_N "(cached) $ECHO_C" >&6
     8794else
     8795  if test "$ac_cv_type_double" = yes; then
     8796  # The cast to unsigned long works around a bug in the HP C Compiler
     8797  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     8798  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     8799  # This bug is HP SR number 8606223364.
    34708800  if test "$cross_compiling" = yes; then
    3471   ac_cv_sizeof_double=8
    3472 else
    3473   cat > conftest.$ac_ext <<EOF
    3474 #line 3475 "configure"
    3475 #include "confdefs.h"
     8801  # Depending upon the size, compute the lo and hi bounds.
     8802cat >conftest.$ac_ext <<_ACEOF
     8803/* confdefs.h.  */
     8804_ACEOF
     8805cat confdefs.h >>conftest.$ac_ext
     8806cat >>conftest.$ac_ext <<_ACEOF
     8807/* end confdefs.h.  */
     8808$ac_includes_default
     8809int
     8810main ()
     8811{
     8812static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
     8813test_array [0] = 0
     8814
     8815  ;
     8816  return 0;
     8817}
     8818_ACEOF
     8819rm -f conftest.$ac_objext
     8820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8821  (eval $ac_compile) 2>conftest.er1
     8822  ac_status=$?
     8823  grep -v '^ *+' conftest.er1 >conftest.err
     8824  rm -f conftest.er1
     8825  cat conftest.err >&5
     8826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8827  (exit $ac_status); } &&
     8828         { ac_try='test -z "$ac_c_werror_flag"
     8829                         || test ! -s conftest.err'
     8830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8831  (eval $ac_try) 2>&5
     8832  ac_status=$?
     8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8834  (exit $ac_status); }; } &&
     8835         { ac_try='test -s conftest.$ac_objext'
     8836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8837  (eval $ac_try) 2>&5
     8838  ac_status=$?
     8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8840  (exit $ac_status); }; }; then
     8841  ac_lo=0 ac_mid=0
     8842  while :; do
     8843    cat >conftest.$ac_ext <<_ACEOF
     8844/* confdefs.h.  */
     8845_ACEOF
     8846cat confdefs.h >>conftest.$ac_ext
     8847cat >>conftest.$ac_ext <<_ACEOF
     8848/* end confdefs.h.  */
     8849$ac_includes_default
     8850int
     8851main ()
     8852{
     8853static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
     8854test_array [0] = 0
     8855
     8856  ;
     8857  return 0;
     8858}
     8859_ACEOF
     8860rm -f conftest.$ac_objext
     8861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8862  (eval $ac_compile) 2>conftest.er1
     8863  ac_status=$?
     8864  grep -v '^ *+' conftest.er1 >conftest.err
     8865  rm -f conftest.er1
     8866  cat conftest.err >&5
     8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8868  (exit $ac_status); } &&
     8869         { ac_try='test -z "$ac_c_werror_flag"
     8870                         || test ! -s conftest.err'
     8871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8872  (eval $ac_try) 2>&5
     8873  ac_status=$?
     8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8875  (exit $ac_status); }; } &&
     8876         { ac_try='test -s conftest.$ac_objext'
     8877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8878  (eval $ac_try) 2>&5
     8879  ac_status=$?
     8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8881  (exit $ac_status); }; }; then
     8882  ac_hi=$ac_mid; break
     8883else
     8884  echo "$as_me: failed program was:" >&5
     8885sed 's/^/| /' conftest.$ac_ext >&5
     8886
     8887ac_lo=`expr $ac_mid + 1`
     8888                    if test $ac_lo -le $ac_mid; then
     8889                      ac_lo= ac_hi=
     8890                      break
     8891                    fi
     8892                    ac_mid=`expr 2 '*' $ac_mid + 1`
     8893fi
     8894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8895  done
     8896else
     8897  echo "$as_me: failed program was:" >&5
     8898sed 's/^/| /' conftest.$ac_ext >&5
     8899
     8900cat >conftest.$ac_ext <<_ACEOF
     8901/* confdefs.h.  */
     8902_ACEOF
     8903cat confdefs.h >>conftest.$ac_ext
     8904cat >>conftest.$ac_ext <<_ACEOF
     8905/* end confdefs.h.  */
     8906$ac_includes_default
     8907int
     8908main ()
     8909{
     8910static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
     8911test_array [0] = 0
     8912
     8913  ;
     8914  return 0;
     8915}
     8916_ACEOF
     8917rm -f conftest.$ac_objext
     8918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8919  (eval $ac_compile) 2>conftest.er1
     8920  ac_status=$?
     8921  grep -v '^ *+' conftest.er1 >conftest.err
     8922  rm -f conftest.er1
     8923  cat conftest.err >&5
     8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8925  (exit $ac_status); } &&
     8926         { ac_try='test -z "$ac_c_werror_flag"
     8927                         || test ! -s conftest.err'
     8928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8929  (eval $ac_try) 2>&5
     8930  ac_status=$?
     8931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8932  (exit $ac_status); }; } &&
     8933         { ac_try='test -s conftest.$ac_objext'
     8934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8935  (eval $ac_try) 2>&5
     8936  ac_status=$?
     8937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8938  (exit $ac_status); }; }; then
     8939  ac_hi=-1 ac_mid=-1
     8940  while :; do
     8941    cat >conftest.$ac_ext <<_ACEOF
     8942/* confdefs.h.  */
     8943_ACEOF
     8944cat confdefs.h >>conftest.$ac_ext
     8945cat >>conftest.$ac_ext <<_ACEOF
     8946/* end confdefs.h.  */
     8947$ac_includes_default
     8948int
     8949main ()
     8950{
     8951static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
     8952test_array [0] = 0
     8953
     8954  ;
     8955  return 0;
     8956}
     8957_ACEOF
     8958rm -f conftest.$ac_objext
     8959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8960  (eval $ac_compile) 2>conftest.er1
     8961  ac_status=$?
     8962  grep -v '^ *+' conftest.er1 >conftest.err
     8963  rm -f conftest.er1
     8964  cat conftest.err >&5
     8965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8966  (exit $ac_status); } &&
     8967         { ac_try='test -z "$ac_c_werror_flag"
     8968                         || test ! -s conftest.err'
     8969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8970  (eval $ac_try) 2>&5
     8971  ac_status=$?
     8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8973  (exit $ac_status); }; } &&
     8974         { ac_try='test -s conftest.$ac_objext'
     8975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8976  (eval $ac_try) 2>&5
     8977  ac_status=$?
     8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8979  (exit $ac_status); }; }; then
     8980  ac_lo=$ac_mid; break
     8981else
     8982  echo "$as_me: failed program was:" >&5
     8983sed 's/^/| /' conftest.$ac_ext >&5
     8984
     8985ac_hi=`expr '(' $ac_mid ')' - 1`
     8986                       if test $ac_mid -le $ac_hi; then
     8987                         ac_lo= ac_hi=
     8988                         break
     8989                       fi
     8990                       ac_mid=`expr 2 '*' $ac_mid`
     8991fi
     8992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8993  done
     8994else
     8995  echo "$as_me: failed program was:" >&5
     8996sed 's/^/| /' conftest.$ac_ext >&5
     8997
     8998ac_lo= ac_hi=
     8999fi
     9000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9001fi
     9002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9003# Binary search between lo and hi bounds.
     9004while test "x$ac_lo" != "x$ac_hi"; do
     9005  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     9006  cat >conftest.$ac_ext <<_ACEOF
     9007/* confdefs.h.  */
     9008_ACEOF
     9009cat confdefs.h >>conftest.$ac_ext
     9010cat >>conftest.$ac_ext <<_ACEOF
     9011/* end confdefs.h.  */
     9012$ac_includes_default
     9013int
     9014main ()
     9015{
     9016static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
     9017test_array [0] = 0
     9018
     9019  ;
     9020  return 0;
     9021}
     9022_ACEOF
     9023rm -f conftest.$ac_objext
     9024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     9025  (eval $ac_compile) 2>conftest.er1
     9026  ac_status=$?
     9027  grep -v '^ *+' conftest.er1 >conftest.err
     9028  rm -f conftest.er1
     9029  cat conftest.err >&5
     9030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9031  (exit $ac_status); } &&
     9032         { ac_try='test -z "$ac_c_werror_flag"
     9033                         || test ! -s conftest.err'
     9034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9035  (eval $ac_try) 2>&5
     9036  ac_status=$?
     9037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9038  (exit $ac_status); }; } &&
     9039         { ac_try='test -s conftest.$ac_objext'
     9040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9041  (eval $ac_try) 2>&5
     9042  ac_status=$?
     9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9044  (exit $ac_status); }; }; then
     9045  ac_hi=$ac_mid
     9046else
     9047  echo "$as_me: failed program was:" >&5
     9048sed 's/^/| /' conftest.$ac_ext >&5
     9049
     9050ac_lo=`expr '(' $ac_mid ')' + 1`
     9051fi
     9052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9053done
     9054case $ac_lo in
     9055?*) ac_cv_sizeof_double=$ac_lo;;
     9056'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
     9057See \`config.log' for more details." >&5
     9058echo "$as_me: error: cannot compute sizeof (double), 77
     9059See \`config.log' for more details." >&2;}
     9060   { (exit 1); exit 1; }; } ;;
     9061esac
     9062else
     9063  if test "$cross_compiling" = yes; then
     9064  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     9065See \`config.log' for more details." >&5
     9066echo "$as_me: error: cannot run test program while cross compiling
     9067See \`config.log' for more details." >&2;}
     9068   { (exit 1); exit 1; }; }
     9069else
     9070  cat >conftest.$ac_ext <<_ACEOF
     9071/* confdefs.h.  */
     9072_ACEOF
     9073cat confdefs.h >>conftest.$ac_ext
     9074cat >>conftest.$ac_ext <<_ACEOF
     9075/* end confdefs.h.  */
     9076$ac_includes_default
     9077long longval () { return (long) (sizeof (double)); }
     9078unsigned long ulongval () { return (long) (sizeof (double)); }
    34769079#include <stdio.h>
    3477 main()
     9080#include <stdlib.h>
     9081int
     9082main ()
    34789083{
    3479   FILE *f=fopen("conftestval", "w");
    3480   if (!f) exit(1);
    3481   fprintf(f, "%d\n", sizeof(double));
    3482   exit(0);
     9084
     9085  FILE *f = fopen ("conftest.val", "w");
     9086  if (! f)
     9087    exit (1);
     9088  if (((long) (sizeof (double))) < 0)
     9089    {
     9090      long i = longval ();
     9091      if (i != ((long) (sizeof (double))))
     9092        exit (1);
     9093      fprintf (f, "%ld\n", i);
     9094    }
     9095  else
     9096    {
     9097      unsigned long i = ulongval ();
     9098      if (i != ((long) (sizeof (double))))
     9099        exit (1);
     9100      fprintf (f, "%lu\n", i);
     9101    }
     9102  exit (ferror (f) || fclose (f) != 0);
     9103
     9104  ;
     9105  return 0;
    34839106}
    3484 EOF
    3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3486 then
    3487   ac_cv_sizeof_double=`cat conftestval`
    3488 else
    3489   echo "configure: failed program was:" >&5
    3490   cat conftest.$ac_ext >&5
    3491   rm -fr conftest*
     9107_ACEOF
     9108rm -f conftest$ac_exeext
     9109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9110  (eval $ac_link) 2>&5
     9111  ac_status=$?
     9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9113  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     9114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9115  (eval $ac_try) 2>&5
     9116  ac_status=$?
     9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9118  (exit $ac_status); }; }; then
     9119  ac_cv_sizeof_double=`cat conftest.val`
     9120else
     9121  echo "$as_me: program exited with status $ac_status" >&5
     9122echo "$as_me: failed program was:" >&5
     9123sed 's/^/| /' conftest.$ac_ext >&5
     9124
     9125( exit $ac_status )
     9126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
     9127See \`config.log' for more details." >&5
     9128echo "$as_me: error: cannot compute sizeof (double), 77
     9129See \`config.log' for more details." >&2;}
     9130   { (exit 1); exit 1; }; }
     9131fi
     9132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     9133fi
     9134fi
     9135rm -f conftest.val
     9136else
    34929137  ac_cv_sizeof_double=0
    34939138fi
    3494 rm -fr conftest*
    3495 fi
    3496 
    3497 fi
    3498 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
    3499 cat >> confdefs.h <<EOF
     9139fi
     9140echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
     9141echo "${ECHO_T}$ac_cv_sizeof_double" >&6
     9142cat >>confdefs.h <<_ACEOF
    35009143#define SIZEOF_DOUBLE $ac_cv_sizeof_double
    3501 EOF
    3502 
    3503 
    3504 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3505 echo "configure:3506: checking whether byte ordering is bigendian" >&5
    3506 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    3507   echo $ac_n "(cached) $ac_c" 1>&6
    3508 else
    3509   ac_cv_c_bigendian=unknown
    3510 # See if sys/param.h defines the BYTE_ORDER macro.
    3511 cat > conftest.$ac_ext <<EOF
    3512 #line 3513 "configure"
    3513 #include "confdefs.h"
     9144_ACEOF
     9145
     9146
     9147echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     9148echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
     9149if test "${ac_cv_c_bigendian+set}" = set; then
     9150  echo $ECHO_N "(cached) $ECHO_C" >&6
     9151else
     9152  # See if sys/param.h defines the BYTE_ORDER macro.
     9153cat >conftest.$ac_ext <<_ACEOF
     9154/* confdefs.h.  */
     9155_ACEOF
     9156cat confdefs.h >>conftest.$ac_ext
     9157cat >>conftest.$ac_ext <<_ACEOF
     9158/* end confdefs.h.  */
    35149159#include <sys/types.h>
    35159160#include <sys/param.h>
    3516 int main() {
    3517 
     9161
     9162int
     9163main ()
     9164{
    35189165#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    35199166 bogus endian macros
    35209167#endif
    3521 ; return 0; }
    3522 EOF
    3523 if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3524   rm -rf conftest*
     9168
     9169  ;
     9170  return 0;
     9171}
     9172_ACEOF
     9173rm -f conftest.$ac_objext
     9174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     9175  (eval $ac_compile) 2>conftest.er1
     9176  ac_status=$?
     9177  grep -v '^ *+' conftest.er1 >conftest.err
     9178  rm -f conftest.er1
     9179  cat conftest.err >&5
     9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9181  (exit $ac_status); } &&
     9182         { ac_try='test -z "$ac_c_werror_flag"
     9183                         || test ! -s conftest.err'
     9184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9185  (eval $ac_try) 2>&5
     9186  ac_status=$?
     9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9188  (exit $ac_status); }; } &&
     9189         { ac_try='test -s conftest.$ac_objext'
     9190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9191  (eval $ac_try) 2>&5
     9192  ac_status=$?
     9193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9194  (exit $ac_status); }; }; then
    35259195  # It does; now see whether it defined to BIG_ENDIAN or not.
    3526 cat > conftest.$ac_ext <<EOF
    3527 #line 3528 "configure"
    3528 #include "confdefs.h"
     9196cat >conftest.$ac_ext <<_ACEOF
     9197/* confdefs.h.  */
     9198_ACEOF
     9199cat confdefs.h >>conftest.$ac_ext
     9200cat >>conftest.$ac_ext <<_ACEOF
     9201/* end confdefs.h.  */
    35299202#include <sys/types.h>
    35309203#include <sys/param.h>
    3531 int main() {
    3532 
     9204
     9205int
     9206main ()
     9207{
    35339208#if BYTE_ORDER != BIG_ENDIAN
    35349209 not big endian
    35359210#endif
    3536 ; return 0; }
    3537 EOF
    3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    3539   rm -rf conftest*
     9211
     9212  ;
     9213  return 0;
     9214}
     9215_ACEOF
     9216rm -f conftest.$ac_objext
     9217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     9218  (eval $ac_compile) 2>conftest.er1
     9219  ac_status=$?
     9220  grep -v '^ *+' conftest.er1 >conftest.err
     9221  rm -f conftest.er1
     9222  cat conftest.err >&5
     9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9224  (exit $ac_status); } &&
     9225         { ac_try='test -z "$ac_c_werror_flag"
     9226                         || test ! -s conftest.err'
     9227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9228  (eval $ac_try) 2>&5
     9229  ac_status=$?
     9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9231  (exit $ac_status); }; } &&
     9232         { ac_try='test -s conftest.$ac_objext'
     9233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9234  (eval $ac_try) 2>&5
     9235  ac_status=$?
     9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9237  (exit $ac_status); }; }; then
    35409238  ac_cv_c_bigendian=yes
    35419239else
    3542   echo "configure: failed program was:" >&5
    3543   cat conftest.$ac_ext >&5
    3544   rm -rf conftest*
    3545   ac_cv_c_bigendian=no
    3546 fi
    3547 rm -f conftest*
    3548 else
    3549   echo "configure: failed program was:" >&5
    3550   cat conftest.$ac_ext >&5
    3551 fi
    3552 rm -f conftest*
    3553 if test $ac_cv_c_bigendian = unknown; then
     9240  echo "$as_me: failed program was:" >&5
     9241sed 's/^/| /' conftest.$ac_ext >&5
     9242
     9243ac_cv_c_bigendian=no
     9244fi
     9245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9246else
     9247  echo "$as_me: failed program was:" >&5
     9248sed 's/^/| /' conftest.$ac_ext >&5
     9249
     9250# It does not; compile a test program.
    35549251if test "$cross_compiling" = yes; then
    3555     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    3556 else
    3557   cat > conftest.$ac_ext <<EOF
    3558 #line 3559 "configure"
    3559 #include "confdefs.h"
    3560 main () {
     9252  # try to guess the endianness by grepping values into an object file
     9253  ac_cv_c_bigendian=unknown
     9254  cat >conftest.$ac_ext <<_ACEOF
     9255/* confdefs.h.  */
     9256_ACEOF
     9257cat confdefs.h >>conftest.$ac_ext
     9258cat >>conftest.$ac_ext <<_ACEOF
     9259/* end confdefs.h.  */
     9260short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     9261short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     9262void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
     9263short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     9264short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     9265void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     9266int
     9267main ()
     9268{
     9269 _ascii (); _ebcdic ();
     9270  ;
     9271  return 0;
     9272}
     9273_ACEOF
     9274rm -f conftest.$ac_objext
     9275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     9276  (eval $ac_compile) 2>conftest.er1
     9277  ac_status=$?
     9278  grep -v '^ *+' conftest.er1 >conftest.err
     9279  rm -f conftest.er1
     9280  cat conftest.err >&5
     9281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9282  (exit $ac_status); } &&
     9283         { ac_try='test -z "$ac_c_werror_flag"
     9284                         || test ! -s conftest.err'
     9285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9286  (eval $ac_try) 2>&5
     9287  ac_status=$?
     9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9289  (exit $ac_status); }; } &&
     9290         { ac_try='test -s conftest.$ac_objext'
     9291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9292  (eval $ac_try) 2>&5
     9293  ac_status=$?
     9294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9295  (exit $ac_status); }; }; then
     9296  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
     9297  ac_cv_c_bigendian=yes
     9298fi
     9299if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     9300  if test "$ac_cv_c_bigendian" = unknown; then
     9301    ac_cv_c_bigendian=no
     9302  else
     9303    # finding both strings is unlikely to happen, but who knows?
     9304    ac_cv_c_bigendian=unknown
     9305  fi
     9306fi
     9307else
     9308  echo "$as_me: failed program was:" >&5
     9309sed 's/^/| /' conftest.$ac_ext >&5
     9310
     9311fi
     9312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9313else
     9314  cat >conftest.$ac_ext <<_ACEOF
     9315/* confdefs.h.  */
     9316_ACEOF
     9317cat confdefs.h >>conftest.$ac_ext
     9318cat >>conftest.$ac_ext <<_ACEOF
     9319/* end confdefs.h.  */
     9320int
     9321main ()
     9322{
    35619323  /* Are we little or big endian?  From Harbison&Steele.  */
    35629324  union
     
    35689330  exit (u.c[sizeof (long) - 1] == 1);
    35699331}
    3570 EOF
    3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3572 then
     9332_ACEOF
     9333rm -f conftest$ac_exeext
     9334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9335  (eval $ac_link) 2>&5
     9336  ac_status=$?
     9337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     9339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9340  (eval $ac_try) 2>&5
     9341  ac_status=$?
     9342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9343  (exit $ac_status); }; }; then
    35739344  ac_cv_c_bigendian=no
    35749345else
    3575   echo "configure: failed program was:" >&5
    3576   cat conftest.$ac_ext >&5
    3577   rm -fr conftest*
    3578   ac_cv_c_bigendian=yes
    3579 fi
    3580 rm -fr conftest*
    3581 fi
    3582 
    3583 fi
    3584 fi
    3585 
    3586 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
    3587 if test $ac_cv_c_bigendian = yes; then
    3588   cat >> confdefs.h <<\EOF
     9346  echo "$as_me: program exited with status $ac_status" >&5
     9347echo "$as_me: failed program was:" >&5
     9348sed 's/^/| /' conftest.$ac_ext >&5
     9349
     9350( exit $ac_status )
     9351ac_cv_c_bigendian=yes
     9352fi
     9353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     9354fi
     9355fi
     9356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     9357fi
     9358echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     9359echo "${ECHO_T}$ac_cv_c_bigendian" >&6
     9360case $ac_cv_c_bigendian in
     9361  yes)
     9362
     9363cat >>confdefs.h <<\_ACEOF
    35899364#define WORDS_BIGENDIAN 1
    3590 EOF
    3591 
    3592 fi
     9365_ACEOF
     9366 ;;
     9367  no)
     9368     ;;
     9369  *)
     9370    { { echo "$as_me:$LINENO: error: unknown endianness
     9371presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     9372echo "$as_me: error: unknown endianness
     9373presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     9374   { (exit 1); exit 1; }; } ;;
     9375esac
    35939376
    35949377if test "$ac_cv_sizeof_int" != 4; then
    3595   { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; }
     9378  { { echo "$as_me:$LINENO: error: need int to be four bytes long" >&5
     9379echo "$as_me: error: need int to be four bytes long" >&2;}
     9380   { (exit 1); exit 1; }; }
    35969381fi
    35979382if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
    3598   { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; }
     9383  { { echo "$as_me:$LINENO: error: need equal sizes for long and void*" >&5
     9384echo "$as_me: error: need equal sizes for long and void*" >&2;}
     9385   { (exit 1); exit 1; }; }
    35999386fi
    36009387if test "$ac_cv_sizeof_double" != 8; then
    3601   { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; }
     9388  { { echo "$as_me:$LINENO: error: need double to b 8 bytes long" >&5
     9389echo "$as_me: error: need double to b 8 bytes long" >&2;}
     9390   { (exit 1); exit 1; }; }
    36029391fi
    36039392if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
    3604   { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; }
    3605 fi
     9393  { { echo "$as_me:$LINENO: error: need void* to be 4 or 8 bytes long" >&5
     9394echo "$as_me: error: need void* to be 4 or 8 bytes long" >&2;}
     9395   { (exit 1); exit 1; }; }
     9396fi
     9397
    36069398
    36079399# Check whether --with-rootdir or --without-rootdir was given.
    36089400if test "${with_rootdir+set}" = set; then
    36099401  withval="$with_rootdir"
    3610   :
    3611 fi
     9402
     9403fi;
    36129404
    36139405# Check whether --with-lex or --without-lex was given.
    36149406if test "${with_lex+set}" = set; then
    36159407  withval="$with_lex"
    3616   :
    3617 fi
     9408
     9409fi;
    36189410
    36199411# Check whether --with-readline or --without-readline was given.
    36209412if test "${with_readline+set}" = set; then
    36219413  withval="$with_readline"
    3622   :
    3623 fi
     9414
     9415fi;
    36249416
    36259417# Check whether --with-MP or --without-MP was given.
    36269418if test "${with_MP+set}" = set; then
    36279419  withval="$with_MP"
    3628   :
    3629 fi
     9420
     9421fi;
    36309422
    36319423# Check whether --with-dbm or --without-dbm was given.
    36329424if test "${with_dbm+set}" = set; then
    36339425  withval="$with_dbm"
    3634   :
    3635 fi
     9426
     9427fi;
    36369428
    36379429# Check whether --with-factory or --without-factory was given.
    36389430if test "${with_factory+set}" = set; then
    36399431  withval="$with_factory"
    3640   :
    3641 fi
     9432
     9433fi;
    36429434
    36439435# Check whether --with-libfac or --without-libfac was given.
    36449436if test "${with_libfac+set}" = set; then
    36459437  withval="$with_libfac"
    3646   :
    3647 fi
     9438
     9439fi;
    36489440
    36499441# Check whether --with-namespaces or --without-namespaces was given.
    36509442if test "${with_namespaces+set}" = set; then
    36519443  withval="$with_namespaces"
    3652   :
    3653 fi
     9444
     9445fi;
    36549446
    36559447# Check whether --with-dl or --without-dl was given.
    36569448if test "${with_dl+set}" = set; then
    36579449  withval="$with_dl"
    3658   :
    3659 fi
     9450
     9451fi;
    36609452
    36619453# Check whether --with-dynamic-modules or --without-dynamic-modules was given.
    36629454if test "${with_dynamic_modules+set}" = set; then
    36639455  withval="$with_dynamic_modules"
    3664   :
    3665 fi
    3666  
     9456
     9457fi;
     9458
    36679459# Check whether --with-dynamic-kernel or --without-dynamic-kernel was given.
    36689460if test "${with_dynamic_kernel+set}" = set; then
    36699461  withval="$with_dynamic_kernel"
    3670   :
    3671 fi
     9462
     9463fi;
    36729464
    36739465# Check whether --with-apint or --without-apint was given.
    36749466if test "${with_apint+set}" = set; then
    36759467  withval="$with_apint"
    3676   :
    3677 fi
     9468
     9469fi;
    36789470
    36799471# Check whether --with-Plural or --without-Plural was given.
    36809472if test "${with_Plural+set}" = set; then
    36819473  withval="$with_Plural"
    3682   :
    3683 fi
     9474
     9475fi;
    36849476
    36859477# Check whether --with-NTL or --without-NTL was given.
    36869478if test "${with_NTL+set}" = set; then
    36879479  withval="$with_NTL"
    3688   :
     9480
    36899481else
    36909482  with_NTL=yes
    3691 fi
    3692 
    3693 
    3694 
    3695 
    3696 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
    3697 echo "configure:3698: checking whether to use dynamic linking" >&5
     9483fi;
     9484
     9485
     9486
     9487echo "$as_me:$LINENO: checking whether to use dynamic linking" >&5
     9488echo $ECHO_N "checking whether to use dynamic linking... $ECHO_C" >&6
    36989489if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
    3699   cat >> confdefs.h <<\EOF
     9490  cat >>confdefs.h <<\_ACEOF
    37009491#define HAVE_DL 1
    3701 EOF
     9492_ACEOF
    37029493
    37039494  ac_have_dl=yes
    3704   echo "$ac_t""yes" 1>&6
    3705 else
    3706   echo "$ac_t""no" 1>&6
    3707 fi
    3708 
    3709 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3710 echo "configure:3711: checking for tgetent in -lncurses" >&5
    3711 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3713   echo $ac_n "(cached) $ac_c" 1>&6
    3714 else
    3715   ac_save_LIBS="$LIBS"
     9495  echo "$as_me:$LINENO: result: yes" >&5
     9496echo "${ECHO_T}yes" >&6
     9497else
     9498  echo "$as_me:$LINENO: result: no" >&5
     9499echo "${ECHO_T}no" >&6
     9500fi
     9501
     9502
     9503echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
     9504echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
     9505if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
     9506  echo $ECHO_N "(cached) $ECHO_C" >&6
     9507else
     9508  ac_check_lib_save_LIBS=$LIBS
    37169509LIBS="-lncurses  $LIBS"
    3717 cat > conftest.$ac_ext <<EOF
    3718 #line 3719 "configure"
    3719 #include "confdefs.h"
    3720 /* Override any gcc2 internal prototype to avoid an error.  */
    3721 /* We use char because int might match the return type of a gcc2
    3722     builtin and then its argument prototype would still apply.  */
    3723 char tgetent();
    3724 
    3725 int main() {
    3726 tgetent()
    3727 ; return 0; }
    3728 EOF
    3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3730   rm -rf conftest*
    3731   eval "ac_cv_lib_$ac_lib_var=yes"
    3732 else
    3733   echo "configure: failed program was:" >&5
    3734   cat conftest.$ac_ext >&5
    3735   rm -rf conftest*
    3736   eval "ac_cv_lib_$ac_lib_var=no"
    3737 fi
    3738 rm -f conftest*
    3739 LIBS="$ac_save_LIBS"
    3740 
    3741 fi
    3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3743   echo "$ac_t""yes" 1>&6
    3744     ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    3745     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    3746   cat >> confdefs.h <<EOF
    3747 #define $ac_tr_lib 1
    3748 EOF
    3749 
    3750   LIBS="-lncurses $LIBS"
    3751 
    3752 else
    3753   echo "$ac_t""no" 1>&6
    3754 \
    3755  echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3756 echo "configure:3757: checking for tgetent in -lcurses" >&5
    3757 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3759   echo $ac_n "(cached) $ac_c" 1>&6
    3760 else
    3761   ac_save_LIBS="$LIBS"
    3762 LIBS="-lcurses  $LIBS"
    3763 cat > conftest.$ac_ext <<EOF
    3764 #line 3765 "configure"
    3765 #include "confdefs.h"
    3766 /* Override any gcc2 internal prototype to avoid an error.  */
    3767 /* We use char because int might match the return type of a gcc2
    3768     builtin and then its argument prototype would still apply.  */
    3769 char tgetent();
    3770 
    3771 int main() {
    3772 tgetent()
    3773 ; return 0; }
    3774 EOF
    3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3776   rm -rf conftest*
    3777   eval "ac_cv_lib_$ac_lib_var=yes"
    3778 else
    3779   echo "configure: failed program was:" >&5
    3780   cat conftest.$ac_ext >&5
    3781   rm -rf conftest*
    3782   eval "ac_cv_lib_$ac_lib_var=no"
    3783 fi
    3784 rm -f conftest*
    3785 LIBS="$ac_save_LIBS"
    3786 
    3787 fi
    3788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3789   echo "$ac_t""yes" 1>&6
    3790     ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
    3791     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    3792   cat >> confdefs.h <<EOF
    3793 #define $ac_tr_lib 1
    3794 EOF
    3795 
    3796   LIBS="-lcurses $LIBS"
    3797 
    3798 else
    3799   echo "$ac_t""no" 1>&6
    3800 \
    3801   echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3802 echo "configure:3803: checking for tgetent in -ltermcap" >&5
    3803 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3805   echo $ac_n "(cached) $ac_c" 1>&6
    3806 else
    3807   ac_save_LIBS="$LIBS"
    3808 LIBS="-ltermcap  $LIBS"
    3809 cat > conftest.$ac_ext <<EOF
    3810 #line 3811 "configure"
    3811 #include "confdefs.h"
    3812 /* Override any gcc2 internal prototype to avoid an error.  */
    3813 /* We use char because int might match the return type of a gcc2
    3814     builtin and then its argument prototype would still apply.  */
    3815 char tgetent();
    3816 
    3817 int main() {
    3818 tgetent()
    3819 ; return 0; }
    3820 EOF
    3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3822   rm -rf conftest*
    3823   eval "ac_cv_lib_$ac_lib_var=yes"
    3824 else
    3825   echo "configure: failed program was:" >&5
    3826   cat conftest.$ac_ext >&5
    3827   rm -rf conftest*
    3828   eval "ac_cv_lib_$ac_lib_var=no"
    3829 fi
    3830 rm -f conftest*
    3831 LIBS="$ac_save_LIBS"
    3832 
    3833 fi
    3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3835   echo "$ac_t""yes" 1>&6
    3836     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
    3837     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    3838   cat >> confdefs.h <<EOF
    3839 #define $ac_tr_lib 1
    3840 EOF
    3841 
    3842   LIBS="-ltermcap $LIBS"
    3843 
    3844 else
    3845   echo "$ac_t""no" 1>&6
    3846 fi
    3847 
    3848 fi
    3849 
    3850 fi
    3851 
    3852 
    3853 # readline
    3854 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then
    3855   echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2
    3856   with_readline=static
    3857 fi
    3858 
    3859 
    3860 if test "$with_readline" != dynamic && test "$with_readline" != no; then
    3861 
    3862 ac_ext=C
    3863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    3864 ac_cpp='$CXXCPP $CPPFLAGS'
    3865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3867 cross_compiling=$ac_cv_prog_cxx_cross
    3868 
    3869    echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3870 echo "configure:3871: checking for rl_abort in -lreadline" >&5
    3871 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    3873   echo $ac_n "(cached) $ac_c" 1>&6
    3874 else
    3875   ac_save_LIBS="$LIBS"
    3876 LIBS="-lreadline  $LIBS"
    3877 cat > conftest.$ac_ext <<EOF
    3878 #line 3879 "configure"
    3879 #include "confdefs.h"
     9510cat >conftest.$ac_ext <<_ACEOF
     9511/* confdefs.h.  */
     9512_ACEOF
     9513cat confdefs.h >>conftest.$ac_ext
     9514cat >>conftest.$ac_ext <<_ACEOF
     9515/* end confdefs.h.  */
     9516
    38809517/* Override any gcc2 internal prototype to avoid an error.  */
    38819518#ifdef __cplusplus
     
    38839520#endif
    38849521/* We use char because int might match the return type of a gcc2
    3885     builtin and then its argument prototype would still apply.  */
    3886 char rl_abort();
    3887 
    3888 int main() {
    3889 rl_abort()
    3890 ; return 0; }
    3891 EOF
    3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3893   rm -rf conftest*
    3894   eval "ac_cv_lib_$ac_lib_var=yes"
    3895 else
    3896   echo "configure: failed program was:" >&5
    3897   cat conftest.$ac_ext >&5
    3898   rm -rf conftest*
    3899   eval "ac_cv_lib_$ac_lib_var=no"
    3900 fi
    3901 rm -f conftest*
    3902 LIBS="$ac_save_LIBS"
    3903 
    3904 fi
    3905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    3906   echo "$ac_t""yes" 1>&6
    3907     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    3908     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    3909   cat >> confdefs.h <<EOF
    3910 #define $ac_tr_lib 1
    3911 EOF
     9522   builtin and then its argument prototype would still apply.  */
     9523char tgetent ();
     9524int
     9525main ()
     9526{
     9527tgetent ();
     9528  ;
     9529  return 0;
     9530}
     9531_ACEOF
     9532rm -f conftest.$ac_objext conftest$ac_exeext
     9533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9534  (eval $ac_link) 2>conftest.er1
     9535  ac_status=$?
     9536  grep -v '^ *+' conftest.er1 >conftest.err
     9537  rm -f conftest.er1
     9538  cat conftest.err >&5
     9539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9540  (exit $ac_status); } &&
     9541         { ac_try='test -z "$ac_c_werror_flag"
     9542                         || test ! -s conftest.err'
     9543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9544  (eval $ac_try) 2>&5
     9545  ac_status=$?
     9546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9547  (exit $ac_status); }; } &&
     9548         { ac_try='test -s conftest$ac_exeext'
     9549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9550  (eval $ac_try) 2>&5
     9551  ac_status=$?
     9552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9553  (exit $ac_status); }; }; then
     9554  ac_cv_lib_ncurses_tgetent=yes
     9555else
     9556  echo "$as_me: failed program was:" >&5
     9557sed 's/^/| /' conftest.$ac_ext >&5
     9558
     9559ac_cv_lib_ncurses_tgetent=no
     9560fi
     9561rm -f conftest.err conftest.$ac_objext \
     9562      conftest$ac_exeext conftest.$ac_ext
     9563LIBS=$ac_check_lib_save_LIBS
     9564fi
     9565echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
     9566echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
     9567if test $ac_cv_lib_ncurses_tgetent = yes; then
     9568  cat >>confdefs.h <<_ACEOF
     9569#define HAVE_LIBNCURSES 1
     9570_ACEOF
     9571
     9572  LIBS="-lncurses $LIBS"
     9573
     9574else
     9575  \
     9576
     9577echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
     9578echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
     9579if test "${ac_cv_lib_curses_tgetent+set}" = set; then
     9580  echo $ECHO_N "(cached) $ECHO_C" >&6
     9581else
     9582  ac_check_lib_save_LIBS=$LIBS
     9583LIBS="-lcurses  $LIBS"
     9584cat >conftest.$ac_ext <<_ACEOF
     9585/* confdefs.h.  */
     9586_ACEOF
     9587cat confdefs.h >>conftest.$ac_ext
     9588cat >>conftest.$ac_ext <<_ACEOF
     9589/* end confdefs.h.  */
     9590
     9591/* Override any gcc2 internal prototype to avoid an error.  */
     9592#ifdef __cplusplus
     9593extern "C"
     9594#endif
     9595/* We use char because int might match the return type of a gcc2
     9596   builtin and then its argument prototype would still apply.  */
     9597char tgetent ();
     9598int
     9599main ()
     9600{
     9601tgetent ();
     9602  ;
     9603  return 0;
     9604}
     9605_ACEOF
     9606rm -f conftest.$ac_objext conftest$ac_exeext
     9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9608  (eval $ac_link) 2>conftest.er1
     9609  ac_status=$?
     9610  grep -v '^ *+' conftest.er1 >conftest.err
     9611  rm -f conftest.er1
     9612  cat conftest.err >&5
     9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9614  (exit $ac_status); } &&
     9615         { ac_try='test -z "$ac_c_werror_flag"
     9616                         || test ! -s conftest.err'
     9617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9618  (eval $ac_try) 2>&5
     9619  ac_status=$?
     9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9621  (exit $ac_status); }; } &&
     9622         { ac_try='test -s conftest$ac_exeext'
     9623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9624  (eval $ac_try) 2>&5
     9625  ac_status=$?
     9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9627  (exit $ac_status); }; }; then
     9628  ac_cv_lib_curses_tgetent=yes
     9629else
     9630  echo "$as_me: failed program was:" >&5
     9631sed 's/^/| /' conftest.$ac_ext >&5
     9632
     9633ac_cv_lib_curses_tgetent=no
     9634fi
     9635rm -f conftest.err conftest.$ac_objext \
     9636      conftest$ac_exeext conftest.$ac_ext
     9637LIBS=$ac_check_lib_save_LIBS
     9638fi
     9639echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
     9640echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
     9641if test $ac_cv_lib_curses_tgetent = yes; then
     9642  cat >>confdefs.h <<_ACEOF
     9643#define HAVE_LIBCURSES 1
     9644_ACEOF
     9645
     9646  LIBS="-lcurses $LIBS"
     9647
     9648else
     9649  \
     9650
     9651echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
     9652echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
     9653if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
     9654  echo $ECHO_N "(cached) $ECHO_C" >&6
     9655else
     9656  ac_check_lib_save_LIBS=$LIBS
     9657LIBS="-ltermcap  $LIBS"
     9658cat >conftest.$ac_ext <<_ACEOF
     9659/* confdefs.h.  */
     9660_ACEOF
     9661cat confdefs.h >>conftest.$ac_ext
     9662cat >>conftest.$ac_ext <<_ACEOF
     9663/* end confdefs.h.  */
     9664
     9665/* Override any gcc2 internal prototype to avoid an error.  */
     9666#ifdef __cplusplus
     9667extern "C"
     9668#endif
     9669/* We use char because int might match the return type of a gcc2
     9670   builtin and then its argument prototype would still apply.  */
     9671char tgetent ();
     9672int
     9673main ()
     9674{
     9675tgetent ();
     9676  ;
     9677  return 0;
     9678}
     9679_ACEOF
     9680rm -f conftest.$ac_objext conftest$ac_exeext
     9681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9682  (eval $ac_link) 2>conftest.er1
     9683  ac_status=$?
     9684  grep -v '^ *+' conftest.er1 >conftest.err
     9685  rm -f conftest.er1
     9686  cat conftest.err >&5
     9687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9688  (exit $ac_status); } &&
     9689         { ac_try='test -z "$ac_c_werror_flag"
     9690                         || test ! -s conftest.err'
     9691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9692  (eval $ac_try) 2>&5
     9693  ac_status=$?
     9694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9695  (exit $ac_status); }; } &&
     9696         { ac_try='test -s conftest$ac_exeext'
     9697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9698  (eval $ac_try) 2>&5
     9699  ac_status=$?
     9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9701  (exit $ac_status); }; }; then
     9702  ac_cv_lib_termcap_tgetent=yes
     9703else
     9704  echo "$as_me: failed program was:" >&5
     9705sed 's/^/| /' conftest.$ac_ext >&5
     9706
     9707ac_cv_lib_termcap_tgetent=no
     9708fi
     9709rm -f conftest.err conftest.$ac_objext \
     9710      conftest$ac_exeext conftest.$ac_ext
     9711LIBS=$ac_check_lib_save_LIBS
     9712fi
     9713echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
     9714echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
     9715if test $ac_cv_lib_termcap_tgetent = yes; then
     9716  cat >>confdefs.h <<_ACEOF
     9717#define HAVE_LIBTERMCAP 1
     9718_ACEOF
     9719
     9720  LIBS="-ltermcap $LIBS"
     9721
     9722fi
     9723
     9724fi
     9725
     9726fi
     9727
     9728
     9729# readline
     9730if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then
     9731  { echo "$as_me:$LINENO: WARNING: can not build dynamic readline without dynamic linking" >&5
     9732echo "$as_me: WARNING: can not build dynamic readline without dynamic linking" >&2;}
     9733  with_readline=static
     9734fi
     9735
     9736
     9737if test "$with_readline" != dynamic && test "$with_readline" != no; then
     9738
     9739
     9740ac_ext=cc
     9741ac_cpp='$CXXCPP $CPPFLAGS'
     9742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     9743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     9744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     9745
     9746
     9747echo "$as_me:$LINENO: checking for rl_abort in -lreadline" >&5
     9748echo $ECHO_N "checking for rl_abort in -lreadline... $ECHO_C" >&6
     9749if test "${ac_cv_lib_readline_rl_abort+set}" = set; then
     9750  echo $ECHO_N "(cached) $ECHO_C" >&6
     9751else
     9752  ac_check_lib_save_LIBS=$LIBS
     9753LIBS="-lreadline  $LIBS"
     9754cat >conftest.$ac_ext <<_ACEOF
     9755/* confdefs.h.  */
     9756_ACEOF
     9757cat confdefs.h >>conftest.$ac_ext
     9758cat >>conftest.$ac_ext <<_ACEOF
     9759/* end confdefs.h.  */
     9760
     9761/* Override any gcc2 internal prototype to avoid an error.  */
     9762#ifdef __cplusplus
     9763extern "C"
     9764#endif
     9765/* We use char because int might match the return type of a gcc2
     9766   builtin and then its argument prototype would still apply.  */
     9767char rl_abort ();
     9768int
     9769main ()
     9770{
     9771rl_abort ();
     9772  ;
     9773  return 0;
     9774}
     9775_ACEOF
     9776rm -f conftest.$ac_objext conftest$ac_exeext
     9777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9778  (eval $ac_link) 2>conftest.er1
     9779  ac_status=$?
     9780  grep -v '^ *+' conftest.er1 >conftest.err
     9781  rm -f conftest.er1
     9782  cat conftest.err >&5
     9783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9784  (exit $ac_status); } &&
     9785         { ac_try='test -z "$ac_cxx_werror_flag"
     9786                         || test ! -s conftest.err'
     9787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9788  (eval $ac_try) 2>&5
     9789  ac_status=$?
     9790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9791  (exit $ac_status); }; } &&
     9792         { ac_try='test -s conftest$ac_exeext'
     9793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9794  (eval $ac_try) 2>&5
     9795  ac_status=$?
     9796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9797  (exit $ac_status); }; }; then
     9798  ac_cv_lib_readline_rl_abort=yes
     9799else
     9800  echo "$as_me: failed program was:" >&5
     9801sed 's/^/| /' conftest.$ac_ext >&5
     9802
     9803ac_cv_lib_readline_rl_abort=no
     9804fi
     9805rm -f conftest.err conftest.$ac_objext \
     9806      conftest$ac_exeext conftest.$ac_ext
     9807LIBS=$ac_check_lib_save_LIBS
     9808fi
     9809echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_abort" >&5
     9810echo "${ECHO_T}$ac_cv_lib_readline_rl_abort" >&6
     9811if test $ac_cv_lib_readline_rl_abort = yes; then
     9812  cat >>confdefs.h <<_ACEOF
     9813#define HAVE_LIBREADLINE 1
     9814_ACEOF
    39129815
    39139816  LIBS="-lreadline $LIBS"
    39149817
    3915 else
    3916   echo "$ac_t""no" 1>&6
    3917 fi
    3918 
    3919    echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    3920 echo "configure:3921: checking how to run the C++ preprocessor" >&5
     9818fi
     9819
     9820   ac_ext=cc
     9821ac_cpp='$CXXCPP $CPPFLAGS'
     9822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     9823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     9824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     9825echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     9826echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    39219827if test -z "$CXXCPP"; then
    3922 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
    3923   echo $ac_n "(cached) $ac_c" 1>&6
    3924 else
    3925   ac_ext=C
    3926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     9828  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     9829  echo $ECHO_N "(cached) $ECHO_C" >&6
     9830else
     9831      # Double quotes because CXXCPP needs to be expanded
     9832    for CXXCPP in "$CXX -E" "/lib/cpp"
     9833    do
     9834      ac_preproc_ok=false
     9835for ac_cxx_preproc_warn_flag in '' yes
     9836do
     9837  # Use a header file that comes with gcc, so configuring glibc
     9838  # with a fresh cross-compiler works.
     9839  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     9840  # <limits.h> exists even on freestanding compilers.
     9841  # On the NeXT, cc -E runs the code through the compiler's parser,
     9842  # not just through cpp. "Syntax error" is here to catch this case.
     9843  cat >conftest.$ac_ext <<_ACEOF
     9844/* confdefs.h.  */
     9845_ACEOF
     9846cat confdefs.h >>conftest.$ac_ext
     9847cat >>conftest.$ac_ext <<_ACEOF
     9848/* end confdefs.h.  */
     9849#ifdef __STDC__
     9850# include <limits.h>
     9851#else
     9852# include <assert.h>
     9853#endif
     9854                     Syntax error
     9855_ACEOF
     9856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     9857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     9858  ac_status=$?
     9859  grep -v '^ *+' conftest.er1 >conftest.err
     9860  rm -f conftest.er1
     9861  cat conftest.err >&5
     9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9863  (exit $ac_status); } >/dev/null; then
     9864  if test -s conftest.err; then
     9865    ac_cpp_err=$ac_cxx_preproc_warn_flag
     9866    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     9867  else
     9868    ac_cpp_err=
     9869  fi
     9870else
     9871  ac_cpp_err=yes
     9872fi
     9873if test -z "$ac_cpp_err"; then
     9874  :
     9875else
     9876  echo "$as_me: failed program was:" >&5
     9877sed 's/^/| /' conftest.$ac_ext >&5
     9878
     9879  # Broken: fails on valid input.
     9880continue
     9881fi
     9882rm -f conftest.err conftest.$ac_ext
     9883
     9884  # OK, works on sane cases.  Now check whether non-existent headers
     9885  # can be detected and how.
     9886  cat >conftest.$ac_ext <<_ACEOF
     9887/* confdefs.h.  */
     9888_ACEOF
     9889cat confdefs.h >>conftest.$ac_ext
     9890cat >>conftest.$ac_ext <<_ACEOF
     9891/* end confdefs.h.  */
     9892#include <ac_nonexistent.h>
     9893_ACEOF
     9894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     9895  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     9896  ac_status=$?
     9897  grep -v '^ *+' conftest.er1 >conftest.err
     9898  rm -f conftest.er1
     9899  cat conftest.err >&5
     9900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9901  (exit $ac_status); } >/dev/null; then
     9902  if test -s conftest.err; then
     9903    ac_cpp_err=$ac_cxx_preproc_warn_flag
     9904    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     9905  else
     9906    ac_cpp_err=
     9907  fi
     9908else
     9909  ac_cpp_err=yes
     9910fi
     9911if test -z "$ac_cpp_err"; then
     9912  # Broken: success on invalid input.
     9913continue
     9914else
     9915  echo "$as_me: failed program was:" >&5
     9916sed 's/^/| /' conftest.$ac_ext >&5
     9917
     9918  # Passes both tests.
     9919ac_preproc_ok=:
     9920break
     9921fi
     9922rm -f conftest.err conftest.$ac_ext
     9923
     9924done
     9925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     9926rm -f conftest.err conftest.$ac_ext
     9927if $ac_preproc_ok; then
     9928  break
     9929fi
     9930
     9931    done
     9932    ac_cv_prog_CXXCPP=$CXXCPP
     9933
     9934fi
     9935  CXXCPP=$ac_cv_prog_CXXCPP
     9936else
     9937  ac_cv_prog_CXXCPP=$CXXCPP
     9938fi
     9939echo "$as_me:$LINENO: result: $CXXCPP" >&5
     9940echo "${ECHO_T}$CXXCPP" >&6
     9941ac_preproc_ok=false
     9942for ac_cxx_preproc_warn_flag in '' yes
     9943do
     9944  # Use a header file that comes with gcc, so configuring glibc
     9945  # with a fresh cross-compiler works.
     9946  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     9947  # <limits.h> exists even on freestanding compilers.
     9948  # On the NeXT, cc -E runs the code through the compiler's parser,
     9949  # not just through cpp. "Syntax error" is here to catch this case.
     9950  cat >conftest.$ac_ext <<_ACEOF
     9951/* confdefs.h.  */
     9952_ACEOF
     9953cat confdefs.h >>conftest.$ac_ext
     9954cat >>conftest.$ac_ext <<_ACEOF
     9955/* end confdefs.h.  */
     9956#ifdef __STDC__
     9957# include <limits.h>
     9958#else
     9959# include <assert.h>
     9960#endif
     9961                     Syntax error
     9962_ACEOF
     9963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     9964  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     9965  ac_status=$?
     9966  grep -v '^ *+' conftest.er1 >conftest.err
     9967  rm -f conftest.er1
     9968  cat conftest.err >&5
     9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9970  (exit $ac_status); } >/dev/null; then
     9971  if test -s conftest.err; then
     9972    ac_cpp_err=$ac_cxx_preproc_warn_flag
     9973    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     9974  else
     9975    ac_cpp_err=
     9976  fi
     9977else
     9978  ac_cpp_err=yes
     9979fi
     9980if test -z "$ac_cpp_err"; then
     9981  :
     9982else
     9983  echo "$as_me: failed program was:" >&5
     9984sed 's/^/| /' conftest.$ac_ext >&5
     9985
     9986  # Broken: fails on valid input.
     9987continue
     9988fi
     9989rm -f conftest.err conftest.$ac_ext
     9990
     9991  # OK, works on sane cases.  Now check whether non-existent headers
     9992  # can be detected and how.
     9993  cat >conftest.$ac_ext <<_ACEOF
     9994/* confdefs.h.  */
     9995_ACEOF
     9996cat confdefs.h >>conftest.$ac_ext
     9997cat >>conftest.$ac_ext <<_ACEOF
     9998/* end confdefs.h.  */
     9999#include <ac_nonexistent.h>
     10000_ACEOF
     10001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     10002  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     10003  ac_status=$?
     10004  grep -v '^ *+' conftest.er1 >conftest.err
     10005  rm -f conftest.er1
     10006  cat conftest.err >&5
     10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10008  (exit $ac_status); } >/dev/null; then
     10009  if test -s conftest.err; then
     10010    ac_cpp_err=$ac_cxx_preproc_warn_flag
     10011    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     10012  else
     10013    ac_cpp_err=
     10014  fi
     10015else
     10016  ac_cpp_err=yes
     10017fi
     10018if test -z "$ac_cpp_err"; then
     10019  # Broken: success on invalid input.
     10020continue
     10021else
     10022  echo "$as_me: failed program was:" >&5
     10023sed 's/^/| /' conftest.$ac_ext >&5
     10024
     10025  # Passes both tests.
     10026ac_preproc_ok=:
     10027break
     10028fi
     10029rm -f conftest.err conftest.$ac_ext
     10030
     10031done
     10032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     10033rm -f conftest.err conftest.$ac_ext
     10034if $ac_preproc_ok; then
     10035  :
     10036else
     10037  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     10038See \`config.log' for more details." >&5
     10039echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     10040See \`config.log' for more details." >&2;}
     10041   { (exit 1); exit 1; }; }
     10042fi
     10043
     10044ac_ext=cc
    392710045ac_cpp='$CXXCPP $CPPFLAGS'
    3928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3930 cross_compiling=$ac_cv_prog_cxx_cross
    3931   CXXCPP="${CXX-g++} -E"
    3932   cat > conftest.$ac_ext <<EOF
    3933 #line 3934 "configure"
    3934 #include "confdefs.h"
    3935 #include <stdlib.h>
    3936 EOF
    3937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3938 { (eval echo configure:3939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    3940 if test -z "$ac_err"; then
    3941   :
    3942 else
    3943   echo "$ac_err" >&5
    3944   echo "configure: failed program was:" >&5
    3945   cat conftest.$ac_ext >&5
    3946   rm -rf conftest*
    3947   CXXCPP=/lib/cpp
    3948 fi
    3949 rm -f conftest*
    3950   ac_cv_prog_CXXCPP="$CXXCPP"
    3951 ac_ext=C
    3952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    3953 ac_cpp='$CXXCPP $CPPFLAGS'
    3954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    3955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    3956 cross_compiling=$ac_cv_prog_cxx_cross
    3957 fi
    3958 fi
    3959 CXXCPP="$ac_cv_prog_CXXCPP"
    3960 echo "$ac_t""$CXXCPP" 1>&6
    3961 
    3962 for ac_hdr in readline/readline.h readline/history.h
     10046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     10047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     10048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     10049
     10050
     10051
     10052
     10053for ac_header in readline/readline.h readline/history.h
    396310054do
    3964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    3965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3966 echo "configure:3967: checking for $ac_hdr" >&5
    3967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    3968   echo $ac_n "(cached) $ac_c" 1>&6
    3969 else
    3970   cat > conftest.$ac_ext <<EOF
    3971 #line 3972 "configure"
    3972 #include "confdefs.h"
    3973 #include <$ac_hdr>
    3974 EOF
    3975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3976 { (eval echo configure:3977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    3977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    3978 if test -z "$ac_err"; then
    3979   rm -rf conftest*
    3980   eval "ac_cv_header_$ac_safe=yes"
    3981 else
    3982   echo "$ac_err" >&5
    3983   echo "configure: failed program was:" >&5
    3984   cat conftest.$ac_ext >&5
    3985   rm -rf conftest*
    3986   eval "ac_cv_header_$ac_safe=no"
    3987 fi
    3988 rm -f conftest*
    3989 fi
    3990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    3991   echo "$ac_t""yes" 1>&6
    3992     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    3993   cat >> confdefs.h <<EOF
    3994 #define $ac_tr_hdr 1
    3995 EOF
    3996  
    3997 else
    3998   echo "$ac_t""no" 1>&6
    3999 fi
     10055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     10056if eval "test \"\${$as_ac_Header+set}\" = set"; then
     10057  echo "$as_me:$LINENO: checking for $ac_header" >&5
     10058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     10059if eval "test \"\${$as_ac_Header+set}\" = set"; then
     10060  echo $ECHO_N "(cached) $ECHO_C" >&6
     10061fi
     10062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     10063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     10064else
     10065  # Is the header compilable?
     10066echo "$as_me:$LINENO: checking $ac_header usability" >&5
     10067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     10068cat >conftest.$ac_ext <<_ACEOF
     10069/* confdefs.h.  */
     10070_ACEOF
     10071cat confdefs.h >>conftest.$ac_ext
     10072cat >>conftest.$ac_ext <<_ACEOF
     10073/* end confdefs.h.  */
     10074$ac_includes_default
     10075#include <$ac_header>
     10076_ACEOF
     10077rm -f conftest.$ac_objext
     10078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     10079  (eval $ac_compile) 2>conftest.er1
     10080  ac_status=$?
     10081  grep -v '^ *+' conftest.er1 >conftest.err
     10082  rm -f conftest.er1
     10083  cat conftest.err >&5
     10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10085  (exit $ac_status); } &&
     10086         { ac_try='test -z "$ac_cxx_werror_flag"
     10087                         || test ! -s conftest.err'
     10088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10089  (eval $ac_try) 2>&5
     10090  ac_status=$?
     10091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10092  (exit $ac_status); }; } &&
     10093         { ac_try='test -s conftest.$ac_objext'
     10094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10095  (eval $ac_try) 2>&5
     10096  ac_status=$?
     10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10098  (exit $ac_status); }; }; then
     10099  ac_header_compiler=yes
     10100else
     10101  echo "$as_me: failed program was:" >&5
     10102sed 's/^/| /' conftest.$ac_ext >&5
     10103
     10104ac_header_compiler=no
     10105fi
     10106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     10107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     10108echo "${ECHO_T}$ac_header_compiler" >&6
     10109
     10110# Is the header present?
     10111echo "$as_me:$LINENO: checking $ac_header presence" >&5
     10112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     10113cat >conftest.$ac_ext <<_ACEOF
     10114/* confdefs.h.  */
     10115_ACEOF
     10116cat confdefs.h >>conftest.$ac_ext
     10117cat >>conftest.$ac_ext <<_ACEOF
     10118/* end confdefs.h.  */
     10119#include <$ac_header>
     10120_ACEOF
     10121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     10122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     10123  ac_status=$?
     10124  grep -v '^ *+' conftest.er1 >conftest.err
     10125  rm -f conftest.er1
     10126  cat conftest.err >&5
     10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10128  (exit $ac_status); } >/dev/null; then
     10129  if test -s conftest.err; then
     10130    ac_cpp_err=$ac_cxx_preproc_warn_flag
     10131    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     10132  else
     10133    ac_cpp_err=
     10134  fi
     10135else
     10136  ac_cpp_err=yes
     10137fi
     10138if test -z "$ac_cpp_err"; then
     10139  ac_header_preproc=yes
     10140else
     10141  echo "$as_me: failed program was:" >&5
     10142sed 's/^/| /' conftest.$ac_ext >&5
     10143
     10144  ac_header_preproc=no
     10145fi
     10146rm -f conftest.err conftest.$ac_ext
     10147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     10148echo "${ECHO_T}$ac_header_preproc" >&6
     10149
     10150# So?  What about this header?
     10151case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     10152  yes:no: )
     10153    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     10154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     10155    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     10156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     10157    ac_header_preproc=yes
     10158    ;;
     10159  no:yes:* )
     10160    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     10161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     10162    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     10163echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     10164    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     10165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     10166    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     10167echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     10168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     10169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     10170    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     10171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     10172    (
     10173      cat <<\_ASBOX
     10174## ------------------------------------------ ##
     10175## Report this to the AC_PACKAGE_NAME lists.  ##
     10176## ------------------------------------------ ##
     10177_ASBOX
     10178    ) |
     10179      sed "s/^/$as_me: WARNING:     /" >&2
     10180    ;;
     10181esac
     10182echo "$as_me:$LINENO: checking for $ac_header" >&5
     10183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     10184if eval "test \"\${$as_ac_Header+set}\" = set"; then
     10185  echo $ECHO_N "(cached) $ECHO_C" >&6
     10186else
     10187  eval "$as_ac_Header=\$ac_header_preproc"
     10188fi
     10189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     10190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     10191
     10192fi
     10193if test `eval echo '${'$as_ac_Header'}'` = yes; then
     10194  cat >>confdefs.h <<_ACEOF
     10195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     10196_ACEOF
     10197
     10198fi
     10199
    400010200done
    400110201
    400210202   if test "$ac_cv_lib_readline_rl_abort" = yes && \
    400310203      test "$ac_cv_header_readline_readline_h" = yes; then
    4004      echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    4005 echo "configure:4006: checking whether readline.h is ok" >&5
    4006      if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    4007   echo $ac_n "(cached) $ac_c" 1>&6
    4008 else
    4009   cat > conftest.$ac_ext <<EOF
    4010 #line 4011 "configure"
    4011 #include "confdefs.h"
     10204     echo "$as_me:$LINENO: checking whether readline.h is ok" >&5
     10205echo $ECHO_N "checking whether readline.h is ok... $ECHO_C" >&6
     10206     if test "${ac_cv_header_readline_readline_h_ok+set}" = set; then
     10207  echo $ECHO_N "(cached) $ECHO_C" >&6
     10208else
     10209  cat >conftest.$ac_ext <<_ACEOF
     10210/* confdefs.h.  */
     10211_ACEOF
     10212cat confdefs.h >>conftest.$ac_ext
     10213cat >>conftest.$ac_ext <<_ACEOF
     10214/* end confdefs.h.  */
    401210215#include<unistd.h>
    401310216#include<stdio.h>
     
    401710220#endif
    401810221
    4019 int main() {
    4020 
    4021 ; return 0; }
    4022 EOF
    4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4024   rm -rf conftest*
     10222int
     10223main ()
     10224{
     10225
     10226  ;
     10227  return 0;
     10228}
     10229_ACEOF
     10230rm -f conftest.$ac_objext conftest$ac_exeext
     10231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10232  (eval $ac_link) 2>conftest.er1
     10233  ac_status=$?
     10234  grep -v '^ *+' conftest.er1 >conftest.err
     10235  rm -f conftest.er1
     10236  cat conftest.err >&5
     10237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10238  (exit $ac_status); } &&
     10239         { ac_try='test -z "$ac_cxx_werror_flag"
     10240                         || test ! -s conftest.err'
     10241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10242  (eval $ac_try) 2>&5
     10243  ac_status=$?
     10244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10245  (exit $ac_status); }; } &&
     10246         { ac_try='test -s conftest$ac_exeext'
     10247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10248  (eval $ac_try) 2>&5
     10249  ac_status=$?
     10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10251  (exit $ac_status); }; }; then
    402510252  ac_cv_header_readline_readline_h_ok="yes"
    402610253else
    4027   echo "configure: failed program was:" >&5
    4028   cat conftest.$ac_ext >&5
    4029   rm -rf conftest*
    4030   ac_cv_header_readline_readline_h_ok="no"
    4031 fi
    4032 rm -f conftest*
    4033 fi
    4034 
    4035     echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6
     10254  echo "$as_me: failed program was:" >&5
     10255sed 's/^/| /' conftest.$ac_ext >&5
     10256
     10257ac_cv_header_readline_readline_h_ok="no"
     10258fi
     10259rm -f conftest.err conftest.$ac_objext \
     10260      conftest$ac_exeext conftest.$ac_ext
     10261fi
     10262
     10263    echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h_ok" >&5
     10264echo "${ECHO_T}$ac_cv_header_readline_readline_h_ok" >&6
    403610265    if test "$ac_cv_header_readline_readline_h_ok" != yes; then
    403710266#not ok -- try once more with explicitly declaring everything
    4038       echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    4039 echo "configure:4040: checking whether or not we nevertheless can use readline" >&5
    4040       if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    4041   echo $ac_n "(cached) $ac_c" 1>&6
    4042 else
    4043   cat > conftest.$ac_ext <<EOF
    4044 #line 4045 "configure"
    4045 #include "confdefs.h"
     10267      echo "$as_me:$LINENO: checking whether or not we nevertheless can use readline" >&5
     10268echo $ECHO_N "checking whether or not we nevertheless can use readline... $ECHO_C" >&6
     10269      if test "${ac_cv_have_readline+set}" = set; then
     10270  echo $ECHO_N "(cached) $ECHO_C" >&6
     10271else
     10272  cat >conftest.$ac_ext <<_ACEOF
     10273/* confdefs.h.  */
     10274_ACEOF
     10275cat confdefs.h >>conftest.$ac_ext
     10276cat >>conftest.$ac_ext <<_ACEOF
     10277/* end confdefs.h.  */
    404610278#include <stdio.h>
    404710279extern "C"
     
    406310295#endif
    406410296
    4065 int main() {
     10297int
     10298main ()
     10299{
    406610300rl_readline_name=NULL;
    406710301*rl_line_buffer=1;
     
    407410308write_history(NULL);
    407510309
    4076 ; return 0; }
    4077 EOF
    4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4079   rm -rf conftest*
     10310  ;
     10311  return 0;
     10312}
     10313_ACEOF
     10314rm -f conftest.$ac_objext conftest$ac_exeext
     10315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10316  (eval $ac_link) 2>conftest.er1
     10317  ac_status=$?
     10318  grep -v '^ *+' conftest.er1 >conftest.err
     10319  rm -f conftest.er1
     10320  cat conftest.err >&5
     10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10322  (exit $ac_status); } &&
     10323         { ac_try='test -z "$ac_cxx_werror_flag"
     10324                         || test ! -s conftest.err'
     10325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10326  (eval $ac_try) 2>&5
     10327  ac_status=$?
     10328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10329  (exit $ac_status); }; } &&
     10330         { ac_try='test -s conftest$ac_exeext'
     10331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10332  (eval $ac_try) 2>&5
     10333  ac_status=$?
     10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10335  (exit $ac_status); }; }; then
    408010336  ac_cv_have_readline="yes"
    408110337
    408210338else
    4083   echo "configure: failed program was:" >&5
    4084   cat conftest.$ac_ext >&5
    4085   rm -rf conftest*
    4086   ac_cv_have_readline="no"
    4087 
    4088 fi
    4089 rm -f conftest*
    4090 fi
    4091 
    4092       echo "$ac_t""$ac_cv_have_readline" 1>&6
     10339  echo "$as_me: failed program was:" >&5
     10340sed 's/^/| /' conftest.$ac_ext >&5
     10341
     10342ac_cv_have_readline="no"
     10343
     10344fi
     10345rm -f conftest.err conftest.$ac_objext \
     10346      conftest$ac_exeext conftest.$ac_ext
     10347fi
     10348
     10349      echo "$as_me:$LINENO: result: $ac_cv_have_readline" >&5
     10350echo "${ECHO_T}$ac_cv_have_readline" >&6
    409310351    else
    4094       cat >> confdefs.h <<\EOF
     10352      cat >>confdefs.h <<\_ACEOF
    409510353#define READLINE_READLINE_H_OK 1
    4096 EOF
     10354_ACEOF
    409710355
    409810356      ac_cv_have_readline="yes"
     
    410010358  fi
    410110359  if test "$ac_cv_have_readline" = yes; then
    4102     cat >> confdefs.h <<\EOF
     10360    cat >>confdefs.h <<\_ACEOF
    410310361#define HAVE_READLINE 1
    4104 EOF
     10362_ACEOF
    410510363
    410610364  fi
    410710365ac_ext=c
    4108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    410910366ac_cpp='$CPP $CPPFLAGS'
    4110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    4111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    4112 cross_compiling=$ac_cv_prog_cc_cross
    4113 
    4114 fi
    4115 
    4116 echo $ac_n "checking which readline to use""... $ac_c" 1>&6
    4117 echo "configure:4118: checking which readline to use" >&5
     10367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     10368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     10369ac_compiler_gnu=$ac_cv_c_compiler_gnu
     10370
     10371fi
     10372
     10373echo "$as_me:$LINENO: checking which readline to use" >&5
     10374echo $ECHO_N "checking which readline to use... $ECHO_C" >&6
    411810375if test "$ac_cv_with_readline" = dynamic; then
    4119   echo "$ac_t""dynamic" 1>&6
    4120   cat >> confdefs.h <<\EOF
     10376  echo "$as_me:$LINENO: result: dynamic" >&5
     10377echo "${ECHO_T}dynamic" >&6
     10378  cat >>confdefs.h <<\_ACEOF
    412110379#define HAVE_DYN_RL 1
    4122 EOF
     10380_ACEOF
    412310381
    412410382elif test "$ac_cv_have_readline" = yes; then
    4125   echo "$ac_t""static" 1>&6
     10383  echo "$as_me:$LINENO: result: static" >&5
     10384echo "${ECHO_T}static" >&6
    412610385elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then
    4127   { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; }
    4128 else
    4129   echo "$ac_t""none" 1>&6
    4130   echo "configure: warning: building without readline: disabling fancy display" 1>&2
    4131 fi
    4132  
     10386  { { echo "$as_me:$LINENO: error: building without readline impossible on PowerMacintosh-darwin" >&5
     10387echo "$as_me: error: building without readline impossible on PowerMacintosh-darwin" >&2;}
     10388   { (exit 1); exit 1; }; }
     10389else
     10390  echo "$as_me:$LINENO: result: none" >&5
     10391echo "${ECHO_T}none" >&6
     10392  { echo "$as_me:$LINENO: WARNING: building without readline: disabling fancy display" >&5
     10393echo "$as_me: WARNING: building without readline: disabling fancy display" >&2;}
     10394fi
     10395
    413310396NEED_LIBS=$LIBS
    413410397
    413510398# gmp, smallgmp, MP, MPT, factory, libfac
    4136 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    4137 echo "configure:4138: checking for main in -lgmp" >&5
    4138 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    4139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4140   echo $ac_n "(cached) $ac_c" 1>&6
    4141 else
    4142   ac_save_LIBS="$LIBS"
     10399
     10400echo "$as_me:$LINENO: checking for main in -lgmp" >&5
     10401echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
     10402if test "${ac_cv_lib_gmp_main+set}" = set; then
     10403  echo $ECHO_N "(cached) $ECHO_C" >&6
     10404else
     10405  ac_check_lib_save_LIBS=$LIBS
    414310406LIBS="-lgmp  $LIBS"
    4144 cat > conftest.$ac_ext <<EOF
    4145 #line 4146 "configure"
    4146 #include "confdefs.h"
    4147 
    4148 int main() {
    4149 main()
    4150 ; return 0; }
    4151 EOF
    4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4153   rm -rf conftest*
    4154   eval "ac_cv_lib_$ac_lib_var=yes"
    4155 else
    4156   echo "configure: failed program was:" >&5
    4157   cat conftest.$ac_ext >&5
    4158   rm -rf conftest*
    4159   eval "ac_cv_lib_$ac_lib_var=no"
    4160 fi
    4161 rm -f conftest*
    4162 LIBS="$ac_save_LIBS"
    4163 
    4164 fi
    4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4166   echo "$ac_t""yes" 1>&6
    4167     ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4168     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4169   cat >> confdefs.h <<EOF
    4170 #define $ac_tr_lib 1
    4171 EOF
     10407cat >conftest.$ac_ext <<_ACEOF
     10408/* confdefs.h.  */
     10409_ACEOF
     10410cat confdefs.h >>conftest.$ac_ext
     10411cat >>conftest.$ac_ext <<_ACEOF
     10412/* end confdefs.h.  */
     10413
     10414
     10415int
     10416main ()
     10417{
     10418main ();
     10419  ;
     10420  return 0;
     10421}
     10422_ACEOF
     10423rm -f conftest.$ac_objext conftest$ac_exeext
     10424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10425  (eval $ac_link) 2>conftest.er1
     10426  ac_status=$?
     10427  grep -v '^ *+' conftest.er1 >conftest.err
     10428  rm -f conftest.er1
     10429  cat conftest.err >&5
     10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10431  (exit $ac_status); } &&
     10432         { ac_try='test -z "$ac_c_werror_flag"
     10433                         || test ! -s conftest.err'
     10434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10435  (eval $ac_try) 2>&5
     10436  ac_status=$?
     10437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10438  (exit $ac_status); }; } &&
     10439         { ac_try='test -s conftest$ac_exeext'
     10440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10441  (eval $ac_try) 2>&5
     10442  ac_status=$?
     10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10444  (exit $ac_status); }; }; then
     10445  ac_cv_lib_gmp_main=yes
     10446else
     10447  echo "$as_me: failed program was:" >&5
     10448sed 's/^/| /' conftest.$ac_ext >&5
     10449
     10450ac_cv_lib_gmp_main=no
     10451fi
     10452rm -f conftest.err conftest.$ac_objext \
     10453      conftest$ac_exeext conftest.$ac_ext
     10454LIBS=$ac_check_lib_save_LIBS
     10455fi
     10456echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
     10457echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
     10458if test $ac_cv_lib_gmp_main = yes; then
     10459  cat >>confdefs.h <<_ACEOF
     10460#define HAVE_LIBGMP 1
     10461_ACEOF
    417210462
    417310463  LIBS="-lgmp $LIBS"
    417410464
    4175 else
    4176   echo "$ac_t""no" 1>&6
    417710465fi
    417810466
     
    418010468  LIBS=${NEED_LIBS}
    418110469fi
    4182 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6
    4183 echo "configure:4184: checking for main in -lsmallgmp" >&5
    4184 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`
    4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4186   echo $ac_n "(cached) $ac_c" 1>&6
    4187 else
    4188   ac_save_LIBS="$LIBS"
     10470
     10471echo "$as_me:$LINENO: checking for main in -lsmallgmp" >&5
     10472echo $ECHO_N "checking for main in -lsmallgmp... $ECHO_C" >&6
     10473if test "${ac_cv_lib_smallgmp_main+set}" = set; then
     10474  echo $ECHO_N "(cached) $ECHO_C" >&6
     10475else
     10476  ac_check_lib_save_LIBS=$LIBS
    418910477LIBS="-lsmallgmp  $LIBS"
    4190 cat > conftest.$ac_ext <<EOF
    4191 #line 4192 "configure"
    4192 #include "confdefs.h"
    4193 
    4194 int main() {
    4195 main()
    4196 ; return 0; }
    4197 EOF
    4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4199   rm -rf conftest*
    4200   eval "ac_cv_lib_$ac_lib_var=yes"
    4201 else
    4202   echo "configure: failed program was:" >&5
    4203   cat conftest.$ac_ext >&5
    4204   rm -rf conftest*
    4205   eval "ac_cv_lib_$ac_lib_var=no"
    4206 fi
    4207 rm -f conftest*
    4208 LIBS="$ac_save_LIBS"
    4209 
    4210 fi
    4211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4212   echo "$ac_t""yes" 1>&6
    4213     ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4214     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4215   cat >> confdefs.h <<EOF
    4216 #define $ac_tr_lib 1
    4217 EOF
     10478cat >conftest.$ac_ext <<_ACEOF
     10479/* confdefs.h.  */
     10480_ACEOF
     10481cat confdefs.h >>conftest.$ac_ext
     10482cat >>conftest.$ac_ext <<_ACEOF
     10483/* end confdefs.h.  */
     10484
     10485
     10486int
     10487main ()
     10488{
     10489main ();
     10490  ;
     10491  return 0;
     10492}
     10493_ACEOF
     10494rm -f conftest.$ac_objext conftest$ac_exeext
     10495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10496  (eval $ac_link) 2>conftest.er1
     10497  ac_status=$?
     10498  grep -v '^ *+' conftest.er1 >conftest.err
     10499  rm -f conftest.er1
     10500  cat conftest.err >&5
     10501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10502  (exit $ac_status); } &&
     10503         { ac_try='test -z "$ac_c_werror_flag"
     10504                         || test ! -s conftest.err'
     10505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10506  (eval $ac_try) 2>&5
     10507  ac_status=$?
     10508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10509  (exit $ac_status); }; } &&
     10510         { ac_try='test -s conftest$ac_exeext'
     10511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10512  (eval $ac_try) 2>&5
     10513  ac_status=$?
     10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10515  (exit $ac_status); }; }; then
     10516  ac_cv_lib_smallgmp_main=yes
     10517else
     10518  echo "$as_me: failed program was:" >&5
     10519sed 's/^/| /' conftest.$ac_ext >&5
     10520
     10521ac_cv_lib_smallgmp_main=no
     10522fi
     10523rm -f conftest.err conftest.$ac_objext \
     10524      conftest$ac_exeext conftest.$ac_ext
     10525LIBS=$ac_check_lib_save_LIBS
     10526fi
     10527echo "$as_me:$LINENO: result: $ac_cv_lib_smallgmp_main" >&5
     10528echo "${ECHO_T}$ac_cv_lib_smallgmp_main" >&6
     10529if test $ac_cv_lib_smallgmp_main = yes; then
     10530  cat >>confdefs.h <<_ACEOF
     10531#define HAVE_LIBSMALLGMP 1
     10532_ACEOF
    421810533
    421910534  LIBS="-lsmallgmp $LIBS"
    422010535
    4221 else
    4222   echo "$ac_t""no" 1>&6
    422310536fi
    422410537
    422510538SAVE_LIBS=$LIBS
    4226 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4227 echo "configure:4228: checking for IMP_PutGmpInt in -lMP" >&5
    4228 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    4229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4230   echo $ac_n "(cached) $ac_c" 1>&6
    4231 else
    4232   ac_save_LIBS="$LIBS"
     10539
     10540echo "$as_me:$LINENO: checking for IMP_PutGmpInt in -lMP" >&5
     10541echo $ECHO_N "checking for IMP_PutGmpInt in -lMP... $ECHO_C" >&6
     10542if test "${ac_cv_lib_MP_IMP_PutGmpInt+set}" = set; then
     10543  echo $ECHO_N "(cached) $ECHO_C" >&6
     10544else
     10545  ac_check_lib_save_LIBS=$LIBS
    423310546LIBS="-lMP $MP_LIBS $LIBS"
    4234 cat > conftest.$ac_ext <<EOF
    4235 #line 4236 "configure"
    4236 #include "confdefs.h"
     10547cat >conftest.$ac_ext <<_ACEOF
     10548/* confdefs.h.  */
     10549_ACEOF
     10550cat confdefs.h >>conftest.$ac_ext
     10551cat >>conftest.$ac_ext <<_ACEOF
     10552/* end confdefs.h.  */
     10553
    423710554/* Override any gcc2 internal prototype to avoid an error.  */
     10555#ifdef __cplusplus
     10556extern "C"
     10557#endif
    423810558/* We use char because int might match the return type of a gcc2
    4239     builtin and then its argument prototype would still apply.  */
    4240 char IMP_PutGmpInt();
    4241 
    4242 int main() {
    4243 IMP_PutGmpInt()
    4244 ; return 0; }
    4245 EOF
    4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4247   rm -rf conftest*
    4248   eval "ac_cv_lib_$ac_lib_var=yes"
    4249 else
    4250   echo "configure: failed program was:" >&5
    4251   cat conftest.$ac_ext >&5
    4252   rm -rf conftest*
    4253   eval "ac_cv_lib_$ac_lib_var=no"
    4254 fi
    4255 rm -f conftest*
    4256 LIBS="$ac_save_LIBS"
    4257 
    4258 fi
    4259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4260   echo "$ac_t""yes" 1>&6
    4261     ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4262     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4263   cat >> confdefs.h <<EOF
    4264 #define $ac_tr_lib 1
    4265 EOF
     10559   builtin and then its argument prototype would still apply.  */
     10560char IMP_PutGmpInt ();
     10561int
     10562main ()
     10563{
     10564IMP_PutGmpInt ();
     10565  ;
     10566  return 0;
     10567}
     10568_ACEOF
     10569rm -f conftest.$ac_objext conftest$ac_exeext
     10570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10571  (eval $ac_link) 2>conftest.er1
     10572  ac_status=$?
     10573  grep -v '^ *+' conftest.er1 >conftest.err
     10574  rm -f conftest.er1
     10575  cat conftest.err >&5
     10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10577  (exit $ac_status); } &&
     10578         { ac_try='test -z "$ac_c_werror_flag"
     10579                         || test ! -s conftest.err'
     10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10581  (eval $ac_try) 2>&5
     10582  ac_status=$?
     10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10584  (exit $ac_status); }; } &&
     10585         { ac_try='test -s conftest$ac_exeext'
     10586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10587  (eval $ac_try) 2>&5
     10588  ac_status=$?
     10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10590  (exit $ac_status); }; }; then
     10591  ac_cv_lib_MP_IMP_PutGmpInt=yes
     10592else
     10593  echo "$as_me: failed program was:" >&5
     10594sed 's/^/| /' conftest.$ac_ext >&5
     10595
     10596ac_cv_lib_MP_IMP_PutGmpInt=no
     10597fi
     10598rm -f conftest.err conftest.$ac_objext \
     10599      conftest$ac_exeext conftest.$ac_ext
     10600LIBS=$ac_check_lib_save_LIBS
     10601fi
     10602echo "$as_me:$LINENO: result: $ac_cv_lib_MP_IMP_PutGmpInt" >&5
     10603echo "${ECHO_T}$ac_cv_lib_MP_IMP_PutGmpInt" >&6
     10604if test $ac_cv_lib_MP_IMP_PutGmpInt = yes; then
     10605  cat >>confdefs.h <<_ACEOF
     10606#define HAVE_LIBMP 1
     10607_ACEOF
    426610608
    426710609  LIBS="-lMP $LIBS"
    426810610
    4269 else
    4270   echo "$ac_t""no" 1>&6
    4271 fi
    4272 
    4273 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4274 echo "configure:4275: checking for MPT_GetTree in -lMPT" >&5
    4275 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    4276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4277   echo $ac_n "(cached) $ac_c" 1>&6
    4278 else
    4279   ac_save_LIBS="$LIBS"
     10611fi
     10612
     10613
     10614echo "$as_me:$LINENO: checking for MPT_GetTree in -lMPT" >&5
     10615echo $ECHO_N "checking for MPT_GetTree in -lMPT... $ECHO_C" >&6
     10616if test "${ac_cv_lib_MPT_MPT_GetTree+set}" = set; then
     10617  echo $ECHO_N "(cached) $ECHO_C" >&6
     10618else
     10619  ac_check_lib_save_LIBS=$LIBS
    428010620LIBS="-lMPT $MP_LIBS $LIBS"
    4281 cat > conftest.$ac_ext <<EOF
    4282 #line 4283 "configure"
    4283 #include "confdefs.h"
     10621cat >conftest.$ac_ext <<_ACEOF
     10622/* confdefs.h.  */
     10623_ACEOF
     10624cat confdefs.h >>conftest.$ac_ext
     10625cat >>conftest.$ac_ext <<_ACEOF
     10626/* end confdefs.h.  */
     10627
    428410628/* Override any gcc2 internal prototype to avoid an error.  */
     10629#ifdef __cplusplus
     10630extern "C"
     10631#endif
    428510632/* We use char because int might match the return type of a gcc2
    4286     builtin and then its argument prototype would still apply.  */
    4287 char MPT_GetTree();
    4288 
    4289 int main() {
    4290 MPT_GetTree()
    4291 ; return 0; }
    4292 EOF
    4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4294   rm -rf conftest*
    4295   eval "ac_cv_lib_$ac_lib_var=yes"
    4296 else
    4297   echo "configure: failed program was:" >&5
    4298   cat conftest.$ac_ext >&5
    4299   rm -rf conftest*
    4300   eval "ac_cv_lib_$ac_lib_var=no"
    4301 fi
    4302 rm -f conftest*
    4303 LIBS="$ac_save_LIBS"
    4304 
    4305 fi
    4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4307   echo "$ac_t""yes" 1>&6
    4308     ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4309     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4310   cat >> confdefs.h <<EOF
    4311 #define $ac_tr_lib 1
    4312 EOF
     10633   builtin and then its argument prototype would still apply.  */
     10634char MPT_GetTree ();
     10635int
     10636main ()
     10637{
     10638MPT_GetTree ();
     10639  ;
     10640  return 0;
     10641}
     10642_ACEOF
     10643rm -f conftest.$ac_objext conftest$ac_exeext
     10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10645  (eval $ac_link) 2>conftest.er1
     10646  ac_status=$?
     10647  grep -v '^ *+' conftest.er1 >conftest.err
     10648  rm -f conftest.er1
     10649  cat conftest.err >&5
     10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10651  (exit $ac_status); } &&
     10652         { ac_try='test -z "$ac_c_werror_flag"
     10653                         || test ! -s conftest.err'
     10654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10655  (eval $ac_try) 2>&5
     10656  ac_status=$?
     10657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10658  (exit $ac_status); }; } &&
     10659         { ac_try='test -s conftest$ac_exeext'
     10660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10661  (eval $ac_try) 2>&5
     10662  ac_status=$?
     10663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10664  (exit $ac_status); }; }; then
     10665  ac_cv_lib_MPT_MPT_GetTree=yes
     10666else
     10667  echo "$as_me: failed program was:" >&5
     10668sed 's/^/| /' conftest.$ac_ext >&5
     10669
     10670ac_cv_lib_MPT_MPT_GetTree=no
     10671fi
     10672rm -f conftest.err conftest.$ac_objext \
     10673      conftest$ac_exeext conftest.$ac_ext
     10674LIBS=$ac_check_lib_save_LIBS
     10675fi
     10676echo "$as_me:$LINENO: result: $ac_cv_lib_MPT_MPT_GetTree" >&5
     10677echo "${ECHO_T}$ac_cv_lib_MPT_MPT_GetTree" >&6
     10678if test $ac_cv_lib_MPT_MPT_GetTree = yes; then
     10679  cat >>confdefs.h <<_ACEOF
     10680#define HAVE_LIBMPT 1
     10681_ACEOF
    431310682
    431410683  LIBS="-lMPT $LIBS"
    431510684
    4316 else
    4317   echo "$ac_t""no" 1>&6
    431810685fi
    431910686
    432010687LIBS=$SAVE_LIBS
    4321 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4322 echo "configure:4323: checking for atof in -lsingcf" >&5
    4323 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4325   echo $ac_n "(cached) $ac_c" 1>&6
    4326 else
    4327   ac_save_LIBS="$LIBS"
     10688
     10689echo "$as_me:$LINENO: checking for atof in -lsingcf" >&5
     10690echo $ECHO_N "checking for atof in -lsingcf... $ECHO_C" >&6
     10691if test "${ac_cv_lib_singcf_atof+set}" = set; then
     10692  echo $ECHO_N "(cached) $ECHO_C" >&6
     10693else
     10694  ac_check_lib_save_LIBS=$LIBS
    432810695LIBS="-lsingcf  $LIBS"
    4329 cat > conftest.$ac_ext <<EOF
    4330 #line 4331 "configure"
    4331 #include "confdefs.h"
     10696cat >conftest.$ac_ext <<_ACEOF
     10697/* confdefs.h.  */
     10698_ACEOF
     10699cat confdefs.h >>conftest.$ac_ext
     10700cat >>conftest.$ac_ext <<_ACEOF
     10701/* end confdefs.h.  */
     10702
    433210703/* Override any gcc2 internal prototype to avoid an error.  */
     10704#ifdef __cplusplus
     10705extern "C"
     10706#endif
    433310707/* We use char because int might match the return type of a gcc2
    4334     builtin and then its argument prototype would still apply.  */
    4335 char atof();
    4336 
    4337 int main() {
    4338 atof()
    4339 ; return 0; }
    4340 EOF
    4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4342   rm -rf conftest*
    4343   eval "ac_cv_lib_$ac_lib_var=yes"
    4344 else
    4345   echo "configure: failed program was:" >&5
    4346   cat conftest.$ac_ext >&5
    4347   rm -rf conftest*
    4348   eval "ac_cv_lib_$ac_lib_var=no"
    4349 fi
    4350 rm -f conftest*
    4351 LIBS="$ac_save_LIBS"
    4352 
    4353 fi
    4354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4355   echo "$ac_t""yes" 1>&6
    4356     ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4357     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4358   cat >> confdefs.h <<EOF
    4359 #define $ac_tr_lib 1
    4360 EOF
     10708   builtin and then its argument prototype would still apply.  */
     10709char atof ();
     10710int
     10711main ()
     10712{
     10713atof ();
     10714  ;
     10715  return 0;
     10716}
     10717_ACEOF
     10718rm -f conftest.$ac_objext conftest$ac_exeext
     10719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10720  (eval $ac_link) 2>conftest.er1
     10721  ac_status=$?
     10722  grep -v '^ *+' conftest.er1 >conftest.err
     10723  rm -f conftest.er1
     10724  cat conftest.err >&5
     10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10726  (exit $ac_status); } &&
     10727         { ac_try='test -z "$ac_c_werror_flag"
     10728                         || test ! -s conftest.err'
     10729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10730  (eval $ac_try) 2>&5
     10731  ac_status=$?
     10732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10733  (exit $ac_status); }; } &&
     10734         { ac_try='test -s conftest$ac_exeext'
     10735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10736  (eval $ac_try) 2>&5
     10737  ac_status=$?
     10738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10739  (exit $ac_status); }; }; then
     10740  ac_cv_lib_singcf_atof=yes
     10741else
     10742  echo "$as_me: failed program was:" >&5
     10743sed 's/^/| /' conftest.$ac_ext >&5
     10744
     10745ac_cv_lib_singcf_atof=no
     10746fi
     10747rm -f conftest.err conftest.$ac_objext \
     10748      conftest$ac_exeext conftest.$ac_ext
     10749LIBS=$ac_check_lib_save_LIBS
     10750fi
     10751echo "$as_me:$LINENO: result: $ac_cv_lib_singcf_atof" >&5
     10752echo "${ECHO_T}$ac_cv_lib_singcf_atof" >&6
     10753if test $ac_cv_lib_singcf_atof = yes; then
     10754  cat >>confdefs.h <<_ACEOF
     10755#define HAVE_LIBSINGCF 1
     10756_ACEOF
    436110757
    436210758  LIBS="-lsingcf $LIBS"
    436310759
    4364 else
    4365   echo "$ac_t""no" 1>&6
    4366 fi
    4367 
    4368 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4369 echo "configure:4370: checking for atof in -lsingfac" >&5
    4370 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    4371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4372   echo $ac_n "(cached) $ac_c" 1>&6
    4373 else
    4374   ac_save_LIBS="$LIBS"
     10760fi
     10761
     10762
     10763echo "$as_me:$LINENO: checking for atof in -lsingfac" >&5
     10764echo $ECHO_N "checking for atof in -lsingfac... $ECHO_C" >&6
     10765if test "${ac_cv_lib_singfac_atof+set}" = set; then
     10766  echo $ECHO_N "(cached) $ECHO_C" >&6
     10767else
     10768  ac_check_lib_save_LIBS=$LIBS
    437510769LIBS="-lsingfac  $LIBS"
    4376 cat > conftest.$ac_ext <<EOF
    4377 #line 4378 "configure"
    4378 #include "confdefs.h"
     10770cat >conftest.$ac_ext <<_ACEOF
     10771/* confdefs.h.  */
     10772_ACEOF
     10773cat confdefs.h >>conftest.$ac_ext
     10774cat >>conftest.$ac_ext <<_ACEOF
     10775/* end confdefs.h.  */
     10776
    437910777/* Override any gcc2 internal prototype to avoid an error.  */
     10778#ifdef __cplusplus
     10779extern "C"
     10780#endif
    438010781/* We use char because int might match the return type of a gcc2
    4381     builtin and then its argument prototype would still apply.  */
    4382 char atof();
    4383 
    4384 int main() {
    4385 atof()
    4386 ; return 0; }
    4387 EOF
    4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4389   rm -rf conftest*
    4390   eval "ac_cv_lib_$ac_lib_var=yes"
    4391 else
    4392   echo "configure: failed program was:" >&5
    4393   cat conftest.$ac_ext >&5
    4394   rm -rf conftest*
    4395   eval "ac_cv_lib_$ac_lib_var=no"
    4396 fi
    4397 rm -f conftest*
    4398 LIBS="$ac_save_LIBS"
    4399 
    4400 fi
    4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4402   echo "$ac_t""yes" 1>&6
    4403     ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4404     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4405   cat >> confdefs.h <<EOF
    4406 #define $ac_tr_lib 1
    4407 EOF
     10782   builtin and then its argument prototype would still apply.  */
     10783char atof ();
     10784int
     10785main ()
     10786{
     10787atof ();
     10788  ;
     10789  return 0;
     10790}
     10791_ACEOF
     10792rm -f conftest.$ac_objext conftest$ac_exeext
     10793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10794  (eval $ac_link) 2>conftest.er1
     10795  ac_status=$?
     10796  grep -v '^ *+' conftest.er1 >conftest.err
     10797  rm -f conftest.er1
     10798  cat conftest.err >&5
     10799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10800  (exit $ac_status); } &&
     10801         { ac_try='test -z "$ac_c_werror_flag"
     10802                         || test ! -s conftest.err'
     10803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10804  (eval $ac_try) 2>&5
     10805  ac_status=$?
     10806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10807  (exit $ac_status); }; } &&
     10808         { ac_try='test -s conftest$ac_exeext'
     10809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10810  (eval $ac_try) 2>&5
     10811  ac_status=$?
     10812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10813  (exit $ac_status); }; }; then
     10814  ac_cv_lib_singfac_atof=yes
     10815else
     10816  echo "$as_me: failed program was:" >&5
     10817sed 's/^/| /' conftest.$ac_ext >&5
     10818
     10819ac_cv_lib_singfac_atof=no
     10820fi
     10821rm -f conftest.err conftest.$ac_objext \
     10822      conftest$ac_exeext conftest.$ac_ext
     10823LIBS=$ac_check_lib_save_LIBS
     10824fi
     10825echo "$as_me:$LINENO: result: $ac_cv_lib_singfac_atof" >&5
     10826echo "${ECHO_T}$ac_cv_lib_singfac_atof" >&6
     10827if test $ac_cv_lib_singfac_atof = yes; then
     10828  cat >>confdefs.h <<_ACEOF
     10829#define HAVE_LIBSINGFAC 1
     10830_ACEOF
    440810831
    440910832  LIBS="-lsingfac $LIBS"
    441010833
    4411 else
    4412   echo "$ac_t""no" 1>&6
    4413 fi
    4414 
    4415 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
    4416 echo "configure:4417: checking for omTestAddr in -lomalloc" >&5
    4417 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
    4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4419   echo $ac_n "(cached) $ac_c" 1>&6
    4420 else
    4421   ac_save_LIBS="$LIBS"
     10834fi
     10835
     10836
     10837echo "$as_me:$LINENO: checking for omTestAddr in -lomalloc" >&5
     10838echo $ECHO_N "checking for omTestAddr in -lomalloc... $ECHO_C" >&6
     10839if test "${ac_cv_lib_omalloc_omTestAddr+set}" = set; then
     10840  echo $ECHO_N "(cached) $ECHO_C" >&6
     10841else
     10842  ac_check_lib_save_LIBS=$LIBS
    442210843LIBS="-lomalloc  $LIBS"
    4423 cat > conftest.$ac_ext <<EOF
    4424 #line 4425 "configure"
    4425 #include "confdefs.h"
     10844cat >conftest.$ac_ext <<_ACEOF
     10845/* confdefs.h.  */
     10846_ACEOF
     10847cat confdefs.h >>conftest.$ac_ext
     10848cat >>conftest.$ac_ext <<_ACEOF
     10849/* end confdefs.h.  */
     10850
    442610851/* Override any gcc2 internal prototype to avoid an error.  */
     10852#ifdef __cplusplus
     10853extern "C"
     10854#endif
    442710855/* We use char because int might match the return type of a gcc2
    4428     builtin and then its argument prototype would still apply.  */
    4429 char omTestAddr();
    4430 
    4431 int main() {
    4432 omTestAddr()
    4433 ; return 0; }
    4434 EOF
    4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4436   rm -rf conftest*
    4437   eval "ac_cv_lib_$ac_lib_var=yes"
    4438 else
    4439   echo "configure: failed program was:" >&5
    4440   cat conftest.$ac_ext >&5
    4441   rm -rf conftest*
    4442   eval "ac_cv_lib_$ac_lib_var=no"
    4443 fi
    4444 rm -f conftest*
    4445 LIBS="$ac_save_LIBS"
    4446 
    4447 fi
    4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4449   echo "$ac_t""yes" 1>&6
    4450     ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4451     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4452   cat >> confdefs.h <<EOF
    4453 #define $ac_tr_lib 1
    4454 EOF
     10856   builtin and then its argument prototype would still apply.  */
     10857char omTestAddr ();
     10858int
     10859main ()
     10860{
     10861omTestAddr ();
     10862  ;
     10863  return 0;
     10864}
     10865_ACEOF
     10866rm -f conftest.$ac_objext conftest$ac_exeext
     10867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10868  (eval $ac_link) 2>conftest.er1
     10869  ac_status=$?
     10870  grep -v '^ *+' conftest.er1 >conftest.err
     10871  rm -f conftest.er1
     10872  cat conftest.err >&5
     10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10874  (exit $ac_status); } &&
     10875         { ac_try='test -z "$ac_c_werror_flag"
     10876                         || test ! -s conftest.err'
     10877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10878  (eval $ac_try) 2>&5
     10879  ac_status=$?
     10880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10881  (exit $ac_status); }; } &&
     10882         { ac_try='test -s conftest$ac_exeext'
     10883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10884  (eval $ac_try) 2>&5
     10885  ac_status=$?
     10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10887  (exit $ac_status); }; }; then
     10888  ac_cv_lib_omalloc_omTestAddr=yes
     10889else
     10890  echo "$as_me: failed program was:" >&5
     10891sed 's/^/| /' conftest.$ac_ext >&5
     10892
     10893ac_cv_lib_omalloc_omTestAddr=no
     10894fi
     10895rm -f conftest.err conftest.$ac_objext \
     10896      conftest$ac_exeext conftest.$ac_ext
     10897LIBS=$ac_check_lib_save_LIBS
     10898fi
     10899echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_omTestAddr" >&5
     10900echo "${ECHO_T}$ac_cv_lib_omalloc_omTestAddr" >&6
     10901if test $ac_cv_lib_omalloc_omTestAddr = yes; then
     10902  cat >>confdefs.h <<_ACEOF
     10903#define HAVE_LIBOMALLOC 1
     10904_ACEOF
    445510905
    445610906  LIBS="-lomalloc $LIBS"
    445710907
    4458 else
    4459   echo "$ac_t""no" 1>&6
    4460 fi
    4461 
    4462 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
    4463 echo "configure:4464: checking for main in -lomalloc_ndebug" >&5
    4464 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
    4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4466   echo $ac_n "(cached) $ac_c" 1>&6
    4467 else
    4468   ac_save_LIBS="$LIBS"
     10908fi
     10909
     10910
     10911echo "$as_me:$LINENO: checking for main in -lomalloc_ndebug" >&5
     10912echo $ECHO_N "checking for main in -lomalloc_ndebug... $ECHO_C" >&6
     10913if test "${ac_cv_lib_omalloc_ndebug_main+set}" = set; then
     10914  echo $ECHO_N "(cached) $ECHO_C" >&6
     10915else
     10916  ac_check_lib_save_LIBS=$LIBS
    446910917LIBS="-lomalloc_ndebug  $LIBS"
    4470 cat > conftest.$ac_ext <<EOF
    4471 #line 4472 "configure"
    4472 #include "confdefs.h"
    4473 
    4474 int main() {
    4475 main()
    4476 ; return 0; }
    4477 EOF
    4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4479   rm -rf conftest*
    4480   eval "ac_cv_lib_$ac_lib_var=yes"
    4481 else
    4482   echo "configure: failed program was:" >&5
    4483   cat conftest.$ac_ext >&5
    4484   rm -rf conftest*
    4485   eval "ac_cv_lib_$ac_lib_var=no"
    4486 fi
    4487 rm -f conftest*
    4488 LIBS="$ac_save_LIBS"
    4489 
    4490 fi
    4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4492   echo "$ac_t""yes" 1>&6
    4493     ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4494     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4495   cat >> confdefs.h <<EOF
    4496 #define $ac_tr_lib 1
    4497 EOF
     10918cat >conftest.$ac_ext <<_ACEOF
     10919/* confdefs.h.  */
     10920_ACEOF
     10921cat confdefs.h >>conftest.$ac_ext
     10922cat >>conftest.$ac_ext <<_ACEOF
     10923/* end confdefs.h.  */
     10924
     10925
     10926int
     10927main ()
     10928{
     10929main ();
     10930  ;
     10931  return 0;
     10932}
     10933_ACEOF
     10934rm -f conftest.$ac_objext conftest$ac_exeext
     10935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     10936  (eval $ac_link) 2>conftest.er1
     10937  ac_status=$?
     10938  grep -v '^ *+' conftest.er1 >conftest.err
     10939  rm -f conftest.er1
     10940  cat conftest.err >&5
     10941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10942  (exit $ac_status); } &&
     10943         { ac_try='test -z "$ac_c_werror_flag"
     10944                         || test ! -s conftest.err'
     10945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10946  (eval $ac_try) 2>&5
     10947  ac_status=$?
     10948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10949  (exit $ac_status); }; } &&
     10950         { ac_try='test -s conftest$ac_exeext'
     10951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     10952  (eval $ac_try) 2>&5
     10953  ac_status=$?
     10954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10955  (exit $ac_status); }; }; then
     10956  ac_cv_lib_omalloc_ndebug_main=yes
     10957else
     10958  echo "$as_me: failed program was:" >&5
     10959sed 's/^/| /' conftest.$ac_ext >&5
     10960
     10961ac_cv_lib_omalloc_ndebug_main=no
     10962fi
     10963rm -f conftest.err conftest.$ac_objext \
     10964      conftest$ac_exeext conftest.$ac_ext
     10965LIBS=$ac_check_lib_save_LIBS
     10966fi
     10967echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_ndebug_main" >&5
     10968echo "${ECHO_T}$ac_cv_lib_omalloc_ndebug_main" >&6
     10969if test $ac_cv_lib_omalloc_ndebug_main = yes; then
     10970  cat >>confdefs.h <<_ACEOF
     10971#define HAVE_LIBOMALLOC_NDEBUG 1
     10972_ACEOF
    449810973
    449910974  LIBS="-lomalloc_ndebug $LIBS"
    450010975
    4501 else
    4502   echo "$ac_t""no" 1>&6
    4503 fi
    4504 
    4505 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6
    4506 echo "configure:4507: checking for main in -lntl" >&5
    4507 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'`
    4508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    4509   echo $ac_n "(cached) $ac_c" 1>&6
    4510 else
    4511   ac_save_LIBS="$LIBS"
     10976fi
     10977
     10978
     10979echo "$as_me:$LINENO: checking for main in -lntl" >&5
     10980echo $ECHO_N "checking for main in -lntl... $ECHO_C" >&6
     10981if test "${ac_cv_lib_ntl_main+set}" = set; then
     10982  echo $ECHO_N "(cached) $ECHO_C" >&6
     10983else
     10984  ac_check_lib_save_LIBS=$LIBS
    451210985LIBS="-lntl  $LIBS"
    4513 cat > conftest.$ac_ext <<EOF
    4514 #line 4515 "configure"
    4515 #include "confdefs.h"
    4516 
    4517 int main() {
    4518 main()
    4519 ; return 0; }
    4520 EOF
    4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    4522   rm -rf conftest*
    4523   eval "ac_cv_lib_$ac_lib_var=yes"
    4524 else
    4525   echo "configure: failed program was:" >&5
    4526   cat conftest.$ac_ext >&5
    4527   rm -rf conftest*
    4528   eval "ac_cv_lib_$ac_lib_var=no"
    4529 fi
    4530 rm -f conftest*
    4531 LIBS="$ac_save_LIBS"
    4532 
    4533 fi
    4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    4535   echo "$ac_t""yes" 1>&6
    4536     ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    4537     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    4538   cat >> confdefs.h <<EOF
    4539 #define $ac_tr_lib 1
    4540 EOF
     10986cat >conftest.$ac_ext <<_ACEOF
     10987/* confdefs.h.  */
     10988_ACEOF
     10989cat confdefs.h >>conftest.$ac_ext
     10990cat >>conftest.$ac_ext <<_ACEOF
     10991/* end confdefs.h.  */
     10992
     10993
     10994int
     10995main ()
     10996{
     10997main ();
     10998  ;
     10999  return 0;
     11000}
     11001_ACEOF
     11002rm -f conftest.$ac_objext conftest$ac_exeext
     11003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     11004  (eval $ac_link) 2>conftest.er1
     11005  ac_status=$?
     11006  grep -v '^ *+' conftest.er1 >conftest.err
     11007  rm -f conftest.er1
     11008  cat conftest.err >&5
     11009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11010  (exit $ac_status); } &&
     11011         { ac_try='test -z "$ac_c_werror_flag"
     11012                         || test ! -s conftest.err'
     11013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     11014  (eval $ac_try) 2>&5
     11015  ac_status=$?
     11016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11017  (exit $ac_status); }; } &&
     11018         { ac_try='test -s conftest$ac_exeext'
     11019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     11020  (eval $ac_try) 2>&5
     11021  ac_status=$?
     11022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11023  (exit $ac_status); }; }; then
     11024  ac_cv_lib_ntl_main=yes
     11025else
     11026  echo "$as_me: failed program was:" >&5
     11027sed 's/^/| /' conftest.$ac_ext >&5
     11028
     11029ac_cv_lib_ntl_main=no
     11030fi
     11031rm -f conftest.err conftest.$ac_objext \
     11032      conftest$ac_exeext conftest.$ac_ext
     11033LIBS=$ac_check_lib_save_LIBS
     11034fi
     11035echo "$as_me:$LINENO: result: $ac_cv_lib_ntl_main" >&5
     11036echo "${ECHO_T}$ac_cv_lib_ntl_main" >&6
     11037if test $ac_cv_lib_ntl_main = yes; then
     11038  cat >>confdefs.h <<_ACEOF
     11039#define HAVE_LIBNTL 1
     11040_ACEOF
    454111041
    454211042  LIBS="-lntl $LIBS"
    454311043
    4544 else
    4545   echo "$ac_t""no" 1>&6
    4546 fi
    4547 
    4548 
    4549 for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h \
     11044fi
     11045
     11046
     11047
     11048
     11049
     11050
     11051
     11052
     11053
     11054
     11055for ac_header in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h \
    455011056 omalloc.c
    455111057do
    4552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    4553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4554 echo "configure:4555: checking for $ac_hdr" >&5
    4555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    4556   echo $ac_n "(cached) $ac_c" 1>&6
    4557 else
    4558   cat > conftest.$ac_ext <<EOF
    4559 #line 4560 "configure"
    4560 #include "confdefs.h"
    4561 #include <$ac_hdr>
    4562 EOF
    4563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4564 { (eval echo configure:4565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    4565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    4566 if test -z "$ac_err"; then
    4567   rm -rf conftest*
    4568   eval "ac_cv_header_$ac_safe=yes"
    4569 else
    4570   echo "$ac_err" >&5
    4571   echo "configure: failed program was:" >&5
    4572   cat conftest.$ac_ext >&5
    4573   rm -rf conftest*
    4574   eval "ac_cv_header_$ac_safe=no"
    4575 fi
    4576 rm -f conftest*
    4577 fi
    4578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    4579   echo "$ac_t""yes" 1>&6
    4580     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    4581   cat >> confdefs.h <<EOF
    4582 #define $ac_tr_hdr 1
    4583 EOF
    4584  
    4585 else
    4586   echo "$ac_t""no" 1>&6
    4587 fi
     11058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     11059if eval "test \"\${$as_ac_Header+set}\" = set"; then
     11060  echo "$as_me:$LINENO: checking for $ac_header" >&5
     11061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     11062if eval "test \"\${$as_ac_Header+set}\" = set"; then
     11063  echo $ECHO_N "(cached) $ECHO_C" >&6
     11064fi
     11065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     11066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     11067else
     11068  # Is the header compilable?
     11069echo "$as_me:$LINENO: checking $ac_header usability" >&5
     11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     11071cat >conftest.$ac_ext <<_ACEOF
     11072/* confdefs.h.  */
     11073_ACEOF
     11074cat confdefs.h >>conftest.$ac_ext
     11075cat >>conftest.$ac_ext <<_ACEOF
     11076/* end confdefs.h.  */
     11077$ac_includes_default
     11078#include <$ac_header>
     11079_ACEOF
     11080rm -f conftest.$ac_objext
     11081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     11082  (eval $ac_compile) 2>conftest.er1
     11083  ac_status=$?
     11084  grep -v '^ *+' conftest.er1 >conftest.err
     11085  rm -f conftest.er1
     11086  cat conftest.err >&5
     11087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11088  (exit $ac_status); } &&
     11089         { ac_try='test -z "$ac_c_werror_flag"
     11090                         || test ! -s conftest.err'
     11091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     11092  (eval $ac_try) 2>&5
     11093  ac_status=$?
     11094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11095  (exit $ac_status); }; } &&
     11096         { ac_try='test -s conftest.$ac_objext'
     11097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     11098  (eval $ac_try) 2>&5
     11099  ac_status=$?
     11100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11101  (exit $ac_status); }; }; then
     11102  ac_header_compiler=yes
     11103else
     11104  echo "$as_me: failed program was:" >&5
     11105sed 's/^/| /' conftest.$ac_ext >&5
     11106
     11107ac_header_compiler=no
     11108fi
     11109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     11110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11111echo "${ECHO_T}$ac_header_compiler" >&6
     11112
     11113# Is the header present?
     11114echo "$as_me:$LINENO: checking $ac_header presence" >&5
     11115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     11116cat >conftest.$ac_ext <<_ACEOF
     11117/* confdefs.h.  */
     11118_ACEOF
     11119cat confdefs.h >>conftest.$ac_ext
     11120cat >>conftest.$ac_ext <<_ACEOF
     11121/* end confdefs.h.  */
     11122#include <$ac_header>
     11123_ACEOF
     11124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     11125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     11126  ac_status=$?
     11127  grep -v '^ *+' conftest.er1 >conftest.err
     11128  rm -f conftest.er1
     11129  cat conftest.err >&5
     11130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11131  (exit $ac_status); } >/dev/null; then
     11132  if test -s conftest.err; then
     11133    ac_cpp_err=$ac_c_preproc_warn_flag
     11134    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     11135  else
     11136    ac_cpp_err=
     11137  fi
     11138else
     11139  ac_cpp_err=yes
     11140fi
     11141if test -z "$ac_cpp_err"; then
     11142  ac_header_preproc=yes
     11143else
     11144  echo "$as_me: failed program was:" >&5
     11145sed 's/^/| /' conftest.$ac_ext >&5
     11146
     11147  ac_header_preproc=no
     11148fi
     11149rm -f conftest.err conftest.$ac_ext
     11150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11151echo "${ECHO_T}$ac_header_preproc" >&6
     11152
     11153# So?  What about this header?
     11154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     11155  yes:no: )
     11156    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     11157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11158    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     11159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     11160    ac_header_preproc=yes
     11161    ;;
     11162  no:yes:* )
     11163    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     11164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     11165    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     11166echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     11167    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     11168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     11169    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     11170echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     11171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     11172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     11173    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     11174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     11175    (
     11176      cat <<\_ASBOX
     11177## ------------------------------------------ ##
     11178## Report this to the AC_PACKAGE_NAME lists.  ##
     11179## ------------------------------------------ ##
     11180_ASBOX
     11181    ) |
     11182      sed "s/^/$as_me: WARNING:     /" >&2
     11183    ;;
     11184esac
     11185echo "$as_me:$LINENO: checking for $ac_header" >&5
     11186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     11187if eval "test \"\${$as_ac_Header+set}\" = set"; then
     11188  echo $ECHO_N "(cached) $ECHO_C" >&6
     11189else
     11190  eval "$as_ac_Header=\$ac_header_preproc"
     11191fi
     11192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     11193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     11194
     11195fi
     11196if test `eval echo '${'$as_ac_Header'}'` = yes; then
     11197  cat >>confdefs.h <<_ACEOF
     11198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     11199_ACEOF
     11200
     11201fi
     11202
    458811203done
    458911204
     
    463011245# evaluate results
    463111246if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then
    4632   { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
    4633 fi
    4634 
    4635 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4636 echo "configure:4637: checking which apint package to use" >&5
     11247  { { echo "$as_me:$LINENO: error: can not build without omalloc" >&5
     11248echo "$as_me: error: can not build without omalloc" >&2;}
     11249   { (exit 1); exit 1; }; }
     11250fi
     11251
     11252echo "$as_me:$LINENO: checking which apint package to use" >&5
     11253echo $ECHO_N "checking which apint package to use... $ECHO_C" >&6
    463711254if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    463811255  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
    4639     echo "$ac_t""gmp" 1>&6
     11256    echo "$as_me:$LINENO: result: gmp" >&5
     11257echo "${ECHO_T}gmp" >&6
    464011258    will_have_gmp=yes
    464111259    NEED_LIBS="-lgmp ${NEED_LIBS}"
    464211260  elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
    4643     echo "$ac_t""smallgmp" 1>&6
    4644     cat >> confdefs.h <<\EOF
     11261    echo "$as_me:$LINENO: result: smallgmp" >&5
     11262echo "${ECHO_T}smallgmp" >&6
     11263    cat >>confdefs.h <<\_ACEOF
    464511264#define HAVE_SMALLGMP 1
    4646 EOF
     11265_ACEOF
    464711266
    464811267    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
    464911268  else
    4650     echo "$ac_t""none" 1>&6
    4651     { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; }
     11269    echo "$as_me:$LINENO: result: none" >&5
     11270echo "${ECHO_T}none" >&6
     11271    { { echo "$as_me:$LINENO: error: can not build without gmp or smallgmp" >&5
     11272echo "$as_me: error: can not build without gmp or smallgmp" >&2;}
     11273   { (exit 1); exit 1; }; }
    465211274  fi
    465311275elif test "${with_apint}" = gmp; then
    465411276  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
    4655     echo "$ac_t""gmp" 1>&6
     11277    echo "$as_me:$LINENO: result: gmp" >&5
     11278echo "${ECHO_T}gmp" >&6
    465611279    will_have_gmp=yes
    465711280    NEED_LIBS="-lgmp ${NEED_LIBS}"
    465811281  else
    4659     echo "$ac_t""none" 1>&6
    4660     { echo "configure: error: can not build with gmp" 1>&2; exit 1; }
     11282    echo "$as_me:$LINENO: result: none" >&5
     11283echo "${ECHO_T}none" >&6
     11284    { { echo "$as_me:$LINENO: error: can not build with gmp" >&5
     11285echo "$as_me: error: can not build with gmp" >&2;}
     11286   { (exit 1); exit 1; }; }
    466111287  fi
    466211288else
    466311289  if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
    4664     echo "$ac_t""smallgmp" 1>&6
    4665     cat >> confdefs.h <<\EOF
     11290    echo "$as_me:$LINENO: result: smallgmp" >&5
     11291echo "${ECHO_T}smallgmp" >&6
     11292    cat >>confdefs.h <<\_ACEOF
    466611293#define HAVE_SMALLGMP 1
    4667 EOF
     11294_ACEOF
    466811295
    466911296    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
    467011297  else
    4671     echo "$ac_t""none" 1>&6
    4672     { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; }
     11298    echo "$as_me:$LINENO: result: none" >&5
     11299echo "${ECHO_T}none" >&6
     11300    { { echo "$as_me:$LINENO: error: can not build with smallgmp" >&5
     11301echo "$as_me: error: can not build with smallgmp" >&2;}
     11302   { (exit 1); exit 1; }; }
    467311303  fi
    467411304fi
    467511305
    467611306#
    4677 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4678 echo "configure:4679: checking whether to have MP" >&5
     11307echo "$as_me:$LINENO: checking whether to have MP" >&5
     11308echo $ECHO_N "checking whether to have MP... $ECHO_C" >&6
    467911309if test "${with_MP}" != yes && test "${with_MP}" != no; then
    468011310  if (test "${will_have_gmp}" = yes) && \
    468111311     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
    4682     echo "$ac_t""yes" 1>&6
    4683     cat >> confdefs.h <<\EOF
     11312    echo "$as_me:$LINENO: result: yes" >&5
     11313echo "${ECHO_T}yes" >&6
     11314    cat >>confdefs.h <<\_ACEOF
    468411315#define HAVE_MPSR 1
    4685 EOF
     11316_ACEOF
    468611317
    468711318    HAVE_MPSR=1
    468811319    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
    468911320  else
    4690     echo "$ac_t""no" 1>&6
     11321    echo "$as_me:$LINENO: result: no" >&5
     11322echo "${ECHO_T}no" >&6
    469111323  fi
    469211324elif  test "${with_MP}" = yes; then
    469311325  if (test "${will_have_gmp}" = yes) && \
    469411326     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
    4695     echo "$ac_t""yes" 1>&6
    4696     cat >> confdefs.h <<\EOF
     11327    echo "$as_me:$LINENO: result: yes" >&5
     11328echo "${ECHO_T}yes" >&6
     11329    cat >>confdefs.h <<\_ACEOF
    469711330#define HAVE_MPSR 1
    4698 EOF
     11331_ACEOF
    469911332
    470011333    HAVE_MPSR=1
    470111334    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
    470211335  else
    4703     echo "$ac_t""no" 1>&6
    4704     { echo "configure: error: can not build with MP" 1>&2; exit 1; }
     11336    echo "$as_me:$LINENO: result: no" >&5
     11337echo "${ECHO_T}no" >&6
     11338    { { echo "$as_me:$LINENO: error: can not build with MP" >&5
     11339echo "$as_me: error: can not build with MP" >&2;}
     11340   { (exit 1); exit 1; }; }
    470511341  fi
    470611342else
    4707   echo "$ac_t""no" 1>&6
    4708 fi
    4709 
    4710 
    4711 
    4712 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
    4713 echo "configure:4714: checking whether to have NTL" >&5
     11343  echo "$as_me:$LINENO: result: no" >&5
     11344echo "${ECHO_T}no" >&6
     11345fi
     11346
     11347
     11348
     11349echo "$as_me:$LINENO: checking whether to have NTL" >&5
     11350echo $ECHO_N "checking whether to have NTL... $ECHO_C" >&6
    471411351if test "${with_NTL}" = yes ; then
    4715   echo "$ac_t""yes" 1>&6
     11352  echo "$as_me:$LINENO: result: yes" >&5
     11353echo "${ECHO_T}yes" >&6
    471611354  NEED_LIBS="-lntl ${NEED_LIBS}"
    471711355else
    4718   echo "$ac_t""no" 1>&6
    4719 fi
    4720 
    4721 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4722 echo "configure:4723: checking whether to have factory" >&5
     11356  echo "$as_me:$LINENO: result: no" >&5
     11357echo "${ECHO_T}no" >&6
     11358fi
     11359
     11360echo "$as_me:$LINENO: checking whether to have factory" >&5
     11361echo $ECHO_N "checking whether to have factory... $ECHO_C" >&6
    472311362if test "${with_factory}" != yes && test "${with_factory}" != no; then
    472411363  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
    4725     echo "$ac_t""yes" 1>&6
    4726     cat >> confdefs.h <<\EOF
     11364    echo "$as_me:$LINENO: result: yes" >&5
     11365echo "${ECHO_T}yes" >&6
     11366    cat >>confdefs.h <<\_ACEOF
    472711367#define HAVE_FACTORY 1
    4728 EOF
     11368_ACEOF
    472911369
    473011370    will_have_factory=yes
    473111371    NEED_LIBS="-lsingcf ${NEED_LIBS}"
    473211372  else
    4733     echo "$ac_t""no" 1>&6
     11373    echo "$as_me:$LINENO: result: no" >&5
     11374echo "${ECHO_T}no" >&6
    473411375  fi
    473511376elif  test "${with_factory}" = yes; then
    473611377  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
    4737     echo "$ac_t""yes" 1>&6
    4738     cat >> confdefs.h <<\EOF
     11378    echo "$as_me:$LINENO: result: yes" >&5
     11379echo "${ECHO_T}yes" >&6
     11380    cat >>confdefs.h <<\_ACEOF
    473911381#define HAVE_FACTORY 1
    4740 EOF
     11382_ACEOF
    474111383
    474211384    will_have_factory=yes
    474311385    NEED_LIBS="-lsingcf ${NEED_LIBS}"
    474411386  else
    4745     echo "$ac_t""no" 1>&6
    4746     { echo "configure: error: can not build with factory" 1>&2; exit 1; }
     11387    echo "$as_me:$LINENO: result: no" >&5
     11388echo "${ECHO_T}no" >&6
     11389    { { echo "$as_me:$LINENO: error: can not build with factory" >&5
     11390echo "$as_me: error: can not build with factory" >&2;}
     11391   { (exit 1); exit 1; }; }
    474711392  fi
    474811393else
    4749   echo "$ac_t""no" 1>&6
    4750 fi
    4751 
    4752 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4753 echo "configure:4754: checking whether to have libfac" >&5
     11394  echo "$as_me:$LINENO: result: no" >&5
     11395echo "${ECHO_T}no" >&6
     11396fi
     11397
     11398echo "$as_me:$LINENO: checking whether to have libfac" >&5
     11399echo $ECHO_N "checking whether to have libfac... $ECHO_C" >&6
    475411400if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    475511401  if (test "${will_have_factory}" = yes) && \
    475611402     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    4757     echo "$ac_t""yes" 1>&6
    4758     cat >> confdefs.h <<\EOF
     11403    echo "$as_me:$LINENO: result: yes" >&5
     11404echo "${ECHO_T}yes" >&6
     11405    cat >>confdefs.h <<\_ACEOF
    475911406#define HAVE_LIBFAC_P 1
    4760 EOF
     11407_ACEOF
    476111408
    476211409    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    476311410  else
    4764     echo "$ac_t""no" 1>&6
     11411    echo "$as_me:$LINENO: result: no" >&5
     11412echo "${ECHO_T}no" >&6
    476511413  fi
    476611414elif  test "${with_libfac}" = yes; then
    476711415  if (test "${will_have_factory}" = yes) && \
    476811416     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    4769     echo "$ac_t""yes" 1>&6
    4770     cat >> confdefs.h <<\EOF
     11417    echo "$as_me:$LINENO: result: yes" >&5
     11418echo "${ECHO_T}yes" >&6
     11419    cat >>confdefs.h <<\_ACEOF
    477111420#define HAVE_LIBFAC_P 1
    4772 EOF
     11421_ACEOF
    477311422
    477411423    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    477511424  else
    4776     echo "$ac_t""no" 1>&6
    4777     { echo "configure: error: can not build with libfac" 1>&2; exit 1; }
     11425    echo "$as_me:$LINENO: result: no" >&5
     11426echo "${ECHO_T}no" >&6
     11427    { { echo "$as_me:$LINENO: error: can not build with libfac" >&5
     11428echo "$as_me: error: can not build with libfac" >&2;}
     11429   { (exit 1); exit 1; }; }
    477811430  fi
    477911431else
    4780   echo "$ac_t""no" 1>&6
    4781 fi
    4782 
    4783 
    4784 
    4785 
    4786 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4787 echo "configure:4788: checking whether to have dbm links" >&5
     11432  echo "$as_me:$LINENO: result: no" >&5
     11433echo "${ECHO_T}no" >&6
     11434fi
     11435
     11436
     11437
     11438
     11439echo "$as_me:$LINENO: checking whether to have dbm links" >&5
     11440echo $ECHO_N "checking whether to have dbm links... $ECHO_C" >&6
    478811441if test "$with_dbm" != no; then
    4789   cat >> confdefs.h <<\EOF
     11442  cat >>confdefs.h <<\_ACEOF
    479011443#define HAVE_DBM 1
    4791 EOF
    4792 
    4793   echo "$ac_t""yes" 1>&6
    4794 else
    4795   echo "$ac_t""no" 1>&6
    4796 fi
    4797 
    4798 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4799 echo "configure:4800: checking whether to have namespaces" >&5
     11444_ACEOF
     11445
     11446  echo "$as_me:$LINENO: result: yes" >&5
     11447echo "${ECHO_T}yes" >&6
     11448else
     11449  echo "$as_me:$LINENO: result: no" >&5
     11450echo "${ECHO_T}no" >&6
     11451fi
     11452
     11453echo "$as_me:$LINENO: checking whether to have namespaces" >&5
     11454echo $ECHO_N "checking whether to have namespaces... $ECHO_C" >&6
    480011455if test "$with_namespaces" != no; then
    4801   echo "$ac_t""yes" 1>&6
    4802   cat >> confdefs.h <<\EOF
     11456  echo "$as_me:$LINENO: result: yes" >&5
     11457echo "${ECHO_T}yes" >&6
     11458  cat >>confdefs.h <<\_ACEOF
    480311459#define HAVE_NS 1
    4804 EOF
    4805 
    4806 else
    4807   echo "$ac_t""no" 1>&6
    4808 fi
    4809 
    4810 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    4811 echo "configure:4812: checking whether to have dynamic modules" >&5
     11460_ACEOF
     11461
     11462else
     11463  echo "$as_me:$LINENO: result: no" >&5
     11464echo "${ECHO_T}no" >&6
     11465fi
     11466
     11467echo "$as_me:$LINENO: checking whether to have dynamic modules" >&5
     11468echo $ECHO_N "checking whether to have dynamic modules... $ECHO_C" >&6
    481211469if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    4813   echo "$ac_t""no" 1>&6
    4814 else
    4815   cat >> confdefs.h <<\EOF
     11470  echo "$as_me:$LINENO: result: no" >&5
     11471echo "${ECHO_T}no" >&6
     11472else
     11473  cat >>confdefs.h <<\_ACEOF
    481611474#define HAVE_DYNAMIC_LOADING 1
    4817 EOF
    4818 
    4819   echo "$ac_t""yes" 1>&6
    4820 fi
    4821 
    4822 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    4823 echo "configure:4824: checking whether to have dynamic kernel" >&5
     11475_ACEOF
     11476
     11477  echo "$as_me:$LINENO: result: yes" >&5
     11478echo "${ECHO_T}yes" >&6
     11479fi
     11480
     11481echo "$as_me:$LINENO: checking whether to have dynamic kernel" >&5
     11482echo $ECHO_N "checking whether to have dynamic kernel... $ECHO_C" >&6
    482411483if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    482511484  DL_KERNEL=1
    4826  
    4827   echo "$ac_t""yes" 1>&6
    4828 else
    4829   echo "$ac_t""no" 1>&6
    4830 fi
    4831 
    4832 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    4833 echo "configure:4834: checking whether to have Plural" >&5
     11485
     11486  echo "$as_me:$LINENO: result: yes" >&5
     11487echo "${ECHO_T}yes" >&6
     11488else
     11489  echo "$as_me:$LINENO: result: no" >&5
     11490echo "${ECHO_T}no" >&6
     11491fi
     11492
     11493echo "$as_me:$LINENO: checking whether to have Plural" >&5
     11494echo $ECHO_N "checking whether to have Plural... $ECHO_C" >&6
    483411495if test "$with_Plural" != yes && test "$enable_Plural" != yes; then
    4835   echo "$ac_t""no" 1>&6
    4836 else
    4837   cat >> confdefs.h <<\EOF
     11496  echo "$as_me:$LINENO: result: no" >&5
     11497echo "${ECHO_T}no" >&6
     11498else
     11499  cat >>confdefs.h <<\_ACEOF
    483811500#define HAVE_PLURAL 1
    4839 EOF
    4840 
    4841   echo "$ac_t""yes" 1>&6
     11501_ACEOF
     11502
     11503  echo "$as_me:$LINENO: result: yes" >&5
     11504echo "${ECHO_T}yes" >&6
    484211505fi
    484311506
     
    484911512fi
    485011513
    4851 trap '' 1 2 15
    4852 cat > confcache <<\EOF
     11514          ac_config_files="$ac_config_files ${OUTPUT_MAKEFILES}"
     11515          ac_config_commands="$ac_config_commands default"
     11516cat >confcache <<\_ACEOF
    485311517# This file is a shell script that caches the results of configure
    485411518# tests run on this system so they can be shared between configure
    4855 # scripts and configure runs.  It is not useful on other systems.
    4856 # If it contains results you don't want to keep, you may remove or edit it.
     11519# scripts and configure runs, see configure's option --config-cache.
     11520# It is not useful on other systems.  If it contains results you don't
     11521# want to keep, you may remove or edit it.
    485711522#
    4858 # By default, configure uses ./config.cache as the cache file,
    4859 # creating it if it does not exist already.  You can give configure
    4860 # the --cache-file=FILE option to use a different cache file; that is
    4861 # what configure does when it calls configure scripts in
    4862 # subdirectories, so they share the cache.
    4863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    4864 # config.status only pays attention to the cache file if you give it the
    4865 # --recheck option to rerun configure.
     11523# config.status only pays attention to the cache file if you give it
     11524# the --recheck option to rerun configure.
    486611525#
    4867 EOF
     11526# `ac_cv_env_foo' variables (set or unset) will be overridden when
     11527# loading this file, other *unset* `ac_cv_foo' will be assigned the
     11528# following values.
     11529
     11530_ACEOF
     11531
    486811532# The following way of writing the cache mishandles newlines in values,
    486911533# but we know of no workaround that is simple, portable, and efficient.
     
    487111535# Ultrix sh set writes to stderr and can't be redirected directly,
    487211536# and sets the high bit in the cache file unless we assign to the vars.
    4873 (set) 2>&1 |
    4874   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    4875   *ac_space=\ *)
    4876     # `set' does not quote correctly, so add quotes (double-quote substitution
    4877     # turns \\\\ into \\, and sed turns \\ into \).
    4878     sed -n \
    4879       -e "s/'/'\\\\''/g" \
    4880       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    4881     ;;
    4882   *)
    4883     # `set' quotes correctly as required by POSIX, so do not add quotes.
    4884     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    4885     ;;
    4886   esac >> confcache
    4887 if cmp -s $cache_file confcache; then
    4888   :
    4889 else
     11537{
     11538  (set) 2>&1 |
     11539    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     11540    *ac_space=\ *)
     11541      # `set' does not quote correctly, so add quotes (double-quote
     11542      # substitution turns \\\\ into \\, and sed turns \\ into \).
     11543      sed -n \
     11544        "s/'/'\\\\''/g;
     11545          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     11546      ;;
     11547    *)
     11548      # `set' quotes correctly as required by POSIX, so do not add quotes.
     11549      sed -n \
     11550        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     11551      ;;
     11552    esac;
     11553} |
     11554  sed '
     11555     t clear
     11556     : clear
     11557     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     11558     t end
     11559     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     11560     : end' >>confcache
     11561if diff $cache_file confcache >/dev/null 2>&1; then :; else
    489011562  if test -w $cache_file; then
    4891     echo "updating cache $cache_file"
    4892     cat confcache > $cache_file
     11563    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     11564    cat confcache >$cache_file
    489311565  else
    489411566    echo "not updating unwritable cache $cache_file"
     
    489711569rm -f confcache
    489811570
    4899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    4900 
    490111571test "x$prefix" = xNONE && prefix=$ac_default_prefix
    490211572# Let make expand exec_prefix.
    490311573test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    490411574
    4905 # Any assignment to VPATH causes Sun make to only execute
    4906 # the first set of double-colon rules, so remove it if not needed.
    4907 # If there is a colon in the path, we need to keep it.
     11575# VPATH may cause trouble with some makes, so we remove $(srcdir),
     11576# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     11577# trailing colons and then remove the whole line if VPATH becomes empty
     11578# (actually we leave an empty line to preserve line numbers).
    490811579if test "x$srcdir" = x.; then
    4909   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
    4910 fi
    4911 
    4912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     11580  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     11581s/:*\$(srcdir):*/:/;
     11582s/:*\${srcdir}:*/:/;
     11583s/:*@srcdir@:*/:/;
     11584s/^\([^=]*=[     ]*\):*/\1/;
     11585s/:*$//;
     11586s/^[^=]*=[       ]*$//;
     11587}'
     11588fi
    491311589
    491411590DEFS=-DHAVE_CONFIG_H
    491511591
    4916 # Without the "./", some shells look in PATH for config.status.
     11592ac_libobjs=
     11593ac_ltlibobjs=
     11594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     11595  # 1. Remove the extension, and $U if already installed.
     11596  ac_i=`echo "$ac_i" |
     11597         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     11598  # 2. Add them.
     11599  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     11600  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     11601done
     11602LIBOBJS=$ac_libobjs
     11603
     11604LTLIBOBJS=$ac_ltlibobjs
     11605
     11606
     11607
    491711608: ${CONFIG_STATUS=./config.status}
    4918 
    4919 echo creating $CONFIG_STATUS
    4920 rm -f $CONFIG_STATUS
    4921 cat > $CONFIG_STATUS <<EOF
    4922 #! /bin/sh
    4923 # Generated automatically by configure.
     11609ac_clean_files_save=$ac_clean_files
     11610ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     11611{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     11612echo "$as_me: creating $CONFIG_STATUS" >&6;}
     11613cat >$CONFIG_STATUS <<_ACEOF
     11614#! $SHELL
     11615# Generated by $as_me.
    492411616# Run this file to recreate the current configuration.
    4925 # This directory was configured as follows,
    4926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    4927 #
    4928 # $0 $ac_configure_args
    4929 #
    493011617# Compiler output produced by configure, useful for debugging
    4931 # configure, is in ./config.log if it exists.
    4932 
    4933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    4934 for ac_option
     11618# configure, is in config.log if it exists.
     11619
     11620debug=false
     11621ac_cs_recheck=false
     11622ac_cs_silent=false
     11623SHELL=\${CONFIG_SHELL-$SHELL}
     11624_ACEOF
     11625
     11626cat >>$CONFIG_STATUS <<\_ACEOF
     11627## --------------------- ##
     11628## M4sh Initialization.  ##
     11629## --------------------- ##
     11630
     11631# Be Bourne compatible
     11632if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     11633  emulate sh
     11634  NULLCMD=:
     11635  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     11636  # is contrary to our usage.  Disable this feature.
     11637  alias -g '${1+"$@"}'='"$@"'
     11638elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     11639  set -o posix
     11640fi
     11641DUALCASE=1; export DUALCASE # for MKS sh
     11642
     11643# Support unset when possible.
     11644if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     11645  as_unset=unset
     11646else
     11647  as_unset=false
     11648fi
     11649
     11650
     11651# Work around bugs in pre-3.0 UWIN ksh.
     11652$as_unset ENV MAIL MAILPATH
     11653PS1='$ '
     11654PS2='> '
     11655PS4='+ '
     11656
     11657# NLS nuisances.
     11658for as_var in \
     11659  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     11660  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     11661  LC_TELEPHONE LC_TIME
    493511662do
    4936   case "\$ac_option" in
     11663  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     11664    eval $as_var=C; export $as_var
     11665  else
     11666    $as_unset $as_var
     11667  fi
     11668done
     11669
     11670# Required to use basename.
     11671if expr a : '\(a\)' >/dev/null 2>&1; then
     11672  as_expr=expr
     11673else
     11674  as_expr=false
     11675fi
     11676
     11677if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     11678  as_basename=basename
     11679else
     11680  as_basename=false
     11681fi
     11682
     11683
     11684# Name of the executable.
     11685as_me=`$as_basename "$0" ||
     11686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     11687         X"$0" : 'X\(//\)$' \| \
     11688         X"$0" : 'X\(/\)$' \| \
     11689         .     : '\(.\)' 2>/dev/null ||
     11690echo X/"$0" |
     11691    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     11692          /^X\/\(\/\/\)$/{ s//\1/; q; }
     11693          /^X\/\(\/\).*/{ s//\1/; q; }
     11694          s/.*/./; q'`
     11695
     11696
     11697# PATH needs CR, and LINENO needs CR and PATH.
     11698# Avoid depending upon Character Ranges.
     11699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     11700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     11701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     11702as_cr_digits='0123456789'
     11703as_cr_alnum=$as_cr_Letters$as_cr_digits
     11704
     11705# The user is always right.
     11706if test "${PATH_SEPARATOR+set}" != set; then
     11707  echo "#! /bin/sh" >conf$$.sh
     11708  echo  "exit 0"   >>conf$$.sh
     11709  chmod +x conf$$.sh
     11710  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     11711    PATH_SEPARATOR=';'
     11712  else
     11713    PATH_SEPARATOR=:
     11714  fi
     11715  rm -f conf$$.sh
     11716fi
     11717
     11718
     11719  as_lineno_1=$LINENO
     11720  as_lineno_2=$LINENO
     11721  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     11722  test "x$as_lineno_1" != "x$as_lineno_2" &&
     11723  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     11724  # Find who we are.  Look in the path if we contain no path at all
     11725  # relative or not.
     11726  case $0 in
     11727    *[\\/]* ) as_myself=$0 ;;
     11728    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11729for as_dir in $PATH
     11730do
     11731  IFS=$as_save_IFS
     11732  test -z "$as_dir" && as_dir=.
     11733  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     11734done
     11735
     11736       ;;
     11737  esac
     11738  # We did not find ourselves, most probably we were run as `sh COMMAND'
     11739  # in which case we are not to be found in the path.
     11740  if test "x$as_myself" = x; then
     11741    as_myself=$0
     11742  fi
     11743  if test ! -f "$as_myself"; then
     11744    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     11745echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     11746   { (exit 1); exit 1; }; }
     11747  fi
     11748  case $CONFIG_SHELL in
     11749  '')
     11750    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11751for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     11752do
     11753  IFS=$as_save_IFS
     11754  test -z "$as_dir" && as_dir=.
     11755  for as_base in sh bash ksh sh5; do
     11756         case $as_dir in
     11757         /*)
     11758           if ("$as_dir/$as_base" -c '
     11759  as_lineno_1=$LINENO
     11760  as_lineno_2=$LINENO
     11761  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     11762  test "x$as_lineno_1" != "x$as_lineno_2" &&
     11763  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     11764             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     11765             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     11766             CONFIG_SHELL=$as_dir/$as_base
     11767             export CONFIG_SHELL
     11768             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     11769           fi;;
     11770         esac
     11771       done
     11772done
     11773;;
     11774  esac
     11775
     11776  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     11777  # uniformly replaced by the line number.  The first 'sed' inserts a
     11778  # line-number line before each line; the second 'sed' does the real
     11779  # work.  The second script uses 'N' to pair each line-number line
     11780  # with the numbered line, and appends trailing '-' during
     11781  # substitution so that $LINENO is not a special case at line end.
     11782  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     11783  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     11784  sed '=' <$as_myself |
     11785    sed '
     11786      N
     11787      s,$,-,
     11788      : loop
     11789      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     11790      t loop
     11791      s,-$,,
     11792      s,^['$as_cr_digits']*\n,,
     11793    ' >$as_me.lineno &&
     11794  chmod +x $as_me.lineno ||
     11795    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     11796echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     11797   { (exit 1); exit 1; }; }
     11798
     11799  # Don't try to exec as it changes $[0], causing all sort of problems
     11800  # (the dirname of $[0] is not the place where we might find the
     11801  # original and so on.  Autoconf is especially sensible to this).
     11802  . ./$as_me.lineno
     11803  # Exit status is that of the last command.
     11804  exit
     11805}
     11806
     11807
     11808case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     11809  *c*,-n*) ECHO_N= ECHO_C='
     11810' ECHO_T='      ' ;;
     11811  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     11812  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     11813esac
     11814
     11815if expr a : '\(a\)' >/dev/null 2>&1; then
     11816  as_expr=expr
     11817else
     11818  as_expr=false
     11819fi
     11820
     11821rm -f conf$$ conf$$.exe conf$$.file
     11822echo >conf$$.file
     11823if ln -s conf$$.file conf$$ 2>/dev/null; then
     11824  # We could just check for DJGPP; but this test a) works b) is more generic
     11825  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     11826  if test -f conf$$.exe; then
     11827    # Don't use ln at all; we don't have any links
     11828    as_ln_s='cp -p'
     11829  else
     11830    as_ln_s='ln -s'
     11831  fi
     11832elif ln conf$$.file conf$$ 2>/dev/null; then
     11833  as_ln_s=ln
     11834else
     11835  as_ln_s='cp -p'
     11836fi
     11837rm -f conf$$ conf$$.exe conf$$.file
     11838
     11839if mkdir -p . 2>/dev/null; then
     11840  as_mkdir_p=:
     11841else
     11842  test -d ./-p && rmdir ./-p
     11843  as_mkdir_p=false
     11844fi
     11845
     11846as_executable_p="test -f"
     11847
     11848# Sed expression to map a string onto a valid CPP name.
     11849as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     11850
     11851# Sed expression to map a string onto a valid variable name.
     11852as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     11853
     11854
     11855# IFS
     11856# We need space, tab and new line, in precisely that order.
     11857as_nl='
     11858'
     11859IFS="   $as_nl"
     11860
     11861# CDPATH.
     11862$as_unset CDPATH
     11863
     11864exec 6>&1
     11865
     11866# Open the log real soon, to keep \$[0] and so on meaningful, and to
     11867# report actual input values of CONFIG_FILES etc. instead of their
     11868# values after options handling.  Logging --version etc. is OK.
     11869exec 5>>config.log
     11870{
     11871  echo
     11872  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     11873## Running $as_me. ##
     11874_ASBOX
     11875} >&5
     11876cat >&5 <<_CSEOF
     11877
     11878This file was extended by $as_me, which was
     11879generated by GNU Autoconf 2.59.  Invocation command line was
     11880
     11881  CONFIG_FILES    = $CONFIG_FILES
     11882  CONFIG_HEADERS  = $CONFIG_HEADERS
     11883  CONFIG_LINKS    = $CONFIG_LINKS
     11884  CONFIG_COMMANDS = $CONFIG_COMMANDS
     11885  $ $0 $@
     11886
     11887_CSEOF
     11888echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     11889echo >&5
     11890_ACEOF
     11891
     11892# Files that config.status was made for.
     11893if test -n "$ac_config_files"; then
     11894  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     11895fi
     11896
     11897if test -n "$ac_config_headers"; then
     11898  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     11899fi
     11900
     11901if test -n "$ac_config_links"; then
     11902  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     11903fi
     11904
     11905if test -n "$ac_config_commands"; then
     11906  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     11907fi
     11908
     11909cat >>$CONFIG_STATUS <<\_ACEOF
     11910
     11911ac_cs_usage="\
     11912\`$as_me' instantiates files from templates according to the
     11913current configuration.
     11914
     11915Usage: $0 [OPTIONS] [FILE]...
     11916
     11917  -h, --help       print this help, then exit
     11918  -V, --version    print version number, then exit
     11919  -q, --quiet      do not print progress messages
     11920  -d, --debug      don't remove temporary files
     11921      --recheck    update $as_me by reconfiguring in the same conditions
     11922  --file=FILE[:TEMPLATE]
     11923                   instantiate the configuration file FILE
     11924  --header=FILE[:TEMPLATE]
     11925                   instantiate the configuration header FILE
     11926
     11927Configuration files:
     11928$config_files
     11929
     11930Configuration headers:
     11931$config_headers
     11932
     11933Configuration commands:
     11934$config_commands
     11935
     11936Report bugs to <bug-autoconf@gnu.org>."
     11937_ACEOF
     11938
     11939cat >>$CONFIG_STATUS <<_ACEOF
     11940ac_cs_version="\\
     11941config.status
     11942configured by $0, generated by GNU Autoconf 2.59,
     11943  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     11944
     11945Copyright (C) 2003 Free Software Foundation, Inc.
     11946This config.status script is free software; the Free Software Foundation
     11947gives unlimited permission to copy, distribute and modify it."
     11948srcdir=$srcdir
     11949INSTALL="$INSTALL"
     11950_ACEOF
     11951
     11952cat >>$CONFIG_STATUS <<\_ACEOF
     11953# If no file are specified by the user, then we need to provide default
     11954# value.  By we need to know if files were specified by the user.
     11955ac_need_defaults=:
     11956while test $# != 0
     11957do
     11958  case $1 in
     11959  --*=*)
     11960    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     11961    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     11962    ac_shift=:
     11963    ;;
     11964  -*)
     11965    ac_option=$1
     11966    ac_optarg=$2
     11967    ac_shift=shift
     11968    ;;
     11969  *) # This is not an option, so the user has probably given explicit
     11970     # arguments.
     11971     ac_option=$1
     11972     ac_need_defaults=false;;
     11973  esac
     11974
     11975  case $ac_option in
     11976  # Handling of the options.
     11977_ACEOF
     11978cat >>$CONFIG_STATUS <<\_ACEOF
    493711979  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    4938     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    4939     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    4940   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    4941     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    4942     exit 0 ;;
    4943   -help | --help | --hel | --he | --h)
    4944     echo "\$ac_cs_usage"; exit 0 ;;
    4945   *) echo "\$ac_cs_usage"; exit 1 ;;
     11980    ac_cs_recheck=: ;;
     11981  --version | --vers* | -V )
     11982    echo "$ac_cs_version"; exit 0 ;;
     11983  --he | --h)
     11984    # Conflict between --help and --header
     11985    { { echo "$as_me:$LINENO: error: ambiguous option: $1
     11986Try \`$0 --help' for more information." >&5
     11987echo "$as_me: error: ambiguous option: $1
     11988Try \`$0 --help' for more information." >&2;}
     11989   { (exit 1); exit 1; }; };;
     11990  --help | --hel | -h )
     11991    echo "$ac_cs_usage"; exit 0 ;;
     11992  --debug | --d* | -d )
     11993    debug=: ;;
     11994  --file | --fil | --fi | --f )
     11995    $ac_shift
     11996    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     11997    ac_need_defaults=false;;
     11998  --header | --heade | --head | --hea )
     11999    $ac_shift
     12000    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     12001    ac_need_defaults=false;;
     12002  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     12003  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     12004    ac_cs_silent=: ;;
     12005
     12006  # This is an error.
     12007  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
     12008Try \`$0 --help' for more information." >&5
     12009echo "$as_me: error: unrecognized option: $1
     12010Try \`$0 --help' for more information." >&2;}
     12011   { (exit 1); exit 1; }; } ;;
     12012
     12013  *) ac_config_targets="$ac_config_targets $1" ;;
     12014
     12015  esac
     12016  shift
     12017done
     12018
     12019ac_configure_extra_args=
     12020
     12021if $ac_cs_silent; then
     12022  exec 6>/dev/null
     12023  ac_configure_extra_args="$ac_configure_extra_args --silent"
     12024fi
     12025
     12026_ACEOF
     12027cat >>$CONFIG_STATUS <<_ACEOF
     12028if \$ac_cs_recheck; then
     12029  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     12030  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     12031fi
     12032
     12033_ACEOF
     12034
     12035
     12036
     12037
     12038
     12039cat >>$CONFIG_STATUS <<\_ACEOF
     12040for ac_config_target in $ac_config_targets
     12041do
     12042  case "$ac_config_target" in
     12043  # Handling of arguments.
     12044  "${OUTPUT_MAKEFILES}" ) CONFIG_FILES="$CONFIG_FILES ${OUTPUT_MAKEFILES}" ;;
     12045  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     12046  "mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mod2.h" ;;
     12047  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     12048echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     12049   { (exit 1); exit 1; }; };;
    494612050  esac
    494712051done
    494812052
    4949 ac_given_srcdir=$srcdir
    4950 ac_given_INSTALL="$INSTALL"
    4951 
    4952 trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    4953 EOF
    4954 cat >> $CONFIG_STATUS <<EOF
    4955 
    4956 # Protect against being on the right side of a sed subst in config.status.
    4957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    4958  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    4959 $ac_vpsub
     12053# If the user did not use the arguments to specify the items to instantiate,
     12054# then the envvar interface is used.  Set only those that are not.
     12055# We use the long form for the default assignment because of an extremely
     12056# bizarre bug on SunOS 4.1.3.
     12057if $ac_need_defaults; then
     12058  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     12059  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     12060  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     12061fi
     12062
     12063# Have a temporary directory for convenience.  Make it in the build tree
     12064# simply because there is no reason to put it here, and in addition,
     12065# creating and moving files from /tmp can sometimes cause problems.
     12066# Create a temporary directory, and hook for its removal unless debugging.
     12067$debug ||
     12068{
     12069  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     12070  trap '{ (exit 1); exit 1; }' 1 2 13 15
     12071}
     12072
     12073# Create a (secure) tmp directory for tmp files.
     12074
     12075{
     12076  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     12077  test -n "$tmp" && test -d "$tmp"
     12078}  ||
     12079{
     12080  tmp=./confstat$$-$RANDOM
     12081  (umask 077 && mkdir $tmp)
     12082} ||
     12083{
     12084   echo "$me: cannot create a temporary directory in ." >&2
     12085   { (exit 1); exit 1; }
     12086}
     12087
     12088_ACEOF
     12089
     12090cat >>$CONFIG_STATUS <<_ACEOF
     12091
     12092#
     12093# CONFIG_FILES section.
     12094#
     12095
     12096# No need to generate the scripts if there are no CONFIG_FILES.
     12097# This happens for instance when ./config.status config.h
     12098if test -n "\$CONFIG_FILES"; then
     12099  # Protect against being on the right side of a sed subst in config.status.
     12100  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     12101   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     12102s,@SHELL@,$SHELL,;t t
     12103s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     12104s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     12105s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     12106s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     12107s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     12108s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     12109s,@exec_prefix@,$exec_prefix,;t t
     12110s,@prefix@,$prefix,;t t
     12111s,@program_transform_name@,$program_transform_name,;t t
     12112s,@bindir@,$bindir,;t t
     12113s,@sbindir@,$sbindir,;t t
     12114s,@libexecdir@,$libexecdir,;t t
     12115s,@datadir@,$datadir,;t t
     12116s,@sysconfdir@,$sysconfdir,;t t
     12117s,@sharedstatedir@,$sharedstatedir,;t t
     12118s,@localstatedir@,$localstatedir,;t t
     12119s,@libdir@,$libdir,;t t
     12120s,@includedir@,$includedir,;t t
     12121s,@oldincludedir@,$oldincludedir,;t t
     12122s,@infodir@,$infodir,;t t
     12123s,@mandir@,$mandir,;t t
     12124s,@build_alias@,$build_alias,;t t
     12125s,@host_alias@,$host_alias,;t t
     12126s,@target_alias@,$target_alias,;t t
     12127s,@DEFS@,$DEFS,;t t
     12128s,@ECHO_C@,$ECHO_C,;t t
     12129s,@ECHO_N@,$ECHO_N,;t t
     12130s,@ECHO_T@,$ECHO_T,;t t
     12131s,@LIBS@,$LIBS,;t t
     12132s,@SINGUNAME@,$SINGUNAME,;t t
     12133s,@EXEC_EXT@,$EXEC_EXT,;t t
     12134s,@SING_UNAME@,$SING_UNAME,;t t
     12135s,@SINGULAR_VERSION@,$SINGULAR_VERSION,;t t
     12136s,@VERSION_DATE@,$VERSION_DATE,;t t
     12137s,@SINGULAR_MAJOR_VERSION@,$SINGULAR_MAJOR_VERSION,;t t
     12138s,@SINGULAR_MINOR_VERSION@,$SINGULAR_MINOR_VERSION,;t t
     12139s,@SINGULAR_SUB_VERSION@,$SINGULAR_SUB_VERSION,;t t
     12140s,@CC@,$CC,;t t
     12141s,@CFLAGS@,$CFLAGS,;t t
     12142s,@LDFLAGS@,$LDFLAGS,;t t
     12143s,@CPPFLAGS@,$CPPFLAGS,;t t
     12144s,@ac_ct_CC@,$ac_ct_CC,;t t
     12145s,@EXEEXT@,$EXEEXT,;t t
     12146s,@OBJEXT@,$OBJEXT,;t t
     12147s,@CPP@,$CPP,;t t
     12148s,@CXX@,$CXX,;t t
     12149s,@CXXFLAGS@,$CXXFLAGS,;t t
     12150s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     12151s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     12152s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     12153s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     12154s,@EGREP@,$EGREP,;t t
     12155s,@PIPE@,$PIPE,;t t
     12156s,@CXXTEMPLFLAGS@,$CXXTEMPLFLAGS,;t t
     12157s,@CXXNOOPTFLAGS@,$CXXNOOPTFLAGS,;t t
     12158s,@STATIC_LDFLAGS@,$STATIC_LDFLAGS,;t t
     12159s,@SET_MAKE@,$SET_MAKE,;t t
     12160s,@SINGULAR@,$SINGULAR,;t t
     12161s,@LEX@,$LEX,;t t
     12162s,@BISON@,$BISON,;t t
     12163s,@LN_S@,$LN_S,;t t
     12164s,@PERL@,$PERL,;t t
     12165s,@LD_DYN_FLAGS@,$LD_DYN_FLAGS,;t t
     12166s,@SFLAGS@,$SFLAGS,;t t
     12167s,@SLDFLAGS@,$SLDFLAGS,;t t
     12168s,@LD@,$LD,;t t
     12169s,@ALLOCA@,$ALLOCA,;t t
     12170s,@CXXCPP@,$CXXCPP,;t t
     12171s,@HAVE_MPSR@,$HAVE_MPSR,;t t
     12172s,@MP_LIBS@,$MP_LIBS,;t t
     12173s,@NEED_LIBS@,$NEED_LIBS,;t t
     12174s,@DL_KERNEL@,$DL_KERNEL,;t t
     12175s,@LIBOBJS@,$LIBOBJS,;t t
     12176s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     12177CEOF
     12178
     12179_ACEOF
     12180
     12181  cat >>$CONFIG_STATUS <<\_ACEOF
     12182  # Split the substitutions into bite-sized pieces for seds with
     12183  # small command number limits, like on Digital OSF/1 and HP-UX.
     12184  ac_max_sed_lines=48
     12185  ac_sed_frag=1 # Number of current file.
     12186  ac_beg=1 # First line for current file.
     12187  ac_end=$ac_max_sed_lines # Line after last line for current file.
     12188  ac_more_lines=:
     12189  ac_sed_cmds=
     12190  while $ac_more_lines; do
     12191    if test $ac_beg -gt 1; then
     12192      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     12193    else
     12194      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     12195    fi
     12196    if test ! -s $tmp/subs.frag; then
     12197      ac_more_lines=false
     12198    else
     12199      # The purpose of the label and of the branching condition is to
     12200      # speed up the sed processing (if there are no `@' at all, there
     12201      # is no need to browse any of the substitutions).
     12202      # These are the two extra sed commands mentioned above.
     12203      (echo ':t
     12204  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     12205      if test -z "$ac_sed_cmds"; then
     12206        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     12207      else
     12208        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     12209      fi
     12210      ac_sed_frag=`expr $ac_sed_frag + 1`
     12211      ac_beg=$ac_end
     12212      ac_end=`expr $ac_end + $ac_max_sed_lines`
     12213    fi
     12214  done
     12215  if test -z "$ac_sed_cmds"; then
     12216    ac_sed_cmds=cat
     12217  fi
     12218fi # test -n "$CONFIG_FILES"
     12219
     12220_ACEOF
     12221cat >>$CONFIG_STATUS <<\_ACEOF
     12222for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     12223  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     12224  case $ac_file in
     12225  - | *:- | *:-:* ) # input from stdin
     12226        cat >$tmp/stdin
     12227        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     12228        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     12229  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     12230        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     12231  * )   ac_file_in=$ac_file.in ;;
     12232  esac
     12233
     12234  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     12235  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     12236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12237         X"$ac_file" : 'X\(//\)[^/]' \| \
     12238         X"$ac_file" : 'X\(//\)$' \| \
     12239         X"$ac_file" : 'X\(/\)' \| \
     12240         .     : '\(.\)' 2>/dev/null ||
     12241echo X"$ac_file" |
     12242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12243          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12244          /^X\(\/\/\)$/{ s//\1/; q; }
     12245          /^X\(\/\).*/{ s//\1/; q; }
     12246          s/.*/./; q'`
     12247  { if $as_mkdir_p; then
     12248    mkdir -p "$ac_dir"
     12249  else
     12250    as_dir="$ac_dir"
     12251    as_dirs=
     12252    while test ! -d "$as_dir"; do
     12253      as_dirs="$as_dir $as_dirs"
     12254      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     12255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12256         X"$as_dir" : 'X\(//\)[^/]' \| \
     12257         X"$as_dir" : 'X\(//\)$' \| \
     12258         X"$as_dir" : 'X\(/\)' \| \
     12259         .     : '\(.\)' 2>/dev/null ||
     12260echo X"$as_dir" |
     12261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12262          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12263          /^X\(\/\/\)$/{ s//\1/; q; }
     12264          /^X\(\/\).*/{ s//\1/; q; }
     12265          s/.*/./; q'`
     12266    done
     12267    test ! -n "$as_dirs" || mkdir $as_dirs
     12268  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     12269echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     12270   { (exit 1); exit 1; }; }; }
     12271
     12272  ac_builddir=.
     12273
     12274if test "$ac_dir" != .; then
     12275  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     12276  # A "../" for each directory in $ac_dir_suffix.
     12277  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     12278else
     12279  ac_dir_suffix= ac_top_builddir=
     12280fi
     12281
     12282case $srcdir in
     12283  .)  # No --srcdir option.  We are building in place.
     12284    ac_srcdir=.
     12285    if test -z "$ac_top_builddir"; then
     12286       ac_top_srcdir=.
     12287    else
     12288       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     12289    fi ;;
     12290  [\\/]* | ?:[\\/]* )  # Absolute path.
     12291    ac_srcdir=$srcdir$ac_dir_suffix;
     12292    ac_top_srcdir=$srcdir ;;
     12293  *) # Relative path.
     12294    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     12295    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     12296esac
     12297
     12298# Do not use `cd foo && pwd` to compute absolute paths, because
     12299# the directories may not exist.
     12300case `pwd` in
     12301.) ac_abs_builddir="$ac_dir";;
     12302*)
     12303  case "$ac_dir" in
     12304  .) ac_abs_builddir=`pwd`;;
     12305  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     12306  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     12307  esac;;
     12308esac
     12309case $ac_abs_builddir in
     12310.) ac_abs_top_builddir=${ac_top_builddir}.;;
     12311*)
     12312  case ${ac_top_builddir}. in
     12313  .) ac_abs_top_builddir=$ac_abs_builddir;;
     12314  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     12315  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     12316  esac;;
     12317esac
     12318case $ac_abs_builddir in
     12319.) ac_abs_srcdir=$ac_srcdir;;
     12320*)
     12321  case $ac_srcdir in
     12322  .) ac_abs_srcdir=$ac_abs_builddir;;
     12323  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     12324  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     12325  esac;;
     12326esac
     12327case $ac_abs_builddir in
     12328.) ac_abs_top_srcdir=$ac_top_srcdir;;
     12329*)
     12330  case $ac_top_srcdir in
     12331  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     12332  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     12333  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     12334  esac;;
     12335esac
     12336
     12337
     12338  case $INSTALL in
     12339  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     12340  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     12341  esac
     12342
     12343  if test x"$ac_file" != x-; then
     12344    { echo "$as_me:$LINENO: creating $ac_file" >&5
     12345echo "$as_me: creating $ac_file" >&6;}
     12346    rm -f "$ac_file"
     12347  fi
     12348  # Let's still pretend it is `configure' which instantiates (i.e., don't
     12349  # use $as_me), people would be surprised to read:
     12350  #    /* config.h.  Generated by config.status.  */
     12351  if test x"$ac_file" = x-; then
     12352    configure_input=
     12353  else
     12354    configure_input="$ac_file.  "
     12355  fi
     12356  configure_input=$configure_input"Generated from `echo $ac_file_in |
     12357                                     sed 's,.*/,,'` by configure."
     12358
     12359  # First look for the input files in the build tree, otherwise in the
     12360  # src tree.
     12361  ac_file_inputs=`IFS=:
     12362    for f in $ac_file_in; do
     12363      case $f in
     12364      -) echo $tmp/stdin ;;
     12365      [\\/$]*)
     12366         # Absolute (can't be DOS-style, as IFS=:)
     12367         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     12368echo "$as_me: error: cannot find input file: $f" >&2;}
     12369   { (exit 1); exit 1; }; }
     12370         echo "$f";;
     12371      *) # Relative
     12372         if test -f "$f"; then
     12373           # Build tree
     12374           echo "$f"
     12375         elif test -f "$srcdir/$f"; then
     12376           # Source tree
     12377           echo "$srcdir/$f"
     12378         else
     12379           # /dev/null tree
     12380           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     12381echo "$as_me: error: cannot find input file: $f" >&2;}
     12382   { (exit 1); exit 1; }; }
     12383         fi;;
     12384      esac
     12385    done` || { (exit 1); exit 1; }
     12386_ACEOF
     12387cat >>$CONFIG_STATUS <<_ACEOF
     12388  sed "$ac_vpsub
    496012389$extrasub
    4961 s%@SHELL@%$SHELL%g
    4962 s%@CFLAGS@%$CFLAGS%g
    4963 s%@CPPFLAGS@%$CPPFLAGS%g
    4964 s%@CXXFLAGS@%$CXXFLAGS%g
    4965 s%@FFLAGS@%$FFLAGS%g
    4966 s%@DEFS@%$DEFS%g
    4967 s%@LDFLAGS@%$LDFLAGS%g
    4968 s%@LIBS@%$LIBS%g
    4969 s%@exec_prefix@%$exec_prefix%g
    4970 s%@prefix@%$prefix%g
    4971 s%@program_transform_name@%$program_transform_name%g
    4972 s%@bindir@%$bindir%g
    4973 s%@sbindir@%$sbindir%g
    4974 s%@libexecdir@%$libexecdir%g
    4975 s%@datadir@%$datadir%g
    4976 s%@sysconfdir@%$sysconfdir%g
    4977 s%@sharedstatedir@%$sharedstatedir%g
    4978 s%@localstatedir@%$localstatedir%g
    4979 s%@libdir@%$libdir%g
    4980 s%@includedir@%$includedir%g
    4981 s%@oldincludedir@%$oldincludedir%g
    4982 s%@infodir@%$infodir%g
    4983 s%@mandir@%$mandir%g
    4984 s%@SINGUNAME@%$SINGUNAME%g
    4985 s%@EXEC_EXT@%$EXEC_EXT%g
    4986 s%@SING_UNAME@%$SING_UNAME%g
    4987 s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
    4988 s%@VERSION_DATE@%$VERSION_DATE%g
    4989 s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g
    4990 s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
    4991 s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
    4992 s%@CC@%$CC%g
    4993 s%@CPP@%$CPP%g
    4994 s%@CXX@%$CXX%g
    4995 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    4996 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    4997 s%@INSTALL_DATA@%$INSTALL_DATA%g
    4998 s%@PIPE@%$PIPE%g
    4999 s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
    5000 s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g
    5001 s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g
    5002 s%@SET_MAKE@%$SET_MAKE%g
    5003 s%@SINGULAR@%$SINGULAR%g
    5004 s%@LEX@%$LEX%g
    5005 s%@BISON@%$BISON%g
    5006 s%@LN_S@%$LN_S%g
    5007 s%@PERL@%$PERL%g
    5008 s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g
    5009 s%@SFLAGS@%$SFLAGS%g
    5010 s%@SLDFLAGS@%$SLDFLAGS%g
    5011 s%@LD@%$LD%g
    5012 s%@ALLOCA@%$ALLOCA%g
    5013 s%@CXXCPP@%$CXXCPP%g
    5014 s%@HAVE_MPSR@%$HAVE_MPSR%g
    5015 s%@MP_LIBS@%$MP_LIBS%g
    5016 s%@NEED_LIBS@%$NEED_LIBS%g
    5017 s%@DL_KERNEL@%$DL_KERNEL%g
    5018 
    5019 CEOF
    5020 EOF
    5021 
    5022 cat >> $CONFIG_STATUS <<\EOF
    5023 
    5024 # Split the substitutions into bite-sized pieces for seds with
    5025 # small command number limits, like on Digital OSF/1 and HP-UX.
    5026 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    5027 ac_file=1 # Number of current file.
    5028 ac_beg=1 # First line for current file.
    5029 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    5030 ac_more_lines=:
    5031 ac_sed_cmds=""
    5032 while $ac_more_lines; do
    5033   if test $ac_beg -gt 1; then
    5034     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     12390_ACEOF
     12391cat >>$CONFIG_STATUS <<\_ACEOF
     12392:t
     12393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     12394s,@configure_input@,$configure_input,;t t
     12395s,@srcdir@,$ac_srcdir,;t t
     12396s,@abs_srcdir@,$ac_abs_srcdir,;t t
     12397s,@top_srcdir@,$ac_top_srcdir,;t t
     12398s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     12399s,@builddir@,$ac_builddir,;t t
     12400s,@abs_builddir@,$ac_abs_builddir,;t t
     12401s,@top_builddir@,$ac_top_builddir,;t t
     12402s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
     12403s,@INSTALL@,$ac_INSTALL,;t t
     12404" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     12405  rm -f $tmp/stdin
     12406  if test x"$ac_file" != x-; then
     12407    mv $tmp/out $ac_file
    503512408  else
    5036     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     12409    cat $tmp/out
     12410    rm -f $tmp/out
    503712411  fi
    5038   if test ! -s conftest.s$ac_file; then
    5039     ac_more_lines=false
    5040     rm -f conftest.s$ac_file
    5041   else
    5042     if test -z "$ac_sed_cmds"; then
    5043       ac_sed_cmds="sed -f conftest.s$ac_file"
    5044     else
    5045       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    5046     fi
    5047     ac_file=`expr $ac_file + 1`
    5048     ac_beg=$ac_end
    5049     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    5050   fi
     12412
    505112413done
    5052 if test -z "$ac_sed_cmds"; then
    5053   ac_sed_cmds=cat
    5054 fi
    5055 EOF
    5056 
    5057 cat >> $CONFIG_STATUS <<EOF
    5058 
    5059 CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
    5060 EOF
    5061 cat >> $CONFIG_STATUS <<\EOF
    5062 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    5063   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5064   case "$ac_file" in
    5065   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    5066        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    5067   *) ac_file_in="${ac_file}.in" ;;
    5068   esac
    5069 
    5070   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    5071 
    5072   # Remove last slash and all that follows it.  Not all systems have dirname.
    5073   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    5074   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5075     # The file is in a subdirectory.
    5076     test ! -d "$ac_dir" && mkdir "$ac_dir"
    5077     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    5078     # A "../" for each directory in $ac_dir_suffix.
    5079     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    5080   else
    5081     ac_dir_suffix= ac_dots=
    5082   fi
    5083 
    5084   case "$ac_given_srcdir" in
    5085   .)  srcdir=.
    5086       if test -z "$ac_dots"; then top_srcdir=.
    5087       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    5088   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    5089   *) # Relative path.
    5090     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    5091     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    5092   esac
    5093 
    5094   case "$ac_given_INSTALL" in
    5095   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    5096   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    5097   esac
    5098 
    5099   echo creating "$ac_file"
    5100   rm -f "$ac_file"
    5101   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    5102   case "$ac_file" in
    5103   *Makefile*) ac_comsub="1i\\
    5104 # $configure_input" ;;
    5105   *) ac_comsub= ;;
    5106   esac
    5107 
    5108   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    5109   sed -e "$ac_comsub
    5110 s%@configure_input@%$configure_input%g
    5111 s%@srcdir@%$srcdir%g
    5112 s%@top_srcdir@%$top_srcdir%g
    5113 s%@INSTALL@%$INSTALL%g
    5114 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    5115 fi; done
    5116 rm -f conftest.s*
     12414_ACEOF
     12415cat >>$CONFIG_STATUS <<\_ACEOF
     12416
     12417#
     12418# CONFIG_HEADER section.
     12419#
    511712420
    511812421# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    512012423#
    512112424# ac_d sets the value in "#define NAME VALUE" lines.
    5122 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
    5123 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
    5124 ac_dC='\3'
    5125 ac_dD='%g'
    5126 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    5127 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    5128 ac_uB='\([      ]\)%\1#\2define\3'
     12425ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
     12426ac_dB='[         ].*$,\1#\2'
     12427ac_dC=' '
     12428ac_dD=',;t'
     12429# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     12430ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     12431ac_uB='$,\1#\2define\3'
    512912432ac_uC=' '
    5130 ac_uD='\4%g'
    5131 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5132 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    5133 ac_eB='$%\1#\2define\3'
    5134 ac_eC=' '
    5135 ac_eD='%g'
    5136 
    5137 if test "${CONFIG_HEADERS+set}" != set; then
    5138 EOF
    5139 cat >> $CONFIG_STATUS <<EOF
    5140   CONFIG_HEADERS="mod2.h"
    5141 EOF
    5142 cat >> $CONFIG_STATUS <<\EOF
    5143 fi
    5144 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     12433ac_uD=',;t'
     12434
     12435for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    514512436  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5146   case "$ac_file" in
    5147   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    5148        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    5149   *) ac_file_in="${ac_file}.in" ;;
     12437  case $ac_file in
     12438  - | *:- | *:-:* ) # input from stdin
     12439        cat >$tmp/stdin
     12440        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     12441        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     12442  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     12443        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     12444  * )   ac_file_in=$ac_file.in ;;
    515012445  esac
    515112446
    5152   echo creating $ac_file
    5153 
    5154   rm -f conftest.frag conftest.in conftest.out
    5155   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    5156   cat $ac_file_inputs > conftest.in
    5157 
    5158 EOF
    5159 
    5160 # Transform confdefs.h into a sed script conftest.vals that substitutes
    5161 # the proper values into config.h.in to produce config.h.  And first:
    5162 # Protect against being on the right side of a sed subst in config.status.
    5163 # Protect against being in an unquoted here document in config.status.
    5164 rm -f conftest.vals
    5165 cat > conftest.hdr <<\EOF
    5166 s/[\\&%]/\\&/g
    5167 s%[\\$`]%\\&%g
    5168 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    5169 s%ac_d%ac_u%gp
    5170 s%ac_u%ac_e%gp
    5171 EOF
    5172 sed -n -f conftest.hdr confdefs.h > conftest.vals
    5173 rm -f conftest.hdr
     12447  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     12448echo "$as_me: creating $ac_file" >&6;}
     12449
     12450  # First look for the input files in the build tree, otherwise in the
     12451  # src tree.
     12452  ac_file_inputs=`IFS=:
     12453    for f in $ac_file_in; do
     12454      case $f in
     12455      -) echo $tmp/stdin ;;
     12456      [\\/$]*)
     12457         # Absolute (can't be DOS-style, as IFS=:)
     12458         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     12459echo "$as_me: error: cannot find input file: $f" >&2;}
     12460   { (exit 1); exit 1; }; }
     12461         # Do quote $f, to prevent DOS paths from being IFS'd.
     12462         echo "$f";;
     12463      *) # Relative
     12464         if test -f "$f"; then
     12465           # Build tree
     12466           echo "$f"
     12467         elif test -f "$srcdir/$f"; then
     12468           # Source tree
     12469           echo "$srcdir/$f"
     12470         else
     12471           # /dev/null tree
     12472           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     12473echo "$as_me: error: cannot find input file: $f" >&2;}
     12474   { (exit 1); exit 1; }; }
     12475         fi;;
     12476      esac
     12477    done` || { (exit 1); exit 1; }
     12478  # Remove the trailing spaces.
     12479  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     12480
     12481_ACEOF
     12482
     12483# Transform confdefs.h into two sed scripts, `conftest.defines' and
     12484# `conftest.undefs', that substitutes the proper values into
     12485# config.h.in to produce config.h.  The first handles `#define'
     12486# templates, and the second `#undef' templates.
     12487# And first: Protect against being on the right side of a sed subst in
     12488# config.status.  Protect against being in an unquoted here document
     12489# in config.status.
     12490rm -f conftest.defines conftest.undefs
     12491# Using a here document instead of a string reduces the quoting nightmare.
     12492# Putting comments in sed scripts is not portable.
     12493#
     12494# `end' is used to avoid that the second main sed command (meant for
     12495# 0-ary CPP macros) applies to n-ary macro definitions.
     12496# See the Autoconf documentation for `clear'.
     12497cat >confdef2sed.sed <<\_ACEOF
     12498s/[\\&,]/\\&/g
     12499s,[\\$`],\\&,g
     12500t clear
     12501: clear
     12502s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     12503t end
     12504s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     12505: end
     12506_ACEOF
     12507# If some macros were called several times there might be several times
     12508# the same #defines, which is useless.  Nevertheless, we may not want to
     12509# sort them, since we want the *last* AC-DEFINE to be honored.
     12510uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     12511sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     12512rm -f confdef2sed.sed
    517412513
    517512514# This sed command replaces #undef with comments.  This is necessary, for
    517612515# example, in the case of _POSIX_SOURCE, which is predefined and required
    517712516# on some systems where configure will not decide to define it.
    5178 cat >> conftest.vals <<\EOF
    5179 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    5180 EOF
    5181 
    5182 # Break up conftest.vals because some shells have a limit on
    5183 # the size of here documents, and old seds have small limits too.
    5184 
     12517cat >>conftest.undefs <<\_ACEOF
     12518s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     12519_ACEOF
     12520
     12521# Break up conftest.defines because some shells have a limit on the size
     12522# of here documents, and old seds have small limits too (100 cmds).
     12523echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     12524echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     12525echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     12526echo '  :' >>$CONFIG_STATUS
    518512527rm -f conftest.tail
    5186 while :
     12528while grep . conftest.defines >/dev/null
    518712529do
    5188   ac_lines=`grep -c . conftest.vals`
    5189   # grep -c gives empty output for an empty file on some AIX systems.
    5190   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    5191   # Write a limited-size here document to conftest.frag.
    5192   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    5193   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     12530  # Write a limited-size here document to $tmp/defines.sed.
     12531  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     12532  # Speed up: don't consider the non `#define' lines.
     12533  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     12534  # Work around the forget-to-reset-the-flag bug.
     12535  echo 't clr' >>$CONFIG_STATUS
     12536  echo ': clr' >>$CONFIG_STATUS
     12537  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    519412538  echo 'CEOF
    5195   sed -f conftest.frag conftest.in > conftest.out
    5196   rm -f conftest.in
    5197   mv conftest.out conftest.in
    5198 ' >> $CONFIG_STATUS
    5199   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    5200   rm -f conftest.vals
    5201   mv conftest.tail conftest.vals
     12539  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     12540  rm -f $tmp/in
     12541  mv $tmp/out $tmp/in
     12542' >>$CONFIG_STATUS
     12543  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     12544  rm -f conftest.defines
     12545  mv conftest.tail conftest.defines
    520212546done
    5203 rm -f conftest.vals
    5204 
    5205 cat >> $CONFIG_STATUS <<\EOF
    5206   rm -f conftest.frag conftest.h
    5207   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    5208   cat conftest.in >> conftest.h
    5209   rm -f conftest.in
    5210   if cmp -s $ac_file conftest.h 2>/dev/null; then
    5211     echo "$ac_file is unchanged"
    5212     rm -f conftest.h
     12547rm -f conftest.defines
     12548echo '  fi # grep' >>$CONFIG_STATUS
     12549echo >>$CONFIG_STATUS
     12550
     12551# Break up conftest.undefs because some shells have a limit on the size
     12552# of here documents, and old seds have small limits too (100 cmds).
     12553echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     12554rm -f conftest.tail
     12555while grep . conftest.undefs >/dev/null
     12556do
     12557  # Write a limited-size here document to $tmp/undefs.sed.
     12558  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     12559  # Speed up: don't consider the non `#undef'
     12560  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     12561  # Work around the forget-to-reset-the-flag bug.
     12562  echo 't clr' >>$CONFIG_STATUS
     12563  echo ': clr' >>$CONFIG_STATUS
     12564  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     12565  echo 'CEOF
     12566  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     12567  rm -f $tmp/in
     12568  mv $tmp/out $tmp/in
     12569' >>$CONFIG_STATUS
     12570  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     12571  rm -f conftest.undefs
     12572  mv conftest.tail conftest.undefs
     12573done
     12574rm -f conftest.undefs
     12575
     12576cat >>$CONFIG_STATUS <<\_ACEOF
     12577  # Let's still pretend it is `configure' which instantiates (i.e., don't
     12578  # use $as_me), people would be surprised to read:
     12579  #    /* config.h.  Generated by config.status.  */
     12580  if test x"$ac_file" = x-; then
     12581    echo "/* Generated by configure.  */" >$tmp/config.h
    521312582  else
    5214     # Remove last slash and all that follows it.  Not all systems have dirname.
    5215       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    5216       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5217       # The file is in a subdirectory.
    5218       test ! -d "$ac_dir" && mkdir "$ac_dir"
     12583    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     12584  fi
     12585  cat $tmp/in >>$tmp/config.h
     12586  rm -f $tmp/in
     12587  if test x"$ac_file" != x-; then
     12588    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     12589      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     12590echo "$as_me: $ac_file is unchanged" >&6;}
     12591    else
     12592      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     12593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12594         X"$ac_file" : 'X\(//\)[^/]' \| \
     12595         X"$ac_file" : 'X\(//\)$' \| \
     12596         X"$ac_file" : 'X\(/\)' \| \
     12597         .     : '\(.\)' 2>/dev/null ||
     12598echo X"$ac_file" |
     12599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12600          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12601          /^X\(\/\/\)$/{ s//\1/; q; }
     12602          /^X\(\/\).*/{ s//\1/; q; }
     12603          s/.*/./; q'`
     12604      { if $as_mkdir_p; then
     12605    mkdir -p "$ac_dir"
     12606  else
     12607    as_dir="$ac_dir"
     12608    as_dirs=
     12609    while test ! -d "$as_dir"; do
     12610      as_dirs="$as_dir $as_dirs"
     12611      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     12612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12613         X"$as_dir" : 'X\(//\)[^/]' \| \
     12614         X"$as_dir" : 'X\(//\)$' \| \
     12615         X"$as_dir" : 'X\(/\)' \| \
     12616         .     : '\(.\)' 2>/dev/null ||
     12617echo X"$as_dir" |
     12618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12619          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12620          /^X\(\/\/\)$/{ s//\1/; q; }
     12621          /^X\(\/\).*/{ s//\1/; q; }
     12622          s/.*/./; q'`
     12623    done
     12624    test ! -n "$as_dirs" || mkdir $as_dirs
     12625  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     12626echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     12627   { (exit 1); exit 1; }; }; }
     12628
     12629      rm -f $ac_file
     12630      mv $tmp/config.h $ac_file
    521912631    fi
    5220     rm -f $ac_file
    5221     mv conftest.h $ac_file
     12632  else
     12633    cat $tmp/config.h
     12634    rm -f $tmp/config.h
    522212635  fi
    5223 fi; done
    5224 
    5225 EOF
    5226 cat >> $CONFIG_STATUS <<EOF
    5227 
    5228 EOF
    5229 cat >> $CONFIG_STATUS <<\EOF
    5230 \
    5231  if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
    5232 exit 0
    5233 EOF
     12636done
     12637_ACEOF
     12638cat >>$CONFIG_STATUS <<\_ACEOF
     12639
     12640#
     12641# CONFIG_COMMANDS section.
     12642#
     12643for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     12644  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     12645  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     12646  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     12647$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12648         X"$ac_dest" : 'X\(//\)[^/]' \| \
     12649         X"$ac_dest" : 'X\(//\)$' \| \
     12650         X"$ac_dest" : 'X\(/\)' \| \
     12651         .     : '\(.\)' 2>/dev/null ||
     12652echo X"$ac_dest" |
     12653    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12654          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12655          /^X\(\/\/\)$/{ s//\1/; q; }
     12656          /^X\(\/\).*/{ s//\1/; q; }
     12657          s/.*/./; q'`
     12658  { if $as_mkdir_p; then
     12659    mkdir -p "$ac_dir"
     12660  else
     12661    as_dir="$ac_dir"
     12662    as_dirs=
     12663    while test ! -d "$as_dir"; do
     12664      as_dirs="$as_dir $as_dirs"
     12665      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     12666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     12667         X"$as_dir" : 'X\(//\)[^/]' \| \
     12668         X"$as_dir" : 'X\(//\)$' \| \
     12669         X"$as_dir" : 'X\(/\)' \| \
     12670         .     : '\(.\)' 2>/dev/null ||
     12671echo X"$as_dir" |
     12672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     12673          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     12674          /^X\(\/\/\)$/{ s//\1/; q; }
     12675          /^X\(\/\).*/{ s//\1/; q; }
     12676          s/.*/./; q'`
     12677    done
     12678    test ! -n "$as_dirs" || mkdir $as_dirs
     12679  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     12680echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     12681   { (exit 1); exit 1; }; }; }
     12682
     12683  ac_builddir=.
     12684
     12685if test "$ac_dir" != .; then
     12686  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     12687  # A "../" for each directory in $ac_dir_suffix.
     12688  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     12689else
     12690  ac_dir_suffix= ac_top_builddir=
     12691fi
     12692
     12693case $srcdir in
     12694  .)  # No --srcdir option.  We are building in place.
     12695    ac_srcdir=.
     12696    if test -z "$ac_top_builddir"; then
     12697       ac_top_srcdir=.
     12698    else
     12699       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     12700    fi ;;
     12701  [\\/]* | ?:[\\/]* )  # Absolute path.
     12702    ac_srcdir=$srcdir$ac_dir_suffix;
     12703    ac_top_srcdir=$srcdir ;;
     12704  *) # Relative path.
     12705    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     12706    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     12707esac
     12708
     12709# Do not use `cd foo && pwd` to compute absolute paths, because
     12710# the directories may not exist.
     12711case `pwd` in
     12712.) ac_abs_builddir="$ac_dir";;
     12713*)
     12714  case "$ac_dir" in
     12715  .) ac_abs_builddir=`pwd`;;
     12716  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     12717  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     12718  esac;;
     12719esac
     12720case $ac_abs_builddir in
     12721.) ac_abs_top_builddir=${ac_top_builddir}.;;
     12722*)
     12723  case ${ac_top_builddir}. in
     12724  .) ac_abs_top_builddir=$ac_abs_builddir;;
     12725  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     12726  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     12727  esac;;
     12728esac
     12729case $ac_abs_builddir in
     12730.) ac_abs_srcdir=$ac_srcdir;;
     12731*)
     12732  case $ac_srcdir in
     12733  .) ac_abs_srcdir=$ac_abs_builddir;;
     12734  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     12735  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     12736  esac;;
     12737esac
     12738case $ac_abs_builddir in
     12739.) ac_abs_top_srcdir=$ac_top_srcdir;;
     12740*)
     12741  case $ac_top_srcdir in
     12742  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     12743  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     12744  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     12745  esac;;
     12746esac
     12747
     12748
     12749  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     12750echo "$as_me: executing $ac_dest commands" >&6;}
     12751  case $ac_dest in
     12752    default ) \
     12753 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi ;;
     12754  esac
     12755done
     12756_ACEOF
     12757
     12758cat >>$CONFIG_STATUS <<\_ACEOF
     12759
     12760{ (exit 0); exit 0; }
     12761_ACEOF
    523412762chmod +x $CONFIG_STATUS
    5235 rm -fr confdefs* $ac_clean_files
    5236 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    5237 
     12763ac_clean_files=$ac_clean_files_save
     12764
     12765
     12766# configure is writing to config.log, and then calls config.status.
     12767# config.status does its own redirection, appending to config.log.
     12768# Unfortunately, on DOS this fails, as config.log is still kept open
     12769# by configure, so config.status won't be able to write to it; its
     12770# output is simply discarded.  So we exec the FD to /dev/null,
     12771# effectively closing config.log, so it can be properly (re)opened and
     12772# appended to by config.status.  When coming back to configure, we
     12773# need to make the FD available again.
     12774if test "$no_create" != yes; then
     12775  ac_cs_success=:
     12776  ac_config_status_args=
     12777  test "$silent" = yes &&
     12778    ac_config_status_args="$ac_config_status_args --quiet"
     12779  exec 5>/dev/null
     12780  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
     12781  exec 5>>config.log
     12782  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     12783  # would make configure fail if this is the last instruction.
     12784  $ac_cs_success || { (exit 1); exit 1; }
     12785fi
     12786
Note: See TracChangeset for help on using the changeset viewer.