Changeset e40798 in git


Ignore:
Timestamp:
May 9, 2006, 2:01:11 PM (17 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
6fd87716c7cbb74bdc8c421efe6c52fe1b3e110e
Parents:
ef8adb7b933493dbcb80792c9d08a0406bb6d8b7
Message:
*bricken: i386Mac-darwin


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

Legend:

Unmodified
Added
Removed
  • Singular/configure

    ref8adb re40798  
    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="tesths.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 NEED_LIBSG DL_KERNEL PLURAL 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=tesths.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 
    560 echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    561 echo "configure:562: checking uname for singular" >&5
    562 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    563   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          ac_config_headers="$ac_config_headers ../kernel/mod2.h"
     1327
     1328
     1329
     1330echo "$as_me:$LINENO: checking uname for singular" >&5
     1331echo $ECHO_N "checking uname for singular... $ECHO_C" >&6
     1332if test "${ac_cv_singuname+set}" = set; then
     1333  echo $ECHO_N "(cached) $ECHO_C" >&6
    5641334else
    5651335  ac_cv_singuname="unknown"
     
    5771347fi
    5781348
    579 echo "$ac_t""$ac_cv_singuname" 1>&6
     1349echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5
     1350echo "${ECHO_T}$ac_cv_singuname" >&6
    5801351if test "$ac_cv_singuname" = unknown; then
    581   echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
     1352  { echo "$as_me:$LINENO: WARNING: Unknown architecture: Check singuname.sh" >&5
     1353echo "$as_me: WARNING: Unknown architecture: Check singuname.sh" >&2;}
    5821354  ac_cv_singuname="unknown"
    5831355fi
    584 cat >> confdefs.h <<EOF
     1356cat >>confdefs.h <<_ACEOF
    5851357#define S_UNAME "$ac_cv_singuname"
    586 EOF
     1358_ACEOF
    5871359
    5881360SINGUNAME=$ac_cv_singuname
     
    6121384
    6131385
    614 cat >> confdefs.h <<EOF
     1386cat >>confdefs.h <<_ACEOF
    6151387#define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION}
    616 EOF
    617 
    618 cat >> confdefs.h <<EOF
     1388_ACEOF
     1389
     1390cat >>confdefs.h <<_ACEOF
    6191391#define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION}
    620 EOF
    621 
    622 cat >> confdefs.h <<EOF
     1392_ACEOF
     1393
     1394cat >>confdefs.h <<_ACEOF
    6231395#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    624 EOF
    625 
    626 cat >> confdefs.h <<EOF
     1396_ACEOF
     1397
     1398cat >>confdefs.h <<_ACEOF
    6271399#define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
    628 EOF
    629 
    630 cat >> confdefs.h <<EOF
     1400_ACEOF
     1401
     1402cat >>confdefs.h <<_ACEOF
    6311403#define S_VERSION2 "${VERSION_DATE}"
    632 EOF
    633 
    634 cat >> confdefs.h <<EOF
     1404_ACEOF
     1405
     1406cat >>confdefs.h <<_ACEOF
    6351407#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    636 EOF
     1408_ACEOF
    6371409
    6381410
     
    6531425  ac_cxx_set=yes
    6541426fi
    655 # Extract the first word of "gcc", so it can be a program name with args.
    656 set dummy gcc; ac_word=$2
    657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    658 echo "configure:659: checking for $ac_word" >&5
    659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    660   echo $ac_n "(cached) $ac_c" 1>&6
     1427ac_ext=c
     1428ac_cpp='$CPP $CPPFLAGS'
     1429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1431ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1432if test -n "$ac_tool_prefix"; then
     1433  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1434set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1435echo "$as_me:$LINENO: checking for $ac_word" >&5
     1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1437if test "${ac_cv_prog_CC+set}" = set; then
     1438  echo $ECHO_N "(cached) $ECHO_C" >&6
    6611439else
    6621440  if test -n "$CC"; then
    6631441  ac_cv_prog_CC="$CC" # Let the user override the test.
    6641442else
    665   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    666   ac_dummy="$PATH"
    667   for ac_dir in $ac_dummy; do
    668     test -z "$ac_dir" && ac_dir=.
    669     if test -f $ac_dir/$ac_word; then
    670       ac_cv_prog_CC="gcc"
    671       break
    672     fi
    673   done
    674   IFS="$ac_save_ifs"
    675 fi
    676 fi
    677 CC="$ac_cv_prog_CC"
     1443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1444for as_dir in $PATH
     1445do
     1446  IFS=$as_save_IFS
     1447  test -z "$as_dir" && as_dir=.
     1448  for ac_exec_ext in '' $ac_executable_extensions; do
     1449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1450    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1452    break 2
     1453  fi
     1454done
     1455done
     1456
     1457fi
     1458fi
     1459CC=$ac_cv_prog_CC
    6781460if test -n "$CC"; then
    679   echo "$ac_t""$CC" 1>&6
    680 else
    681   echo "$ac_t""no" 1>&6
    682 fi
    683 
     1461  echo "$as_me:$LINENO: result: $CC" >&5
     1462echo "${ECHO_T}$CC" >&6
     1463else
     1464  echo "$as_me:$LINENO: result: no" >&5
     1465echo "${ECHO_T}no" >&6
     1466fi
     1467
     1468fi
     1469if test -z "$ac_cv_prog_CC"; then
     1470  ac_ct_CC=$CC
     1471  # Extract the first word of "gcc", so it can be a program name with args.
     1472set dummy gcc; ac_word=$2
     1473echo "$as_me:$LINENO: checking for $ac_word" >&5
     1474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1476  echo $ECHO_N "(cached) $ECHO_C" >&6
     1477else
     1478  if test -n "$ac_ct_CC"; then
     1479  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1480else
     1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1482for as_dir in $PATH
     1483do
     1484  IFS=$as_save_IFS
     1485  test -z "$as_dir" && as_dir=.
     1486  for ac_exec_ext in '' $ac_executable_extensions; do
     1487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1488    ac_cv_prog_ac_ct_CC="gcc"
     1489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1490    break 2
     1491  fi
     1492done
     1493done
     1494
     1495fi
     1496fi
     1497ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1498if test -n "$ac_ct_CC"; then
     1499  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1500echo "${ECHO_T}$ac_ct_CC" >&6
     1501else
     1502  echo "$as_me:$LINENO: result: no" >&5
     1503echo "${ECHO_T}no" >&6
     1504fi
     1505
     1506  CC=$ac_ct_CC
     1507else
     1508  CC="$ac_cv_prog_CC"
     1509fi
     1510
     1511if test -z "$CC"; then
     1512  if test -n "$ac_tool_prefix"; then
     1513  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1514set dummy ${ac_tool_prefix}cc; ac_word=$2
     1515echo "$as_me:$LINENO: checking for $ac_word" >&5
     1516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1517if test "${ac_cv_prog_CC+set}" = set; then
     1518  echo $ECHO_N "(cached) $ECHO_C" >&6
     1519else
     1520  if test -n "$CC"; then
     1521  ac_cv_prog_CC="$CC" # Let the user override the test.
     1522else
     1523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1524for as_dir in $PATH
     1525do
     1526  IFS=$as_save_IFS
     1527  test -z "$as_dir" && as_dir=.
     1528  for ac_exec_ext in '' $ac_executable_extensions; do
     1529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1530    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1532    break 2
     1533  fi
     1534done
     1535done
     1536
     1537fi
     1538fi
     1539CC=$ac_cv_prog_CC
     1540if test -n "$CC"; then
     1541  echo "$as_me:$LINENO: result: $CC" >&5
     1542echo "${ECHO_T}$CC" >&6
     1543else
     1544  echo "$as_me:$LINENO: result: no" >&5
     1545echo "${ECHO_T}no" >&6
     1546fi
     1547
     1548fi
     1549if test -z "$ac_cv_prog_CC"; then
     1550  ac_ct_CC=$CC
     1551  # Extract the first word of "cc", so it can be a program name with args.
     1552set dummy cc; ac_word=$2
     1553echo "$as_me:$LINENO: checking for $ac_word" >&5
     1554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1555if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1556  echo $ECHO_N "(cached) $ECHO_C" >&6
     1557else
     1558  if test -n "$ac_ct_CC"; then
     1559  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1560else
     1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1562for as_dir in $PATH
     1563do
     1564  IFS=$as_save_IFS
     1565  test -z "$as_dir" && as_dir=.
     1566  for ac_exec_ext in '' $ac_executable_extensions; do
     1567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1568    ac_cv_prog_ac_ct_CC="cc"
     1569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1570    break 2
     1571  fi
     1572done
     1573done
     1574
     1575fi
     1576fi
     1577ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1578if test -n "$ac_ct_CC"; then
     1579  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1580echo "${ECHO_T}$ac_ct_CC" >&6
     1581else
     1582  echo "$as_me:$LINENO: result: no" >&5
     1583echo "${ECHO_T}no" >&6
     1584fi
     1585
     1586  CC=$ac_ct_CC
     1587else
     1588  CC="$ac_cv_prog_CC"
     1589fi
     1590
     1591fi
    6841592if test -z "$CC"; then
    6851593  # Extract the first word of "cc", so it can be a program name with args.
    6861594set dummy cc; ac_word=$2
    687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    688 echo "configure:689: checking for $ac_word" >&5
    689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    690   echo $ac_n "(cached) $ac_c" 1>&6
     1595echo "$as_me:$LINENO: checking for $ac_word" >&5
     1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1597if test "${ac_cv_prog_CC+set}" = set; then
     1598  echo $ECHO_N "(cached) $ECHO_C" >&6
    6911599else
    6921600  if test -n "$CC"; then
    6931601  ac_cv_prog_CC="$CC" # Let the user override the test.
    6941602else
    695   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    6961603  ac_prog_rejected=no
    697   ac_dummy="$PATH"
    698   for ac_dir in $ac_dummy; do
    699     test -z "$ac_dir" && ac_dir=.
    700     if test -f $ac_dir/$ac_word; then
    701       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    702         ac_prog_rejected=yes
    703         continue
    704       fi
    705       ac_cv_prog_CC="cc"
    706       break
    707     fi
    708   done
    709   IFS="$ac_save_ifs"
     1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1605for as_dir in $PATH
     1606do
     1607  IFS=$as_save_IFS
     1608  test -z "$as_dir" && as_dir=.
     1609  for ac_exec_ext in '' $ac_executable_extensions; do
     1610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1611    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     1612       ac_prog_rejected=yes
     1613       continue
     1614     fi
     1615    ac_cv_prog_CC="cc"
     1616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1617    break 2
     1618  fi
     1619done
     1620done
     1621
    7101622if test $ac_prog_rejected = yes; then
    7111623  # We found a bogon in the path, so make sure we never use it.
    7121624  set dummy $ac_cv_prog_CC
    7131625  shift
    714   if test $# -gt 0; then
     1626  if test $# != 0; then
    7151627    # We chose a different compiler from the bogus one.
    7161628    # However, it has the same basename, so the bogon will be chosen
    7171629    # first if we set CC to just the basename; use the full file name.
    7181630    shift
    719     set dummy "$ac_dir/$ac_word" "$@"
    720     shift
    721     ac_cv_prog_CC="$@"
     1631    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    7221632  fi
    7231633fi
    7241634fi
    7251635fi
    726 CC="$ac_cv_prog_CC"
     1636CC=$ac_cv_prog_CC
    7271637if test -n "$CC"; then
    728   echo "$ac_t""$CC" 1>&6
    729 else
    730   echo "$ac_t""no" 1>&6
    731 fi
    732 
    733   if test -z "$CC"; then
    734     case "`uname -s`" in
    735     *win32* | *WIN32*)
    736       # Extract the first word of "cl", so it can be a program name with args.
    737 set dummy cl; ac_word=$2
    738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    739 echo "configure:740: checking for $ac_word" >&5
    740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    741   echo $ac_n "(cached) $ac_c" 1>&6
     1638  echo "$as_me:$LINENO: result: $CC" >&5
     1639echo "${ECHO_T}$CC" >&6
     1640else
     1641  echo "$as_me:$LINENO: result: no" >&5
     1642echo "${ECHO_T}no" >&6
     1643fi
     1644
     1645fi
     1646if test -z "$CC"; then
     1647  if test -n "$ac_tool_prefix"; then
     1648  for ac_prog in cl
     1649  do
     1650    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1652echo "$as_me:$LINENO: checking for $ac_word" >&5
     1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1654if test "${ac_cv_prog_CC+set}" = set; then
     1655  echo $ECHO_N "(cached) $ECHO_C" >&6
    7421656else
    7431657  if test -n "$CC"; then
    7441658  ac_cv_prog_CC="$CC" # Let the user override the test.
    7451659else
    746   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    747   ac_dummy="$PATH"
    748   for ac_dir in $ac_dummy; do
    749     test -z "$ac_dir" && ac_dir=.
    750     if test -f $ac_dir/$ac_word; then
    751       ac_cv_prog_CC="cl"
    752       break
     1660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1661for as_dir in $PATH
     1662do
     1663  IFS=$as_save_IFS
     1664  test -z "$as_dir" && as_dir=.
     1665  for ac_exec_ext in '' $ac_executable_extensions; do
     1666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1667    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1669    break 2
     1670  fi
     1671done
     1672done
     1673
     1674fi
     1675fi
     1676CC=$ac_cv_prog_CC
     1677if test -n "$CC"; then
     1678  echo "$as_me:$LINENO: result: $CC" >&5
     1679echo "${ECHO_T}$CC" >&6
     1680else
     1681  echo "$as_me:$LINENO: result: no" >&5
     1682echo "${ECHO_T}no" >&6
     1683fi
     1684
     1685    test -n "$CC" && break
     1686  done
     1687fi
     1688if test -z "$CC"; then
     1689  ac_ct_CC=$CC
     1690  for ac_prog in cl
     1691do
     1692  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1693set dummy $ac_prog; ac_word=$2
     1694echo "$as_me:$LINENO: checking for $ac_word" >&5
     1695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1696if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1697  echo $ECHO_N "(cached) $ECHO_C" >&6
     1698else
     1699  if test -n "$ac_ct_CC"; then
     1700  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1701else
     1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1703for as_dir in $PATH
     1704do
     1705  IFS=$as_save_IFS
     1706  test -z "$as_dir" && as_dir=.
     1707  for ac_exec_ext in '' $ac_executable_extensions; do
     1708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1709    ac_cv_prog_ac_ct_CC="$ac_prog"
     1710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1711    break 2
     1712  fi
     1713done
     1714done
     1715
     1716fi
     1717fi
     1718ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1719if test -n "$ac_ct_CC"; then
     1720  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1721echo "${ECHO_T}$ac_ct_CC" >&6
     1722else
     1723  echo "$as_me:$LINENO: result: no" >&5
     1724echo "${ECHO_T}no" >&6
     1725fi
     1726
     1727  test -n "$ac_ct_CC" && break
     1728done
     1729
     1730  CC=$ac_ct_CC
     1731fi
     1732
     1733fi
     1734
     1735
     1736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1737See \`config.log' for more details." >&5
     1738echo "$as_me: error: no acceptable C compiler found in \$PATH
     1739See \`config.log' for more details." >&2;}
     1740   { (exit 1); exit 1; }; }
     1741
     1742# Provide some information about the compiler.
     1743echo "$as_me:$LINENO:" \
     1744     "checking for C compiler version" >&5
     1745ac_compiler=`set X $ac_compile; echo $2`
     1746{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1747  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1748  ac_status=$?
     1749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1750  (exit $ac_status); }
     1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1752  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1753  ac_status=$?
     1754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1755  (exit $ac_status); }
     1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1757  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1758  ac_status=$?
     1759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1760  (exit $ac_status); }
     1761
     1762cat >conftest.$ac_ext <<_ACEOF
     1763/* confdefs.h.  */
     1764_ACEOF
     1765cat confdefs.h >>conftest.$ac_ext
     1766cat >>conftest.$ac_ext <<_ACEOF
     1767/* end confdefs.h.  */
     1768
     1769int
     1770main ()
     1771{
     1772
     1773  ;
     1774  return 0;
     1775}
     1776_ACEOF
     1777ac_clean_files_save=$ac_clean_files
     1778ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1779# Try to create an executable without -o first, disregard a.out.
     1780# It will help us diagnose broken compilers, and finding out an intuition
     1781# of exeext.
     1782echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1785if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1786  (eval $ac_link_default) 2>&5
     1787  ac_status=$?
     1788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1789  (exit $ac_status); }; then
     1790  # Find the output, starting from the most likely.  This scheme is
     1791# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1792# resort.
     1793
     1794# Be careful to initialize this variable, since it used to be cached.
     1795# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1796ac_cv_exeext=
     1797# b.out is created by i960 compilers.
     1798for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1799do
     1800  test -f "$ac_file" || continue
     1801  case $ac_file in
     1802    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1803        ;;
     1804    conftest.$ac_ext )
     1805        # This is the source file.
     1806        ;;
     1807    [ab].out )
     1808        # We found the default executable, but exeext='' is most
     1809        # certainly right.
     1810        break;;
     1811    *.* )
     1812        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1813        # FIXME: I believe we export ac_cv_exeext for Libtool,
     1814        # but it would be cool to find out if it's true.  Does anybody
     1815        # maintain Libtool? --akim.
     1816        export ac_cv_exeext
     1817        break;;
     1818    * )
     1819        break;;
     1820  esac
     1821done
     1822else
     1823  echo "$as_me: failed program was:" >&5
     1824sed 's/^/| /' conftest.$ac_ext >&5
     1825
     1826{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1827See \`config.log' for more details." >&5
     1828echo "$as_me: error: C compiler cannot create executables
     1829See \`config.log' for more details." >&2;}
     1830   { (exit 77); exit 77; }; }
     1831fi
     1832
     1833ac_exeext=$ac_cv_exeext
     1834echo "$as_me:$LINENO: result: $ac_file" >&5
     1835echo "${ECHO_T}$ac_file" >&6
     1836
     1837# Check the compiler produces executables we can run.  If not, either
     1838# the compiler is broken, or we cross compile.
     1839echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1840echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1841# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1842# If not cross compiling, check that we can run a simple program.
     1843if test "$cross_compiling" != yes; then
     1844  if { ac_try='./$ac_file'
     1845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1846  (eval $ac_try) 2>&5
     1847  ac_status=$?
     1848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1849  (exit $ac_status); }; }; then
     1850    cross_compiling=no
     1851  else
     1852    if test "$cross_compiling" = maybe; then
     1853        cross_compiling=yes
     1854    else
     1855        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1856If you meant to cross compile, use \`--host'.
     1857See \`config.log' for more details." >&5
     1858echo "$as_me: error: cannot run C compiled programs.
     1859If you meant to cross compile, use \`--host'.
     1860See \`config.log' for more details." >&2;}
     1861   { (exit 1); exit 1; }; }
    7531862    fi
    754   done
    755   IFS="$ac_save_ifs"
    756 fi
    757 fi
    758 CC="$ac_cv_prog_CC"
    759 if test -n "$CC"; then
    760   echo "$ac_t""$CC" 1>&6
    761 else
    762   echo "$ac_t""no" 1>&6
    763 fi
    764  ;;
    765     esac
    7661863  fi
    767   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    768 fi
    769 
    770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    772 
    773 ac_ext=c
    774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    775 ac_cpp='$CPP $CPPFLAGS'
    776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    778 cross_compiling=$ac_cv_prog_cc_cross
    779 
    780 cat > conftest.$ac_ext << EOF
    781 
    782 #line 783 "configure"
    783 #include "confdefs.h"
    784 
    785 main(){return(0);}
    786 EOF
    787 if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    788   ac_cv_prog_cc_works=yes
    789   # If we can't run a trivial program, we are probably using a cross compiler.
    790   if (./conftest; exit) 2>/dev/null; then
    791     ac_cv_prog_cc_cross=no
    792   else
    793     ac_cv_prog_cc_cross=yes
    794   fi
    795 else
    796   echo "configure: failed program was:" >&5
    797   cat conftest.$ac_ext >&5
    798   ac_cv_prog_cc_works=no
    799 fi
    800 rm -fr conftest*
    801 ac_ext=c
    802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    803 ac_cpp='$CPP $CPPFLAGS'
    804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    806 cross_compiling=$ac_cv_prog_cc_cross
    807 
    808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    809 if test $ac_cv_prog_cc_works = no; then
    810   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    811 fi
    812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    815 cross_compiling=$ac_cv_prog_cc_cross
    816 
    817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    818 echo "configure:819: checking whether we are using GNU C" >&5
    819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    820   echo $ac_n "(cached) $ac_c" 1>&6
    821 else
    822   cat > conftest.c <<EOF
    823 #ifdef __GNUC__
    824   yes;
     1864fi
     1865echo "$as_me:$LINENO: result: yes" >&5
     1866echo "${ECHO_T}yes" >&6
     1867
     1868rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1869ac_clean_files=$ac_clean_files_save
     1870# Check the compiler produces executables we can run.  If not, either
     1871# the compiler is broken, or we cross compile.
     1872echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1873echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1874echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1875echo "${ECHO_T}$cross_compiling" >&6
     1876
     1877echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1878echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1880  (eval $ac_link) 2>&5
     1881  ac_status=$?
     1882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1883  (exit $ac_status); }; then
     1884  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1885# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1886# work properly (i.e., refer to `conftest.exe'), while it won't with
     1887# `rm'.
     1888for ac_file in conftest.exe conftest conftest.*; do
     1889  test -f "$ac_file" || continue
     1890  case $ac_file in
     1891    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1892    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1893          export ac_cv_exeext
     1894          break;;
     1895    * ) break;;
     1896  esac
     1897done
     1898else
     1899  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1900See \`config.log' for more details." >&5
     1901echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1902See \`config.log' for more details." >&2;}
     1903   { (exit 1); exit 1; }; }
     1904fi
     1905
     1906rm -f conftest$ac_cv_exeext
     1907echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1908echo "${ECHO_T}$ac_cv_exeext" >&6
     1909
     1910rm -f conftest.$ac_ext
     1911EXEEXT=$ac_cv_exeext
     1912ac_exeext=$EXEEXT
     1913echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1914echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1915if test "${ac_cv_objext+set}" = set; then
     1916  echo $ECHO_N "(cached) $ECHO_C" >&6
     1917else
     1918  cat >conftest.$ac_ext <<_ACEOF
     1919/* confdefs.h.  */
     1920_ACEOF
     1921cat confdefs.h >>conftest.$ac_ext
     1922cat >>conftest.$ac_ext <<_ACEOF
     1923/* end confdefs.h.  */
     1924
     1925int
     1926main ()
     1927{
     1928
     1929  ;
     1930  return 0;
     1931}
     1932_ACEOF
     1933rm -f conftest.o conftest.obj
     1934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1935  (eval $ac_compile) 2>&5
     1936  ac_status=$?
     1937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1938  (exit $ac_status); }; then
     1939  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1940  case $ac_file in
     1941    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1942    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1943       break;;
     1944  esac
     1945done
     1946else
     1947  echo "$as_me: failed program was:" >&5
     1948sed 's/^/| /' conftest.$ac_ext >&5
     1949
     1950{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1951See \`config.log' for more details." >&5
     1952echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1953See \`config.log' for more details." >&2;}
     1954   { (exit 1); exit 1; }; }
     1955fi
     1956
     1957rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1958fi
     1959echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1960echo "${ECHO_T}$ac_cv_objext" >&6
     1961OBJEXT=$ac_cv_objext
     1962ac_objext=$OBJEXT
     1963echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     1964echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1965if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1966  echo $ECHO_N "(cached) $ECHO_C" >&6
     1967else
     1968  cat >conftest.$ac_ext <<_ACEOF
     1969/* confdefs.h.  */
     1970_ACEOF
     1971cat confdefs.h >>conftest.$ac_ext
     1972cat >>conftest.$ac_ext <<_ACEOF
     1973/* end confdefs.h.  */
     1974
     1975int
     1976main ()
     1977{
     1978#ifndef __GNUC__
     1979       choke me
    8251980#endif
    826 EOF
    827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    828   ac_cv_prog_gcc=yes
    829 else
    830   ac_cv_prog_gcc=no
    831 fi
    832 fi
    833 
    834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    835 
    836 if test $ac_cv_prog_gcc = yes; then
    837   GCC=yes
    838 else
    839   GCC=
    840 fi
    841 
    842 ac_test_CFLAGS="${CFLAGS+set}"
    843 ac_save_CFLAGS="$CFLAGS"
    844 CFLAGS=
    845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    846 echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
    847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    848   echo $ac_n "(cached) $ac_c" 1>&6
    849 else
    850   echo 'void f(){}' > conftest.c
    851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1981
     1982  ;
     1983  return 0;
     1984}
     1985_ACEOF
     1986rm -f conftest.$ac_objext
     1987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1988  (eval $ac_compile) 2>conftest.er1
     1989  ac_status=$?
     1990  grep -v '^ *+' conftest.er1 >conftest.err
     1991  rm -f conftest.er1
     1992  cat conftest.err >&5
     1993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1994  (exit $ac_status); } &&
     1995         { ac_try='test -z "$ac_c_werror_flag"
     1996                         || test ! -s conftest.err'
     1997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1998  (eval $ac_try) 2>&5
     1999  ac_status=$?
     2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2001  (exit $ac_status); }; } &&
     2002         { ac_try='test -s conftest.$ac_objext'
     2003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2004  (eval $ac_try) 2>&5
     2005  ac_status=$?
     2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2007  (exit $ac_status); }; }; then
     2008  ac_compiler_gnu=yes
     2009else
     2010  echo "$as_me: failed program was:" >&5
     2011sed 's/^/| /' conftest.$ac_ext >&5
     2012
     2013ac_compiler_gnu=no
     2014fi
     2015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2016ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2017
     2018fi
     2019echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2020echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2021GCC=`test $ac_compiler_gnu = yes && echo yes`
     2022ac_test_CFLAGS=${CFLAGS+set}
     2023ac_save_CFLAGS=$CFLAGS
     2024CFLAGS="-g"
     2025echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2026echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2027if test "${ac_cv_prog_cc_g+set}" = set; then
     2028  echo $ECHO_N "(cached) $ECHO_C" >&6
     2029else
     2030  cat >conftest.$ac_ext <<_ACEOF
     2031/* confdefs.h.  */
     2032_ACEOF
     2033cat confdefs.h >>conftest.$ac_ext
     2034cat >>conftest.$ac_ext <<_ACEOF
     2035/* end confdefs.h.  */
     2036
     2037int
     2038main ()
     2039{
     2040
     2041  ;
     2042  return 0;
     2043}
     2044_ACEOF
     2045rm -f conftest.$ac_objext
     2046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2047  (eval $ac_compile) 2>conftest.er1
     2048  ac_status=$?
     2049  grep -v '^ *+' conftest.er1 >conftest.err
     2050  rm -f conftest.er1
     2051  cat conftest.err >&5
     2052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2053  (exit $ac_status); } &&
     2054         { ac_try='test -z "$ac_c_werror_flag"
     2055                         || test ! -s conftest.err'
     2056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2057  (eval $ac_try) 2>&5
     2058  ac_status=$?
     2059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2060  (exit $ac_status); }; } &&
     2061         { ac_try='test -s conftest.$ac_objext'
     2062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2063  (eval $ac_try) 2>&5
     2064  ac_status=$?
     2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2066  (exit $ac_status); }; }; then
    8522067  ac_cv_prog_cc_g=yes
    8532068else
    854   ac_cv_prog_cc_g=no
    855 fi
    856 rm -f conftest*
    857 
    858 fi
    859 
    860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2069  echo "$as_me: failed program was:" >&5
     2070sed 's/^/| /' conftest.$ac_ext >&5
     2071
     2072ac_cv_prog_cc_g=no
     2073fi
     2074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2075fi
     2076echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2077echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    8612078if test "$ac_test_CFLAGS" = set; then
    862   CFLAGS="$ac_save_CFLAGS"
     2079  CFLAGS=$ac_save_CFLAGS
    8632080elif test $ac_cv_prog_cc_g = yes; then
    8642081  if test "$GCC" = yes; then
     
    8742091  fi
    8752092fi
    876 
    877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    878 echo "configure:879: checking how to run the C preprocessor" >&5
     2093echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2094echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2095if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2096  echo $ECHO_N "(cached) $ECHO_C" >&6
     2097else
     2098  ac_cv_prog_cc_stdc=no
     2099ac_save_CC=$CC
     2100cat >conftest.$ac_ext <<_ACEOF
     2101/* confdefs.h.  */
     2102_ACEOF
     2103cat confdefs.h >>conftest.$ac_ext
     2104cat >>conftest.$ac_ext <<_ACEOF
     2105/* end confdefs.h.  */
     2106#include <stdarg.h>
     2107#include <stdio.h>
     2108#include <sys/types.h>
     2109#include <sys/stat.h>
     2110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2111struct buf { int x; };
     2112FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2113static char *e (p, i)
     2114     char **p;
     2115     int i;
     2116{
     2117  return p[i];
     2118}
     2119static char *f (char * (*g) (char **, int), char **p, ...)
     2120{
     2121  char *s;
     2122  va_list v;
     2123  va_start (v,p);
     2124  s = g (p, va_arg (v,int));
     2125  va_end (v);
     2126  return s;
     2127}
     2128
     2129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2130   function prototypes and stuff, but not '\xHH' hex character constants.
     2131   These don't provoke an error unfortunately, instead are silently treated
     2132   as 'x'.  The following induces an error, until -std1 is added to get
     2133   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2134   array size at least.  It's necessary to write '\x00'==0 to get something
     2135   that's true only with -std1.  */
     2136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2137
     2138int test (int i, double x);
     2139struct s1 {int (*f) (int a);};
     2140struct s2 {int (*f) (double a);};
     2141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2142int argc;
     2143char **argv;
     2144int
     2145main ()
     2146{
     2147return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2148  ;
     2149  return 0;
     2150}
     2151_ACEOF
     2152# Don't try gcc -ansi; that turns off useful extensions and
     2153# breaks some systems' header files.
     2154# AIX                   -qlanglvl=ansi
     2155# Ultrix and OSF/1      -std1
     2156# HP-UX 10.20 and later -Ae
     2157# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2158# SVR4                  -Xc -D__EXTENSIONS__
     2159for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2160do
     2161  CC="$ac_save_CC $ac_arg"
     2162  rm -f conftest.$ac_objext
     2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2164  (eval $ac_compile) 2>conftest.er1
     2165  ac_status=$?
     2166  grep -v '^ *+' conftest.er1 >conftest.err
     2167  rm -f conftest.er1
     2168  cat conftest.err >&5
     2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2170  (exit $ac_status); } &&
     2171         { ac_try='test -z "$ac_c_werror_flag"
     2172                         || test ! -s conftest.err'
     2173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2174  (eval $ac_try) 2>&5
     2175  ac_status=$?
     2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2177  (exit $ac_status); }; } &&
     2178         { ac_try='test -s conftest.$ac_objext'
     2179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2180  (eval $ac_try) 2>&5
     2181  ac_status=$?
     2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2183  (exit $ac_status); }; }; then
     2184  ac_cv_prog_cc_stdc=$ac_arg
     2185break
     2186else
     2187  echo "$as_me: failed program was:" >&5
     2188sed 's/^/| /' conftest.$ac_ext >&5
     2189
     2190fi
     2191rm -f conftest.err conftest.$ac_objext
     2192done
     2193rm -f conftest.$ac_ext conftest.$ac_objext
     2194CC=$ac_save_CC
     2195
     2196fi
     2197
     2198case "x$ac_cv_prog_cc_stdc" in
     2199  x|xno)
     2200    echo "$as_me:$LINENO: result: none needed" >&5
     2201echo "${ECHO_T}none needed" >&6 ;;
     2202  *)
     2203    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2204echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2205    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2206esac
     2207
     2208# Some people use a C++ compiler to compile C.  Since we use `exit',
     2209# in C++ we need to declare it.  In case someone uses the same compiler
     2210# for both compiling C and C++ we need to have the C++ compiler decide
     2211# the declaration of exit, since it's the most demanding environment.
     2212cat >conftest.$ac_ext <<_ACEOF
     2213#ifndef __cplusplus
     2214  choke me
     2215#endif
     2216_ACEOF
     2217rm -f conftest.$ac_objext
     2218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2219  (eval $ac_compile) 2>conftest.er1
     2220  ac_status=$?
     2221  grep -v '^ *+' conftest.er1 >conftest.err
     2222  rm -f conftest.er1
     2223  cat conftest.err >&5
     2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2225  (exit $ac_status); } &&
     2226         { ac_try='test -z "$ac_c_werror_flag"
     2227                         || test ! -s conftest.err'
     2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2229  (eval $ac_try) 2>&5
     2230  ac_status=$?
     2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2232  (exit $ac_status); }; } &&
     2233         { ac_try='test -s conftest.$ac_objext'
     2234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2235  (eval $ac_try) 2>&5
     2236  ac_status=$?
     2237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2238  (exit $ac_status); }; }; then
     2239  for ac_declaration in \
     2240   '' \
     2241   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2242   'extern "C" void std::exit (int); using std::exit;' \
     2243   'extern "C" void exit (int) throw ();' \
     2244   'extern "C" void exit (int);' \
     2245   'void exit (int);'
     2246do
     2247  cat >conftest.$ac_ext <<_ACEOF
     2248/* confdefs.h.  */
     2249_ACEOF
     2250cat confdefs.h >>conftest.$ac_ext
     2251cat >>conftest.$ac_ext <<_ACEOF
     2252/* end confdefs.h.  */
     2253$ac_declaration
     2254#include <stdlib.h>
     2255int
     2256main ()
     2257{
     2258exit (42);
     2259  ;
     2260  return 0;
     2261}
     2262_ACEOF
     2263rm -f conftest.$ac_objext
     2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2265  (eval $ac_compile) 2>conftest.er1
     2266  ac_status=$?
     2267  grep -v '^ *+' conftest.er1 >conftest.err
     2268  rm -f conftest.er1
     2269  cat conftest.err >&5
     2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2271  (exit $ac_status); } &&
     2272         { ac_try='test -z "$ac_c_werror_flag"
     2273                         || test ! -s conftest.err'
     2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2275  (eval $ac_try) 2>&5
     2276  ac_status=$?
     2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2278  (exit $ac_status); }; } &&
     2279         { ac_try='test -s conftest.$ac_objext'
     2280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2281  (eval $ac_try) 2>&5
     2282  ac_status=$?
     2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2284  (exit $ac_status); }; }; then
     2285  :
     2286else
     2287  echo "$as_me: failed program was:" >&5
     2288sed 's/^/| /' conftest.$ac_ext >&5
     2289
     2290continue
     2291fi
     2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2293  cat >conftest.$ac_ext <<_ACEOF
     2294/* confdefs.h.  */
     2295_ACEOF
     2296cat confdefs.h >>conftest.$ac_ext
     2297cat >>conftest.$ac_ext <<_ACEOF
     2298/* end confdefs.h.  */
     2299$ac_declaration
     2300int
     2301main ()
     2302{
     2303exit (42);
     2304  ;
     2305  return 0;
     2306}
     2307_ACEOF
     2308rm -f conftest.$ac_objext
     2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2310  (eval $ac_compile) 2>conftest.er1
     2311  ac_status=$?
     2312  grep -v '^ *+' conftest.er1 >conftest.err
     2313  rm -f conftest.er1
     2314  cat conftest.err >&5
     2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2316  (exit $ac_status); } &&
     2317         { ac_try='test -z "$ac_c_werror_flag"
     2318                         || test ! -s conftest.err'
     2319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2320  (eval $ac_try) 2>&5
     2321  ac_status=$?
     2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2323  (exit $ac_status); }; } &&
     2324         { ac_try='test -s conftest.$ac_objext'
     2325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2326  (eval $ac_try) 2>&5
     2327  ac_status=$?
     2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2329  (exit $ac_status); }; }; then
     2330  break
     2331else
     2332  echo "$as_me: failed program was:" >&5
     2333sed 's/^/| /' conftest.$ac_ext >&5
     2334
     2335fi
     2336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2337done
     2338rm -f conftest*
     2339if test -n "$ac_declaration"; then
     2340  echo '#ifdef __cplusplus' >>confdefs.h
     2341  echo $ac_declaration      >>confdefs.h
     2342  echo '#endif'             >>confdefs.h
     2343fi
     2344
     2345else
     2346  echo "$as_me: failed program was:" >&5
     2347sed 's/^/| /' conftest.$ac_ext >&5
     2348
     2349fi
     2350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2351ac_ext=c
     2352ac_cpp='$CPP $CPPFLAGS'
     2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2356
     2357ac_ext=c
     2358ac_cpp='$CPP $CPPFLAGS'
     2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2362echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    8792364# On Suns, sometimes $CPP names a directory.
    8802365if test -n "$CPP" && test -d "$CPP"; then
     
    8822367fi
    8832368if test -z "$CPP"; then
    884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    885   echo $ac_n "(cached) $ac_c" 1>&6
    886 else
    887     # This must be in double quotes, not single quotes, because CPP may get
    888   # substituted into the Makefile and "${CC-cc}" will confuse make.
    889   CPP="${CC-cc} -E"
     2369  if test "${ac_cv_prog_CPP+set}" = set; then
     2370  echo $ECHO_N "(cached) $ECHO_C" >&6
     2371else
     2372      # Double quotes because CPP needs to be expanded
     2373    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2374    do
     2375      ac_preproc_ok=false
     2376for ac_c_preproc_warn_flag in '' yes
     2377do
     2378  # Use a header file that comes with gcc, so configuring glibc
     2379  # with a fresh cross-compiler works.
     2380  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2381  # <limits.h> exists even on freestanding compilers.
    8902382  # On the NeXT, cc -E runs the code through the compiler's parser,
    891   # not just through cpp.
    892   cat > conftest.$ac_ext <<EOF
    893 #line 894 "configure"
    894 #include "confdefs.h"
    895 #include <assert.h>
    896 Syntax Error
    897 EOF
    898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    901 if test -z "$ac_err"; then
     2383  # not just through cpp. "Syntax error" is here to catch this case.
     2384  cat >conftest.$ac_ext <<_ACEOF
     2385/* confdefs.h.  */
     2386_ACEOF
     2387cat confdefs.h >>conftest.$ac_ext
     2388cat >>conftest.$ac_ext <<_ACEOF
     2389/* end confdefs.h.  */
     2390#ifdef __STDC__
     2391# include <limits.h>
     2392#else
     2393# include <assert.h>
     2394#endif
     2395                     Syntax error
     2396_ACEOF
     2397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2398  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2399  ac_status=$?
     2400  grep -v '^ *+' conftest.er1 >conftest.err
     2401  rm -f conftest.er1
     2402  cat conftest.err >&5
     2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2404  (exit $ac_status); } >/dev/null; then
     2405  if test -s conftest.err; then
     2406    ac_cpp_err=$ac_c_preproc_warn_flag
     2407    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2408  else
     2409    ac_cpp_err=
     2410  fi
     2411else
     2412  ac_cpp_err=yes
     2413fi
     2414if test -z "$ac_cpp_err"; then
    9022415  :
    9032416else
    904   echo "$ac_err" >&5
    905   echo "configure: failed program was:" >&5
    906   cat conftest.$ac_ext >&5
    907   rm -rf conftest*
    908   CPP="${CC-cc} -E -traditional-cpp"
    909   cat > conftest.$ac_ext <<EOF
    910 #line 911 "configure"
    911 #include "confdefs.h"
    912 #include <assert.h>
    913 Syntax Error
    914 EOF
    915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    918 if test -z "$ac_err"; then
     2417  echo "$as_me: failed program was:" >&5
     2418sed 's/^/| /' conftest.$ac_ext >&5
     2419
     2420  # Broken: fails on valid input.
     2421continue
     2422fi
     2423rm -f conftest.err conftest.$ac_ext
     2424
     2425  # OK, works on sane cases.  Now check whether non-existent headers
     2426  # can be detected and how.
     2427  cat >conftest.$ac_ext <<_ACEOF
     2428/* confdefs.h.  */
     2429_ACEOF
     2430cat confdefs.h >>conftest.$ac_ext
     2431cat >>conftest.$ac_ext <<_ACEOF
     2432/* end confdefs.h.  */
     2433#include <ac_nonexistent.h>
     2434_ACEOF
     2435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2437  ac_status=$?
     2438  grep -v '^ *+' conftest.er1 >conftest.err
     2439  rm -f conftest.er1
     2440  cat conftest.err >&5
     2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2442  (exit $ac_status); } >/dev/null; then
     2443  if test -s conftest.err; then
     2444    ac_cpp_err=$ac_c_preproc_warn_flag
     2445    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2446  else
     2447    ac_cpp_err=
     2448  fi
     2449else
     2450  ac_cpp_err=yes
     2451fi
     2452if test -z "$ac_cpp_err"; then
     2453  # Broken: success on invalid input.
     2454continue
     2455else
     2456  echo "$as_me: failed program was:" >&5
     2457sed 's/^/| /' conftest.$ac_ext >&5
     2458
     2459  # Passes both tests.
     2460ac_preproc_ok=:
     2461break
     2462fi
     2463rm -f conftest.err conftest.$ac_ext
     2464
     2465done
     2466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2467rm -f conftest.err conftest.$ac_ext
     2468if $ac_preproc_ok; then
     2469  break
     2470fi
     2471
     2472    done
     2473    ac_cv_prog_CPP=$CPP
     2474
     2475fi
     2476  CPP=$ac_cv_prog_CPP
     2477else
     2478  ac_cv_prog_CPP=$CPP
     2479fi
     2480echo "$as_me:$LINENO: result: $CPP" >&5
     2481echo "${ECHO_T}$CPP" >&6
     2482ac_preproc_ok=false
     2483for ac_c_preproc_warn_flag in '' yes
     2484do
     2485  # Use a header file that comes with gcc, so configuring glibc
     2486  # with a fresh cross-compiler works.
     2487  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2488  # <limits.h> exists even on freestanding compilers.
     2489  # On the NeXT, cc -E runs the code through the compiler's parser,
     2490  # not just through cpp. "Syntax error" is here to catch this case.
     2491  cat >conftest.$ac_ext <<_ACEOF
     2492/* confdefs.h.  */
     2493_ACEOF
     2494cat confdefs.h >>conftest.$ac_ext
     2495cat >>conftest.$ac_ext <<_ACEOF
     2496/* end confdefs.h.  */
     2497#ifdef __STDC__
     2498# include <limits.h>
     2499#else
     2500# include <assert.h>
     2501#endif
     2502                     Syntax error
     2503_ACEOF
     2504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2505  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2506  ac_status=$?
     2507  grep -v '^ *+' conftest.er1 >conftest.err
     2508  rm -f conftest.er1
     2509  cat conftest.err >&5
     2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2511  (exit $ac_status); } >/dev/null; then
     2512  if test -s conftest.err; then
     2513    ac_cpp_err=$ac_c_preproc_warn_flag
     2514    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2515  else
     2516    ac_cpp_err=
     2517  fi
     2518else
     2519  ac_cpp_err=yes
     2520fi
     2521if test -z "$ac_cpp_err"; then
    9192522  :
    9202523else
    921   echo "$ac_err" >&5
    922   echo "configure: failed program was:" >&5
    923   cat conftest.$ac_ext >&5
    924   rm -rf conftest*
    925   CPP="${CC-cc} -nologo -E"
    926   cat > conftest.$ac_ext <<EOF
    927 #line 928 "configure"
    928 #include "confdefs.h"
    929 #include <assert.h>
    930 Syntax Error
    931 EOF
    932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    935 if test -z "$ac_err"; then
     2524  echo "$as_me: failed program was:" >&5
     2525sed 's/^/| /' conftest.$ac_ext >&5
     2526
     2527  # Broken: fails on valid input.
     2528continue
     2529fi
     2530rm -f conftest.err conftest.$ac_ext
     2531
     2532  # OK, works on sane cases.  Now check whether non-existent headers
     2533  # can be detected and how.
     2534  cat >conftest.$ac_ext <<_ACEOF
     2535/* confdefs.h.  */
     2536_ACEOF
     2537cat confdefs.h >>conftest.$ac_ext
     2538cat >>conftest.$ac_ext <<_ACEOF
     2539/* end confdefs.h.  */
     2540#include <ac_nonexistent.h>
     2541_ACEOF
     2542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2544  ac_status=$?
     2545  grep -v '^ *+' conftest.er1 >conftest.err
     2546  rm -f conftest.er1
     2547  cat conftest.err >&5
     2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2549  (exit $ac_status); } >/dev/null; then
     2550  if test -s conftest.err; then
     2551    ac_cpp_err=$ac_c_preproc_warn_flag
     2552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2553  else
     2554    ac_cpp_err=
     2555  fi
     2556else
     2557  ac_cpp_err=yes
     2558fi
     2559if test -z "$ac_cpp_err"; then
     2560  # Broken: success on invalid input.
     2561continue
     2562else
     2563  echo "$as_me: failed program was:" >&5
     2564sed 's/^/| /' conftest.$ac_ext >&5
     2565
     2566  # Passes both tests.
     2567ac_preproc_ok=:
     2568break
     2569fi
     2570rm -f conftest.err conftest.$ac_ext
     2571
     2572done
     2573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2574rm -f conftest.err conftest.$ac_ext
     2575if $ac_preproc_ok; then
    9362576  :
    9372577else
    938   echo "$ac_err" >&5
    939   echo "configure: failed program was:" >&5
    940   cat conftest.$ac_ext >&5
    941   rm -rf conftest*
    942   CPP=/lib/cpp
    943 fi
    944 rm -f conftest*
    945 fi
    946 rm -f conftest*
    947 fi
    948 rm -f conftest*
    949   ac_cv_prog_CPP="$CPP"
    950 fi
    951   CPP="$ac_cv_prog_CPP"
    952 else
    953   ac_cv_prog_CPP="$CPP"
    954 fi
    955 echo "$ac_t""$CPP" 1>&6
    956 
    957 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    958 do
    959 # Extract the first word of "$ac_prog", so it can be a program name with args.
    960 set dummy $ac_prog; ac_word=$2
    961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    962 echo "configure:963: checking for $ac_word" >&5
    963 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    964   echo $ac_n "(cached) $ac_c" 1>&6
     2578  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     2579See \`config.log' for more details." >&5
     2580echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     2581See \`config.log' for more details." >&2;}
     2582   { (exit 1); exit 1; }; }
     2583fi
     2584
     2585ac_ext=c
     2586ac_cpp='$CPP $CPPFLAGS'
     2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2589ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2590
     2591ac_ext=cc
     2592ac_cpp='$CXXCPP $CPPFLAGS'
     2593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2596if test -n "$ac_tool_prefix"; then
     2597  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2598  do
     2599    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2601echo "$as_me:$LINENO: checking for $ac_word" >&5
     2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2603if test "${ac_cv_prog_CXX+set}" = set; then
     2604  echo $ECHO_N "(cached) $ECHO_C" >&6
    9652605else
    9662606  if test -n "$CXX"; then
    9672607  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    9682608else
    969   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    970   ac_dummy="$PATH"
    971   for ac_dir in $ac_dummy; do
    972     test -z "$ac_dir" && ac_dir=.
    973     if test -f $ac_dir/$ac_word; then
    974       ac_cv_prog_CXX="$ac_prog"
    975       break
    976     fi
     2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2610for as_dir in $PATH
     2611do
     2612  IFS=$as_save_IFS
     2613  test -z "$as_dir" && as_dir=.
     2614  for ac_exec_ext in '' $ac_executable_extensions; do
     2615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2616    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2618    break 2
     2619  fi
     2620done
     2621done
     2622
     2623fi
     2624fi
     2625CXX=$ac_cv_prog_CXX
     2626if test -n "$CXX"; then
     2627  echo "$as_me:$LINENO: result: $CXX" >&5
     2628echo "${ECHO_T}$CXX" >&6
     2629else
     2630  echo "$as_me:$LINENO: result: no" >&5
     2631echo "${ECHO_T}no" >&6
     2632fi
     2633
     2634    test -n "$CXX" && break
    9772635  done
    978   IFS="$ac_save_ifs"
    979 fi
    980 fi
    981 CXX="$ac_cv_prog_CXX"
    982 if test -n "$CXX"; then
    983   echo "$ac_t""$CXX" 1>&6
    984 else
    985   echo "$ac_t""no" 1>&6
    986 fi
    987 
    988 test -n "$CXX" && break
     2636fi
     2637if test -z "$CXX"; then
     2638  ac_ct_CXX=$CXX
     2639  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2640do
     2641  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2642set dummy $ac_prog; ac_word=$2
     2643echo "$as_me:$LINENO: checking for $ac_word" >&5
     2644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2645if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2646  echo $ECHO_N "(cached) $ECHO_C" >&6
     2647else
     2648  if test -n "$ac_ct_CXX"; then
     2649  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2650else
     2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2652for as_dir in $PATH
     2653do
     2654  IFS=$as_save_IFS
     2655  test -z "$as_dir" && as_dir=.
     2656  for ac_exec_ext in '' $ac_executable_extensions; do
     2657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2658    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2660    break 2
     2661  fi
    9892662done
    990 test -n "$CXX" || CXX="gcc"
    991 
    992 
    993 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    994 echo "configure:995: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    995 
    996 ac_ext=C
    997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    998 ac_cpp='$CXXCPP $CPPFLAGS'
    999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1001 cross_compiling=$ac_cv_prog_cxx_cross
    1002 
    1003 cat > conftest.$ac_ext << EOF
    1004 
    1005 #line 1006 "configure"
    1006 #include "confdefs.h"
    1007 
    1008 int main(){return(0);}
    1009 EOF
    1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1011   ac_cv_prog_cxx_works=yes
    1012   # If we can't run a trivial program, we are probably using a cross compiler.
    1013   if (./conftest; exit) 2>/dev/null; then
    1014     ac_cv_prog_cxx_cross=no
    1015   else
    1016     ac_cv_prog_cxx_cross=yes
    1017   fi
    1018 else
    1019   echo "configure: failed program was:" >&5
    1020   cat conftest.$ac_ext >&5
    1021   ac_cv_prog_cxx_works=no
    1022 fi
    1023 rm -fr conftest*
    1024 ac_ext=c
    1025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1026 ac_cpp='$CPP $CPPFLAGS'
    1027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1029 cross_compiling=$ac_cv_prog_cc_cross
    1030 
    1031 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    1032 if test $ac_cv_prog_cxx_works = no; then
    1033   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    1034 fi
    1035 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1036 echo "configure:1037: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1037 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    1038 cross_compiling=$ac_cv_prog_cxx_cross
    1039 
    1040 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1041 echo "configure:1042: checking whether we are using GNU C++" >&5
    1042 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    1043   echo $ac_n "(cached) $ac_c" 1>&6
    1044 else
    1045   cat > conftest.C <<EOF
    1046 #ifdef __GNUC__
    1047   yes;
     2663done
     2664
     2665fi
     2666fi
     2667ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2668if test -n "$ac_ct_CXX"; then
     2669  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2670echo "${ECHO_T}$ac_ct_CXX" >&6
     2671else
     2672  echo "$as_me:$LINENO: result: no" >&5
     2673echo "${ECHO_T}no" >&6
     2674fi
     2675
     2676  test -n "$ac_ct_CXX" && break
     2677done
     2678test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     2679
     2680  CXX=$ac_ct_CXX
     2681fi
     2682
     2683
     2684# Provide some information about the compiler.
     2685echo "$as_me:$LINENO:" \
     2686     "checking for C++ compiler version" >&5
     2687ac_compiler=`set X $ac_compile; echo $2`
     2688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2689  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2690  ac_status=$?
     2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2692  (exit $ac_status); }
     2693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2694  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2695  ac_status=$?
     2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2697  (exit $ac_status); }
     2698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2699  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2700  ac_status=$?
     2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2702  (exit $ac_status); }
     2703
     2704echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     2705echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     2706if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     2707  echo $ECHO_N "(cached) $ECHO_C" >&6
     2708else
     2709  cat >conftest.$ac_ext <<_ACEOF
     2710/* confdefs.h.  */
     2711_ACEOF
     2712cat confdefs.h >>conftest.$ac_ext
     2713cat >>conftest.$ac_ext <<_ACEOF
     2714/* end confdefs.h.  */
     2715
     2716int
     2717main ()
     2718{
     2719#ifndef __GNUC__
     2720       choke me
    10482721#endif
    1049 EOF
    1050 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1051   ac_cv_prog_gxx=yes
    1052 else
    1053   ac_cv_prog_gxx=no
    1054 fi
    1055 fi
    1056 
    1057 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    1058 
    1059 if test $ac_cv_prog_gxx = yes; then
    1060   GXX=yes
    1061 else
    1062   GXX=
    1063 fi
    1064 
    1065 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    1066 ac_save_CXXFLAGS="$CXXFLAGS"
    1067 CXXFLAGS=
    1068 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1069 echo "configure:1070: checking whether ${CXX-g++} accepts -g" >&5
    1070 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    1071   echo $ac_n "(cached) $ac_c" 1>&6
    1072 else
    1073   echo 'void f(){}' > conftest.cc
    1074 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     2722
     2723  ;
     2724  return 0;
     2725}
     2726_ACEOF
     2727rm -f conftest.$ac_objext
     2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2729  (eval $ac_compile) 2>conftest.er1
     2730  ac_status=$?
     2731  grep -v '^ *+' conftest.er1 >conftest.err
     2732  rm -f conftest.er1
     2733  cat conftest.err >&5
     2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2735  (exit $ac_status); } &&
     2736         { ac_try='test -z "$ac_cxx_werror_flag"
     2737                         || test ! -s conftest.err'
     2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2739  (eval $ac_try) 2>&5
     2740  ac_status=$?
     2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2742  (exit $ac_status); }; } &&
     2743         { ac_try='test -s conftest.$ac_objext'
     2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2745  (eval $ac_try) 2>&5
     2746  ac_status=$?
     2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2748  (exit $ac_status); }; }; then
     2749  ac_compiler_gnu=yes
     2750else
     2751  echo "$as_me: failed program was:" >&5
     2752sed 's/^/| /' conftest.$ac_ext >&5
     2753
     2754ac_compiler_gnu=no
     2755fi
     2756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2757ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     2758
     2759fi
     2760echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     2761echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     2762GXX=`test $ac_compiler_gnu = yes && echo yes`
     2763ac_test_CXXFLAGS=${CXXFLAGS+set}
     2764ac_save_CXXFLAGS=$CXXFLAGS
     2765CXXFLAGS="-g"
     2766echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     2767echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     2768if test "${ac_cv_prog_cxx_g+set}" = set; then
     2769  echo $ECHO_N "(cached) $ECHO_C" >&6
     2770else
     2771  cat >conftest.$ac_ext <<_ACEOF
     2772/* confdefs.h.  */
     2773_ACEOF
     2774cat confdefs.h >>conftest.$ac_ext
     2775cat >>conftest.$ac_ext <<_ACEOF
     2776/* end confdefs.h.  */
     2777
     2778int
     2779main ()
     2780{
     2781
     2782  ;
     2783  return 0;
     2784}
     2785_ACEOF
     2786rm -f conftest.$ac_objext
     2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2788  (eval $ac_compile) 2>conftest.er1
     2789  ac_status=$?
     2790  grep -v '^ *+' conftest.er1 >conftest.err
     2791  rm -f conftest.er1
     2792  cat conftest.err >&5
     2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2794  (exit $ac_status); } &&
     2795         { ac_try='test -z "$ac_cxx_werror_flag"
     2796                         || test ! -s conftest.err'
     2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2798  (eval $ac_try) 2>&5
     2799  ac_status=$?
     2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2801  (exit $ac_status); }; } &&
     2802         { ac_try='test -s conftest.$ac_objext'
     2803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2804  (eval $ac_try) 2>&5
     2805  ac_status=$?
     2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2807  (exit $ac_status); }; }; then
    10752808  ac_cv_prog_cxx_g=yes
    10762809else
    1077   ac_cv_prog_cxx_g=no
    1078 fi
    1079 rm -f conftest*
    1080 
    1081 fi
    1082 
    1083 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     2810  echo "$as_me: failed program was:" >&5
     2811sed 's/^/| /' conftest.$ac_ext >&5
     2812
     2813ac_cv_prog_cxx_g=no
     2814fi
     2815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2816fi
     2817echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2818echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    10842819if test "$ac_test_CXXFLAGS" = set; then
    1085   CXXFLAGS="$ac_save_CXXFLAGS"
     2820  CXXFLAGS=$ac_save_CXXFLAGS
    10862821elif test $ac_cv_prog_cxx_g = yes; then
    10872822  if test "$GXX" = yes; then
     
    10972832  fi
    10982833fi
     2834for ac_declaration in \
     2835   '' \
     2836   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2837   'extern "C" void std::exit (int); using std::exit;' \
     2838   'extern "C" void exit (int) throw ();' \
     2839   'extern "C" void exit (int);' \
     2840   'void exit (int);'
     2841do
     2842  cat >conftest.$ac_ext <<_ACEOF
     2843/* confdefs.h.  */
     2844_ACEOF
     2845cat confdefs.h >>conftest.$ac_ext
     2846cat >>conftest.$ac_ext <<_ACEOF
     2847/* end confdefs.h.  */
     2848$ac_declaration
     2849#include <stdlib.h>
     2850int
     2851main ()
     2852{
     2853exit (42);
     2854  ;
     2855  return 0;
     2856}
     2857_ACEOF
     2858rm -f conftest.$ac_objext
     2859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2860  (eval $ac_compile) 2>conftest.er1
     2861  ac_status=$?
     2862  grep -v '^ *+' conftest.er1 >conftest.err
     2863  rm -f conftest.er1
     2864  cat conftest.err >&5
     2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2866  (exit $ac_status); } &&
     2867         { ac_try='test -z "$ac_cxx_werror_flag"
     2868                         || test ! -s conftest.err'
     2869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2870  (eval $ac_try) 2>&5
     2871  ac_status=$?
     2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2873  (exit $ac_status); }; } &&
     2874         { ac_try='test -s conftest.$ac_objext'
     2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2876  (eval $ac_try) 2>&5
     2877  ac_status=$?
     2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2879  (exit $ac_status); }; }; then
     2880  :
     2881else
     2882  echo "$as_me: failed program was:" >&5
     2883sed 's/^/| /' conftest.$ac_ext >&5
     2884
     2885continue
     2886fi
     2887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2888  cat >conftest.$ac_ext <<_ACEOF
     2889/* confdefs.h.  */
     2890_ACEOF
     2891cat confdefs.h >>conftest.$ac_ext
     2892cat >>conftest.$ac_ext <<_ACEOF
     2893/* end confdefs.h.  */
     2894$ac_declaration
     2895int
     2896main ()
     2897{
     2898exit (42);
     2899  ;
     2900  return 0;
     2901}
     2902_ACEOF
     2903rm -f conftest.$ac_objext
     2904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2905  (eval $ac_compile) 2>conftest.er1
     2906  ac_status=$?
     2907  grep -v '^ *+' conftest.er1 >conftest.err
     2908  rm -f conftest.er1
     2909  cat conftest.err >&5
     2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2911  (exit $ac_status); } &&
     2912         { ac_try='test -z "$ac_cxx_werror_flag"
     2913                         || test ! -s conftest.err'
     2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2915  (eval $ac_try) 2>&5
     2916  ac_status=$?
     2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2918  (exit $ac_status); }; } &&
     2919         { ac_try='test -s conftest.$ac_objext'
     2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2921  (eval $ac_try) 2>&5
     2922  ac_status=$?
     2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2924  (exit $ac_status); }; }; then
     2925  break
     2926else
     2927  echo "$as_me: failed program was:" >&5
     2928sed 's/^/| /' conftest.$ac_ext >&5
     2929
     2930fi
     2931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2932done
     2933rm -f conftest*
     2934if test -n "$ac_declaration"; then
     2935  echo '#ifdef __cplusplus' >>confdefs.h
     2936  echo $ac_declaration      >>confdefs.h
     2937  echo '#endif'             >>confdefs.h
     2938fi
     2939
     2940ac_ext=c
     2941ac_cpp='$CPP $CPPFLAGS'
     2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
    10992945
    11002946ac_aux_dir=
     
    11082954    ac_install_sh="$ac_aux_dir/install.sh -c"
    11092955    break
     2956  elif test -f $ac_dir/shtool; then
     2957    ac_aux_dir=$ac_dir
     2958    ac_install_sh="$ac_aux_dir/shtool install -c"
     2959    break
    11102960  fi
    11112961done
    11122962if test -z "$ac_aux_dir"; then
    1113   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1114 fi
    1115 ac_config_guess=$ac_aux_dir/config.guess
    1116 ac_config_sub=$ac_aux_dir/config.sub
    1117 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2963  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2964echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2965   { (exit 1); exit 1; }; }
     2966fi
     2967ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2968ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2969ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    11182970
    11192971# Find a good install program.  We prefer a C program (faster),
     
    11242976# IRIX /sbin/install
    11252977# AIX /bin/install
     2978# AmigaOS /C/install, which installs bootblocks on floppy discs
    11262979# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    11272980# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    11282981# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2982# OS/2's system install, which has a completely different semantic
    11292983# ./install, which can be erroneously created by make from ./install.sh.
    1130 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1131 echo "configure:1132: checking for a BSD compatible install" >&5
     2984echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2985echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    11322986if test -z "$INSTALL"; then
    1133 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1134   echo $ac_n "(cached) $ac_c" 1>&6
    1135 else
    1136     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    1137   for ac_dir in $PATH; do
    1138     # Account for people who put trailing slashes in PATH elements.
    1139     case "$ac_dir/" in
    1140     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1141     *)
    1142       # OSF1 and SCO ODT 3.0 have their own names for install.
    1143       # Don't use installbsd from OSF since it installs stuff as root
    1144       # by default.
    1145       for ac_prog in ginstall scoinst install; do
    1146         if test -f $ac_dir/$ac_prog; then
     2987if test "${ac_cv_path_install+set}" = set; then
     2988  echo $ECHO_N "(cached) $ECHO_C" >&6
     2989else
     2990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2991for as_dir in $PATH
     2992do
     2993  IFS=$as_save_IFS
     2994  test -z "$as_dir" && as_dir=.
     2995  # Account for people who put trailing slashes in PATH elements.
     2996case $as_dir/ in
     2997  ./ | .// | /cC/* | \
     2998  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2999  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3000  /usr/ucb/* ) ;;
     3001  *)
     3002    # OSF1 and SCO ODT 3.0 have their own names for install.
     3003    # Don't use installbsd from OSF since it installs stuff as root
     3004    # by default.
     3005    for ac_prog in ginstall scoinst install; do
     3006      for ac_exec_ext in '' $ac_executable_extensions; do
     3007        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    11473008          if test $ac_prog = install &&
    1148             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     3009            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    11493010            # AIX install.  It has an incompatible calling convention.
    11503011            :
     3012          elif test $ac_prog = install &&
     3013            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3014            # program-specific install script used by HP pwplus--don't use.
     3015            :
    11513016          else
    1152             ac_cv_path_install="$ac_dir/$ac_prog -c"
    1153             break 2
     3017            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3018            break 3
    11543019          fi
    11553020        fi
    11563021      done
    1157       ;;
    1158     esac
    1159   done
    1160   IFS="$ac_save_IFS"
     3022    done
     3023    ;;
     3024esac
     3025done
     3026
    11613027
    11623028fi
    11633029  if test "${ac_cv_path_install+set}" = set; then
    1164     INSTALL="$ac_cv_path_install"
     3030    INSTALL=$ac_cv_path_install
    11653031  else
    11663032    # As a last resort, use the slow shell script.  We don't cache a
     
    11683034    # break other packages using the cache if that directory is
    11693035    # removed, or if the path is relative.
    1170     INSTALL="$ac_install_sh"
     3036    INSTALL=$ac_install_sh
    11713037  fi
    11723038fi
    1173 echo "$ac_t""$INSTALL" 1>&6
     3039echo "$as_me:$LINENO: result: $INSTALL" >&5
     3040echo "${ECHO_T}$INSTALL" >&6
    11743041
    11753042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    11773044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    11783045
    1179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    11803047
    11813048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    11823049
    1183 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1184 echo "configure:1185: checking for AIX" >&5
    1185 cat > conftest.$ac_ext <<EOF
    1186 #line 1187 "configure"
    1187 #include "confdefs.h"
     3050
     3051
     3052echo "$as_me:$LINENO: checking for egrep" >&5
     3053echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3054if test "${ac_cv_prog_egrep+set}" = set; then
     3055  echo $ECHO_N "(cached) $ECHO_C" >&6
     3056else
     3057  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3058    then ac_cv_prog_egrep='grep -E'
     3059    else ac_cv_prog_egrep='egrep'
     3060    fi
     3061fi
     3062echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3063echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3064 EGREP=$ac_cv_prog_egrep
     3065
     3066
     3067
     3068echo "$as_me:$LINENO: checking for AIX" >&5
     3069echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3070cat >conftest.$ac_ext <<_ACEOF
     3071/* confdefs.h.  */
     3072_ACEOF
     3073cat confdefs.h >>conftest.$ac_ext
     3074cat >>conftest.$ac_ext <<_ACEOF
     3075/* end confdefs.h.  */
    11883076#ifdef _AIX
    11893077  yes
    11903078#endif
    11913079
    1192 EOF
     3080_ACEOF
    11933081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1194   egrep "yes" >/dev/null 2>&1; then
    1195   rm -rf conftest*
    1196   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3082  $EGREP "yes" >/dev/null 2>&1; then
     3083  echo "$as_me:$LINENO: result: yes" >&5
     3084echo "${ECHO_T}yes" >&6
     3085cat >>confdefs.h <<\_ACEOF
    11973086#define _ALL_SOURCE 1
    1198 EOF
    1199 
    1200 else
    1201   rm -rf conftest*
    1202   echo "$ac_t""no" 1>&6
     3087_ACEOF
     3088
     3089else
     3090  echo "$as_me:$LINENO: result: no" >&5
     3091echo "${ECHO_T}no" >&6
    12033092fi
    12043093rm -f conftest*
     
    12093098#                       gcc3:        CC=gcc  CXX=g++
    12103099#                       other:       CC=cc   CXX=c++
    1211 echo $ac_n "checking gcc version""... $ac_c" 1>&6
    1212 echo "configure:1213: checking gcc version" >&5
    1213 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then
    1214   echo $ac_n "(cached) $ac_c" 1>&6
     3100echo "$as_me:$LINENO: checking gcc version" >&5
     3101echo $ECHO_N "checking gcc version... $ECHO_C" >&6
     3102if test "${ac_cv_c_cpp+set}" = set; then
     3103  echo $ECHO_N "(cached) $ECHO_C" >&6
    12153104else
    12163105  ac_cv_c_cp="unknown"
     
    12213110fi
    12223111
    1223 echo "$ac_t""$ac_cv_c_cpp" 1>&6
     3112echo "$as_me:$LINENO: result: $ac_cv_c_cpp" >&5
     3113echo "${ECHO_T}$ac_cv_c_cpp" >&6
    12243114
    12253115# we prefer using gcc for compiling C++ files, provided the user did
     
    12323122  fi
    12333123  temp_cflags=${CXXFLAGS}
    1234  
    1235   ac_ext=C
    1236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     3124
     3125
     3126  ac_ext=cc
    12373127ac_cpp='$CXXCPP $CPPFLAGS'
    1238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1240 cross_compiling=$ac_cv_prog_cxx_cross
     3128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    12413131
    12423132  # check whether gcc accepts --no-rtti
    1243   echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1244 echo "configure:1245: checking whether gcc accepts --no-rtti" >&5
     3133  echo "$as_me:$LINENO: checking whether gcc accepts --no-rtti" >&5
     3134echo $ECHO_N "checking whether gcc accepts --no-rtti... $ECHO_C" >&6
    12453135  CXXFLAGS="${CXXFLAGS} --no-rtti"
    1246   if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
    1247   echo $ac_n "(cached) $ac_c" 1>&6
    1248 else
    1249   cat > conftest.$ac_ext <<EOF
    1250 #line 1251 "configure"
    1251 #include "confdefs.h"
    1252 
    1253 int main() {
    1254 
    1255 ; return 0; }
    1256 EOF
    1257 if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1258   rm -rf conftest*
     3136  if test "${ac_cv_cxx_have_rtti+set}" = set; then
     3137  echo $ECHO_N "(cached) $ECHO_C" >&6
     3138else
     3139
     3140cat >conftest.$ac_ext <<_ACEOF
     3141/* confdefs.h.  */
     3142_ACEOF
     3143cat confdefs.h >>conftest.$ac_ext
     3144cat >>conftest.$ac_ext <<_ACEOF
     3145/* end confdefs.h.  */
     3146
     3147int
     3148main ()
     3149{
     3150
     3151  ;
     3152  return 0;
     3153}
     3154_ACEOF
     3155rm -f conftest.$ac_objext
     3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3157  (eval $ac_compile) 2>conftest.er1
     3158  ac_status=$?
     3159  grep -v '^ *+' conftest.er1 >conftest.err
     3160  rm -f conftest.er1
     3161  cat conftest.err >&5
     3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3163  (exit $ac_status); } &&
     3164         { ac_try='test -z "$ac_cxx_werror_flag"
     3165                         || test ! -s conftest.err'
     3166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3167  (eval $ac_try) 2>&5
     3168  ac_status=$?
     3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3170  (exit $ac_status); }; } &&
     3171         { ac_try='test -s conftest.$ac_objext'
     3172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3173  (eval $ac_try) 2>&5
     3174  ac_status=$?
     3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3176  (exit $ac_status); }; }; then
    12593177  ac_cv_cxx_have_rtti=yes
    12603178else
    1261   echo "configure: failed program was:" >&5
    1262   cat conftest.$ac_ext >&5
    1263   rm -rf conftest*
    1264   ac_cv_cxx_have_rtti=no
    1265 fi
    1266 rm -f conftest*
    1267  
    1268 fi
    1269 
    1270   echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
     3179  echo "$as_me: failed program was:" >&5
     3180sed 's/^/| /' conftest.$ac_ext >&5
     3181
     3182ac_cv_cxx_have_rtti=no
     3183fi
     3184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3185
     3186fi
     3187
     3188  echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5
     3189echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6
    12713190  if test "${ac_cv_cxx_have_rtti}" != yes; then
    12723191  CXXFLAGS=$temp_flags
     
    12763195
    12773196# check whether gcc accepts --no-exceptions
    1278   echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1279 echo "configure:1280: checking whether gcc accepts --no-exceptions" >&5
     3197  echo "$as_me:$LINENO: checking whether gcc accepts --no-exceptions" >&5
     3198echo $ECHO_N "checking whether gcc accepts --no-exceptions... $ECHO_C" >&6
    12803199  CXXFLAGS="${CXXFLAGS} --no-exceptions"
    1281   if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
    1282   echo $ac_n "(cached) $ac_c" 1>&6
    1283 else
    1284   cat > conftest.$ac_ext <<EOF
    1285 #line 1286 "configure"
    1286 #include "confdefs.h"
    1287 
    1288 int main() {
    1289 
    1290 ; return 0; }
    1291 EOF
    1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1293   rm -rf conftest*
     3200  if test "${ac_cv_cxx_have_exceptions+set}" = set; then
     3201  echo $ECHO_N "(cached) $ECHO_C" >&6
     3202else
     3203  cat >conftest.$ac_ext <<_ACEOF
     3204/* confdefs.h.  */
     3205_ACEOF
     3206cat confdefs.h >>conftest.$ac_ext
     3207cat >>conftest.$ac_ext <<_ACEOF
     3208/* end confdefs.h.  */
     3209
     3210int
     3211main ()
     3212{
     3213
     3214  ;
     3215  return 0;
     3216}
     3217_ACEOF
     3218rm -f conftest.$ac_objext conftest$ac_exeext
     3219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3220  (eval $ac_link) 2>conftest.er1
     3221  ac_status=$?
     3222  grep -v '^ *+' conftest.er1 >conftest.err
     3223  rm -f conftest.er1
     3224  cat conftest.err >&5
     3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3226  (exit $ac_status); } &&
     3227         { ac_try='test -z "$ac_cxx_werror_flag"
     3228                         || test ! -s conftest.err'
     3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3230  (eval $ac_try) 2>&5
     3231  ac_status=$?
     3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3233  (exit $ac_status); }; } &&
     3234         { ac_try='test -s conftest$ac_exeext'
     3235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3236  (eval $ac_try) 2>&5
     3237  ac_status=$?
     3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3239  (exit $ac_status); }; }; then
    12943240  ac_cv_cxx_have_exceptions=yes
    12953241else
    1296   echo "configure: failed program was:" >&5
    1297   cat conftest.$ac_ext >&5
    1298   rm -rf conftest*
    1299   ac_cv_cxx_have_exceptions=no
    1300 fi
    1301 rm -f conftest*
    1302  
    1303 fi
    1304 
    1305   echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
     3242  echo "$as_me: failed program was:" >&5
     3243sed 's/^/| /' conftest.$ac_ext >&5
     3244
     3245ac_cv_cxx_have_exceptions=no
     3246fi
     3247rm -f conftest.err conftest.$ac_objext \
     3248      conftest$ac_exeext conftest.$ac_ext
     3249
     3250fi
     3251
     3252  echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5
     3253echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6
    13063254  if test "${ac_cv_cxx_have_exceptions}" != yes; then
    13073255  CXXFLAGS=$temp_flags
     
    13113259
    13123260  ac_ext=c
    1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    13143261ac_cpp='$CPP $CPPFLAGS'
    1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1317 cross_compiling=$ac_cv_prog_cc_cross
     3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
    13183265
    13193266  #CXXFLAGS=$temp_flags
     
    13243271
    13253272# check whether the compiler accepts -pipe
    1326 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1327 echo "configure:1328: checking whether compiler accepts -pipe" >&5
     3273echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&5
     3274echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&6
    13283275temp_cflags=${CFLAGS}
    13293276CFLAGS="${CFLAGS} -pipe"
    1330 if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
    1331   echo $ac_n "(cached) $ac_c" 1>&6
    1332 else
    1333   cat > conftest.$ac_ext <<EOF
    1334 #line 1335 "configure"
    1335 #include "confdefs.h"
    1336 
    1337 int main() {
    1338 
    1339 ; return 0; }
    1340 EOF
    1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1342   rm -rf conftest*
     3277if test "${ac_cv_cxx_have_pipe+set}" = set; then
     3278  echo $ECHO_N "(cached) $ECHO_C" >&6
     3279else
     3280  cat >conftest.$ac_ext <<_ACEOF
     3281/* confdefs.h.  */
     3282_ACEOF
     3283cat confdefs.h >>conftest.$ac_ext
     3284cat >>conftest.$ac_ext <<_ACEOF
     3285/* end confdefs.h.  */
     3286
     3287int
     3288main ()
     3289{
     3290
     3291  ;
     3292  return 0;
     3293}
     3294_ACEOF
     3295rm -f conftest.$ac_objext
     3296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3297  (eval $ac_compile) 2>conftest.er1
     3298  ac_status=$?
     3299  grep -v '^ *+' conftest.er1 >conftest.err
     3300  rm -f conftest.er1
     3301  cat conftest.err >&5
     3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3303  (exit $ac_status); } &&
     3304         { ac_try='test -z "$ac_c_werror_flag"
     3305                         || test ! -s conftest.err'
     3306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3307  (eval $ac_try) 2>&5
     3308  ac_status=$?
     3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3310  (exit $ac_status); }; } &&
     3311         { ac_try='test -s conftest.$ac_objext'
     3312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3313  (eval $ac_try) 2>&5
     3314  ac_status=$?
     3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3316  (exit $ac_status); }; }; then
    13433317  ac_cv_cxx_have_pipe=yes
    13443318else
    1345   echo "configure: failed program was:" >&5
    1346   cat conftest.$ac_ext >&5
    1347   rm -rf conftest*
    1348   ac_cv_cxx_have_pipe=no
    1349 fi
    1350 rm -f conftest*
    1351 
    1352 fi
    1353 
    1354 echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
     3319  echo "$as_me: failed program was:" >&5
     3320sed 's/^/| /' conftest.$ac_ext >&5
     3321
     3322ac_cv_cxx_have_pipe=no
     3323fi
     3324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3325
     3326fi
     3327
     3328echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5
     3329echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6
    13553330CFLAGS=${temp_cflags}
    13563331if test "${ac_cv_cxx_have_pipe}" != yes; then
     
    13623337
    13633338# Customize CFLAGS
    1364 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1365 echo "configure:1366: checking whether _AIX is defined" >&5
    1366 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    1367   echo $ac_n "(cached) $ac_c" 1>&6
    1368 else
    1369   cat > conftest.$ac_ext <<EOF
    1370 #line 1371 "configure"
    1371 #include "confdefs.h"
     3339echo "$as_me:$LINENO: checking whether _AIX is defined" >&5
     3340echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6
     3341if test "${ac_cv_is_aix+set}" = set; then
     3342  echo $ECHO_N "(cached) $ECHO_C" >&6
     3343else
     3344  cat >conftest.$ac_ext <<_ACEOF
     3345/* confdefs.h.  */
     3346_ACEOF
     3347cat confdefs.h >>conftest.$ac_ext
     3348cat >>conftest.$ac_ext <<_ACEOF
     3349/* end confdefs.h.  */
    13723350#ifdef _AIX
    13733351    yes
    13743352#endif
    13753353
    1376 EOF
     3354_ACEOF
    13773355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1378   egrep "yes" >/dev/null 2>&1; then
    1379   rm -rf conftest*
     3356  $EGREP "yes" >/dev/null 2>&1; then
    13803357  ac_cv_is_aix=yes
    13813358else
    1382   rm -rf conftest*
    13833359  ac_cv_is_aix=no
    13843360fi
     
    13883364
    13893365if test "$ac_cv_is_aix" = yes; then
    1390   echo "$ac_t""yes" 1>&6
    1391 else
    1392   echo "$ac_t""no" 1>&6
     3366  echo "$as_me:$LINENO: result: yes" >&5
     3367echo "${ECHO_T}yes" >&6
     3368else
     3369  echo "$as_me:$LINENO: result: no" >&5
     3370echo "${ECHO_T}no" >&6
    13933371fi
    13943372
     
    14183396fi
    14193397
    1420 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1421 echo "configure:1422: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1422 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1423 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1424   echo $ac_n "(cached) $ac_c" 1>&6
    1425 else
    1426   cat > conftestmake <<\EOF
     3398echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3399echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     3400set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     3401if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     3402  echo $ECHO_N "(cached) $ECHO_C" >&6
     3403else
     3404  cat >conftest.make <<\_ACEOF
    14273405all:
    1428         @echo 'ac_maketemp="${MAKE}"'
    1429 EOF
     3406        @echo 'ac_maketemp="$(MAKE)"'
     3407_ACEOF
    14303408# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1431 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     3409eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    14323410if test -n "$ac_maketemp"; then
    14333411  eval ac_cv_prog_make_${ac_make}_set=yes
     
    14353413  eval ac_cv_prog_make_${ac_make}_set=no
    14363414fi
    1437 rm -f conftestmake
     3415rm -f conftest.make
    14383416fi
    14393417if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1440   echo "$ac_t""yes" 1>&6
     3418  echo "$as_me:$LINENO: result: yes" >&5
     3419echo "${ECHO_T}yes" >&6
    14413420  SET_MAKE=
    14423421else
    1443   echo "$ac_t""no" 1>&6
     3422  echo "$as_me:$LINENO: result: no" >&5
     3423echo "${ECHO_T}no" >&6
    14443424  SET_MAKE="MAKE=${MAKE-make}"
    14453425fi
     
    14523432test "x$prefix" = xNONE && prefix=$ac_default_prefix
    14533433if test "${with_rootdir+set}" != set; then
    1454   cat >> confdefs.h <<EOF
     3434  cat >>confdefs.h <<_ACEOF
    14553435#define S_ROOT_DIR "${prefix}"
    1456 EOF
    1457 
    1458 else
    1459   cat >> confdefs.h <<EOF
     3436_ACEOF
     3437
     3438else
     3439  cat >>confdefs.h <<_ACEOF
    14603440#define S_ROOT_DIR "${with_rootdir}"
    1461 EOF
     3441_ACEOF
    14623442
    14633443fi
     
    14723452SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
    14733453
    1474 cat >> confdefs.h <<EOF
     3454cat >>confdefs.h <<_ACEOF
    14753455#define S_BIN_DIR "${bindir}"
    1476 EOF
     3456_ACEOF
    14773457
    14783458
     
    15013481# lex
    15023482if test "${with_lex+set}" != set; then
    1503   echo $ac_n "checking for flex""... $ac_c" 1>&6
    1504 echo "configure:1505: checking for flex" >&5
     3483  echo "$as_me:$LINENO: checking for flex" >&5
     3484echo $ECHO_N "checking for flex... $ECHO_C" >&6
    15053485    cmd="egrep [2-9]\.[5-9]"
    1506     if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    1507   echo $ac_n "(cached) $ac_c" 1>&6
     3486    if test "${ac_cv_prog_flex+set}" = set; then
     3487  echo $ECHO_N "(cached) $ECHO_C" >&6
    15083488else
    15093489  if (flex --version >/dev/null 2>&1)
     
    15143494    fi
    15153495  fi
    1516  
     3496
    15173497fi
    15183498
    15193499    if test "${ac_cv_prog_flex+set}" = set; then
    1520     echo "$ac_t""flex" 1>&6
     3500    echo "$as_me:$LINENO: result: flex" >&5
     3501echo "${ECHO_T}flex" >&6
    15213502    LEX=flex
    1522    
     3503
    15233504  else
    1524     { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; }
     3505    { { echo "$as_me:$LINENO: error: can not find flex with version greater 2.4" >&5
     3506echo "$as_me: error: can not find flex with version greater 2.4" >&2;}
     3507   { (exit 1); exit 1; }; }
    15253508  fi
    15263509elif test "${with_lex}" = no; then
    1527   echo "configure: warning: building without lex -- make might fail" 1>&2
     3510  { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
     3511echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
    15283512else
    15293513  unset LEX
     
    15313515  for ac_prog in ${with_lex}
    15323516do
    1533 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3517  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15343518set dummy $ac_prog; ac_word=$2
    1535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1536 echo "configure:1537: checking for $ac_word" >&5
    1537 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    1538   echo $ac_n "(cached) $ac_c" 1>&6
     3519echo "$as_me:$LINENO: checking for $ac_word" >&5
     3520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3521if test "${ac_cv_prog_LEX+set}" = set; then
     3522  echo $ECHO_N "(cached) $ECHO_C" >&6
    15393523else
    15403524  if test -n "$LEX"; then
    15413525  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    15423526else
    1543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1544   ac_dummy="$PATH"
    1545   for ac_dir in $ac_dummy; do
    1546     test -z "$ac_dir" && ac_dir=.
    1547     if test -f $ac_dir/$ac_word; then
    1548       ac_cv_prog_LEX="$ac_prog"
    1549       break
    1550     fi
    1551   done
    1552   IFS="$ac_save_ifs"
    1553 fi
    1554 fi
    1555 LEX="$ac_cv_prog_LEX"
     3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3528for as_dir in $PATH
     3529do
     3530  IFS=$as_save_IFS
     3531  test -z "$as_dir" && as_dir=.
     3532  for ac_exec_ext in '' $ac_executable_extensions; do
     3533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3534    ac_cv_prog_LEX="$ac_prog"
     3535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3536    break 2
     3537  fi
     3538done
     3539done
     3540
     3541fi
     3542fi
     3543LEX=$ac_cv_prog_LEX
    15563544if test -n "$LEX"; then
    1557   echo "$ac_t""$LEX" 1>&6
    1558 else
    1559   echo "$ac_t""no" 1>&6
    1560 fi
    1561 
    1562 test -n "$LEX" && break
     3545  echo "$as_me:$LINENO: result: $LEX" >&5
     3546echo "${ECHO_T}$LEX" >&6
     3547else
     3548  echo "$as_me:$LINENO: result: no" >&5
     3549echo "${ECHO_T}no" >&6
     3550fi
     3551
     3552  test -n "$LEX" && break
    15633553done
    15643554
    15653555  if test "x${LEX}" = x; then
    1566     echo "configure: warning: building without lex -- make might fail" 1>&2
     3556    { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
     3557echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
    15673558  fi
    15683559fi
     
    15713562for ac_prog in bison
    15723563do
    1573 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3564  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15743565set dummy $ac_prog; ac_word=$2
    1575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1576 echo "configure:1577: checking for $ac_word" >&5
    1577 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    1578   echo $ac_n "(cached) $ac_c" 1>&6
     3566echo "$as_me:$LINENO: checking for $ac_word" >&5
     3567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3568if test "${ac_cv_prog_BISON+set}" = set; then
     3569  echo $ECHO_N "(cached) $ECHO_C" >&6
    15793570else
    15803571  if test -n "$BISON"; then
    15813572  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    15823573else
    1583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1584   ac_dummy="$PATH"
    1585   for ac_dir in $ac_dummy; do
    1586     test -z "$ac_dir" && ac_dir=.
    1587     if test -f $ac_dir/$ac_word; then
    1588       ac_cv_prog_BISON="$ac_prog"
    1589       break
    1590     fi
    1591   done
    1592   IFS="$ac_save_ifs"
    1593 fi
    1594 fi
    1595 BISON="$ac_cv_prog_BISON"
     3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3575for as_dir in $PATH
     3576do
     3577  IFS=$as_save_IFS
     3578  test -z "$as_dir" && as_dir=.
     3579  for ac_exec_ext in '' $ac_executable_extensions; do
     3580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3581    ac_cv_prog_BISON="$ac_prog"
     3582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3583    break 2
     3584  fi
     3585done
     3586done
     3587
     3588fi
     3589fi
     3590BISON=$ac_cv_prog_BISON
    15963591if test -n "$BISON"; then
    1597   echo "$ac_t""$BISON" 1>&6
    1598 else
    1599   echo "$ac_t""no" 1>&6
    1600 fi
    1601 
    1602 test -n "$BISON" && break
     3592  echo "$as_me:$LINENO: result: $BISON" >&5
     3593echo "${ECHO_T}$BISON" >&6
     3594else
     3595  echo "$as_me:$LINENO: result: no" >&5
     3596echo "${ECHO_T}no" >&6
     3597fi
     3598
     3599  test -n "$BISON" && break
    16033600done
    16043601
    16053602if test "${BISON+set}" != set; then
    1606   echo "configure: warning: did not find bison -- make might fail" 1>&2
     3603  { echo "$as_me:$LINENO: WARNING: did not find bison -- make might fail" >&5
     3604echo "$as_me: WARNING: did not find bison -- make might fail" >&2;}
    16073605fi
    16083606
    16093607# ln -s
    1610 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1611 echo "configure:1612: checking whether ln -s works" >&5
    1612 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1613   echo $ac_n "(cached) $ac_c" 1>&6
    1614 else
    1615   rm -f conftestdata
    1616 if ln -s X conftestdata 2>/dev/null
    1617 then
    1618   rm -f conftestdata
    1619   ac_cv_prog_LN_S="ln -s"
    1620 else
    1621   ac_cv_prog_LN_S=ln
    1622 fi
    1623 fi
    1624 LN_S="$ac_cv_prog_LN_S"
    1625 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1626   echo "$ac_t""yes" 1>&6
    1627 else
    1628   echo "$ac_t""no" 1>&6
     3608echo "$as_me:$LINENO: checking whether ln -s works" >&5
     3609echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     3610LN_S=$as_ln_s
     3611if test "$LN_S" = "ln -s"; then
     3612  echo "$as_me:$LINENO: result: yes" >&5
     3613echo "${ECHO_T}yes" >&6
     3614else
     3615  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     3616echo "${ECHO_T}no, using $LN_S" >&6
    16293617fi
    16303618
     
    16323620for ac_prog in perl5 perl
    16333621do
    1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
     3622  # Extract the first word of "$ac_prog", so it can be a program name with args.
    16353623set dummy $ac_prog; ac_word=$2
    1636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1637 echo "configure:1638: checking for $ac_word" >&5
    1638 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    1639   echo $ac_n "(cached) $ac_c" 1>&6
     3624echo "$as_me:$LINENO: checking for $ac_word" >&5
     3625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3626if test "${ac_cv_prog_PERL+set}" = set; then
     3627  echo $ECHO_N "(cached) $ECHO_C" >&6
    16403628else
    16413629  if test -n "$PERL"; then
    16423630  ac_cv_prog_PERL="$PERL" # Let the user override the test.
    16433631else
    1644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1645   ac_dummy="$PATH"
    1646   for ac_dir in $ac_dummy; do
    1647     test -z "$ac_dir" && ac_dir=.
    1648     if test -f $ac_dir/$ac_word; then
    1649       ac_cv_prog_PERL="$ac_prog"
    1650       break
    1651     fi
    1652   done
    1653   IFS="$ac_save_ifs"
    1654 fi
    1655 fi
    1656 PERL="$ac_cv_prog_PERL"
     3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3633for as_dir in $PATH
     3634do
     3635  IFS=$as_save_IFS
     3636  test -z "$as_dir" && as_dir=.
     3637  for ac_exec_ext in '' $ac_executable_extensions; do
     3638  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3639    ac_cv_prog_PERL="$ac_prog"
     3640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3641    break 2
     3642  fi
     3643done
     3644done
     3645
     3646fi
     3647fi
     3648PERL=$ac_cv_prog_PERL
    16573649if test -n "$PERL"; then
    1658   echo "$ac_t""$PERL" 1>&6
    1659 else
    1660   echo "$ac_t""no" 1>&6
    1661 fi
    1662 
    1663 test -n "$PERL" && break
     3650  echo "$as_me:$LINENO: result: $PERL" >&5
     3651echo "${ECHO_T}$PERL" >&6
     3652else
     3653  echo "$as_me:$LINENO: result: no" >&5
     3654echo "${ECHO_T}no" >&6
     3655fi
     3656
     3657  test -n "$PERL" && break
    16643658done
    16653659
     
    16693663# it really is the last thing to link with
    16703664if test "$ac_cv_singuname" != ix86-Win; then
    1671 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1672 echo "configure:1673: checking for atof in -lm" >&5
    1673 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    1674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1675   echo $ac_n "(cached) $ac_c" 1>&6
    1676 else
    1677   ac_save_LIBS="$LIBS"
     3665
     3666echo "$as_me:$LINENO: checking for atof in -lm" >&5
     3667echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6
     3668if test "${ac_cv_lib_m_atof+set}" = set; then
     3669  echo $ECHO_N "(cached) $ECHO_C" >&6
     3670else
     3671  ac_check_lib_save_LIBS=$LIBS
    16783672LIBS="-lm  $LIBS"
    1679 cat > conftest.$ac_ext <<EOF
    1680 #line 1681 "configure"
    1681 #include "confdefs.h"
     3673cat >conftest.$ac_ext <<_ACEOF
     3674/* confdefs.h.  */
     3675_ACEOF
     3676cat confdefs.h >>conftest.$ac_ext
     3677cat >>conftest.$ac_ext <<_ACEOF
     3678/* end confdefs.h.  */
     3679
    16823680/* Override any gcc2 internal prototype to avoid an error.  */
     3681#ifdef __cplusplus
     3682extern "C"
     3683#endif
    16833684/* We use char because int might match the return type of a gcc2
    1684     builtin and then its argument prototype would still apply.  */
    1685 char atof();
    1686 
    1687 int main() {
    1688 atof()
    1689 ; return 0; }
    1690 EOF
    1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1692   rm -rf conftest*
    1693   eval "ac_cv_lib_$ac_lib_var=yes"
    1694 else
    1695   echo "configure: failed program was:" >&5
    1696   cat conftest.$ac_ext >&5
    1697   rm -rf conftest*
    1698   eval "ac_cv_lib_$ac_lib_var=no"
    1699 fi
    1700 rm -f conftest*
    1701 LIBS="$ac_save_LIBS"
    1702 
    1703 fi
    1704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1705   echo "$ac_t""yes" 1>&6
    1706     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1707     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1708   cat >> confdefs.h <<EOF
    1709 #define $ac_tr_lib 1
    1710 EOF
     3685   builtin and then its argument prototype would still apply.  */
     3686char atof ();
     3687int
     3688main ()
     3689{
     3690atof ();
     3691  ;
     3692  return 0;
     3693}
     3694_ACEOF
     3695rm -f conftest.$ac_objext conftest$ac_exeext
     3696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3697  (eval $ac_link) 2>conftest.er1
     3698  ac_status=$?
     3699  grep -v '^ *+' conftest.er1 >conftest.err
     3700  rm -f conftest.er1
     3701  cat conftest.err >&5
     3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3703  (exit $ac_status); } &&
     3704         { ac_try='test -z "$ac_c_werror_flag"
     3705                         || test ! -s conftest.err'
     3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3707  (eval $ac_try) 2>&5
     3708  ac_status=$?
     3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3710  (exit $ac_status); }; } &&
     3711         { ac_try='test -s conftest$ac_exeext'
     3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3713  (eval $ac_try) 2>&5
     3714  ac_status=$?
     3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3716  (exit $ac_status); }; }; then
     3717  ac_cv_lib_m_atof=yes
     3718else
     3719  echo "$as_me: failed program was:" >&5
     3720sed 's/^/| /' conftest.$ac_ext >&5
     3721
     3722ac_cv_lib_m_atof=no
     3723fi
     3724rm -f conftest.err conftest.$ac_objext \
     3725      conftest$ac_exeext conftest.$ac_ext
     3726LIBS=$ac_check_lib_save_LIBS
     3727fi
     3728echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5
     3729echo "${ECHO_T}$ac_cv_lib_m_atof" >&6
     3730if test $ac_cv_lib_m_atof = yes; then
     3731  cat >>confdefs.h <<_ACEOF
     3732#define HAVE_LIBM 1
     3733_ACEOF
    17113734
    17123735  LIBS="-lm $LIBS"
    17133736
    1714 else
    1715   echo "$ac_t""no" 1>&6
    17163737fi
    17173738
     
    17203741LIBS=
    17213742
    1722 echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6
    1723 echo "configure:1724: checking for setenv in -lbsd" >&5
    1724 ac_lib_var=`echo bsd'_'setenv | 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"
     3743
     3744echo "$as_me:$LINENO: checking for setenv in -lbsd" >&5
     3745echo $ECHO_N "checking for setenv in -lbsd... $ECHO_C" >&6
     3746if test "${ac_cv_lib_bsd_setenv+set}" = set; then
     3747  echo $ECHO_N "(cached) $ECHO_C" >&6
     3748else
     3749  ac_check_lib_save_LIBS=$LIBS
    17293750LIBS="-lbsd  $LIBS"
    1730 cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
    1732 #include "confdefs.h"
     3751cat >conftest.$ac_ext <<_ACEOF
     3752/* confdefs.h.  */
     3753_ACEOF
     3754cat confdefs.h >>conftest.$ac_ext
     3755cat >>conftest.$ac_ext <<_ACEOF
     3756/* end confdefs.h.  */
     3757
    17333758/* Override any gcc2 internal prototype to avoid an error.  */
     3759#ifdef __cplusplus
     3760extern "C"
     3761#endif
    17343762/* 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 setenv();
    1737 
    1738 int main() {
    1739 setenv()
    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 bsd | 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
     3763   builtin and then its argument prototype would still apply.  */
     3764char setenv ();
     3765int
     3766main ()
     3767{
     3768setenv ();
     3769  ;
     3770  return 0;
     3771}
     3772_ACEOF
     3773rm -f conftest.$ac_objext conftest$ac_exeext
     3774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3775  (eval $ac_link) 2>conftest.er1
     3776  ac_status=$?
     3777  grep -v '^ *+' conftest.er1 >conftest.err
     3778  rm -f conftest.er1
     3779  cat conftest.err >&5
     3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3781  (exit $ac_status); } &&
     3782         { ac_try='test -z "$ac_c_werror_flag"
     3783                         || test ! -s conftest.err'
     3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3785  (eval $ac_try) 2>&5
     3786  ac_status=$?
     3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3788  (exit $ac_status); }; } &&
     3789         { ac_try='test -s conftest$ac_exeext'
     3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3791  (eval $ac_try) 2>&5
     3792  ac_status=$?
     3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3794  (exit $ac_status); }; }; then
     3795  ac_cv_lib_bsd_setenv=yes
     3796else
     3797  echo "$as_me: failed program was:" >&5
     3798sed 's/^/| /' conftest.$ac_ext >&5
     3799
     3800ac_cv_lib_bsd_setenv=no
     3801fi
     3802rm -f conftest.err conftest.$ac_objext \
     3803      conftest$ac_exeext conftest.$ac_ext
     3804LIBS=$ac_check_lib_save_LIBS
     3805fi
     3806echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_setenv" >&5
     3807echo "${ECHO_T}$ac_cv_lib_bsd_setenv" >&6
     3808if test $ac_cv_lib_bsd_setenv = yes; then
     3809  cat >>confdefs.h <<_ACEOF
     3810#define HAVE_LIBBSD 1
     3811_ACEOF
    17623812
    17633813  LIBS="-lbsd $LIBS"
    17643814
    1765 else
    1766   echo "$ac_t""no" 1>&6
    17673815fi
    17683816
     
    17703818case "$ac_cv_singuname" in
    17713819        HPUX*)
    1772           echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    1773 echo "configure:1774: checking for shl_load in -ldld" >&5
    1774 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    1775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1776   echo $ac_n "(cached) $ac_c" 1>&6
    1777 else
    1778   ac_save_LIBS="$LIBS"
     3820
     3821echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     3822echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
     3823if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     3824  echo $ECHO_N "(cached) $ECHO_C" >&6
     3825else
     3826  ac_check_lib_save_LIBS=$LIBS
    17793827LIBS="-ldld  $LIBS"
    1780 cat > conftest.$ac_ext <<EOF
    1781 #line 1782 "configure"
    1782 #include "confdefs.h"
     3828cat >conftest.$ac_ext <<_ACEOF
     3829/* confdefs.h.  */
     3830_ACEOF
     3831cat confdefs.h >>conftest.$ac_ext
     3832cat >>conftest.$ac_ext <<_ACEOF
     3833/* end confdefs.h.  */
     3834
    17833835/* Override any gcc2 internal prototype to avoid an error.  */
     3836#ifdef __cplusplus
     3837extern "C"
     3838#endif
    17843839/* We use char because int might match the return type of a gcc2
    1785     builtin and then its argument prototype would still apply.  */
    1786 char shl_load();
    1787 
    1788 int main() {
    1789 shl_load()
    1790 ; return 0; }
    1791 EOF
    1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1793   rm -rf conftest*
    1794   eval "ac_cv_lib_$ac_lib_var=yes"
    1795 else
    1796   echo "configure: failed program was:" >&5
    1797   cat conftest.$ac_ext >&5
    1798   rm -rf conftest*
    1799   eval "ac_cv_lib_$ac_lib_var=no"
    1800 fi
    1801 rm -f conftest*
    1802 LIBS="$ac_save_LIBS"
    1803 
    1804 fi
    1805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1806   echo "$ac_t""yes" 1>&6
    1807     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1808     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1809   cat >> confdefs.h <<EOF
    1810 #define $ac_tr_lib 1
    1811 EOF
     3840   builtin and then its argument prototype would still apply.  */
     3841char shl_load ();
     3842int
     3843main ()
     3844{
     3845shl_load ();
     3846  ;
     3847  return 0;
     3848}
     3849_ACEOF
     3850rm -f conftest.$ac_objext conftest$ac_exeext
     3851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3852  (eval $ac_link) 2>conftest.er1
     3853  ac_status=$?
     3854  grep -v '^ *+' conftest.er1 >conftest.err
     3855  rm -f conftest.er1
     3856  cat conftest.err >&5
     3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3858  (exit $ac_status); } &&
     3859         { ac_try='test -z "$ac_c_werror_flag"
     3860                         || test ! -s conftest.err'
     3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3862  (eval $ac_try) 2>&5
     3863  ac_status=$?
     3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3865  (exit $ac_status); }; } &&
     3866         { ac_try='test -s conftest$ac_exeext'
     3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3868  (eval $ac_try) 2>&5
     3869  ac_status=$?
     3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3871  (exit $ac_status); }; }; then
     3872  ac_cv_lib_dld_shl_load=yes
     3873else
     3874  echo "$as_me: failed program was:" >&5
     3875sed 's/^/| /' conftest.$ac_ext >&5
     3876
     3877ac_cv_lib_dld_shl_load=no
     3878fi
     3879rm -f conftest.err conftest.$ac_objext \
     3880      conftest$ac_exeext conftest.$ac_ext
     3881LIBS=$ac_check_lib_save_LIBS
     3882fi
     3883echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     3884echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
     3885if test $ac_cv_lib_dld_shl_load = yes; then
     3886  cat >>confdefs.h <<_ACEOF
     3887#define HAVE_LIBDLD 1
     3888_ACEOF
    18123889
    18133890  LIBS="-ldld $LIBS"
    18143891
    1815 else
    1816   echo "$ac_t""no" 1>&6
    18173892fi
    18183893
     
    18263901        ;;
    18273902        *Linux*)
    1828           echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1829 echo "configure:1830: checking for dlopen in -ldl" >&5
    1830 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    1831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1832   echo $ac_n "(cached) $ac_c" 1>&6
    1833 else
    1834   ac_save_LIBS="$LIBS"
     3903
     3904echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     3905echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     3906if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     3907  echo $ECHO_N "(cached) $ECHO_C" >&6
     3908else
     3909  ac_check_lib_save_LIBS=$LIBS
    18353910LIBS="-ldl  $LIBS"
    1836 cat > conftest.$ac_ext <<EOF
    1837 #line 1838 "configure"
    1838 #include "confdefs.h"
     3911cat >conftest.$ac_ext <<_ACEOF
     3912/* confdefs.h.  */
     3913_ACEOF
     3914cat confdefs.h >>conftest.$ac_ext
     3915cat >>conftest.$ac_ext <<_ACEOF
     3916/* end confdefs.h.  */
     3917
    18393918/* Override any gcc2 internal prototype to avoid an error.  */
     3919#ifdef __cplusplus
     3920extern "C"
     3921#endif
    18403922/* We use char because int might match the return type of a gcc2
    1841     builtin and then its argument prototype would still apply.  */
    1842 char dlopen();
    1843 
    1844 int main() {
    1845 dlopen()
    1846 ; return 0; }
    1847 EOF
    1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1849   rm -rf conftest*
    1850   eval "ac_cv_lib_$ac_lib_var=yes"
    1851 else
    1852   echo "configure: failed program was:" >&5
    1853   cat conftest.$ac_ext >&5
    1854   rm -rf conftest*
    1855   eval "ac_cv_lib_$ac_lib_var=no"
    1856 fi
    1857 rm -f conftest*
    1858 LIBS="$ac_save_LIBS"
    1859 
    1860 fi
    1861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1862   echo "$ac_t""yes" 1>&6
    1863     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1864     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1865   cat >> confdefs.h <<EOF
    1866 #define $ac_tr_lib 1
    1867 EOF
     3923   builtin and then its argument prototype would still apply.  */
     3924char dlopen ();
     3925int
     3926main ()
     3927{
     3928dlopen ();
     3929  ;
     3930  return 0;
     3931}
     3932_ACEOF
     3933rm -f conftest.$ac_objext conftest$ac_exeext
     3934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3935  (eval $ac_link) 2>conftest.er1
     3936  ac_status=$?
     3937  grep -v '^ *+' conftest.er1 >conftest.err
     3938  rm -f conftest.er1
     3939  cat conftest.err >&5
     3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3941  (exit $ac_status); } &&
     3942         { ac_try='test -z "$ac_c_werror_flag"
     3943                         || test ! -s conftest.err'
     3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3945  (eval $ac_try) 2>&5
     3946  ac_status=$?
     3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3948  (exit $ac_status); }; } &&
     3949         { ac_try='test -s conftest$ac_exeext'
     3950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3951  (eval $ac_try) 2>&5
     3952  ac_status=$?
     3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3954  (exit $ac_status); }; }; then
     3955  ac_cv_lib_dl_dlopen=yes
     3956else
     3957  echo "$as_me: failed program was:" >&5
     3958sed 's/^/| /' conftest.$ac_ext >&5
     3959
     3960ac_cv_lib_dl_dlopen=no
     3961fi
     3962rm -f conftest.err conftest.$ac_objext \
     3963      conftest$ac_exeext conftest.$ac_ext
     3964LIBS=$ac_check_lib_save_LIBS
     3965fi
     3966echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     3967echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     3968if test $ac_cv_lib_dl_dlopen = yes; then
     3969  cat >>confdefs.h <<_ACEOF
     3970#define HAVE_LIBDL 1
     3971_ACEOF
    18683972
    18693973  LIBS="-ldl $LIBS"
    18703974
    1871 else
    1872   echo "$ac_t""no" 1>&6
    18733975fi
    18743976
     
    18763978                LD_DYN_FLAGS="-ldl -rdynamic"
    18773979                SFLAGS="-fpic -DPIC"
    1878                 SLDFLAGS=-shared 
     3980                SLDFLAGS=-shared
    18793981                LD=ld
    18803982                ac_lib_dl=yes
     
    18893991        ;;
    18903992        SunOS-5)
    1891           echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1892 echo "configure:1893: checking for dlopen in -ldl" >&5
    1893 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    1894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1895   echo $ac_n "(cached) $ac_c" 1>&6
    1896 else
    1897   ac_save_LIBS="$LIBS"
     3993
     3994echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     3995echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     3996if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     3997  echo $ECHO_N "(cached) $ECHO_C" >&6
     3998else
     3999  ac_check_lib_save_LIBS=$LIBS
    18984000LIBS="-ldl  $LIBS"
    1899 cat > conftest.$ac_ext <<EOF
    1900 #line 1901 "configure"
    1901 #include "confdefs.h"
     4001cat >conftest.$ac_ext <<_ACEOF
     4002/* confdefs.h.  */
     4003_ACEOF
     4004cat confdefs.h >>conftest.$ac_ext
     4005cat >>conftest.$ac_ext <<_ACEOF
     4006/* end confdefs.h.  */
     4007
    19024008/* Override any gcc2 internal prototype to avoid an error.  */
     4009#ifdef __cplusplus
     4010extern "C"
     4011#endif
    19034012/* We use char because int might match the return type of a gcc2
    1904     builtin and then its argument prototype would still apply.  */
    1905 char dlopen();
    1906 
    1907 int main() {
    1908 dlopen()
    1909 ; return 0; }
    1910 EOF
    1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1912   rm -rf conftest*
    1913   eval "ac_cv_lib_$ac_lib_var=yes"
    1914 else
    1915   echo "configure: failed program was:" >&5
    1916   cat conftest.$ac_ext >&5
    1917   rm -rf conftest*
    1918   eval "ac_cv_lib_$ac_lib_var=no"
    1919 fi
    1920 rm -f conftest*
    1921 LIBS="$ac_save_LIBS"
    1922 
    1923 fi
    1924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1925   echo "$ac_t""yes" 1>&6
    1926     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1927     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1928   cat >> confdefs.h <<EOF
    1929 #define $ac_tr_lib 1
    1930 EOF
     4013   builtin and then its argument prototype would still apply.  */
     4014char dlopen ();
     4015int
     4016main ()
     4017{
     4018dlopen ();
     4019  ;
     4020  return 0;
     4021}
     4022_ACEOF
     4023rm -f conftest.$ac_objext conftest$ac_exeext
     4024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4025  (eval $ac_link) 2>conftest.er1
     4026  ac_status=$?
     4027  grep -v '^ *+' conftest.er1 >conftest.err
     4028  rm -f conftest.er1
     4029  cat conftest.err >&5
     4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4031  (exit $ac_status); } &&
     4032         { ac_try='test -z "$ac_c_werror_flag"
     4033                         || test ! -s conftest.err'
     4034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4035  (eval $ac_try) 2>&5
     4036  ac_status=$?
     4037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4038  (exit $ac_status); }; } &&
     4039         { ac_try='test -s conftest$ac_exeext'
     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); }; }; then
     4045  ac_cv_lib_dl_dlopen=yes
     4046else
     4047  echo "$as_me: failed program was:" >&5
     4048sed 's/^/| /' conftest.$ac_ext >&5
     4049
     4050ac_cv_lib_dl_dlopen=no
     4051fi
     4052rm -f conftest.err conftest.$ac_objext \
     4053      conftest$ac_exeext conftest.$ac_ext
     4054LIBS=$ac_check_lib_save_LIBS
     4055fi
     4056echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4057echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     4058if test $ac_cv_lib_dl_dlopen = yes; then
     4059  cat >>confdefs.h <<_ACEOF
     4060#define HAVE_LIBDL 1
     4061_ACEOF
    19314062
    19324063  LIBS="-ldl $LIBS"
    19334064
    1934 else
    1935   echo "$ac_t""no" 1>&6
    19364065fi
    19374066
     
    19464075        #use export MACOSX_DEPLOYMENT_TARGET=10.3
    19474076        ppcMac-darwin)
    1948           echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1949 echo "configure:1950: checking for dlopen in -ldl" >&5
    1950 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1952   echo $ac_n "(cached) $ac_c" 1>&6
    1953 else
    1954   ac_save_LIBS="$LIBS"
     4077
     4078echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4079echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     4080if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     4081  echo $ECHO_N "(cached) $ECHO_C" >&6
     4082else
     4083  ac_check_lib_save_LIBS=$LIBS
    19554084LIBS="-ldl  $LIBS"
    1956 cat > conftest.$ac_ext <<EOF
    1957 #line 1958 "configure"
    1958 #include "confdefs.h"
     4085cat >conftest.$ac_ext <<_ACEOF
     4086/* confdefs.h.  */
     4087_ACEOF
     4088cat confdefs.h >>conftest.$ac_ext
     4089cat >>conftest.$ac_ext <<_ACEOF
     4090/* end confdefs.h.  */
     4091
    19594092/* Override any gcc2 internal prototype to avoid an error.  */
     4093#ifdef __cplusplus
     4094extern "C"
     4095#endif
    19604096/* We use char because int might match the return type of a gcc2
    1961     builtin and then its argument prototype would still apply.  */
    1962 char dlopen();
    1963 
    1964 int main() {
    1965 dlopen()
    1966 ; return 0; }
    1967 EOF
    1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1969   rm -rf conftest*
    1970   eval "ac_cv_lib_$ac_lib_var=yes"
    1971 else
    1972   echo "configure: failed program was:" >&5
    1973   cat conftest.$ac_ext >&5
    1974   rm -rf conftest*
    1975   eval "ac_cv_lib_$ac_lib_var=no"
    1976 fi
    1977 rm -f conftest*
    1978 LIBS="$ac_save_LIBS"
    1979 
    1980 fi
    1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1982   echo "$ac_t""yes" 1>&6
    1983     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1984     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1985   cat >> confdefs.h <<EOF
    1986 #define $ac_tr_lib 1
    1987 EOF
     4097   builtin and then its argument prototype would still apply.  */
     4098char dlopen ();
     4099int
     4100main ()
     4101{
     4102dlopen ();
     4103  ;
     4104  return 0;
     4105}
     4106_ACEOF
     4107rm -f conftest.$ac_objext conftest$ac_exeext
     4108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4109  (eval $ac_link) 2>conftest.er1
     4110  ac_status=$?
     4111  grep -v '^ *+' conftest.er1 >conftest.err
     4112  rm -f conftest.er1
     4113  cat conftest.err >&5
     4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4115  (exit $ac_status); } &&
     4116         { ac_try='test -z "$ac_c_werror_flag"
     4117                         || test ! -s conftest.err'
     4118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4119  (eval $ac_try) 2>&5
     4120  ac_status=$?
     4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4122  (exit $ac_status); }; } &&
     4123         { ac_try='test -s conftest$ac_exeext'
     4124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4125  (eval $ac_try) 2>&5
     4126  ac_status=$?
     4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4128  (exit $ac_status); }; }; then
     4129  ac_cv_lib_dl_dlopen=yes
     4130else
     4131  echo "$as_me: failed program was:" >&5
     4132sed 's/^/| /' conftest.$ac_ext >&5
     4133
     4134ac_cv_lib_dl_dlopen=no
     4135fi
     4136rm -f conftest.err conftest.$ac_objext \
     4137      conftest$ac_exeext conftest.$ac_ext
     4138LIBS=$ac_check_lib_save_LIBS
     4139fi
     4140echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4141echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     4142if test $ac_cv_lib_dl_dlopen = yes; then
     4143  cat >>confdefs.h <<_ACEOF
     4144#define HAVE_LIBDL 1
     4145_ACEOF
    19884146
    19894147  LIBS="-ldl $LIBS"
    19904148
    1991 else
    1992   echo "$ac_t""no" 1>&6
     4149fi
     4150
     4151          if test "$ac_cv_lib_dl_dlopen" = yes; then
     4152                LD_DYN_FLAGS="-ldl -dynamic"
     4153                SFLAGS="-fpic -DPIC"
     4154                SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup"
     4155                LD=libtool
     4156                ac_lib_dl=yes
     4157          fi
     4158        ;;
     4159        i386Mac-darwin)
     4160
     4161echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4162echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     4163if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     4164  echo $ECHO_N "(cached) $ECHO_C" >&6
     4165else
     4166  ac_check_lib_save_LIBS=$LIBS
     4167LIBS="-ldl  $LIBS"
     4168cat >conftest.$ac_ext <<_ACEOF
     4169/* confdefs.h.  */
     4170_ACEOF
     4171cat confdefs.h >>conftest.$ac_ext
     4172cat >>conftest.$ac_ext <<_ACEOF
     4173/* end confdefs.h.  */
     4174
     4175/* Override any gcc2 internal prototype to avoid an error.  */
     4176#ifdef __cplusplus
     4177extern "C"
     4178#endif
     4179/* We use char because int might match the return type of a gcc2
     4180   builtin and then its argument prototype would still apply.  */
     4181char dlopen ();
     4182int
     4183main ()
     4184{
     4185dlopen ();
     4186  ;
     4187  return 0;
     4188}
     4189_ACEOF
     4190rm -f conftest.$ac_objext conftest$ac_exeext
     4191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4192  (eval $ac_link) 2>conftest.er1
     4193  ac_status=$?
     4194  grep -v '^ *+' conftest.er1 >conftest.err
     4195  rm -f conftest.er1
     4196  cat conftest.err >&5
     4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4198  (exit $ac_status); } &&
     4199         { ac_try='test -z "$ac_c_werror_flag"
     4200                         || test ! -s conftest.err'
     4201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4202  (eval $ac_try) 2>&5
     4203  ac_status=$?
     4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4205  (exit $ac_status); }; } &&
     4206         { ac_try='test -s conftest$ac_exeext'
     4207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4208  (eval $ac_try) 2>&5
     4209  ac_status=$?
     4210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4211  (exit $ac_status); }; }; then
     4212  ac_cv_lib_dl_dlopen=yes
     4213else
     4214  echo "$as_me: failed program was:" >&5
     4215sed 's/^/| /' conftest.$ac_ext >&5
     4216
     4217ac_cv_lib_dl_dlopen=no
     4218fi
     4219rm -f conftest.err conftest.$ac_objext \
     4220      conftest$ac_exeext conftest.$ac_ext
     4221LIBS=$ac_check_lib_save_LIBS
     4222fi
     4223echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4224echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     4225if test $ac_cv_lib_dl_dlopen = yes; then
     4226  cat >>confdefs.h <<_ACEOF
     4227#define HAVE_LIBDL 1
     4228_ACEOF
     4229
     4230  LIBS="-ldl $LIBS"
     4231
    19934232fi
    19944233
     
    20024241        ;;
    20034242        ix86-freebsd)
    2004           echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
    2005 echo "configure:2006: checking for dlopen in -lc" >&5
    2006 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
    2007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2008   echo $ac_n "(cached) $ac_c" 1>&6
    2009 else
    2010   ac_save_LIBS="$LIBS"
     4243
     4244echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
     4245echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6
     4246if test "${ac_cv_lib_c_dlopen+set}" = set; then
     4247  echo $ECHO_N "(cached) $ECHO_C" >&6
     4248else
     4249  ac_check_lib_save_LIBS=$LIBS
    20114250LIBS="-lc  $LIBS"
    2012 cat > conftest.$ac_ext <<EOF
    2013 #line 2014 "configure"
    2014 #include "confdefs.h"
     4251cat >conftest.$ac_ext <<_ACEOF
     4252/* confdefs.h.  */
     4253_ACEOF
     4254cat confdefs.h >>conftest.$ac_ext
     4255cat >>conftest.$ac_ext <<_ACEOF
     4256/* end confdefs.h.  */
     4257
    20154258/* Override any gcc2 internal prototype to avoid an error.  */
     4259#ifdef __cplusplus
     4260extern "C"
     4261#endif
    20164262/* We use char because int might match the return type of a gcc2
    2017     builtin and then its argument prototype would still apply.  */
    2018 char dlopen();
    2019 
    2020 int main() {
    2021 dlopen()
    2022 ; return 0; }
    2023 EOF
    2024 if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2025   rm -rf conftest*
    2026   eval "ac_cv_lib_$ac_lib_var=yes"
    2027 else
    2028   echo "configure: failed program was:" >&5
    2029   cat conftest.$ac_ext >&5
    2030   rm -rf conftest*
    2031   eval "ac_cv_lib_$ac_lib_var=no"
    2032 fi
    2033 rm -f conftest*
    2034 LIBS="$ac_save_LIBS"
    2035 
    2036 fi
    2037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2038   echo "$ac_t""yes" 1>&6
    2039     ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2040     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2041   cat >> confdefs.h <<EOF
    2042 #define $ac_tr_lib 1
    2043 EOF
     4263   builtin and then its argument prototype would still apply.  */
     4264char dlopen ();
     4265int
     4266main ()
     4267{
     4268dlopen ();
     4269  ;
     4270  return 0;
     4271}
     4272_ACEOF
     4273rm -f conftest.$ac_objext conftest$ac_exeext
     4274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4275  (eval $ac_link) 2>conftest.er1
     4276  ac_status=$?
     4277  grep -v '^ *+' conftest.er1 >conftest.err
     4278  rm -f conftest.er1
     4279  cat conftest.err >&5
     4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4281  (exit $ac_status); } &&
     4282         { ac_try='test -z "$ac_c_werror_flag"
     4283                         || test ! -s conftest.err'
     4284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4285  (eval $ac_try) 2>&5
     4286  ac_status=$?
     4287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4288  (exit $ac_status); }; } &&
     4289         { ac_try='test -s conftest$ac_exeext'
     4290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4291  (eval $ac_try) 2>&5
     4292  ac_status=$?
     4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4294  (exit $ac_status); }; }; then
     4295  ac_cv_lib_c_dlopen=yes
     4296else
     4297  echo "$as_me: failed program was:" >&5
     4298sed 's/^/| /' conftest.$ac_ext >&5
     4299
     4300ac_cv_lib_c_dlopen=no
     4301fi
     4302rm -f conftest.err conftest.$ac_objext \
     4303      conftest$ac_exeext conftest.$ac_ext
     4304LIBS=$ac_check_lib_save_LIBS
     4305fi
     4306echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
     4307echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6
     4308if test $ac_cv_lib_c_dlopen = yes; then
     4309  cat >>confdefs.h <<_ACEOF
     4310#define HAVE_LIBC 1
     4311_ACEOF
    20444312
    20454313  LIBS="-lc $LIBS"
    20464314
    2047 else
    2048   echo "$ac_t""no" 1>&6
    20494315fi
    20504316
     
    20664332
    20674333# heder file checks
    2068 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2069 echo "configure:2070: checking for ANSI C header files" >&5
    2070 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2071   echo $ac_n "(cached) $ac_c" 1>&6
    2072 else
    2073   cat > conftest.$ac_ext <<EOF
    2074 #line 2075 "configure"
    2075 #include "confdefs.h"
     4334echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4336if test "${ac_cv_header_stdc+set}" = set; then
     4337  echo $ECHO_N "(cached) $ECHO_C" >&6
     4338else
     4339  cat >conftest.$ac_ext <<_ACEOF
     4340/* confdefs.h.  */
     4341_ACEOF
     4342cat confdefs.h >>conftest.$ac_ext
     4343cat >>conftest.$ac_ext <<_ACEOF
     4344/* end confdefs.h.  */
    20764345#include <stdlib.h>
    20774346#include <stdarg.h>
    20784347#include <string.h>
    20794348#include <float.h>
    2080 EOF
    2081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2082 { (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2084 if test -z "$ac_err"; then
    2085   rm -rf conftest*
     4349
     4350int
     4351main ()
     4352{
     4353
     4354  ;
     4355  return 0;
     4356}
     4357_ACEOF
     4358rm -f conftest.$ac_objext
     4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4360  (eval $ac_compile) 2>conftest.er1
     4361  ac_status=$?
     4362  grep -v '^ *+' conftest.er1 >conftest.err
     4363  rm -f conftest.er1
     4364  cat conftest.err >&5
     4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4366  (exit $ac_status); } &&
     4367         { ac_try='test -z "$ac_c_werror_flag"
     4368                         || test ! -s conftest.err'
     4369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4370  (eval $ac_try) 2>&5
     4371  ac_status=$?
     4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4373  (exit $ac_status); }; } &&
     4374         { ac_try='test -s conftest.$ac_objext'
     4375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4376  (eval $ac_try) 2>&5
     4377  ac_status=$?
     4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4379  (exit $ac_status); }; }; then
    20864380  ac_cv_header_stdc=yes
    20874381else
    2088   echo "$ac_err" >&5
    2089   echo "configure: failed program was:" >&5
    2090   cat conftest.$ac_ext >&5
    2091   rm -rf conftest*
    2092   ac_cv_header_stdc=no
    2093 fi
    2094 rm -f conftest*
     4382  echo "$as_me: failed program was:" >&5
     4383sed 's/^/| /' conftest.$ac_ext >&5
     4384
     4385ac_cv_header_stdc=no
     4386fi
     4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    20954388
    20964389if test $ac_cv_header_stdc = yes; then
    20974390  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2098 cat > conftest.$ac_ext <<EOF
    2099 #line 2100 "configure"
    2100 #include "confdefs.h"
     4391  cat >conftest.$ac_ext <<_ACEOF
     4392/* confdefs.h.  */
     4393_ACEOF
     4394cat confdefs.h >>conftest.$ac_ext
     4395cat >>conftest.$ac_ext <<_ACEOF
     4396/* end confdefs.h.  */
    21014397#include <string.h>
    2102 EOF
     4398
     4399_ACEOF
    21034400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2104   egrep "memchr" >/dev/null 2>&1; then
     4401  $EGREP "memchr" >/dev/null 2>&1; then
    21054402  :
    21064403else
    2107   rm -rf conftest*
    21084404  ac_cv_header_stdc=no
    21094405fi
     
    21144410if test $ac_cv_header_stdc = yes; then
    21154411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2116 cat > conftest.$ac_ext <<EOF
    2117 #line 2118 "configure"
    2118 #include "confdefs.h"
     4412  cat >conftest.$ac_ext <<_ACEOF
     4413/* confdefs.h.  */
     4414_ACEOF
     4415cat confdefs.h >>conftest.$ac_ext
     4416cat >>conftest.$ac_ext <<_ACEOF
     4417/* end confdefs.h.  */
    21194418#include <stdlib.h>
    2120 EOF
     4419
     4420_ACEOF
    21214421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2122   egrep "free" >/dev/null 2>&1; then
     4422  $EGREP "free" >/dev/null 2>&1; then
    21234423  :
    21244424else
    2125   rm -rf conftest*
    21264425  ac_cv_header_stdc=no
    21274426fi
     
    21324431if test $ac_cv_header_stdc = yes; then
    21334432  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2134 if test "$cross_compiling" = yes; then
     4433  if test "$cross_compiling" = yes; then
    21354434  :
    21364435else
    2137   cat > conftest.$ac_ext <<EOF
    2138 #line 2139 "configure"
    2139 #include "confdefs.h"
     4436  cat >conftest.$ac_ext <<_ACEOF
     4437/* confdefs.h.  */
     4438_ACEOF
     4439cat confdefs.h >>conftest.$ac_ext
     4440cat >>conftest.$ac_ext <<_ACEOF
     4441/* end confdefs.h.  */
    21404442#include <ctype.h>
    2141 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2142 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4443#if ((' ' & 0x0FF) == 0x020)
     4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4446#else
     4447# define ISLOWER(c) \
     4448                   (('a' <= (c) && (c) <= 'i') \
     4449                     || ('j' <= (c) && (c) <= 'r') \
     4450                     || ('s' <= (c) && (c) <= 'z'))
     4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4452#endif
     4453
    21434454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2144 int main () { int i; for (i = 0; i < 256; i++)
    2145 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2146 exit (0); }
    2147 
    2148 EOF
    2149 if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2150 then
     4455int
     4456main ()
     4457{
     4458  int i;
     4459  for (i = 0; i < 256; i++)
     4460    if (XOR (islower (i), ISLOWER (i))
     4461        || toupper (i) != TOUPPER (i))
     4462      exit(2);
     4463  exit (0);
     4464}
     4465_ACEOF
     4466rm -f conftest$ac_exeext
     4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4468  (eval $ac_link) 2>&5
     4469  ac_status=$?
     4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4471  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4473  (eval $ac_try) 2>&5
     4474  ac_status=$?
     4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4476  (exit $ac_status); }; }; then
    21514477  :
    21524478else
    2153   echo "configure: failed program was:" >&5
    2154   cat conftest.$ac_ext >&5
    2155   rm -fr conftest*
    2156   ac_cv_header_stdc=no
    2157 fi
    2158 rm -fr conftest*
    2159 fi
    2160 
    2161 fi
    2162 fi
    2163 
    2164 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     4479  echo "$as_me: program exited with status $ac_status" >&5
     4480echo "$as_me: failed program was:" >&5
     4481sed 's/^/| /' conftest.$ac_ext >&5
     4482
     4483( exit $ac_status )
     4484ac_cv_header_stdc=no
     4485fi
     4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4487fi
     4488fi
     4489fi
     4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
    21654492if test $ac_cv_header_stdc = yes; then
    2166   cat >> confdefs.h <<\EOF
     4493
     4494cat >>confdefs.h <<\_ACEOF
    21674495#define STDC_HEADERS 1
    2168 EOF
    2169 
    2170 fi
    2171 
    2172 for ac_hdr in limits.h unistd.h
     4496_ACEOF
     4497
     4498fi
     4499
     4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4501
     4502
     4503
     4504
     4505
     4506
     4507
     4508
     4509
     4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4511                  inttypes.h stdint.h unistd.h
    21734512do
    2174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2176 echo "configure:2177: checking for $ac_hdr" >&5
    2177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2178   echo $ac_n "(cached) $ac_c" 1>&6
    2179 else
    2180   cat > conftest.$ac_ext <<EOF
    2181 #line 2182 "configure"
    2182 #include "confdefs.h"
    2183 #include <$ac_hdr>
    2184 EOF
    2185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2186 { (eval echo configure:2187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2188 if test -z "$ac_err"; then
    2189   rm -rf conftest*
    2190   eval "ac_cv_header_$ac_safe=yes"
    2191 else
    2192   echo "$ac_err" >&5
    2193   echo "configure: failed program was:" >&5
    2194   cat conftest.$ac_ext >&5
    2195   rm -rf conftest*
    2196   eval "ac_cv_header_$ac_safe=no"
    2197 fi
    2198 rm -f conftest*
    2199 fi
    2200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2201   echo "$ac_t""yes" 1>&6
    2202     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2203   cat >> confdefs.h <<EOF
    2204 #define $ac_tr_hdr 1
    2205 EOF
    2206  
    2207 else
    2208   echo "$ac_t""no" 1>&6
    2209 { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; }
    2210 fi
     4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4514echo "$as_me:$LINENO: checking for $ac_header" >&5
     4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4516if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4517  echo $ECHO_N "(cached) $ECHO_C" >&6
     4518else
     4519  cat >conftest.$ac_ext <<_ACEOF
     4520/* confdefs.h.  */
     4521_ACEOF
     4522cat confdefs.h >>conftest.$ac_ext
     4523cat >>conftest.$ac_ext <<_ACEOF
     4524/* end confdefs.h.  */
     4525$ac_includes_default
     4526
     4527#include <$ac_header>
     4528_ACEOF
     4529rm -f conftest.$ac_objext
     4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4531  (eval $ac_compile) 2>conftest.er1
     4532  ac_status=$?
     4533  grep -v '^ *+' conftest.er1 >conftest.err
     4534  rm -f conftest.er1
     4535  cat conftest.err >&5
     4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4537  (exit $ac_status); } &&
     4538         { ac_try='test -z "$ac_c_werror_flag"
     4539                         || test ! -s conftest.err'
     4540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4541  (eval $ac_try) 2>&5
     4542  ac_status=$?
     4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4544  (exit $ac_status); }; } &&
     4545         { ac_try='test -s conftest.$ac_objext'
     4546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4547  (eval $ac_try) 2>&5
     4548  ac_status=$?
     4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4550  (exit $ac_status); }; }; then
     4551  eval "$as_ac_Header=yes"
     4552else
     4553  echo "$as_me: failed program was:" >&5
     4554sed 's/^/| /' conftest.$ac_ext >&5
     4555
     4556eval "$as_ac_Header=no"
     4557fi
     4558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4559fi
     4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4562if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4563  cat >>confdefs.h <<_ACEOF
     4564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4565_ACEOF
     4566
     4567fi
     4568
    22114569done
    22124570
    22134571
    2214 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
     4572
     4573
     4574for ac_header in limits.h unistd.h
     4575do
     4576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4577if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4578  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4580if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4581  echo $ECHO_N "(cached) $ECHO_C" >&6
     4582fi
     4583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4585else
     4586  # Is the header compilable?
     4587echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4589cat >conftest.$ac_ext <<_ACEOF
     4590/* confdefs.h.  */
     4591_ACEOF
     4592cat confdefs.h >>conftest.$ac_ext
     4593cat >>conftest.$ac_ext <<_ACEOF
     4594/* end confdefs.h.  */
     4595$ac_includes_default
     4596#include <$ac_header>
     4597_ACEOF
     4598rm -f conftest.$ac_objext
     4599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4600  (eval $ac_compile) 2>conftest.er1
     4601  ac_status=$?
     4602  grep -v '^ *+' conftest.er1 >conftest.err
     4603  rm -f conftest.er1
     4604  cat conftest.err >&5
     4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4606  (exit $ac_status); } &&
     4607         { ac_try='test -z "$ac_c_werror_flag"
     4608                         || test ! -s conftest.err'
     4609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4610  (eval $ac_try) 2>&5
     4611  ac_status=$?
     4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4613  (exit $ac_status); }; } &&
     4614         { ac_try='test -s conftest.$ac_objext'
     4615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4616  (eval $ac_try) 2>&5
     4617  ac_status=$?
     4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4619  (exit $ac_status); }; }; then
     4620  ac_header_compiler=yes
     4621else
     4622  echo "$as_me: failed program was:" >&5
     4623sed 's/^/| /' conftest.$ac_ext >&5
     4624
     4625ac_header_compiler=no
     4626fi
     4627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4629echo "${ECHO_T}$ac_header_compiler" >&6
     4630
     4631# Is the header present?
     4632echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4634cat >conftest.$ac_ext <<_ACEOF
     4635/* confdefs.h.  */
     4636_ACEOF
     4637cat confdefs.h >>conftest.$ac_ext
     4638cat >>conftest.$ac_ext <<_ACEOF
     4639/* end confdefs.h.  */
     4640#include <$ac_header>
     4641_ACEOF
     4642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4643  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4644  ac_status=$?
     4645  grep -v '^ *+' conftest.er1 >conftest.err
     4646  rm -f conftest.er1
     4647  cat conftest.err >&5
     4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4649  (exit $ac_status); } >/dev/null; then
     4650  if test -s conftest.err; then
     4651    ac_cpp_err=$ac_c_preproc_warn_flag
     4652    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4653  else
     4654    ac_cpp_err=
     4655  fi
     4656else
     4657  ac_cpp_err=yes
     4658fi
     4659if test -z "$ac_cpp_err"; then
     4660  ac_header_preproc=yes
     4661else
     4662  echo "$as_me: failed program was:" >&5
     4663sed 's/^/| /' conftest.$ac_ext >&5
     4664
     4665  ac_header_preproc=no
     4666fi
     4667rm -f conftest.err conftest.$ac_ext
     4668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4669echo "${ECHO_T}$ac_header_preproc" >&6
     4670
     4671# So?  What about this header?
     4672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4673  yes:no: )
     4674    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4678    ac_header_preproc=yes
     4679    ;;
     4680  no:yes:* )
     4681    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4683    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4684echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4685    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4687    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4688echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4689    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4691    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4693    (
     4694      cat <<\_ASBOX
     4695## ------------------------------------------ ##
     4696## Report this to the AC_PACKAGE_NAME lists.  ##
     4697## ------------------------------------------ ##
     4698_ASBOX
     4699    ) |
     4700      sed "s/^/$as_me: WARNING:     /" >&2
     4701    ;;
     4702esac
     4703echo "$as_me:$LINENO: checking for $ac_header" >&5
     4704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4705if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4706  echo $ECHO_N "(cached) $ECHO_C" >&6
     4707else
     4708  eval "$as_ac_Header=\$ac_header_preproc"
     4709fi
     4710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4712
     4713fi
     4714if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4715  cat >>confdefs.h <<_ACEOF
     4716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4717_ACEOF
     4718
     4719else
     4720  { { echo "$as_me:$LINENO: error: Can not compile without limits.h unistd.h" >&5
     4721echo "$as_me: error: Can not compile without limits.h unistd.h" >&2;}
     4722   { (exit 1); exit 1; }; }
     4723fi
     4724
     4725done
     4726
     4727
     4728
     4729
     4730
     4731
     4732
     4733
     4734
     4735
     4736
     4737
     4738
     4739
     4740
     4741
     4742
     4743for ac_header in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
    22154744 sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \
    22164745 termios.h term.h readline/readline.h
    22174746do
    2218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2220 echo "configure:2221: checking for $ac_hdr" >&5
    2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2222   echo $ac_n "(cached) $ac_c" 1>&6
    2223 else
    2224   cat > conftest.$ac_ext <<EOF
    2225 #line 2226 "configure"
    2226 #include "confdefs.h"
    2227 #include <$ac_hdr>
    2228 EOF
    2229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2230 { (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2232 if test -z "$ac_err"; then
    2233   rm -rf conftest*
    2234   eval "ac_cv_header_$ac_safe=yes"
    2235 else
    2236   echo "$ac_err" >&5
    2237   echo "configure: failed program was:" >&5
    2238   cat conftest.$ac_ext >&5
    2239   rm -rf conftest*
    2240   eval "ac_cv_header_$ac_safe=no"
    2241 fi
    2242 rm -f conftest*
    2243 fi
    2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2245   echo "$ac_t""yes" 1>&6
    2246     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2247   cat >> confdefs.h <<EOF
    2248 #define $ac_tr_hdr 1
    2249 EOF
    2250  
    2251 else
    2252   echo "$ac_t""no" 1>&6
    2253 fi
     4747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4748if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4749  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4751if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4752  echo $ECHO_N "(cached) $ECHO_C" >&6
     4753fi
     4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4756else
     4757  # Is the header compilable?
     4758echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4760cat >conftest.$ac_ext <<_ACEOF
     4761/* confdefs.h.  */
     4762_ACEOF
     4763cat confdefs.h >>conftest.$ac_ext
     4764cat >>conftest.$ac_ext <<_ACEOF
     4765/* end confdefs.h.  */
     4766$ac_includes_default
     4767#include <$ac_header>
     4768_ACEOF
     4769rm -f conftest.$ac_objext
     4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4771  (eval $ac_compile) 2>conftest.er1
     4772  ac_status=$?
     4773  grep -v '^ *+' conftest.er1 >conftest.err
     4774  rm -f conftest.er1
     4775  cat conftest.err >&5
     4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4777  (exit $ac_status); } &&
     4778         { ac_try='test -z "$ac_c_werror_flag"
     4779                         || test ! -s conftest.err'
     4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4781  (eval $ac_try) 2>&5
     4782  ac_status=$?
     4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4784  (exit $ac_status); }; } &&
     4785         { ac_try='test -s conftest.$ac_objext'
     4786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4787  (eval $ac_try) 2>&5
     4788  ac_status=$?
     4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4790  (exit $ac_status); }; }; then
     4791  ac_header_compiler=yes
     4792else
     4793  echo "$as_me: failed program was:" >&5
     4794sed 's/^/| /' conftest.$ac_ext >&5
     4795
     4796ac_header_compiler=no
     4797fi
     4798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4800echo "${ECHO_T}$ac_header_compiler" >&6
     4801
     4802# Is the header present?
     4803echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4805cat >conftest.$ac_ext <<_ACEOF
     4806/* confdefs.h.  */
     4807_ACEOF
     4808cat confdefs.h >>conftest.$ac_ext
     4809cat >>conftest.$ac_ext <<_ACEOF
     4810/* end confdefs.h.  */
     4811#include <$ac_header>
     4812_ACEOF
     4813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4814  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4815  ac_status=$?
     4816  grep -v '^ *+' conftest.er1 >conftest.err
     4817  rm -f conftest.er1
     4818  cat conftest.err >&5
     4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4820  (exit $ac_status); } >/dev/null; then
     4821  if test -s conftest.err; then
     4822    ac_cpp_err=$ac_c_preproc_warn_flag
     4823    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4824  else
     4825    ac_cpp_err=
     4826  fi
     4827else
     4828  ac_cpp_err=yes
     4829fi
     4830if test -z "$ac_cpp_err"; then
     4831  ac_header_preproc=yes
     4832else
     4833  echo "$as_me: failed program was:" >&5
     4834sed 's/^/| /' conftest.$ac_ext >&5
     4835
     4836  ac_header_preproc=no
     4837fi
     4838rm -f conftest.err conftest.$ac_ext
     4839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4840echo "${ECHO_T}$ac_header_preproc" >&6
     4841
     4842# So?  What about this header?
     4843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4844  yes:no: )
     4845    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4847    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4849    ac_header_preproc=yes
     4850    ;;
     4851  no:yes:* )
     4852    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4854    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4855echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4856    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4858    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4859echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4862    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4864    (
     4865      cat <<\_ASBOX
     4866## ------------------------------------------ ##
     4867## Report this to the AC_PACKAGE_NAME lists.  ##
     4868## ------------------------------------------ ##
     4869_ASBOX
     4870    ) |
     4871      sed "s/^/$as_me: WARNING:     /" >&2
     4872    ;;
     4873esac
     4874echo "$as_me:$LINENO: checking for $ac_header" >&5
     4875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4876if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4877  echo $ECHO_N "(cached) $ECHO_C" >&6
     4878else
     4879  eval "$as_ac_Header=\$ac_header_preproc"
     4880fi
     4881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4883
     4884fi
     4885if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4886  cat >>confdefs.h <<_ACEOF
     4887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4888_ACEOF
     4889
     4890fi
     4891
    22544892done
    22554893
    22564894
    22574895# typedefs, structures
    2258 echo $ac_n "checking for working const""... $ac_c" 1>&6
    2259 echo "configure:2260: checking for working const" >&5
    2260 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    2261   echo $ac_n "(cached) $ac_c" 1>&6
    2262 else
    2263   cat > conftest.$ac_ext <<EOF
    2264 #line 2265 "configure"
    2265 #include "confdefs.h"
    2266 
    2267 int main() {
    2268 
    2269 /* Ultrix mips cc rejects this.  */
    2270 typedef int charset[2]; const charset x;
    2271 /* SunOS 4.1.1 cc rejects this.  */
    2272 char const *const *ccp;
    2273 char **p;
    2274 /* NEC SVR4.0.2 mips cc rejects this.  */
    2275 struct point {int x, y;};
    2276 static struct point const zero = {0,0};
    2277 /* AIX XL C 1.02.0.0 rejects this.
    2278    It does not let you subtract one const X* pointer from another in an arm
    2279    of an if-expression whose if-part is not a constant expression */
    2280 const char *g = "string";
    2281 ccp = &g + (g ? g-g : 0);
    2282 /* HPUX 7.0 cc rejects these. */
    2283 ++ccp;
    2284 p = (char**) ccp;
    2285 ccp = (char const *const *) p;
    2286 { /* SCO 3.2v4 cc rejects this.  */
    2287   char *t;
    2288   char const *s = 0 ? (char *) 0 : (char const *) 0;
    2289 
    2290   *t++ = 0;
     4896echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     4897echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     4898if test "${ac_cv_c_const+set}" = set; then
     4899  echo $ECHO_N "(cached) $ECHO_C" >&6
     4900else
     4901  cat >conftest.$ac_ext <<_ACEOF
     4902/* confdefs.h.  */
     4903_ACEOF
     4904cat confdefs.h >>conftest.$ac_ext
     4905cat >>conftest.$ac_ext <<_ACEOF
     4906/* end confdefs.h.  */
     4907
     4908int
     4909main ()
     4910{
     4911/* FIXME: Include the comments suggested by Paul. */
     4912#ifndef __cplusplus
     4913  /* Ultrix mips cc rejects this.  */
     4914  typedef int charset[2];
     4915  const charset x;
     4916  /* SunOS 4.1.1 cc rejects this.  */
     4917  char const *const *ccp;
     4918  char **p;
     4919  /* NEC SVR4.0.2 mips cc rejects this.  */
     4920  struct point {int x, y;};
     4921  static struct point const zero = {0,0};
     4922  /* AIX XL C 1.02.0.0 rejects this.
     4923     It does not let you subtract one const X* pointer from another in
     4924     an arm of an if-expression whose if-part is not a constant
     4925     expression */
     4926  const char *g = "string";
     4927  ccp = &g + (g ? g-g : 0);
     4928  /* HPUX 7.0 cc rejects these. */
     4929  ++ccp;
     4930  p = (char**) ccp;
     4931  ccp = (char const *const *) p;
     4932  { /* SCO 3.2v4 cc rejects this.  */
     4933    char *t;
     4934    char const *s = 0 ? (char *) 0 : (char const *) 0;
     4935
     4936    *t++ = 0;
     4937  }
     4938  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     4939    int x[] = {25, 17};
     4940    const int *foo = &x[0];
     4941    ++foo;
     4942  }
     4943  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     4944    typedef const int *iptr;
     4945    iptr p = 0;
     4946    ++p;
     4947  }
     4948  { /* AIX XL C 1.02.0.0 rejects this saying
     4949       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     4950    struct s { int j; const int *ap[3]; };
     4951    struct s *b; b->j = 5;
     4952  }
     4953  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     4954    const int foo = 10;
     4955  }
     4956#endif
     4957
     4958  ;
     4959  return 0;
    22914960}
    2292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    2293   int x[] = {25, 17};
    2294   const int *foo = &x[0];
    2295   ++foo;
    2296 }
    2297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    2298   typedef const int *iptr;
    2299   iptr p = 0;
    2300   ++p;
    2301 }
    2302 { /* AIX XL C 1.02.0.0 rejects this saying
    2303      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    2304   struct s { int j; const int *ap[3]; };
    2305   struct s *b; b->j = 5;
    2306 }
    2307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    2308   const int foo = 10;
    2309 }
    2310 
    2311 ; return 0; }
    2312 EOF
    2313 if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2314   rm -rf conftest*
     4961_ACEOF
     4962rm -f conftest.$ac_objext
     4963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4964  (eval $ac_compile) 2>conftest.er1
     4965  ac_status=$?
     4966  grep -v '^ *+' conftest.er1 >conftest.err
     4967  rm -f conftest.er1
     4968  cat conftest.err >&5
     4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4970  (exit $ac_status); } &&
     4971         { ac_try='test -z "$ac_c_werror_flag"
     4972                         || test ! -s conftest.err'
     4973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4974  (eval $ac_try) 2>&5
     4975  ac_status=$?
     4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4977  (exit $ac_status); }; } &&
     4978         { ac_try='test -s conftest.$ac_objext'
     4979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4980  (eval $ac_try) 2>&5
     4981  ac_status=$?
     4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4983  (exit $ac_status); }; }; then
    23154984  ac_cv_c_const=yes
    23164985else
    2317   echo "configure: failed program was:" >&5
    2318   cat conftest.$ac_ext >&5
    2319   rm -rf conftest*
    2320   ac_cv_c_const=no
    2321 fi
    2322 rm -f conftest*
    2323 fi
    2324 
    2325 echo "$ac_t""$ac_cv_c_const" 1>&6
     4986  echo "$as_me: failed program was:" >&5
     4987sed 's/^/| /' conftest.$ac_ext >&5
     4988
     4989ac_cv_c_const=no
     4990fi
     4991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4992fi
     4993echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     4994echo "${ECHO_T}$ac_cv_c_const" >&6
    23264995if test $ac_cv_c_const = no; then
    2327   cat >> confdefs.h <<\EOF
    2328 #define const
    2329 EOF
    2330 
    2331 fi
    2332 
    2333 echo $ac_n "checking for inline""... $ac_c" 1>&6
    2334 echo "configure:2335: checking for inline" >&5
    2335 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    2336   echo $ac_n "(cached) $ac_c" 1>&6
     4996
     4997cat >>confdefs.h <<\_ACEOF
     4998#define const
     4999_ACEOF
     5000
     5001fi
     5002
     5003echo "$as_me:$LINENO: checking for inline" >&5
     5004echo $ECHO_N "checking for inline... $ECHO_C" >&6
     5005if test "${ac_cv_c_inline+set}" = set; then
     5006  echo $ECHO_N "(cached) $ECHO_C" >&6
    23375007else
    23385008  ac_cv_c_inline=no
    23395009for ac_kw in inline __inline__ __inline; do
    2340   cat > conftest.$ac_ext <<EOF
    2341 #line 2342 "configure"
    2342 #include "confdefs.h"
    2343 
    2344 int main() {
    2345 } $ac_kw foo() {
    2346 ; return 0; }
    2347 EOF
    2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2349   rm -rf conftest*
     5010  cat >conftest.$ac_ext <<_ACEOF
     5011/* confdefs.h.  */
     5012_ACEOF
     5013cat confdefs.h >>conftest.$ac_ext
     5014cat >>conftest.$ac_ext <<_ACEOF
     5015/* end confdefs.h.  */
     5016#ifndef __cplusplus
     5017typedef int foo_t;
     5018static $ac_kw foo_t static_foo () {return 0; }
     5019$ac_kw foo_t foo () {return 0; }
     5020#endif
     5021
     5022_ACEOF
     5023rm -f conftest.$ac_objext
     5024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5025  (eval $ac_compile) 2>conftest.er1
     5026  ac_status=$?
     5027  grep -v '^ *+' conftest.er1 >conftest.err
     5028  rm -f conftest.er1
     5029  cat conftest.err >&5
     5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5031  (exit $ac_status); } &&
     5032         { ac_try='test -z "$ac_c_werror_flag"
     5033                         || test ! -s conftest.err'
     5034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5035  (eval $ac_try) 2>&5
     5036  ac_status=$?
     5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5038  (exit $ac_status); }; } &&
     5039         { ac_try='test -s conftest.$ac_objext'
     5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5041  (eval $ac_try) 2>&5
     5042  ac_status=$?
     5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5044  (exit $ac_status); }; }; then
    23505045  ac_cv_c_inline=$ac_kw; break
    23515046else
    2352   echo "configure: failed program was:" >&5
    2353   cat conftest.$ac_ext >&5
    2354 fi
    2355 rm -f conftest*
     5047  echo "$as_me: failed program was:" >&5
     5048sed 's/^/| /' conftest.$ac_ext >&5
     5049
     5050fi
     5051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    23565052done
    23575053
    23585054fi
    2359 
    2360 echo "$ac_t""$ac_cv_c_inline" 1>&6
    2361 case "$ac_cv_c_inline" in
     5055echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
     5056echo "${ECHO_T}$ac_cv_c_inline" >&6
     5057
     5058
     5059case $ac_cv_c_inline in
    23625060  inline | yes) ;;
    2363   no) cat >> confdefs.h <<\EOF
    2364 #define inline
    2365 EOF
    2366  ;;
    2367   *)  cat >> confdefs.h <<EOF
    2368 #define inline $ac_cv_c_inline
    2369 EOF
    2370  ;;
     5061  *)
     5062    case $ac_cv_c_inline in
     5063      no) ac_val=;;
     5064      *) ac_val=$ac_cv_c_inline;;
     5065    esac
     5066    cat >>confdefs.h <<_ACEOF
     5067#ifndef __cplusplus
     5068#define inline $ac_val
     5069#endif
     5070_ACEOF
     5071    ;;
    23715072esac
    23725073
    2373 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    2374 echo "configure:2375: checking for size_t" >&5
    2375 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    2376   echo $ac_n "(cached) $ac_c" 1>&6
    2377 else
    2378   cat > conftest.$ac_ext <<EOF
    2379 #line 2380 "configure"
    2380 #include "confdefs.h"
    2381 #include <sys/types.h>
    2382 #if STDC_HEADERS
    2383 #include <stdlib.h>
    2384 #include <stddef.h>
    2385 #endif
    2386 EOF
    2387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2388   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2389   rm -rf conftest*
     5074echo "$as_me:$LINENO: checking for size_t" >&5
     5075echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     5076if test "${ac_cv_type_size_t+set}" = set; then
     5077  echo $ECHO_N "(cached) $ECHO_C" >&6
     5078else
     5079  cat >conftest.$ac_ext <<_ACEOF
     5080/* confdefs.h.  */
     5081_ACEOF
     5082cat confdefs.h >>conftest.$ac_ext
     5083cat >>conftest.$ac_ext <<_ACEOF
     5084/* end confdefs.h.  */
     5085$ac_includes_default
     5086int
     5087main ()
     5088{
     5089if ((size_t *) 0)
     5090  return 0;
     5091if (sizeof (size_t))
     5092  return 0;
     5093  ;
     5094  return 0;
     5095}
     5096_ACEOF
     5097rm -f conftest.$ac_objext
     5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5099  (eval $ac_compile) 2>conftest.er1
     5100  ac_status=$?
     5101  grep -v '^ *+' conftest.er1 >conftest.err
     5102  rm -f conftest.er1
     5103  cat conftest.err >&5
     5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5105  (exit $ac_status); } &&
     5106         { ac_try='test -z "$ac_c_werror_flag"
     5107                         || test ! -s conftest.err'
     5108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5109  (eval $ac_try) 2>&5
     5110  ac_status=$?
     5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5112  (exit $ac_status); }; } &&
     5113         { ac_try='test -s conftest.$ac_objext'
     5114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5115  (eval $ac_try) 2>&5
     5116  ac_status=$?
     5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5118  (exit $ac_status); }; }; then
    23905119  ac_cv_type_size_t=yes
    23915120else
    2392   rm -rf conftest*
    2393   ac_cv_type_size_t=no
    2394 fi
    2395 rm -f conftest*
    2396 
    2397 fi
    2398 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    2399 if test $ac_cv_type_size_t = no; then
    2400   cat >> confdefs.h <<\EOF
     5121  echo "$as_me: failed program was:" >&5
     5122sed 's/^/| /' conftest.$ac_ext >&5
     5123
     5124ac_cv_type_size_t=no
     5125fi
     5126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5127fi
     5128echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     5129echo "${ECHO_T}$ac_cv_type_size_t" >&6
     5130if test $ac_cv_type_size_t = yes; then
     5131  :
     5132else
     5133
     5134cat >>confdefs.h <<_ACEOF
    24015135#define size_t unsigned
    2402 EOF
    2403 
    2404 fi
    2405 
    2406 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    2407 echo "configure:2408: checking whether struct tm is in sys/time.h or time.h" >&5
    2408 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    2409   echo $ac_n "(cached) $ac_c" 1>&6
    2410 else
    2411   cat > conftest.$ac_ext <<EOF
    2412 #line 2413 "configure"
    2413 #include "confdefs.h"
     5136_ACEOF
     5137
     5138fi
     5139
     5140echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     5141echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     5142if test "${ac_cv_struct_tm+set}" = set; then
     5143  echo $ECHO_N "(cached) $ECHO_C" >&6
     5144else
     5145  cat >conftest.$ac_ext <<_ACEOF
     5146/* confdefs.h.  */
     5147_ACEOF
     5148cat confdefs.h >>conftest.$ac_ext
     5149cat >>conftest.$ac_ext <<_ACEOF
     5150/* end confdefs.h.  */
    24145151#include <sys/types.h>
    24155152#include <time.h>
    2416 int main() {
     5153
     5154int
     5155main ()
     5156{
    24175157struct tm *tp; tp->tm_sec;
    2418 ; return 0; }
    2419 EOF
    2420 if { (eval echo configure:2421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2421   rm -rf conftest*
     5158  ;
     5159  return 0;
     5160}
     5161_ACEOF
     5162rm -f conftest.$ac_objext
     5163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5164  (eval $ac_compile) 2>conftest.er1
     5165  ac_status=$?
     5166  grep -v '^ *+' conftest.er1 >conftest.err
     5167  rm -f conftest.er1
     5168  cat conftest.err >&5
     5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5170  (exit $ac_status); } &&
     5171         { ac_try='test -z "$ac_c_werror_flag"
     5172                         || test ! -s conftest.err'
     5173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5174  (eval $ac_try) 2>&5
     5175  ac_status=$?
     5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5177  (exit $ac_status); }; } &&
     5178         { ac_try='test -s conftest.$ac_objext'
     5179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5180  (eval $ac_try) 2>&5
     5181  ac_status=$?
     5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5183  (exit $ac_status); }; }; then
    24225184  ac_cv_struct_tm=time.h
    24235185else
    2424   echo "configure: failed program was:" >&5
    2425   cat conftest.$ac_ext >&5
    2426   rm -rf conftest*
    2427   ac_cv_struct_tm=sys/time.h
    2428 fi
    2429 rm -f conftest*
    2430 fi
    2431 
    2432 echo "$ac_t""$ac_cv_struct_tm" 1>&6
     5186  echo "$as_me: failed program was:" >&5
     5187sed 's/^/| /' conftest.$ac_ext >&5
     5188
     5189ac_cv_struct_tm=sys/time.h
     5190fi
     5191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5192fi
     5193echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     5194echo "${ECHO_T}$ac_cv_struct_tm" >&6
    24335195if test $ac_cv_struct_tm = sys/time.h; then
    2434   cat >> confdefs.h <<\EOF
     5196
     5197cat >>confdefs.h <<\_ACEOF
    24355198#define TM_IN_SYS_TIME 1
    2436 EOF
    2437 
    2438 fi
    2439 
    2440 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    2441 echo "configure:2442: checking whether time.h and sys/time.h may both be included" >&5
    2442 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    2443   echo $ac_n "(cached) $ac_c" 1>&6
    2444 else
    2445   cat > conftest.$ac_ext <<EOF
    2446 #line 2447 "configure"
    2447 #include "confdefs.h"
     5199_ACEOF
     5200
     5201fi
     5202
     5203echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     5204echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     5205if test "${ac_cv_header_time+set}" = set; then
     5206  echo $ECHO_N "(cached) $ECHO_C" >&6
     5207else
     5208  cat >conftest.$ac_ext <<_ACEOF
     5209/* confdefs.h.  */
     5210_ACEOF
     5211cat confdefs.h >>conftest.$ac_ext
     5212cat >>conftest.$ac_ext <<_ACEOF
     5213/* end confdefs.h.  */
    24485214#include <sys/types.h>
    24495215#include <sys/time.h>
    24505216#include <time.h>
    2451 int main() {
    2452 struct tm *tp;
    2453 ; return 0; }
    2454 EOF
    2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2456   rm -rf conftest*
     5217
     5218int
     5219main ()
     5220{
     5221if ((struct tm *) 0)
     5222return 0;
     5223  ;
     5224  return 0;
     5225}
     5226_ACEOF
     5227rm -f conftest.$ac_objext
     5228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5229  (eval $ac_compile) 2>conftest.er1
     5230  ac_status=$?
     5231  grep -v '^ *+' conftest.er1 >conftest.err
     5232  rm -f conftest.er1
     5233  cat conftest.err >&5
     5234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5235  (exit $ac_status); } &&
     5236         { ac_try='test -z "$ac_c_werror_flag"
     5237                         || test ! -s conftest.err'
     5238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5239  (eval $ac_try) 2>&5
     5240  ac_status=$?
     5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5242  (exit $ac_status); }; } &&
     5243         { ac_try='test -s conftest.$ac_objext'
     5244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5245  (eval $ac_try) 2>&5
     5246  ac_status=$?
     5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5248  (exit $ac_status); }; }; then
    24575249  ac_cv_header_time=yes
    24585250else
    2459   echo "configure: failed program was:" >&5
    2460   cat conftest.$ac_ext >&5
    2461   rm -rf conftest*
    2462   ac_cv_header_time=no
    2463 fi
    2464 rm -f conftest*
    2465 fi
    2466 
    2467 echo "$ac_t""$ac_cv_header_time" 1>&6
     5251  echo "$as_me: failed program was:" >&5
     5252sed 's/^/| /' conftest.$ac_ext >&5
     5253
     5254ac_cv_header_time=no
     5255fi
     5256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5257fi
     5258echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     5259echo "${ECHO_T}$ac_cv_header_time" >&6
    24685260if test $ac_cv_header_time = yes; then
    2469   cat >> confdefs.h <<\EOF
     5261
     5262cat >>confdefs.h <<\_ACEOF
    24705263#define TIME_WITH_SYS_TIME 1
    2471 EOF
     5264_ACEOF
    24725265
    24735266fi
     
    24775270# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    24785271# for constant arguments.  Useless!
    2479 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2480 echo "configure:2481: checking for working alloca.h" >&5
    2481 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2482   echo $ac_n "(cached) $ac_c" 1>&6
    2483 else
    2484   cat > conftest.$ac_ext <<EOF
    2485 #line 2486 "configure"
    2486 #include "confdefs.h"
     5272echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5273echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5274if test "${ac_cv_working_alloca_h+set}" = set; then
     5275  echo $ECHO_N "(cached) $ECHO_C" >&6
     5276else
     5277  cat >conftest.$ac_ext <<_ACEOF
     5278/* confdefs.h.  */
     5279_ACEOF
     5280cat confdefs.h >>conftest.$ac_ext
     5281cat >>conftest.$ac_ext <<_ACEOF
     5282/* end confdefs.h.  */
    24875283#include <alloca.h>
    2488 int main() {
    2489 char *p = alloca(2 * sizeof(int));
    2490 ; return 0; }
    2491 EOF
    2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2493   rm -rf conftest*
    2494   ac_cv_header_alloca_h=yes
    2495 else
    2496   echo "configure: failed program was:" >&5
    2497   cat conftest.$ac_ext >&5
    2498   rm -rf conftest*
    2499   ac_cv_header_alloca_h=no
    2500 fi
    2501 rm -f conftest*
    2502 fi
    2503 
    2504 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2505 if test $ac_cv_hea