Changeset 8756


Ignore:
Timestamp:
2004-12-08T17:04:00+13:00 (17 years ago)
Author:
jrm21
Message:

fixes for autoconf v2.59, remove libstdc++ from ACLIBS since we don't
want it passed to $CC for c things like mg

Location:
trunk/gsdl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/aclocal.m4

    r700 r8756  
    132132  AC_MSG_RESULT(regex)
    133133  AC_DEFINE(WITH_REGEX)
    134   LIBOBJS="$LIBOBJS regex.o"
     134  AC_LIBOBJ([regex])
    135135fi])
    136136if test -z "$ac_with_regex"; then
    137137  AC_MSG_RESULT(rx)
    138   AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.o"])
     138  AC_CHECK_FUNC(re_rx_search, , [AC_LIBOBJ([rx])])
    139139fi
    140 AC_SUBST(LIBOBJS)dnl
    141140])
  • trunk/gsdl/configure

    r8202 r8756  
    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:
    14 ac_help="$ac_help
    15   --enable-corba          Enable CORBA support"
    16 ac_help="$ac_help
    17   --with-micodir          Use installed MICO directory"
    18 ac_help="$ac_help
    19   --enable-z3950          Enable Z39.50 client support"
    20 ac_help="$ac_help
    21   --with-gdbm=dir         Use local gdbm library and headers"
    22 ac_help="$ac_help
    23   --with-dmalloc          use dmalloc, as in
    24                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
    25 ac_help="$ac_help
    26   --with-regex            use older regex in lieu of GNU rx for matching"
     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="lib/text_t.h"
     275# Factoring default headers for most tests.
     276ac_includes_default="\
     277#include <stdio.h>
     278#if HAVE_SYS_TYPES_H
     279# include <sys/types.h>
     280#endif
     281#if HAVE_SYS_STAT_H
     282# include <sys/stat.h>
     283#endif
     284#if STDC_HEADERS
     285# include <stdlib.h>
     286# include <stddef.h>
     287#else
     288# if HAVE_STDLIB_H
     289#  include <stdlib.h>
     290# endif
     291#endif
     292#if HAVE_STRING_H
     293# if !STDC_HEADERS && HAVE_MEMORY_H
     294#  include <memory.h>
     295# endif
     296# include <string.h>
     297#endif
     298#if HAVE_STRINGS_H
     299# include <strings.h>
     300#endif
     301#if HAVE_INTTYPES_H
     302# include <inttypes.h>
     303#else
     304# if HAVE_STDINT_H
     305#  include <stdint.h>
     306# endif
     307#endif
     308#if HAVE_UNISTD_H
     309# include <unistd.h>
     310#endif"
     311
     312ac_subdirs_all="$ac_subdirs_all packages"
     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 PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
     314ac_subst_files=''
    27315
    28316# Initialize some variables set by options.
     317ac_init_help=
     318ac_init_version=false
    29319# The variables have the same names as the options, with
    30320# dashes changed to underlines.
    31 build=NONE
    32 cache_file=./config.cache
     321cache_file=/dev/null
    33322exec_prefix=NONE
    34 host=NONE
    35323no_create=
    36 nonopt=NONE
    37324no_recursion=
    38325prefix=NONE
     
    43330site=
    44331srcdir=
    45 target=NONE
    46332verbose=
    47333x_includes=NONE
    48334x_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.
    49341bindir='${exec_prefix}/bin'
    50342sbindir='${exec_prefix}/sbin'
     
    60352mandir='${prefix}/man'
    61353
    62 # Initialize some other variables.
    63 subdirs=
    64 MFLAGS= MAKEFLAGS=
    65 SHELL=${CONFIG_SHELL-/bin/sh}
    66 # Maximum number of lines to put in a shell here document.
    67 ac_max_here_lines=12
    68 
    69354ac_prev=
    70355for ac_option
    71356do
    72 
    73357  # If the previous option needs an argument, assign it.
    74358  if test -n "$ac_prev"; then
     
    78362  fi
    79363
    80   case "$ac_option" in
    81   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    82   *) ac_optarg= ;;
    83   esac
     364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    84365
    85366  # Accept the important Cygnus configure options, so we can diagnose typos.
    86367
    87   case "$ac_option" in
     368  case $ac_option in
    88369
    89370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    90371    ac_prev=bindir ;;
    91372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    92     bindir="$ac_optarg" ;;
     373    bindir=$ac_optarg ;;
    93374
    94375  -build | --build | --buil | --bui | --bu)
    95     ac_prev=build ;;
     376    ac_prev=build_alias ;;
    96377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    97     build="$ac_optarg" ;;
     378    build_alias=$ac_optarg ;;
    98379
    99380  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    102383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    103384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    104     cache_file="$ac_optarg" ;;
     385    cache_file=$ac_optarg ;;
     386
     387  --config-cache | -C)
     388    cache_file=config.cache ;;
    105389
    106390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    108392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    109393  | --da=*)
    110     datadir="$ac_optarg" ;;
     394    datadir=$ac_optarg ;;
    111395
    112396  -disable-* | --disable-*)
    113     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    114398    # Reject names that are not valid shell variable names.
    115     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    117     fi
    118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    119     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" ;;
    120404
    121405  -enable-* | --enable-*)
    122     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    123407    # Reject names that are not valid shell variable names.
    124     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    126     fi
    127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    128     case "$ac_option" in
    129       *=*) ;;
     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"`;;
    130414      *) ac_optarg=yes ;;
    131415    esac
    132     eval "enable_${ac_feature}='$ac_optarg'" ;;
     416    eval "enable_$ac_feature='$ac_optarg'" ;;
    133417
    134418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    139423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    140424  | --exec=* | --exe=* | --ex=*)
    141     exec_prefix="$ac_optarg" ;;
     425    exec_prefix=$ac_optarg ;;
    142426
    143427  -gas | --gas | --ga | --g)
     
    145429    with_gas=yes ;;
    146430
    147   -help | --help | --hel | --he)
    148     # Omit some internal or obsolete options to make the list less imposing.
    149     # This message is too long to be a string in the A/UX 3.1 sh.
    150     cat << EOF
    151 Usage: configure [options] [host]
    152 Options: [defaults in brackets after descriptions]
    153 Configuration:
    154   --cache-file=FILE       cache test results in FILE
    155   --help                  print this message
    156   --no-create             do not create output files
    157   --quiet, --silent       do not print \`checking...' messages
    158   --version               print the version of autoconf that created configure
    159 Directory and file names:
    160   --prefix=PREFIX         install architecture-independent files in PREFIX
    161                           [$ac_default_prefix]
    162   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    163                           [same as prefix]
    164   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    165   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    166   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    167   --datadir=DIR           read-only architecture-independent data in DIR
    168                           [PREFIX/share]
    169   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    170   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    171                           [PREFIX/com]
    172   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    173   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    174   --includedir=DIR        C header files in DIR [PREFIX/include]
    175   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    176   --infodir=DIR           info documentation in DIR [PREFIX/info]
    177   --mandir=DIR            man documentation in DIR [PREFIX/man]
    178   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    179   --program-prefix=PREFIX prepend PREFIX to installed program names
    180   --program-suffix=SUFFIX append SUFFIX to installed program names
    181   --program-transform-name=PROGRAM
    182                           run sed PROGRAM on installed program names
    183 EOF
    184     cat << EOF
    185 Host type:
    186   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    187   --host=HOST             configure for HOST [guessed]
    188   --target=TARGET         configure for TARGET [TARGET=HOST]
    189 Features and packages:
    190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    192   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    193   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    194   --x-includes=DIR        X include files are in DIR
    195   --x-libraries=DIR       X library files are in DIR
    196 EOF
    197     if test -n "$ac_help"; then
    198       echo "--enable and --with options recognized:$ac_help"
    199     fi
    200     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 ;;
    201437
    202438  -host | --host | --hos | --ho)
    203     ac_prev=host ;;
     439    ac_prev=host_alias ;;
    204440  -host=* | --host=* | --hos=* | --ho=*)
    205     host="$ac_optarg" ;;
     441    host_alias=$ac_optarg ;;
    206442
    207443  -includedir | --includedir | --includedi | --included | --include \
     
    210446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    211447  | --includ=* | --inclu=* | --incl=* | --inc=*)
    212     includedir="$ac_optarg" ;;
     448    includedir=$ac_optarg ;;
    213449
    214450  -infodir | --infodir | --infodi | --infod | --info | --inf)
    215451    ac_prev=infodir ;;
    216452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    217     infodir="$ac_optarg" ;;
     453    infodir=$ac_optarg ;;
    218454
    219455  -libdir | --libdir | --libdi | --libd)
    220456    ac_prev=libdir ;;
    221457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    222     libdir="$ac_optarg" ;;
     458    libdir=$ac_optarg ;;
    223459
    224460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    227463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    228464  | --libexe=* | --libex=* | --libe=*)
    229     libexecdir="$ac_optarg" ;;
     465    libexecdir=$ac_optarg ;;
    230466
    231467  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    236472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    237473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    238     localstatedir="$ac_optarg" ;;
     474    localstatedir=$ac_optarg ;;
    239475
    240476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    241477    ac_prev=mandir ;;
    242478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    243     mandir="$ac_optarg" ;;
     479    mandir=$ac_optarg ;;
    244480
    245481  -nfp | --nfp | --nf)
     
    248484
    249485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    250   | --no-cr | --no-c)
     486  | --no-cr | --no-c | -n)
    251487    no_create=yes ;;
    252488
     
    262498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    263499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    264     oldincludedir="$ac_optarg" ;;
     500    oldincludedir=$ac_optarg ;;
    265501
    266502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    267503    ac_prev=prefix ;;
    268504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    269     prefix="$ac_optarg" ;;
     505    prefix=$ac_optarg ;;
    270506
    271507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    274510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    275511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    276     program_prefix="$ac_optarg" ;;
     512    program_prefix=$ac_optarg ;;
    277513
    278514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    281517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    282518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    283     program_suffix="$ac_optarg" ;;
     519    program_suffix=$ac_optarg ;;
    284520
    285521  -program-transform-name | --program-transform-name \
     
    298534  | --program-trans=* | --program-tran=* \
    299535  | --progr-tra=* | --program-tr=* | --program-t=*)
    300     program_transform_name="$ac_optarg" ;;
     536    program_transform_name=$ac_optarg ;;
    301537
    302538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    308544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    309545  | --sbi=* | --sb=*)
    310     sbindir="$ac_optarg" ;;
     546    sbindir=$ac_optarg ;;
    311547
    312548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    319555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    320556  | --sha=* | --sh=*)
    321     sharedstatedir="$ac_optarg" ;;
     557    sharedstatedir=$ac_optarg ;;
    322558
    323559  -site | --site | --sit)
    324560    ac_prev=site ;;
    325561  -site=* | --site=* | --sit=*)
    326     site="$ac_optarg" ;;
     562    site=$ac_optarg ;;
    327563
    328564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    329565    ac_prev=srcdir ;;
    330566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    331     srcdir="$ac_optarg" ;;
     567    srcdir=$ac_optarg ;;
    332568
    333569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    336572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    337573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    338     sysconfdir="$ac_optarg" ;;
     574    sysconfdir=$ac_optarg ;;
    339575
    340576  -target | --target | --targe | --targ | --tar | --ta | --t)
    341     ac_prev=target ;;
     577    ac_prev=target_alias ;;
    342578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    343     target="$ac_optarg" ;;
     579    target_alias=$ac_optarg ;;
    344580
    345581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    346582    verbose=yes ;;
    347583
    348   -version | --version | --versio | --versi | --vers)
    349     echo "configure generated by autoconf version 2.13"
    350     exit 0 ;;
     584  -version | --version | --versio | --versi | --vers | -V)
     585    ac_init_version=: ;;
    351586
    352587  -with-* | --with-*)
    353     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    354589    # Reject names that are not valid shell variable names.
    355     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    357     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; }; }
    358593    ac_package=`echo $ac_package| sed 's/-/_/g'`
    359     case "$ac_option" in
    360       *=*) ;;
     594    case $ac_option in
     595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    361596      *) ac_optarg=yes ;;
    362597    esac
    363     eval "with_${ac_package}='$ac_optarg'" ;;
     598    eval "with_$ac_package='$ac_optarg'" ;;
    364599
    365600  -without-* | --without-*)
    366     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    367602    # Reject names that are not valid shell variable names.
    368     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    370     fi
    371     ac_package=`echo $ac_package| sed 's/-/_/g'`
    372     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" ;;
    373608
    374609  --x)
     
    381616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    382617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    383     x_includes="$ac_optarg" ;;
     618    x_includes=$ac_optarg ;;
    384619
    385620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    388623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    389624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    390     x_libraries="$ac_optarg" ;;
    391 
    392   -*) { 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; }; }
    393630    ;;
    394631
     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
    395642  *)
    396     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    397       echo "configure: warning: $ac_option: invalid host type" 1>&2
    398     fi
    399     if test "x$nonopt" != xNONE; then
    400       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    401     fi
    402     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}
    403648    ;;
    404649
     
    407652
    408653if test -n "$ac_prev"; then
    409   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    410 fi
    411 
    412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    413 
    414 # File descriptor usage:
    415 # 0 standard input
    416 # 1 file creation
    417 # 2 errors and warnings
    418 # 3 some systems may open it to /dev/tty
    419 # 4 used on the Kubota Titan
    420 # 6 checking for... messages and results
    421 # 5 compiler messages saved in config.log
    422 if test "$silent" = yes; then
    423   exec 6>/dev/null
    424 else
    425   exec 6>&1
    426 fi
    427 exec 5>./config.log
    428 
    429 echo "\
    430 This file contains any messages produced by compilers while
    431 running configure, to aid debugging if configure makes a mistake.
    432 " 1>&5
    433 
    434 # Strip out --no-create and --no-recursion so they do not pile up.
    435 # Also quote any args containing shell metacharacters.
    436 ac_configure_args=
    437 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
    438661do
    439   case "$ac_arg" in
    440   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    441   | --no-cr | --no-c) ;;
    442   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    443   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    444   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    445   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    446   *) 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; }; };;
    447667  esac
    448668done
    449669
    450 # NLS nuisances.
    451 # Only set these to C if already set.  These must not be set unconditionally
    452 # because not all systems understand e.g. LANG=C (notably SCO).
    453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    454 # Non-C LC_CTYPE values break the ctype check.
    455 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    458 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    459 
    460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    461 rm -rf conftest* confdefs.h
    462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    463 echo > confdefs.h
    464 
    465 # A filename unique to this package, relative to the directory that
    466 # configure is in, which we can look for to find out if srcdir is correct.
    467 ac_unique_file=lib/text_t.h
     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
    468705
    469706# Find the source files, if location was not specified.
     
    471708  ac_srcdir_defaulted=yes
    472709  # Try the directory containing this script, then its parent.
    473   ac_prog=$0
    474   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    475   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'`
    476722  srcdir=$ac_confdir
    477723  if test ! -r $srcdir/$ac_unique_file; then
     
    483729if test ! -r $srcdir/$ac_unique_file; then
    484730  if test "$ac_srcdir_defaulted" = yes; then
    485     { 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; }; }
    486733  else
    487     { 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; }; }
    488736  fi
    489737fi
    490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    491 
     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_CXX_set=${CXX+set}
     771ac_env_CXX_value=$CXX
     772ac_cv_env_CXX_set=${CXX+set}
     773ac_cv_env_CXX_value=$CXX
     774ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     775ac_env_CXXFLAGS_value=$CXXFLAGS
     776ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     777ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     778ac_env_CPP_set=${CPP+set}
     779ac_env_CPP_value=$CPP
     780ac_cv_env_CPP_set=${CPP+set}
     781ac_cv_env_CPP_value=$CPP
     782
     783#
     784# Report the --help message.
     785#
     786if test "$ac_init_help" = "long"; then
     787  # Omit some internal or obsolete options to make the list less imposing.
     788  # This message is too long to be a string in the A/UX 3.1 sh.
     789  cat <<_ACEOF
     790\`configure' configures this package to adapt to many kinds of systems.
     791
     792Usage: $0 [OPTION]... [VAR=VALUE]...
     793
     794To assign environment variables (e.g., CC, CFLAGS...), specify them as
     795VAR=VALUE.  See below for descriptions of some of the useful variables.
     796
     797Defaults for the options are specified in brackets.
     798
     799Configuration:
     800  -h, --help              display this help and exit
     801      --help=short        display options specific to this package
     802      --help=recursive    display the short help of all the included packages
     803  -V, --version           display version information and exit
     804  -q, --quiet, --silent   do not print \`checking...' messages
     805      --cache-file=FILE   cache test results in FILE [disabled]
     806  -C, --config-cache      alias for \`--cache-file=config.cache'
     807  -n, --no-create         do not create output files
     808      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     809
     810_ACEOF
     811
     812  cat <<_ACEOF
     813Installation directories:
     814  --prefix=PREFIX         install architecture-independent files in PREFIX
     815              [$ac_default_prefix]
     816  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     817              [PREFIX]
     818
     819By default, \`make install' will install all the files in
     820\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     821an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     822for instance \`--prefix=\$HOME'.
     823
     824For better control, use the options below.
     825
     826Fine tuning of the installation directories:
     827  --bindir=DIR           user executables [EPREFIX/bin]
     828  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     829  --libexecdir=DIR       program executables [EPREFIX/libexec]
     830  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     831  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     832  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     833  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     834  --libdir=DIR           object code libraries [EPREFIX/lib]
     835  --includedir=DIR       C header files [PREFIX/include]
     836  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     837  --infodir=DIR          info documentation [PREFIX/info]
     838  --mandir=DIR           man documentation [PREFIX/man]
     839_ACEOF
     840
     841  cat <<\_ACEOF
     842
     843System types:
     844  --build=BUILD     configure for building on BUILD [guessed]
     845  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
     846  --target=TARGET   configure for building compilers for TARGET [HOST]
     847_ACEOF
     848fi
     849
     850if test -n "$ac_init_help"; then
     851
     852  cat <<\_ACEOF
     853
     854Optional Features:
     855  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     856  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     857  --enable-corba          Enable CORBA support
     858  --enable-z3950          Enable Z39.50 client support
     859
     860Optional Packages:
     861  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     862  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     863  --with-micodir          Use installed MICO directory
     864  --with-gdbm=dir         Use local gdbm library and headers
     865  --with-dmalloc          use dmalloc, as in
     866                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     867  --with-regex            use older regex in lieu of GNU rx for matching
     868
     869Some influential environment variables:
     870  CC          C compiler command
     871  CFLAGS      C compiler flags
     872  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     873              nonstandard directory <lib dir>
     874  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     875              headers in a nonstandard directory <include dir>
     876  CXX         C++ compiler command
     877  CXXFLAGS    C++ compiler flags
     878  CPP         C preprocessor
     879
     880Use these variables to override the choices made by `configure' or to help
     881it to find libraries and programs with nonstandard names/locations.
     882
     883_ACEOF
     884fi
     885
     886if test "$ac_init_help" = "recursive"; then
     887  # If there are subdirs, report their specific --help.
     888  ac_popdir=`pwd`
     889  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     890    test -d $ac_dir || continue
     891    ac_builddir=.
     892
     893if test "$ac_dir" != .; then
     894  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     895  # A "../" for each directory in $ac_dir_suffix.
     896  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     897else
     898  ac_dir_suffix= ac_top_builddir=
     899fi
     900
     901case $srcdir in
     902  .)  # No --srcdir option.  We are building in place.
     903    ac_srcdir=.
     904    if test -z "$ac_top_builddir"; then
     905       ac_top_srcdir=.
     906    else
     907       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     908    fi ;;
     909  [\\/]* | ?:[\\/]* )  # Absolute path.
     910    ac_srcdir=$srcdir$ac_dir_suffix;
     911    ac_top_srcdir=$srcdir ;;
     912  *) # Relative path.
     913    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     914    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     915esac
     916
     917# Do not use `cd foo && pwd` to compute absolute paths, because
     918# the directories may not exist.
     919case `pwd` in
     920.) ac_abs_builddir="$ac_dir";;
     921*)
     922  case "$ac_dir" in
     923  .) ac_abs_builddir=`pwd`;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     925  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_top_builddir=${ac_top_builddir}.;;
     930*)
     931  case ${ac_top_builddir}. in
     932  .) ac_abs_top_builddir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     934  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_srcdir=$ac_srcdir;;
     939*)
     940  case $ac_srcdir in
     941  .) ac_abs_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     943  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     944  esac;;
     945esac
     946case $ac_abs_builddir in
     947.) ac_abs_top_srcdir=$ac_top_srcdir;;
     948*)
     949  case $ac_top_srcdir in
     950  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     951  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     952  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     953  esac;;
     954esac
     955
     956    cd $ac_dir
     957    # Check for guested configure; otherwise get Cygnus style configure.
     958    if test -f $ac_srcdir/configure.gnu; then
     959      echo
     960      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     961    elif test -f $ac_srcdir/configure; then
     962      echo
     963      $SHELL $ac_srcdir/configure  --help=recursive
     964    elif test -f $ac_srcdir/configure.ac ||
     965       test -f $ac_srcdir/configure.in; then
     966      echo
     967      $ac_configure --help
     968    else
     969      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     970    fi
     971    cd $ac_popdir
     972  done
     973fi
     974
     975test -n "$ac_init_help" && exit 0
     976if $ac_init_version; then
     977  cat <<\_ACEOF
     978
     979Copyright (C) 2003 Free Software Foundation, Inc.
     980This configure script is free software; the Free Software Foundation
     981gives unlimited permission to copy, distribute and modify it.
     982_ACEOF
     983  exit 0
     984fi
     985exec 5>config.log
     986cat >&5 <<_ACEOF
     987This file contains any messages produced by compilers while
     988running configure, to aid debugging if configure makes a mistake.
     989
     990It was created by $as_me, which was
     991generated by GNU Autoconf 2.59.  Invocation command line was
     992
     993  $ $0 $@
     994
     995_ACEOF
     996{
     997cat <<_ASUNAME
     998## --------- ##
     999## Platform. ##
     1000## --------- ##
     1001
     1002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     1003uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1004uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1005uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1006uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1007
     1008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1009/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1010
     1011/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1012/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1014hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1015/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1016/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1017/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1018
     1019_ASUNAME
     1020
     1021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1022for as_dir in $PATH
     1023do
     1024  IFS=$as_save_IFS
     1025  test -z "$as_dir" && as_dir=.
     1026  echo "PATH: $as_dir"
     1027done
     1028
     1029} >&5
     1030
     1031cat >&5 <<_ACEOF
     1032
     1033
     1034## ----------- ##
     1035## Core tests. ##
     1036## ----------- ##
     1037
     1038_ACEOF
     1039
     1040
     1041# Keep a trace of the command line.
     1042# Strip out --no-create and --no-recursion so they do not pile up.
     1043# Strip out --silent because we don't want to record it for future runs.
     1044# Also quote any args containing shell meta-characters.
     1045# Make two passes to allow for proper duplicate-argument suppression.
     1046ac_configure_args=
     1047ac_configure_args0=
     1048ac_configure_args1=
     1049ac_sep=
     1050ac_must_keep_next=false
     1051for ac_pass in 1 2
     1052do
     1053  for ac_arg
     1054  do
     1055    case $ac_arg in
     1056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1058    | -silent | --silent | --silen | --sile | --sil)
     1059      continue ;;
     1060    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1061      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1062    esac
     1063    case $ac_pass in
     1064    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1065    2)
     1066      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1067      if test $ac_must_keep_next = true; then
     1068    ac_must_keep_next=false # Got value, back to normal.
     1069      else
     1070    case $ac_arg in
     1071      *=* | --config-cache | -C | -disable-* | --disable-* \
     1072      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1073      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1074      | -with-* | --with-* | -without-* | --without-* | --x)
     1075        case "$ac_configure_args0 " in
     1076          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1077        esac
     1078        ;;
     1079      -* ) ac_must_keep_next=true ;;
     1080    esac
     1081      fi
     1082      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1083      # Get rid of the leading space.
     1084      ac_sep=" "
     1085      ;;
     1086    esac
     1087  done
     1088done
     1089$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1090$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1091
     1092# When interrupted or exit'd, cleanup temporary files, and complete
     1093# config.log.  We remove comments because anyway the quotes in there
     1094# would cause problems or look ugly.
     1095# WARNING: Be sure not to use single quotes in there, as some shells,
     1096# such as our DU 5.0 friend, will then `close' the trap.
     1097trap 'exit_status=$?
     1098  # Save into config.log some information that might help in debugging.
     1099  {
     1100    echo
     1101
     1102    cat <<\_ASBOX
     1103## ---------------- ##
     1104## Cache variables. ##
     1105## ---------------- ##
     1106_ASBOX
     1107    echo
     1108    # The following way of writing the cache mishandles newlines in values,
     1109{
     1110  (set) 2>&1 |
     1111    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1112    *ac_space=\ *)
     1113      sed -n \
     1114    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1115      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1116      ;;
     1117    *)
     1118      sed -n \
     1119    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1120      ;;
     1121    esac;
     1122}
     1123    echo
     1124
     1125    cat <<\_ASBOX
     1126## ----------------- ##
     1127## Output variables. ##
     1128## ----------------- ##
     1129_ASBOX
     1130    echo
     1131    for ac_var in $ac_subst_vars
     1132    do
     1133      eval ac_val=$`echo $ac_var`
     1134      echo "$ac_var='"'"'$ac_val'"'"'"
     1135    done | sort
     1136    echo
     1137
     1138    if test -n "$ac_subst_files"; then
     1139      cat <<\_ASBOX
     1140## ------------- ##
     1141## Output files. ##
     1142## ------------- ##
     1143_ASBOX
     1144      echo
     1145      for ac_var in $ac_subst_files
     1146      do
     1147    eval ac_val=$`echo $ac_var`
     1148    echo "$ac_var='"'"'$ac_val'"'"'"
     1149      done | sort
     1150      echo
     1151    fi
     1152
     1153    if test -s confdefs.h; then
     1154      cat <<\_ASBOX
     1155## ----------- ##
     1156## confdefs.h. ##
     1157## ----------- ##
     1158_ASBOX
     1159      echo
     1160      sed "/^$/d" confdefs.h | sort
     1161      echo
     1162    fi
     1163    test "$ac_signal" != 0 &&
     1164      echo "$as_me: caught signal $ac_signal"
     1165    echo "$as_me: exit $exit_status"
     1166  } >&5
     1167  rm -f core *.core &&
     1168  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1169    exit $exit_status
     1170     ' 0
     1171for ac_signal in 1 2 13 15; do
     1172  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1173done
     1174ac_signal=0
     1175
     1176# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1177rm -rf conftest* confdefs.h
     1178# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1179echo >confdefs.h
     1180
     1181# Predefined preprocessor variables.
     1182
     1183cat >>confdefs.h <<_ACEOF
     1184#define PACKAGE_NAME "$PACKAGE_NAME"
     1185_ACEOF
     1186
     1187
     1188cat >>confdefs.h <<_ACEOF
     1189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1190_ACEOF
     1191
     1192
     1193cat >>confdefs.h <<_ACEOF
     1194#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1195_ACEOF
     1196
     1197
     1198cat >>confdefs.h <<_ACEOF
     1199#define PACKAGE_STRING "$PACKAGE_STRING"
     1200_ACEOF
     1201
     1202
     1203cat >>confdefs.h <<_ACEOF
     1204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1205_ACEOF
     1206
     1207
     1208# Let the site file select an alternate cache file if it wants to.
    4921209# Prefer explicitly selected file to automatically selected ones.
    4931210if test -z "$CONFIG_SITE"; then
     
    5001217for ac_site_file in $CONFIG_SITE; do
    5011218  if test -r "$ac_site_file"; then
    502     echo "loading site script $ac_site_file"
     1219    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1220echo "$as_me: loading site script $ac_site_file" >&6;}
     1221    sed 's/^/| /' "$ac_site_file" >&5
    5031222    . "$ac_site_file"
    5041223  fi
     
    5061225
    5071226if test -r "$cache_file"; then
    508   echo "loading cache $cache_file"
    509   . $cache_file
    510 else
    511   echo "creating cache $cache_file"
    512   > $cache_file
     1227  # Some versions of bash will fail to source /dev/null (special
     1228  # files actually), so we avoid doing that.
     1229  if test -f "$cache_file"; then
     1230    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1231echo "$as_me: loading cache $cache_file" >&6;}
     1232    case $cache_file in
     1233      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1234      *)                      . ./$cache_file;;
     1235    esac
     1236  fi
     1237else
     1238  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1239echo "$as_me: creating cache $cache_file" >&6;}
     1240  >$cache_file
     1241fi
     1242
     1243# Check that the precious variables saved in the cache have kept the same
     1244# value.
     1245ac_cache_corrupted=false
     1246for ac_var in `(set) 2>&1 |
     1247           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1249  eval ac_new_set=\$ac_env_${ac_var}_set
     1250  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1251  eval ac_new_val="\$ac_env_${ac_var}_value"
     1252  case $ac_old_set,$ac_new_set in
     1253    set,)
     1254      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1255echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1256      ac_cache_corrupted=: ;;
     1257    ,set)
     1258      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1259echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1260      ac_cache_corrupted=: ;;
     1261    ,);;
     1262    *)
     1263      if test "x$ac_old_val" != "x$ac_new_val"; then
     1264    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1265echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1266    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1267echo "$as_me:   former value:  $ac_old_val" >&2;}
     1268    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1269echo "$as_me:   current value: $ac_new_val" >&2;}
     1270    ac_cache_corrupted=:
     1271      fi;;
     1272  esac
     1273  # Pass precious variables to config.status.
     1274  if test "$ac_new_set" = set; then
     1275    case $ac_new_val in
     1276    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1277      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1278    *) ac_arg=$ac_var=$ac_new_val ;;
     1279    esac
     1280    case " $ac_configure_args " in
     1281      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1282      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1283    esac
     1284  fi
     1285done
     1286if $ac_cache_corrupted; then
     1287  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1288echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1289  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1290echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1291   { (exit 1); exit 1; }; }
    5131292fi
    5141293
    5151294ac_ext=c
    516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    5171295ac_cpp='$CPP $CPPFLAGS'
    518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    520 cross_compiling=$ac_cv_prog_cc_cross
    521 
    522 ac_exeext=
    523 ac_objext=o
    524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    525   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
    526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    527     ac_n= ac_c='
    528 ' ac_t='    '
    529   else
    530     ac_n=-n ac_c= ac_t=
    531   fi
    532 else
    533   ac_n= ac_c='\c' ac_t=
    534 fi
    535 
    536 
     1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1298ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309
     1310
     1311
     1312
     1313
     1314
     1315
     1316
     1317
     1318          ac_config_headers="$ac_config_headers config.h"
    5371319
    5381320
    5391321PACKAGE=gsdl
    5401322VERSION=2.1
    541 cat >> confdefs.h <<EOF
     1323cat >>confdefs.h <<_ACEOF
    5421324#define PACKAGE "$PACKAGE"
    543 EOF
    544 
    545 cat >> confdefs.h <<EOF
     1325_ACEOF
     1326
     1327cat >>confdefs.h <<_ACEOF
    5461328#define VERSION "$VERSION"
    547 EOF
     1329_ACEOF
    5481330
    5491331
     
    5521334USE_FASTCGI=0
    5531335if test USE_FASTCGI = 1; then
    554 cat >> confdefs.h <<\EOF
     1336cat >>confdefs.h <<\_ACEOF
    5551337#define USE_FASTCGI 1
    556 EOF
     1338_ACEOF
    5571339
    5581340
     
    5601342
    5611343if test USE_LANGACTION = 1; then
    562 cat >> confdefs.h <<\EOF
     1344cat >>confdefs.h <<\_ACEOF
    5631345#define USE_LANGACTION 1
    564 EOF
     1346_ACEOF
    5651347
    5661348
     
    5731355else
    5741356  USE_CORBA=0
    575 fi
    576 
    577 cat >> confdefs.h <<EOF
     1357fi;
     1358cat >>confdefs.h <<_ACEOF
    5781359#define USE_CORBA $USE_CORBA
    579 EOF
     1360_ACEOF
     1361
    5801362
    5811363
     
    5871369else
    5881370  MICO_DIR="default"
    589 fi
    590 
    591 cat >> confdefs.h <<EOF
     1371fi;
     1372cat >>confdefs.h <<_ACEOF
    5921373#define MICO_DIR "$MICO_DIR"
    593 EOF
     1374_ACEOF
    5941375
    5951376
     
    6011382else
    6021383  USE_Z3950=0
    603 fi
    604 
     1384fi;
    6051385if test USE_Z3950 = 1; then
    606 cat >> confdefs.h <<\EOF
     1386cat >>confdefs.h <<\_ACEOF
    6071387#define USE_Z3950 $USE_Z3950
    608 EOF
    609 
    610 
    611 fi
     1388_ACEOF
     1389
     1390
     1391fi
     1392
    6121393
    6131394# Check whether --with-gdbm or --without-gdbm was given.
     
    6151396  withval="$with_gdbm"
    6161397  gdbmdir=$withval
    617 fi
    618 
     1398fi;
    6191399
    6201400LDFLAGS=
     
    6241404
    6251405
    626 # Extract the first word of "gcc", so it can be a program name with args.
    627 set dummy gcc; ac_word=$2
    628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    629 echo "configure:630: checking for $ac_word" >&5
    630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    631   echo $ac_n "(cached) $ac_c" 1>&6
     1406ac_ext=c
     1407ac_cpp='$CPP $CPPFLAGS'
     1408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1410ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1411if test -n "$ac_tool_prefix"; then
     1412  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1413set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1414echo "$as_me:$LINENO: checking for $ac_word" >&5
     1415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1416if test "${ac_cv_prog_CC+set}" = set; then
     1417  echo $ECHO_N "(cached) $ECHO_C" >&6
    6321418else
    6331419  if test -n "$CC"; then
    6341420  ac_cv_prog_CC="$CC" # Let the user override the test.
    6351421else
    636   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    637   ac_dummy="$PATH"
    638   for ac_dir in $ac_dummy; do
    639     test -z "$ac_dir" && ac_dir=.
    640     if test -f $ac_dir/$ac_word; then
    641       ac_cv_prog_CC="gcc"
    642       break
    643     fi
    644   done
    645   IFS="$ac_save_ifs"
    646 fi
    647 fi
    648 CC="$ac_cv_prog_CC"
     1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1423for as_dir in $PATH
     1424do
     1425  IFS=$as_save_IFS
     1426  test -z "$as_dir" && as_dir=.
     1427  for ac_exec_ext in '' $ac_executable_extensions; do
     1428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1429    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1431    break 2
     1432  fi
     1433done
     1434done
     1435
     1436fi
     1437fi
     1438CC=$ac_cv_prog_CC
    6491439if test -n "$CC"; then
    650   echo "$ac_t""$CC" 1>&6
    651 else
    652   echo "$ac_t""no" 1>&6
    653 fi
    654 
     1440  echo "$as_me:$LINENO: result: $CC" >&5
     1441echo "${ECHO_T}$CC" >&6
     1442else
     1443  echo "$as_me:$LINENO: result: no" >&5
     1444echo "${ECHO_T}no" >&6
     1445fi
     1446
     1447fi
     1448if test -z "$ac_cv_prog_CC"; then
     1449  ac_ct_CC=$CC
     1450  # Extract the first word of "gcc", so it can be a program name with args.
     1451set dummy gcc; ac_word=$2
     1452echo "$as_me:$LINENO: checking for $ac_word" >&5
     1453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1455  echo $ECHO_N "(cached) $ECHO_C" >&6
     1456else
     1457  if test -n "$ac_ct_CC"; then
     1458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1459else
     1460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1461for as_dir in $PATH
     1462do
     1463  IFS=$as_save_IFS
     1464  test -z "$as_dir" && as_dir=.
     1465  for ac_exec_ext in '' $ac_executable_extensions; do
     1466  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1467    ac_cv_prog_ac_ct_CC="gcc"
     1468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1469    break 2
     1470  fi
     1471done
     1472done
     1473
     1474fi
     1475fi
     1476ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1477if test -n "$ac_ct_CC"; then
     1478  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1479echo "${ECHO_T}$ac_ct_CC" >&6
     1480else
     1481  echo "$as_me:$LINENO: result: no" >&5
     1482echo "${ECHO_T}no" >&6
     1483fi
     1484
     1485  CC=$ac_ct_CC
     1486else
     1487  CC="$ac_cv_prog_CC"
     1488fi
     1489
     1490if test -z "$CC"; then
     1491  if test -n "$ac_tool_prefix"; then
     1492  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1493set dummy ${ac_tool_prefix}cc; ac_word=$2
     1494echo "$as_me:$LINENO: checking for $ac_word" >&5
     1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1496if test "${ac_cv_prog_CC+set}" = set; then
     1497  echo $ECHO_N "(cached) $ECHO_C" >&6
     1498else
     1499  if test -n "$CC"; then
     1500  ac_cv_prog_CC="$CC" # Let the user override the test.
     1501else
     1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1503for as_dir in $PATH
     1504do
     1505  IFS=$as_save_IFS
     1506  test -z "$as_dir" && as_dir=.
     1507  for ac_exec_ext in '' $ac_executable_extensions; do
     1508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1509    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1511    break 2
     1512  fi
     1513done
     1514done
     1515
     1516fi
     1517fi
     1518CC=$ac_cv_prog_CC
     1519if test -n "$CC"; then
     1520  echo "$as_me:$LINENO: result: $CC" >&5
     1521echo "${ECHO_T}$CC" >&6
     1522else
     1523  echo "$as_me:$LINENO: result: no" >&5
     1524echo "${ECHO_T}no" >&6
     1525fi
     1526
     1527fi
     1528if test -z "$ac_cv_prog_CC"; then
     1529  ac_ct_CC=$CC
     1530  # Extract the first word of "cc", so it can be a program name with args.
     1531set dummy cc; ac_word=$2
     1532echo "$as_me:$LINENO: checking for $ac_word" >&5
     1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1535  echo $ECHO_N "(cached) $ECHO_C" >&6
     1536else
     1537  if test -n "$ac_ct_CC"; then
     1538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1539else
     1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1541for as_dir in $PATH
     1542do
     1543  IFS=$as_save_IFS
     1544  test -z "$as_dir" && as_dir=.
     1545  for ac_exec_ext in '' $ac_executable_extensions; do
     1546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1547    ac_cv_prog_ac_ct_CC="cc"
     1548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1549    break 2
     1550  fi
     1551done
     1552done
     1553
     1554fi
     1555fi
     1556ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1557if test -n "$ac_ct_CC"; then
     1558  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1559echo "${ECHO_T}$ac_ct_CC" >&6
     1560else
     1561  echo "$as_me:$LINENO: result: no" >&5
     1562echo "${ECHO_T}no" >&6
     1563fi
     1564
     1565  CC=$ac_ct_CC
     1566else
     1567  CC="$ac_cv_prog_CC"
     1568fi
     1569
     1570fi
    6551571if test -z "$CC"; then
    6561572  # Extract the first word of "cc", so it can be a program name with args.
    6571573set dummy cc; ac_word=$2
    658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    659 echo "configure:660: checking for $ac_word" >&5
    660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    661   echo $ac_n "(cached) $ac_c" 1>&6
     1574echo "$as_me:$LINENO: checking for $ac_word" >&5
     1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1576if test "${ac_cv_prog_CC+set}" = set; then
     1577  echo $ECHO_N "(cached) $ECHO_C" >&6
    6621578else
    6631579  if test -n "$CC"; then
    6641580  ac_cv_prog_CC="$CC" # Let the user override the test.
    6651581else
    666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    6671582  ac_prog_rejected=no
    668   ac_dummy="$PATH"
    669   for ac_dir in $ac_dummy; do
    670     test -z "$ac_dir" && ac_dir=.
    671     if test -f $ac_dir/$ac_word; then
    672       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    673         ac_prog_rejected=yes
    674     continue
    675       fi
    676       ac_cv_prog_CC="cc"
    677       break
    678     fi
    679   done
    680   IFS="$ac_save_ifs"
     1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1584for as_dir in $PATH
     1585do
     1586  IFS=$as_save_IFS
     1587  test -z "$as_dir" && as_dir=.
     1588  for ac_exec_ext in '' $ac_executable_extensions; do
     1589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1590    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     1591       ac_prog_rejected=yes
     1592       continue
     1593     fi
     1594    ac_cv_prog_CC="cc"
     1595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1596    break 2
     1597  fi
     1598done
     1599done
     1600
    6811601if test $ac_prog_rejected = yes; then
    6821602  # We found a bogon in the path, so make sure we never use it.
    6831603  set dummy $ac_cv_prog_CC
    6841604  shift
    685   if test $# -gt 0; then
     1605  if test $# != 0; then
    6861606    # We chose a different compiler from the bogus one.
    6871607    # However, it has the same basename, so the bogon will be chosen
    6881608    # first if we set CC to just the basename; use the full file name.
    6891609    shift
    690     set dummy "$ac_dir/$ac_word" "$@"
    691     shift
    692     ac_cv_prog_CC="$@"
     1610    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    6931611  fi
    6941612fi
    6951613fi
    6961614fi
    697 CC="$ac_cv_prog_CC"
     1615CC=$ac_cv_prog_CC
    6981616if test -n "$CC"; then
    699   echo "$ac_t""$CC" 1>&6
    700 else
    701   echo "$ac_t""no" 1>&6
    702 fi
    703 
    704   if test -z "$CC"; then
    705     case "`uname -s`" in
    706     *win32* | *WIN32*)
    707       # Extract the first word of "cl", so it can be a program name with args.
    708 set dummy cl; ac_word=$2
    709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    710 echo "configure:711: checking for $ac_word" >&5
    711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    712   echo $ac_n "(cached) $ac_c" 1>&6
     1617  echo "$as_me:$LINENO: result: $CC" >&5
     1618echo "${ECHO_T}$CC" >&6
     1619else
     1620  echo "$as_me:$LINENO: result: no" >&5
     1621echo "${ECHO_T}no" >&6
     1622fi
     1623
     1624fi
     1625if test -z "$CC"; then
     1626  if test -n "$ac_tool_prefix"; then
     1627  for ac_prog in cl
     1628  do
     1629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1631echo "$as_me:$LINENO: checking for $ac_word" >&5
     1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1633if test "${ac_cv_prog_CC+set}" = set; then
     1634  echo $ECHO_N "(cached) $ECHO_C" >&6
    7131635else
    7141636  if test -n "$CC"; then
    7151637  ac_cv_prog_CC="$CC" # Let the user override the test.
    7161638else
    717   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    718   ac_dummy="$PATH"
    719   for ac_dir in $ac_dummy; do
    720     test -z "$ac_dir" && ac_dir=.
    721     if test -f $ac_dir/$ac_word; then
    722       ac_cv_prog_CC="cl"
    723       break
     1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1640for as_dir in $PATH
     1641do
     1642  IFS=$as_save_IFS
     1643  test -z "$as_dir" && as_dir=.
     1644  for ac_exec_ext in '' $ac_executable_extensions; do
     1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1646    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1648    break 2
     1649  fi
     1650done
     1651done
     1652
     1653fi
     1654fi
     1655CC=$ac_cv_prog_CC
     1656if test -n "$CC"; then
     1657  echo "$as_me:$LINENO: result: $CC" >&5
     1658echo "${ECHO_T}$CC" >&6
     1659else
     1660  echo "$as_me:$LINENO: result: no" >&5
     1661echo "${ECHO_T}no" >&6
     1662fi
     1663
     1664    test -n "$CC" && break
     1665  done
     1666fi
     1667if test -z "$CC"; then
     1668  ac_ct_CC=$CC
     1669  for ac_prog in cl
     1670do
     1671  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1672set dummy $ac_prog; ac_word=$2
     1673echo "$as_me:$LINENO: checking for $ac_word" >&5
     1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1676  echo $ECHO_N "(cached) $ECHO_C" >&6
     1677else
     1678  if test -n "$ac_ct_CC"; then
     1679  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1680else
     1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1682for as_dir in $PATH
     1683do
     1684  IFS=$as_save_IFS
     1685  test -z "$as_dir" && as_dir=.
     1686  for ac_exec_ext in '' $ac_executable_extensions; do
     1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1688    ac_cv_prog_ac_ct_CC="$ac_prog"
     1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1690    break 2
     1691  fi
     1692done
     1693done
     1694
     1695fi
     1696fi
     1697ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1698if test -n "$ac_ct_CC"; then
     1699  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1700echo "${ECHO_T}$ac_ct_CC" >&6
     1701else
     1702  echo "$as_me:$LINENO: result: no" >&5
     1703echo "${ECHO_T}no" >&6
     1704fi
     1705
     1706  test -n "$ac_ct_CC" && break
     1707done
     1708
     1709  CC=$ac_ct_CC
     1710fi
     1711
     1712fi
     1713
     1714
     1715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1716See \`config.log' for more details." >&5
     1717echo "$as_me: error: no acceptable C compiler found in \$PATH
     1718See \`config.log' for more details." >&2;}
     1719   { (exit 1); exit 1; }; }
     1720
     1721# Provide some information about the compiler.
     1722echo "$as_me:$LINENO:" \
     1723     "checking for C compiler version" >&5
     1724ac_compiler=`set X $ac_compile; echo $2`
     1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1726  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1727  ac_status=$?
     1728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1729  (exit $ac_status); }
     1730{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1731  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1732  ac_status=$?
     1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1734  (exit $ac_status); }
     1735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1736  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1737  ac_status=$?
     1738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1739  (exit $ac_status); }
     1740
     1741cat >conftest.$ac_ext <<_ACEOF
     1742/* confdefs.h.  */
     1743_ACEOF
     1744cat confdefs.h >>conftest.$ac_ext
     1745cat >>conftest.$ac_ext <<_ACEOF
     1746/* end confdefs.h.  */
     1747
     1748int
     1749main ()
     1750{
     1751
     1752  ;
     1753  return 0;
     1754}
     1755_ACEOF
     1756ac_clean_files_save=$ac_clean_files
     1757ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1758# Try to create an executable without -o first, disregard a.out.
     1759# It will help us diagnose broken compilers, and finding out an intuition
     1760# of exeext.
     1761echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1762echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1763ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1764if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1765  (eval $ac_link_default) 2>&5
     1766  ac_status=$?
     1767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1768  (exit $ac_status); }; then
     1769  # Find the output, starting from the most likely.  This scheme is
     1770# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1771# resort.
     1772
     1773# Be careful to initialize this variable, since it used to be cached.
     1774# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1775ac_cv_exeext=
     1776# b.out is created by i960 compilers.
     1777for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1778do
     1779  test -f "$ac_file" || continue
     1780  case $ac_file in
     1781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1782    ;;
     1783    conftest.$ac_ext )
     1784    # This is the source file.
     1785    ;;
     1786    [ab].out )
     1787    # We found the default executable, but exeext='' is most
     1788    # certainly right.
     1789    break;;
     1790    *.* )
     1791    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1792    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1793    # but it would be cool to find out if it's true.  Does anybody
     1794    # maintain Libtool? --akim.
     1795    export ac_cv_exeext
     1796    break;;
     1797    * )
     1798    break;;
     1799  esac
     1800done
     1801else
     1802  echo "$as_me: failed program was:" >&5
     1803sed 's/^/| /' conftest.$ac_ext >&5
     1804
     1805{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1806See \`config.log' for more details." >&5
     1807echo "$as_me: error: C compiler cannot create executables
     1808See \`config.log' for more details." >&2;}
     1809   { (exit 77); exit 77; }; }
     1810fi
     1811
     1812ac_exeext=$ac_cv_exeext
     1813echo "$as_me:$LINENO: result: $ac_file" >&5
     1814echo "${ECHO_T}$ac_file" >&6
     1815
     1816# Check the compiler produces executables we can run.  If not, either
     1817# the compiler is broken, or we cross compile.
     1818echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1819echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1820# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1821# If not cross compiling, check that we can run a simple program.
     1822if test "$cross_compiling" != yes; then
     1823  if { ac_try='./$ac_file'
     1824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1825  (eval $ac_try) 2>&5
     1826  ac_status=$?
     1827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1828  (exit $ac_status); }; }; then
     1829    cross_compiling=no
     1830  else
     1831    if test "$cross_compiling" = maybe; then
     1832    cross_compiling=yes
     1833    else
     1834    { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1835If you meant to cross compile, use \`--host'.
     1836See \`config.log' for more details." >&5
     1837echo "$as_me: error: cannot run C compiled programs.
     1838If you meant to cross compile, use \`--host'.
     1839See \`config.log' for more details." >&2;}
     1840   { (exit 1); exit 1; }; }
    7241841    fi
    725   done
    726   IFS="$ac_save_ifs"
    727 fi
    728 fi
    729 CC="$ac_cv_prog_CC"
    730 if test -n "$CC"; then
    731   echo "$ac_t""$CC" 1>&6
    732 else
    733   echo "$ac_t""no" 1>&6
    734 fi
    735  ;;
    736     esac
    7371842  fi
    738   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    739 fi
    740 
    741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    742 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    743 
    744 ac_ext=c
    745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    746 ac_cpp='$CPP $CPPFLAGS'
    747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    749 cross_compiling=$ac_cv_prog_cc_cross
    750 
    751 cat > conftest.$ac_ext << EOF
    752 
    753 #line 754 "configure"
    754 #include "confdefs.h"
    755 
    756 main(){return(0);}
    757 EOF
    758 if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    759   ac_cv_prog_cc_works=yes
    760   # If we can't run a trivial program, we are probably using a cross compiler.
    761   if (./conftest; exit) 2>/dev/null; then
    762     ac_cv_prog_cc_cross=no
    763   else
    764     ac_cv_prog_cc_cross=yes
    765   fi
    766 else
    767   echo "configure: failed program was:" >&5
    768   cat conftest.$ac_ext >&5
    769   ac_cv_prog_cc_works=no
    770 fi
    771 rm -fr conftest*
    772 ac_ext=c
    773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    774 ac_cpp='$CPP $CPPFLAGS'
    775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    777 cross_compiling=$ac_cv_prog_cc_cross
    778 
    779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    780 if test $ac_cv_prog_cc_works = no; then
    781   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    782 fi
    783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    784 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    786 cross_compiling=$ac_cv_prog_cc_cross
    787 
    788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    789 echo "configure:790: checking whether we are using GNU C" >&5
    790 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    791   echo $ac_n "(cached) $ac_c" 1>&6
    792 else
    793   cat > conftest.c <<EOF
    794 #ifdef __GNUC__
    795   yes;
     1843fi
     1844echo "$as_me:$LINENO: result: yes" >&5
     1845echo "${ECHO_T}yes" >&6
     1846
     1847rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1848ac_clean_files=$ac_clean_files_save
     1849# Check the compiler produces executables we can run.  If not, either
     1850# the compiler is broken, or we cross compile.
     1851echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1852echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1853echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1854echo "${ECHO_T}$cross_compiling" >&6
     1855
     1856echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1857echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1859  (eval $ac_link) 2>&5
     1860  ac_status=$?
     1861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1862  (exit $ac_status); }; then
     1863  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1864# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1865# work properly (i.e., refer to `conftest.exe'), while it won't with
     1866# `rm'.
     1867for ac_file in conftest.exe conftest conftest.*; do
     1868  test -f "$ac_file" || continue
     1869  case $ac_file in
     1870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1871    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1872      export ac_cv_exeext
     1873      break;;
     1874    * ) break;;
     1875  esac
     1876done
     1877else
     1878  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1879See \`config.log' for more details." >&5
     1880echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1881See \`config.log' for more details." >&2;}
     1882   { (exit 1); exit 1; }; }
     1883fi
     1884
     1885rm -f conftest$ac_cv_exeext
     1886echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1887echo "${ECHO_T}$ac_cv_exeext" >&6
     1888
     1889rm -f conftest.$ac_ext
     1890EXEEXT=$ac_cv_exeext
     1891ac_exeext=$EXEEXT
     1892echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1893echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1894if test "${ac_cv_objext+set}" = set; then
     1895  echo $ECHO_N "(cached) $ECHO_C" >&6
     1896else
     1897  cat >conftest.$ac_ext <<_ACEOF
     1898/* confdefs.h.  */
     1899_ACEOF
     1900cat confdefs.h >>conftest.$ac_ext
     1901cat >>conftest.$ac_ext <<_ACEOF
     1902/* end confdefs.h.  */
     1903
     1904int
     1905main ()
     1906{
     1907
     1908  ;
     1909  return 0;
     1910}
     1911_ACEOF
     1912rm -f conftest.o conftest.obj
     1913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1914  (eval $ac_compile) 2>&5
     1915  ac_status=$?
     1916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1917  (exit $ac_status); }; then
     1918  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1919  case $ac_file in
     1920    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1921    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1922       break;;
     1923  esac
     1924done
     1925else
     1926  echo "$as_me: failed program was:" >&5
     1927sed 's/^/| /' conftest.$ac_ext >&5
     1928
     1929{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1930See \`config.log' for more details." >&5
     1931echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1932See \`config.log' for more details." >&2;}
     1933   { (exit 1); exit 1; }; }
     1934fi
     1935
     1936rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1937fi
     1938echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1939echo "${ECHO_T}$ac_cv_objext" >&6
     1940OBJEXT=$ac_cv_objext
     1941ac_objext=$OBJEXT
     1942echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     1943echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1944if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1945  echo $ECHO_N "(cached) $ECHO_C" >&6
     1946else
     1947  cat >conftest.$ac_ext <<_ACEOF
     1948/* confdefs.h.  */
     1949_ACEOF
     1950cat confdefs.h >>conftest.$ac_ext
     1951cat >>conftest.$ac_ext <<_ACEOF
     1952/* end confdefs.h.  */
     1953
     1954int
     1955main ()
     1956{
     1957#ifndef __GNUC__
     1958       choke me
    7961959#endif
    797 EOF
    798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    799   ac_cv_prog_gcc=yes
    800 else
    801   ac_cv_prog_gcc=no
    802 fi
    803 fi
    804 
    805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    806 
    807 if test $ac_cv_prog_gcc = yes; then
    808   GCC=yes
    809 else
    810   GCC=
    811 fi
    812 
    813 ac_test_CFLAGS="${CFLAGS+set}"
    814 ac_save_CFLAGS="$CFLAGS"
    815 CFLAGS=
    816 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    817 echo "configure:818: checking whether ${CC-cc} accepts -g" >&5
    818 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    819   echo $ac_n "(cached) $ac_c" 1>&6
    820 else
    821   echo 'void f(){}' > conftest.c
    822 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1960
     1961  ;
     1962  return 0;
     1963}
     1964_ACEOF
     1965rm -f conftest.$ac_objext
     1966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1967  (eval $ac_compile) 2>conftest.er1
     1968  ac_status=$?
     1969  grep -v '^ *+' conftest.er1 >conftest.err
     1970  rm -f conftest.er1
     1971  cat conftest.err >&5
     1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1973  (exit $ac_status); } &&
     1974     { ac_try='test -z "$ac_c_werror_flag"
     1975             || test ! -s conftest.err'
     1976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1977  (eval $ac_try) 2>&5
     1978  ac_status=$?
     1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1980  (exit $ac_status); }; } &&
     1981     { ac_try='test -s conftest.$ac_objext'
     1982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1983  (eval $ac_try) 2>&5
     1984  ac_status=$?
     1985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1986  (exit $ac_status); }; }; then
     1987  ac_compiler_gnu=yes
     1988else
     1989  echo "$as_me: failed program was:" >&5
     1990sed 's/^/| /' conftest.$ac_ext >&5
     1991
     1992ac_compiler_gnu=no
     1993fi
     1994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1995ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1996
     1997fi
     1998echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     1999echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2000GCC=`test $ac_compiler_gnu = yes && echo yes`
     2001ac_test_CFLAGS=${CFLAGS+set}
     2002ac_save_CFLAGS=$CFLAGS
     2003CFLAGS="-g"
     2004echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2005echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2006if test "${ac_cv_prog_cc_g+set}" = set; then
     2007  echo $ECHO_N "(cached) $ECHO_C" >&6
     2008else
     2009  cat >conftest.$ac_ext <<_ACEOF
     2010/* confdefs.h.  */
     2011_ACEOF
     2012cat confdefs.h >>conftest.$ac_ext
     2013cat >>conftest.$ac_ext <<_ACEOF
     2014/* end confdefs.h.  */
     2015
     2016int
     2017main ()
     2018{
     2019
     2020  ;
     2021  return 0;
     2022}
     2023_ACEOF
     2024rm -f conftest.$ac_objext
     2025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2026  (eval $ac_compile) 2>conftest.er1
     2027  ac_status=$?
     2028  grep -v '^ *+' conftest.er1 >conftest.err
     2029  rm -f conftest.er1
     2030  cat conftest.err >&5
     2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2032  (exit $ac_status); } &&
     2033     { ac_try='test -z "$ac_c_werror_flag"
     2034             || test ! -s conftest.err'
     2035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2036  (eval $ac_try) 2>&5
     2037  ac_status=$?
     2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2039  (exit $ac_status); }; } &&
     2040     { ac_try='test -s conftest.$ac_objext'
     2041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2042  (eval $ac_try) 2>&5
     2043  ac_status=$?
     2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2045  (exit $ac_status); }; }; then
    8232046  ac_cv_prog_cc_g=yes
    8242047else
    825   ac_cv_prog_cc_g=no
    826 fi
    827 rm -f conftest*
    828 
    829 fi
    830 
    831 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2048  echo "$as_me: failed program was:" >&5
     2049sed 's/^/| /' conftest.$ac_ext >&5
     2050
     2051ac_cv_prog_cc_g=no
     2052fi
     2053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2054fi
     2055echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2056echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    8322057if test "$ac_test_CFLAGS" = set; then
    833   CFLAGS="$ac_save_CFLAGS"
     2058  CFLAGS=$ac_save_CFLAGS
    8342059elif test $ac_cv_prog_cc_g = yes; then
    8352060  if test "$GCC" = yes; then
     
    8452070  fi
    8462071fi
    847 
    848 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
     2072echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2073echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2074if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2075  echo $ECHO_N "(cached) $ECHO_C" >&6
     2076else
     2077  ac_cv_prog_cc_stdc=no
     2078ac_save_CC=$CC
     2079cat >conftest.$ac_ext <<_ACEOF
     2080/* confdefs.h.  */
     2081_ACEOF
     2082cat confdefs.h >>conftest.$ac_ext
     2083cat >>conftest.$ac_ext <<_ACEOF
     2084/* end confdefs.h.  */
     2085#include <stdarg.h>
     2086#include <stdio.h>
     2087#include <sys/types.h>
     2088#include <sys/stat.h>
     2089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2090struct buf { int x; };
     2091FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2092static char *e (p, i)
     2093     char **p;
     2094     int i;
     2095{
     2096  return p[i];
     2097}
     2098static char *f (char * (*g) (char **, int), char **p, ...)
     2099{
     2100  char *s;
     2101  va_list v;
     2102  va_start (v,p);
     2103  s = g (p, va_arg (v,int));
     2104  va_end (v);
     2105  return s;
     2106}
     2107
     2108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2109   function prototypes and stuff, but not '\xHH' hex character constants.
     2110   These don't provoke an error unfortunately, instead are silently treated
     2111   as 'x'.  The following induces an error, until -std1 is added to get
     2112   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2113   array size at least.  It's necessary to write '\x00'==0 to get something
     2114   that's true only with -std1.  */
     2115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2116
     2117int test (int i, double x);
     2118struct s1 {int (*f) (int a);};
     2119struct s2 {int (*f) (double a);};
     2120int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2121int argc;
     2122char **argv;
     2123int
     2124main ()
     2125{
     2126return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2127  ;
     2128  return 0;
     2129}
     2130_ACEOF
     2131# Don't try gcc -ansi; that turns off useful extensions and
     2132# breaks some systems' header files.
     2133# AIX           -qlanglvl=ansi
     2134# Ultrix and OSF/1  -std1
     2135# HP-UX 10.20 and later -Ae
     2136# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2137# SVR4          -Xc -D__EXTENSIONS__
     2138for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    8492139do
    850 # Extract the first word of "$ac_prog", so it can be a program name with args.
    851 set dummy $ac_prog; ac_word=$2
    852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    853 echo "configure:854: checking for $ac_word" >&5
    854 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    855   echo $ac_n "(cached) $ac_c" 1>&6
     2140  CC="$ac_save_CC $ac_arg"
     2141  rm -f conftest.$ac_objext
     2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2143  (eval $ac_compile) 2>conftest.er1
     2144  ac_status=$?
     2145  grep -v '^ *+' conftest.er1 >conftest.err
     2146  rm -f conftest.er1
     2147  cat conftest.err >&5
     2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2149  (exit $ac_status); } &&
     2150     { ac_try='test -z "$ac_c_werror_flag"
     2151             || test ! -s conftest.err'
     2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2153  (eval $ac_try) 2>&5
     2154  ac_status=$?
     2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2156  (exit $ac_status); }; } &&
     2157     { ac_try='test -s conftest.$ac_objext'
     2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2159  (eval $ac_try) 2>&5
     2160  ac_status=$?
     2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2162  (exit $ac_status); }; }; then
     2163  ac_cv_prog_cc_stdc=$ac_arg
     2164break
     2165else
     2166  echo "$as_me: failed program was:" >&5
     2167sed 's/^/| /' conftest.$ac_ext >&5
     2168
     2169fi
     2170rm -f conftest.err conftest.$ac_objext
     2171done
     2172rm -f conftest.$ac_ext conftest.$ac_objext
     2173CC=$ac_save_CC
     2174
     2175fi
     2176
     2177case "x$ac_cv_prog_cc_stdc" in
     2178  x|xno)
     2179    echo "$as_me:$LINENO: result: none needed" >&5
     2180echo "${ECHO_T}none needed" >&6 ;;
     2181  *)
     2182    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2183echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2184    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2185esac
     2186
     2187# Some people use a C++ compiler to compile C.  Since we use `exit',
     2188# in C++ we need to declare it.  In case someone uses the same compiler
     2189# for both compiling C and C++ we need to have the C++ compiler decide
     2190# the declaration of exit, since it's the most demanding environment.
     2191cat >conftest.$ac_ext <<_ACEOF
     2192#ifndef __cplusplus
     2193  choke me
     2194#endif
     2195_ACEOF
     2196rm -f conftest.$ac_objext
     2197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2198  (eval $ac_compile) 2>conftest.er1
     2199  ac_status=$?
     2200  grep -v '^ *+' conftest.er1 >conftest.err
     2201  rm -f conftest.er1
     2202  cat conftest.err >&5
     2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2204  (exit $ac_status); } &&
     2205     { ac_try='test -z "$ac_c_werror_flag"
     2206             || test ! -s conftest.err'
     2207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2208  (eval $ac_try) 2>&5
     2209  ac_status=$?
     2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2211  (exit $ac_status); }; } &&
     2212     { ac_try='test -s conftest.$ac_objext'
     2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2214  (eval $ac_try) 2>&5
     2215  ac_status=$?
     2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2217  (exit $ac_status); }; }; then
     2218  for ac_declaration in \
     2219   '' \
     2220   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2221   'extern "C" void std::exit (int); using std::exit;' \
     2222   'extern "C" void exit (int) throw ();' \
     2223   'extern "C" void exit (int);' \
     2224   'void exit (int);'
     2225do
     2226  cat >conftest.$ac_ext <<_ACEOF
     2227/* confdefs.h.  */
     2228_ACEOF
     2229cat confdefs.h >>conftest.$ac_ext
     2230cat >>conftest.$ac_ext <<_ACEOF
     2231/* end confdefs.h.  */
     2232$ac_declaration
     2233#include <stdlib.h>
     2234int
     2235main ()
     2236{
     2237exit (42);
     2238  ;
     2239  return 0;
     2240}
     2241_ACEOF
     2242rm -f conftest.$ac_objext
     2243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2244  (eval $ac_compile) 2>conftest.er1
     2245  ac_status=$?
     2246  grep -v '^ *+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2250  (exit $ac_status); } &&
     2251     { ac_try='test -z "$ac_c_werror_flag"
     2252             || test ! -s conftest.err'
     2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2254  (eval $ac_try) 2>&5
     2255  ac_status=$?
     2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2257  (exit $ac_status); }; } &&
     2258     { ac_try='test -s conftest.$ac_objext'
     2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2260  (eval $ac_try) 2>&5
     2261  ac_status=$?
     2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2263  (exit $ac_status); }; }; then
     2264  :
     2265else
     2266  echo "$as_me: failed program was:" >&5
     2267sed 's/^/| /' conftest.$ac_ext >&5
     2268
     2269continue
     2270fi
     2271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2272  cat >conftest.$ac_ext <<_ACEOF
     2273/* confdefs.h.  */
     2274_ACEOF
     2275cat confdefs.h >>conftest.$ac_ext
     2276cat >>conftest.$ac_ext <<_ACEOF
     2277/* end confdefs.h.  */
     2278$ac_declaration
     2279int
     2280main ()
     2281{
     2282exit (42);
     2283  ;
     2284  return 0;
     2285}
     2286_ACEOF
     2287rm -f conftest.$ac_objext
     2288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2289  (eval $ac_compile) 2>conftest.er1
     2290  ac_status=$?
     2291  grep -v '^ *+' conftest.er1 >conftest.err
     2292  rm -f conftest.er1
     2293  cat conftest.err >&5
     2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2295  (exit $ac_status); } &&
     2296     { ac_try='test -z "$ac_c_werror_flag"
     2297             || test ! -s conftest.err'
     2298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2299  (eval $ac_try) 2>&5
     2300  ac_status=$?
     2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2302  (exit $ac_status); }; } &&
     2303     { ac_try='test -s conftest.$ac_objext'
     2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2305  (eval $ac_try) 2>&5
     2306  ac_status=$?
     2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2308  (exit $ac_status); }; }; then
     2309  break
     2310else
     2311  echo "$as_me: failed program was:" >&5
     2312sed 's/^/| /' conftest.$ac_ext >&5
     2313
     2314fi
     2315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2316done
     2317rm -f conftest*
     2318if test -n "$ac_declaration"; then
     2319  echo '#ifdef __cplusplus' >>confdefs.h
     2320  echo $ac_declaration      >>confdefs.h
     2321  echo '#endif'             >>confdefs.h
     2322fi
     2323
     2324else
     2325  echo "$as_me: failed program was:" >&5
     2326sed 's/^/| /' conftest.$ac_ext >&5
     2327
     2328fi
     2329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2330ac_ext=c
     2331ac_cpp='$CPP $CPPFLAGS'
     2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2334ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2335
     2336ac_ext=cc
     2337ac_cpp='$CXXCPP $CPPFLAGS'
     2338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2341if test -n "$ac_tool_prefix"; then
     2342  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2343  do
     2344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2346echo "$as_me:$LINENO: checking for $ac_word" >&5
     2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2348if test "${ac_cv_prog_CXX+set}" = set; then
     2349  echo $ECHO_N "(cached) $ECHO_C" >&6
    8562350else
    8572351  if test -n "$CXX"; then
    8582352  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    8592353else
    860   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    861   ac_dummy="$PATH"
    862   for ac_dir in $ac_dummy; do
    863     test -z "$ac_dir" && ac_dir=.
    864     if test -f $ac_dir/$ac_word; then
    865       ac_cv_prog_CXX="$ac_prog"
    866       break
    867     fi
     2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2355for as_dir in $PATH
     2356do
     2357  IFS=$as_save_IFS
     2358  test -z "$as_dir" && as_dir=.
     2359  for ac_exec_ext in '' $ac_executable_extensions; do
     2360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2361    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2363    break 2
     2364  fi
     2365done
     2366done
     2367
     2368fi
     2369fi
     2370CXX=$ac_cv_prog_CXX
     2371if test -n "$CXX"; then
     2372  echo "$as_me:$LINENO: result: $CXX" >&5
     2373echo "${ECHO_T}$CXX" >&6
     2374else
     2375  echo "$as_me:$LINENO: result: no" >&5
     2376echo "${ECHO_T}no" >&6
     2377fi
     2378
     2379    test -n "$CXX" && break
    8682380  done
    869   IFS="$ac_save_ifs"
    870 fi
    871 fi
    872 CXX="$ac_cv_prog_CXX"
    873 if test -n "$CXX"; then
    874   echo "$ac_t""$CXX" 1>&6
    875 else
    876   echo "$ac_t""no" 1>&6
    877 fi
    878 
    879 test -n "$CXX" && break
     2381fi
     2382if test -z "$CXX"; then
     2383  ac_ct_CXX=$CXX
     2384  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2385do
     2386  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2387set dummy $ac_prog; ac_word=$2
     2388echo "$as_me:$LINENO: checking for $ac_word" >&5
     2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2390if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2391  echo $ECHO_N "(cached) $ECHO_C" >&6
     2392else
     2393  if test -n "$ac_ct_CXX"; then
     2394  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2395else
     2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2397for as_dir in $PATH
     2398do
     2399  IFS=$as_save_IFS
     2400  test -z "$as_dir" && as_dir=.
     2401  for ac_exec_ext in '' $ac_executable_extensions; do
     2402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2403    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2405    break 2
     2406  fi
    8802407done
    881 test -n "$CXX" || CXX="gcc"
    882 
    883 
    884 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    885 echo "configure:886: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    886 
    887 ac_ext=C
    888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    889 ac_cpp='$CXXCPP $CPPFLAGS'
    890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    892 cross_compiling=$ac_cv_prog_cxx_cross
    893 
    894 cat > conftest.$ac_ext << EOF
    895 
    896 #line 897 "configure"
    897 #include "confdefs.h"
    898 
    899 int main(){return(0);}
    900 EOF
    901 if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    902   ac_cv_prog_cxx_works=yes
    903   # If we can't run a trivial program, we are probably using a cross compiler.
    904   if (./conftest; exit) 2>/dev/null; then
    905     ac_cv_prog_cxx_cross=no
    906   else
    907     ac_cv_prog_cxx_cross=yes
    908   fi
    909 else
    910   echo "configure: failed program was:" >&5
    911   cat conftest.$ac_ext >&5
    912   ac_cv_prog_cxx_works=no
    913 fi
    914 rm -fr conftest*
    915 ac_ext=c
    916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    917 ac_cpp='$CPP $CPPFLAGS'
    918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    920 cross_compiling=$ac_cv_prog_cc_cross
    921 
    922 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    923 if test $ac_cv_prog_cxx_works = no; then
    924   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    925 fi
    926 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    927 echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    928 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    929 cross_compiling=$ac_cv_prog_cxx_cross
    930 
    931 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    932 echo "configure:933: checking whether we are using GNU C++" >&5
    933 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    934   echo $ac_n "(cached) $ac_c" 1>&6
    935 else
    936   cat > conftest.C <<EOF
    937 #ifdef __GNUC__
    938   yes;
     2408done
     2409
     2410fi
     2411fi
     2412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2413if test -n "$ac_ct_CXX"; then
     2414  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2415echo "${ECHO_T}$ac_ct_CXX" >&6
     2416else
     2417  echo "$as_me:$LINENO: result: no" >&5
     2418echo "${ECHO_T}no" >&6
     2419fi
     2420
     2421  test -n "$ac_ct_CXX" && break
     2422done
     2423test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     2424
     2425  CXX=$ac_ct_CXX
     2426fi
     2427
     2428
     2429# Provide some information about the compiler.
     2430echo "$as_me:$LINENO:" \
     2431     "checking for C++ compiler version" >&5
     2432ac_compiler=`set X $ac_compile; echo $2`
     2433{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2434  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2435  ac_status=$?
     2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2437  (exit $ac_status); }
     2438{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2439  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2440  ac_status=$?
     2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2442  (exit $ac_status); }
     2443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2444  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2445  ac_status=$?
     2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2447  (exit $ac_status); }
     2448
     2449echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     2450echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     2451if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     2452  echo $ECHO_N "(cached) $ECHO_C" >&6
     2453else
     2454  cat >conftest.$ac_ext <<_ACEOF
     2455/* confdefs.h.  */
     2456_ACEOF
     2457cat confdefs.h >>conftest.$ac_ext
     2458cat >>conftest.$ac_ext <<_ACEOF
     2459/* end confdefs.h.  */
     2460
     2461int
     2462main ()
     2463{
     2464#ifndef __GNUC__
     2465       choke me
    9392466#endif
    940 EOF
    941 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    942   ac_cv_prog_gxx=yes
    943 else
    944   ac_cv_prog_gxx=no
    945 fi
    946 fi
    947 
    948 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    949 
    950 if test $ac_cv_prog_gxx = yes; then
    951   GXX=yes
    952 else
    953   GXX=
    954 fi
    955 
    956 ac_test_CXXFLAGS="${CXXFLAGS+set}"
    957 ac_save_CXXFLAGS="$CXXFLAGS"
    958 CXXFLAGS=
    959 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    960 echo "configure:961: checking whether ${CXX-g++} accepts -g" >&5
    961 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    962   echo $ac_n "(cached) $ac_c" 1>&6
    963 else
    964   echo 'void f(){}' > conftest.cc
    965 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     2467
     2468  ;
     2469  return 0;
     2470}
     2471_ACEOF
     2472rm -f conftest.$ac_objext
     2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2474  (eval $ac_compile) 2>conftest.er1
     2475  ac_status=$?
     2476  grep -v '^ *+' conftest.er1 >conftest.err
     2477  rm -f conftest.er1
     2478  cat conftest.err >&5
     2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2480  (exit $ac_status); } &&
     2481     { ac_try='test -z "$ac_cxx_werror_flag"
     2482             || test ! -s conftest.err'
     2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2484  (eval $ac_try) 2>&5
     2485  ac_status=$?
     2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2487  (exit $ac_status); }; } &&
     2488     { ac_try='test -s conftest.$ac_objext'
     2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2490  (eval $ac_try) 2>&5
     2491  ac_status=$?
     2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2493  (exit $ac_status); }; }; then
     2494  ac_compiler_gnu=yes
     2495else
     2496  echo "$as_me: failed program was:" >&5
     2497sed 's/^/| /' conftest.$ac_ext >&5
     2498
     2499ac_compiler_gnu=no
     2500fi
     2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     2503
     2504fi
     2505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     2506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     2507GXX=`test $ac_compiler_gnu = yes && echo yes`
     2508ac_test_CXXFLAGS=${CXXFLAGS+set}
     2509ac_save_CXXFLAGS=$CXXFLAGS
     2510CXXFLAGS="-g"
     2511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     2512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     2513if test "${ac_cv_prog_cxx_g+set}" = set; then
     2514  echo $ECHO_N "(cached) $ECHO_C" >&6
     2515else
     2516  cat >conftest.$ac_ext <<_ACEOF
     2517/* confdefs.h.  */
     2518_ACEOF
     2519cat confdefs.h >>conftest.$ac_ext
     2520cat >>conftest.$ac_ext <<_ACEOF
     2521/* end confdefs.h.  */
     2522
     2523int
     2524main ()
     2525{
     2526
     2527  ;
     2528  return 0;
     2529}
     2530_ACEOF
     2531rm -f conftest.$ac_objext
     2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2533  (eval $ac_compile) 2>conftest.er1
     2534  ac_status=$?
     2535  grep -v '^ *+' conftest.er1 >conftest.err
     2536  rm -f conftest.er1
     2537  cat conftest.err >&5
     2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2539  (exit $ac_status); } &&
     2540     { ac_try='test -z "$ac_cxx_werror_flag"
     2541             || test ! -s conftest.err'
     2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2543  (eval $ac_try) 2>&5
     2544  ac_status=$?
     2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2546  (exit $ac_status); }; } &&
     2547     { ac_try='test -s conftest.$ac_objext'
     2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2549  (eval $ac_try) 2>&5
     2550  ac_status=$?
     2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2552  (exit $ac_status); }; }; then
    9662553  ac_cv_prog_cxx_g=yes
    9672554else
    968   ac_cv_prog_cxx_g=no
    969 fi
    970 rm -f conftest*
    971 
    972 fi
    973 
    974 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     2555  echo "$as_me: failed program was:" >&5
     2556sed 's/^/| /' conftest.$ac_ext >&5
     2557
     2558ac_cv_prog_cxx_g=no
     2559fi
     2560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2561fi
     2562echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2563echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    9752564if test "$ac_test_CXXFLAGS" = set; then
    976   CXXFLAGS="$ac_save_CXXFLAGS"
     2565  CXXFLAGS=$ac_save_CXXFLAGS
    9772566elif test $ac_cv_prog_cxx_g = yes; then
    9782567  if test "$GXX" = yes; then
     
    9882577  fi
    9892578fi
    990 
    991 for ac_prog in mawk gawk nawk awk
     2579for ac_declaration in \
     2580   '' \
     2581   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2582   'extern "C" void std::exit (int); using std::exit;' \
     2583   'extern "C" void exit (int) throw ();' \
     2584   'extern "C" void exit (int);' \
     2585   'void exit (int);'
    9922586do
    993 # Extract the first word of "$ac_prog", so it can be a program name with args.
     2587  cat >conftest.$ac_ext <<_ACEOF
     2588/* confdefs.h.  */
     2589_ACEOF
     2590cat confdefs.h >>conftest.$ac_ext
     2591cat >>conftest.$ac_ext <<_ACEOF
     2592/* end confdefs.h.  */
     2593$ac_declaration
     2594#include <stdlib.h>
     2595int
     2596main ()
     2597{
     2598exit (42);
     2599  ;
     2600  return 0;
     2601}
     2602_ACEOF
     2603rm -f conftest.$ac_objext
     2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2605  (eval $ac_compile) 2>conftest.er1
     2606  ac_status=$?
     2607  grep -v '^ *+' conftest.er1 >conftest.err
     2608  rm -f conftest.er1
     2609  cat conftest.err >&5
     2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2611  (exit $ac_status); } &&
     2612     { ac_try='test -z "$ac_cxx_werror_flag"
     2613             || test ! -s conftest.err'
     2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2615  (eval $ac_try) 2>&5
     2616  ac_status=$?
     2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2618  (exit $ac_status); }; } &&
     2619     { ac_try='test -s conftest.$ac_objext'
     2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2621  (eval $ac_try) 2>&5
     2622  ac_status=$?
     2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2624  (exit $ac_status); }; }; then
     2625  :
     2626else
     2627  echo "$as_me: failed program was:" >&5
     2628sed 's/^/| /' conftest.$ac_ext >&5
     2629
     2630continue
     2631fi
     2632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2633  cat >conftest.$ac_ext <<_ACEOF
     2634/* confdefs.h.  */
     2635_ACEOF
     2636cat confdefs.h >>conftest.$ac_ext
     2637cat >>conftest.$ac_ext <<_ACEOF
     2638/* end confdefs.h.  */
     2639$ac_declaration
     2640int
     2641main ()
     2642{
     2643exit (42);
     2644  ;
     2645  return 0;
     2646}
     2647_ACEOF
     2648rm -f conftest.$ac_objext
     2649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2650  (eval $ac_compile) 2>conftest.er1
     2651  ac_status=$?
     2652  grep -v '^ *+' conftest.er1 >conftest.err
     2653  rm -f conftest.er1
     2654  cat conftest.err >&5
     2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2656  (exit $ac_status); } &&
     2657     { ac_try='test -z "$ac_cxx_werror_flag"
     2658             || test ! -s conftest.err'
     2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2660  (eval $ac_try) 2>&5
     2661  ac_status=$?
     2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2663  (exit $ac_status); }; } &&
     2664     { ac_try='test -s conftest.$ac_objext'
     2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2666  (eval $ac_try) 2>&5
     2667  ac_status=$?
     2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2669  (exit $ac_status); }; }; then
     2670  break
     2671else
     2672  echo "$as_me: failed program was:" >&5
     2673sed 's/^/| /' conftest.$ac_ext >&5
     2674
     2675fi
     2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2677done
     2678rm -f conftest*
     2679if test -n "$ac_declaration"; then
     2680  echo '#ifdef __cplusplus' >>confdefs.h
     2681  echo $ac_declaration      >>confdefs.h
     2682  echo '#endif'             >>confdefs.h
     2683fi
     2684
     2685ac_ext=c
     2686ac_cpp='$CPP $CPPFLAGS'
     2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2690
     2691for ac_prog in gawk mawk nawk awk
     2692do
     2693  # Extract the first word of "$ac_prog", so it can be a program name with args.
    9942694set dummy $ac_prog; ac_word=$2
    995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    996 echo "configure:997: checking for $ac_word" >&5
    997 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    998   echo $ac_n "(cached) $ac_c" 1>&6
     2695echo "$as_me:$LINENO: checking for $ac_word" >&5
     2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2697if test "${ac_cv_prog_AWK+set}" = set; then
     2698  echo $ECHO_N "(cached) $ECHO_C" >&6
    9992699else
    10002700  if test -n "$AWK"; then
    10012701  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    10022702else
    1003   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1004   ac_dummy="$PATH"
    1005   for ac_dir in $ac_dummy; do
    1006     test -z "$ac_dir" && ac_dir=.
    1007     if test -f $ac_dir/$ac_word; then
    1008       ac_cv_prog_AWK="$ac_prog"
    1009       break
    1010     fi
    1011   done
    1012   IFS="$ac_save_ifs"
    1013 fi
    1014 fi
    1015 AWK="$ac_cv_prog_AWK"
     2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2704for as_dir in $PATH
     2705do
     2706  IFS=$as_save_IFS
     2707  test -z "$as_dir" && as_dir=.
     2708  for ac_exec_ext in '' $ac_executable_extensions; do
     2709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2710    ac_cv_prog_AWK="$ac_prog"
     2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2712    break 2
     2713  fi
     2714done
     2715done
     2716
     2717fi
     2718fi
     2719AWK=$ac_cv_prog_AWK
    10162720if test -n "$AWK"; then
    1017   echo "$ac_t""$AWK" 1>&6
    1018 else
    1019   echo "$ac_t""no" 1>&6
    1020 fi
    1021 
    1022 test -n "$AWK" && break
     2721  echo "$as_me:$LINENO: result: $AWK" >&5
     2722echo "${ECHO_T}$AWK" >&6
     2723else
     2724  echo "$as_me:$LINENO: result: no" >&5
     2725echo "${ECHO_T}no" >&6
     2726fi
     2727
     2728  test -n "$AWK" && break
    10232729done
    10242730
    10252731for ac_prog in 'bison -y' byacc
    10262732do
    1027 # Extract the first word of "$ac_prog", so it can be a program name with args.
     2733  # Extract the first word of "$ac_prog", so it can be a program name with args.
    10282734set dummy $ac_prog; ac_word=$2
    1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1030 echo "configure:1031: checking for $ac_word" >&5
    1031 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    1032   echo $ac_n "(cached) $ac_c" 1>&6
     2735echo "$as_me:$LINENO: checking for $ac_word" >&5
     2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2737if test "${ac_cv_prog_YACC+set}" = set; then
     2738  echo $ECHO_N "(cached) $ECHO_C" >&6
    10332739else
    10342740  if test -n "$YACC"; then
    10352741  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    10362742else
    1037   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1038   ac_dummy="$PATH"
    1039   for ac_dir in $ac_dummy; do
    1040     test -z "$ac_dir" && ac_dir=.
    1041     if test -f $ac_dir/$ac_word; then
    1042       ac_cv_prog_YACC="$ac_prog"
    1043       break
    1044     fi
    1045   done
    1046   IFS="$ac_save_ifs"
    1047 fi
    1048 fi
    1049 YACC="$ac_cv_prog_YACC"
     2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2744for as_dir in $PATH
     2745do
     2746  IFS=$as_save_IFS
     2747  test -z "$as_dir" && as_dir=.
     2748  for ac_exec_ext in '' $ac_executable_extensions; do
     2749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2750    ac_cv_prog_YACC="$ac_prog"
     2751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2752    break 2
     2753  fi
     2754done
     2755done
     2756
     2757fi
     2758fi
     2759YACC=$ac_cv_prog_YACC
    10502760if test -n "$YACC"; then
    1051   echo "$ac_t""$YACC" 1>&6
    1052 else
    1053   echo "$ac_t""no" 1>&6
    1054 fi
    1055 
    1056 test -n "$YACC" && break
     2761  echo "$as_me:$LINENO: result: $YACC" >&5
     2762echo "${ECHO_T}$YACC" >&6
     2763else
     2764  echo "$as_me:$LINENO: result: no" >&5
     2765echo "${ECHO_T}no" >&6
     2766fi
     2767
     2768  test -n "$YACC" && break
    10572769done
    10582770test -n "$YACC" || YACC="yacc"
     
    10682780    ac_install_sh="$ac_aux_dir/install.sh -c"
    10692781    break
     2782  elif test -f $ac_dir/shtool; then
     2783    ac_aux_dir=$ac_dir
     2784    ac_install_sh="$ac_aux_dir/shtool install -c"
     2785    break
    10702786  fi
    10712787done
    10722788if test -z "$ac_aux_dir"; then
    1073   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1074 fi
    1075 ac_config_guess=$ac_aux_dir/config.guess
    1076 ac_config_sub=$ac_aux_dir/config.sub
    1077 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    1078 
    1079 
    1080 # Do some error checking and defaulting for the host and target type.
    1081 # The inputs are:
    1082 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
    1083 #
    1084 # The rules are:
    1085 # 1. You are not allowed to specify --host, --target, and nonopt at the
    1086 #    same time.
    1087 # 2. Host defaults to nonopt.
    1088 # 3. If nonopt is not specified, then host defaults to the current host,
    1089 #    as determined by config.guess.
    1090 # 4. Target and build default to nonopt.
    1091 # 5. If nonopt is not specified, then target and build default to host.
     2789  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2790echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2791   { (exit 1); exit 1; }; }
     2792fi
     2793ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2794ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2795ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2796
     2797# Make sure we can run config.sub.
     2798$ac_config_sub sun4 >/dev/null 2>&1 ||
     2799  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     2800echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     2801   { (exit 1); exit 1; }; }
     2802
     2803echo "$as_me:$LINENO: checking build system type" >&5
     2804echo $ECHO_N "checking build system type... $ECHO_C" >&6
     2805if test "${ac_cv_build+set}" = set; then
     2806  echo $ECHO_N "(cached) $ECHO_C" >&6
     2807else
     2808  ac_cv_build_alias=$build_alias
     2809test -z "$ac_cv_build_alias" &&
     2810  ac_cv_build_alias=`$ac_config_guess`
     2811test -z "$ac_cv_build_alias" &&
     2812  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     2813echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     2814   { (exit 1); exit 1; }; }
     2815ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     2816  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     2817echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     2818   { (exit 1); exit 1; }; }
     2819
     2820fi
     2821echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     2822echo "${ECHO_T}$ac_cv_build" >&6
     2823build=$ac_cv_build
     2824build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2825build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2826build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2827
     2828
     2829echo "$as_me:$LINENO: checking host system type" >&5
     2830echo $ECHO_N "checking host system type... $ECHO_C" >&6
     2831if test "${ac_cv_host+set}" = set; then
     2832  echo $ECHO_N "(cached) $ECHO_C" >&6
     2833else
     2834  ac_cv_host_alias=$host_alias
     2835test -z "$ac_cv_host_alias" &&
     2836  ac_cv_host_alias=$ac_cv_build_alias
     2837ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     2838  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     2839echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     2840   { (exit 1); exit 1; }; }
     2841
     2842fi
     2843echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     2844echo "${ECHO_T}$ac_cv_host" >&6
     2845host=$ac_cv_host
     2846host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2847host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2848host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2849
     2850
     2851echo "$as_me:$LINENO: checking target system type" >&5
     2852echo $ECHO_N "checking target system type... $ECHO_C" >&6
     2853if test "${ac_cv_target+set}" = set; then
     2854  echo $ECHO_N "(cached) $ECHO_C" >&6
     2855else
     2856  ac_cv_target_alias=$target_alias
     2857test "x$ac_cv_target_alias" = "x" &&
     2858  ac_cv_target_alias=$ac_cv_host_alias
     2859ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     2860  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     2861echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     2862   { (exit 1); exit 1; }; }
     2863
     2864fi
     2865echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     2866echo "${ECHO_T}$ac_cv_target" >&6
     2867target=$ac_cv_target
     2868target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     2869target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     2870target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2871
    10922872
    10932873# The aliases save the names the user supplied, while $host etc.
    10942874# will get canonicalized.
    1095 case $host---$target---$nonopt in
    1096 NONE---*---* | *---NONE---* | *---*---NONE) ;;
    1097 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
    1098 esac
    1099 
    1100 
    1101 # Make sure we can run config.sub.
    1102 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    1103 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    1104 fi
    1105 
    1106 echo $ac_n "checking host system type""... $ac_c" 1>&6
    1107 echo "configure:1108: checking host system type" >&5
    1108 
    1109 host_alias=$host
    1110 case "$host_alias" in
    1111 NONE)
    1112   case $nonopt in
    1113   NONE)
    1114     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    1115     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    1116     fi ;;
    1117   *) host_alias=$nonopt ;;
    1118   esac ;;
    1119 esac
    1120 
    1121 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    1122 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1123 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1124 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1125 echo "$ac_t""$host" 1>&6
    1126 
    1127 echo $ac_n "checking target system type""... $ac_c" 1>&6
    1128 echo "configure:1129: checking target system type" >&5
    1129 
    1130 target_alias=$target
    1131 case "$target_alias" in
    1132 NONE)
    1133   case $nonopt in
    1134   NONE) target_alias=$host_alias ;;
    1135   *) target_alias=$nonopt ;;
    1136   esac ;;
    1137 esac
    1138 
    1139 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    1140 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1141 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1142 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1143 echo "$ac_t""$target" 1>&6
    1144 
    1145 echo $ac_n "checking build system type""... $ac_c" 1>&6
    1146 echo "configure:1147: checking build system type" >&5
    1147 
    1148 build_alias=$build
    1149 case "$build_alias" in
    1150 NONE)
    1151   case $nonopt in
    1152   NONE) build_alias=$host_alias ;;
    1153   *) build_alias=$nonopt ;;
    1154   esac ;;
    1155 esac
    1156 
    1157 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    1158 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1159 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1160 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1161 echo "$ac_t""$build" 1>&6
    1162 
    1163 test "$host_alias" != "$target_alias" &&
     2875test -n "$target_alias" &&
    11642876  test "$program_prefix$program_suffix$program_transform_name" = \
    11652877    NONENONEs,x,x, &&
    11662878  program_prefix=${target_alias}-
    1167 
    11682879# Find a good install program.  We prefer a C program (faster),
    11692880# so one script is as good as another.  But avoid the broken or
     
    11732884# IRIX /sbin/install
    11742885# AIX /bin/install
     2886# AmigaOS /C/install, which installs bootblocks on floppy discs
    11752887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    11762888# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    11772889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2890# OS/2's system install, which has a completely different semantic
    11782891# ./install, which can be erroneously created by make from ./install.sh.
    1179 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1180 echo "configure:1181: checking for a BSD compatible install" >&5
     2892echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2893echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    11812894if test -z "$INSTALL"; then
    1182 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1183   echo $ac_n "(cached) $ac_c" 1>&6
    1184 else
    1185     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
    1186   for ac_dir in $PATH; do
    1187     # Account for people who put trailing slashes in PATH elements.
    1188     case "$ac_dir/" in
    1189     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    1190     *)
    1191       # OSF1 and SCO ODT 3.0 have their own names for install.
    1192       # Don't use installbsd from OSF since it installs stuff as root
    1193       # by default.
    1194       for ac_prog in ginstall scoinst install; do
    1195         if test -f $ac_dir/$ac_prog; then
     2895if test "${ac_cv_path_install+set}" = set; then
     2896  echo $ECHO_N "(cached) $ECHO_C" >&6
     2897else
     2898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2899for as_dir in $PATH
     2900do
     2901  IFS=$as_save_IFS
     2902  test -z "$as_dir" && as_dir=.
     2903  # Account for people who put trailing slashes in PATH elements.
     2904case $as_dir/ in
     2905  ./ | .// | /cC/* | \
     2906  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2907  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2908  /usr/ucb/* ) ;;
     2909  *)
     2910    # OSF1 and SCO ODT 3.0 have their own names for install.
     2911    # Don't use installbsd from OSF since it installs stuff as root
     2912    # by default.
     2913    for ac_prog in ginstall scoinst install; do
     2914      for ac_exec_ext in '' $ac_executable_extensions; do
     2915    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    11962916      if test $ac_prog = install &&
    1197             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2917        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    11982918        # AIX install.  It has an incompatible calling convention.
    11992919        :
     2920      elif test $ac_prog = install &&
     2921        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2922        # program-specific install script used by HP pwplus--don't use.
     2923        :
    12002924      else
    1201         ac_cv_path_install="$ac_dir/$ac_prog -c"
    1202         break 2
     2925        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2926        break 3
    12032927      fi
    12042928    fi
    12052929      done
    1206       ;;
    1207     esac
    1208   done
    1209   IFS="$ac_save_IFS"
     2930    done
     2931    ;;
     2932esac
     2933done
     2934
    12102935
    12112936fi
    12122937  if test "${ac_cv_path_install+set}" = set; then
    1213     INSTALL="$ac_cv_path_install"
     2938    INSTALL=$ac_cv_path_install
    12142939  else
    12152940    # As a last resort, use the slow shell script.  We don't cache a
     
    12172942    # break other packages using the cache if that directory is
    12182943    # removed, or if the path is relative.
    1219     INSTALL="$ac_install_sh"
     2944    INSTALL=$ac_install_sh
    12202945  fi
    12212946fi
    1222 echo "$ac_t""$INSTALL" 1>&6
     2947echo "$as_me:$LINENO: result: $INSTALL" >&5
     2948echo "${ECHO_T}$INSTALL" >&6
    12232949
    12242950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    12262952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    12272953
    1228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     2954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    12292955
    12302956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    12312957
    1232 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1233 echo "configure:1234: checking whether ln -s works" >&5
    1234 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1235   echo $ac_n "(cached) $ac_c" 1>&6
    1236 else
    1237   rm -f conftestdata
    1238 if ln -s X conftestdata 2>/dev/null
    1239 then
    1240   rm -f conftestdata
    1241   ac_cv_prog_LN_S="ln -s"
    1242 else
    1243   ac_cv_prog_LN_S=ln
    1244 fi
    1245 fi
    1246 LN_S="$ac_cv_prog_LN_S"
    1247 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1248   echo "$ac_t""yes" 1>&6
    1249 else
    1250   echo "$ac_t""no" 1>&6
    1251 fi
    1252 
    1253 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1254 echo "configure:1255: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1255 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1256 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1257   echo $ac_n "(cached) $ac_c" 1>&6
    1258 else
    1259   cat > conftestmake <<\EOF
     2958echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2959echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2960LN_S=$as_ln_s
     2961if test "$LN_S" = "ln -s"; then
     2962  echo "$as_me:$LINENO: result: yes" >&5
     2963echo "${ECHO_T}yes" >&6
     2964else
     2965  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2966echo "${ECHO_T}no, using $LN_S" >&6
     2967fi
     2968
     2969echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2970echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2973  echo $ECHO_N "(cached) $ECHO_C" >&6
     2974else
     2975  cat >conftest.make <<\_ACEOF
    12602976all:
    1261     @echo 'ac_maketemp="${MAKE}"'
    1262 EOF
     2977    @echo 'ac_maketemp="$(MAKE)"'
     2978_ACEOF
    12632979# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1264 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    12652981if test -n "$ac_maketemp"; then
    12662982  eval ac_cv_prog_make_${ac_make}_set=yes
     
    12682984  eval ac_cv_prog_make_${ac_make}_set=no
    12692985fi
    1270 rm -f conftestmake
     2986rm -f conftest.make
    12712987fi
    12722988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1273   echo "$ac_t""yes" 1>&6
     2989  echo "$as_me:$LINENO: result: yes" >&5
     2990echo "${ECHO_T}yes" >&6
    12742991  SET_MAKE=
    12752992else
    1276   echo "$ac_t""no" 1>&6
     2993  echo "$as_me:$LINENO: result: no" >&5
     2994echo "${ECHO_T}no" >&6
    12772995  SET_MAKE="MAKE=${MAKE-make}"
    12782996fi
    12792997
    1280 # Extract the first word of "ranlib", so it can be a program name with args.
    1281 set dummy ranlib; ac_word=$2
    1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1283 echo "configure:1284: checking for $ac_word" >&5
    1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1285   echo $ac_n "(cached) $ac_c" 1>&6
     2998if test -n "$ac_tool_prefix"; then
     2999  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     3000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     3001echo "$as_me:$LINENO: checking for $ac_word" >&5
     3002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3003if test "${ac_cv_prog_RANLIB+set}" = set; then
     3004  echo $ECHO_N "(cached) $ECHO_C" >&6
    12863005else
    12873006  if test -n "$RANLIB"; then
    12883007  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    12893008else
    1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1291   ac_dummy="$PATH"
    1292   for ac_dir in $ac_dummy; do
    1293     test -z "$ac_dir" && ac_dir=.
    1294     if test -f $ac_dir/$ac_word; then
    1295       ac_cv_prog_RANLIB="ranlib"
    1296       break
    1297     fi
    1298   done
    1299   IFS="$ac_save_ifs"
    1300   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1301 fi
    1302 fi
    1303 RANLIB="$ac_cv_prog_RANLIB"
     3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3010for as_dir in $PATH
     3011do
     3012  IFS=$as_save_IFS
     3013  test -z "$as_dir" && as_dir=.
     3014  for ac_exec_ext in '' $ac_executable_extensions; do
     3015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3016    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     3017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3018    break 2
     3019  fi
     3020done
     3021done
     3022
     3023fi
     3024fi
     3025RANLIB=$ac_cv_prog_RANLIB
    13043026if test -n "$RANLIB"; then
    1305   echo "$ac_t""$RANLIB" 1>&6
    1306 else
    1307   echo "$ac_t""no" 1>&6
     3027  echo "$as_me:$LINENO: result: $RANLIB" >&5
     3028echo "${ECHO_T}$RANLIB" >&6
     3029else
     3030  echo "$as_me:$LINENO: result: no" >&5
     3031echo "${ECHO_T}no" >&6
     3032fi
     3033
     3034fi
     3035if test -z "$ac_cv_prog_RANLIB"; then
     3036  ac_ct_RANLIB=$RANLIB
     3037  # Extract the first word of "ranlib", so it can be a program name with args.
     3038set dummy ranlib; ac_word=$2
     3039echo "$as_me:$LINENO: checking for $ac_word" >&5
     3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     3042  echo $ECHO_N "(cached) $ECHO_C" >&6
     3043else
     3044  if test -n "$ac_ct_RANLIB"; then
     3045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     3046else
     3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3048for as_dir in $PATH
     3049do
     3050  IFS=$as_save_IFS
     3051  test -z "$as_dir" && as_dir=.
     3052  for ac_exec_ext in '' $ac_executable_extensions; do
     3053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3054    ac_cv_prog_ac_ct_RANLIB="ranlib"
     3055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3056    break 2
     3057  fi
     3058done
     3059done
     3060
     3061  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     3062fi
     3063fi
     3064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     3065if test -n "$ac_ct_RANLIB"; then
     3066  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     3067echo "${ECHO_T}$ac_ct_RANLIB" >&6
     3068else
     3069  echo "$as_me:$LINENO: result: no" >&5
     3070echo "${ECHO_T}no" >&6
     3071fi
     3072
     3073  RANLIB=$ac_ct_RANLIB
     3074else
     3075  RANLIB="$ac_cv_prog_RANLIB"
    13083076fi
    13093077
     
    13323100#do test of MICO_VER
    13333101if test MICO_VER != 0; then
    1334 cat >> confdefs.h <<\EOF
     3102cat >>confdefs.h <<\_ACEOF
    13353103#define MICO_VER 1
    1336 EOF
     3104_ACEOF
    13373105
    13383106
     
    13413109fi
    13423110
    1343 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1344 echo "configure:1345: checking how to run the C preprocessor" >&5
     3111
     3112ac_ext=c
     3113ac_cpp='$CPP $CPPFLAGS'
     3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3117echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3118echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    13453119# On Suns, sometimes $CPP names a directory.
    13463120if test -n "$CPP" && test -d "$CPP"; then
     
    13483122fi
    13493123if test -z "$CPP"; then
    1350 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1351   echo $ac_n "(cached) $ac_c" 1>&6
    1352 else
    1353     # This must be in double quotes, not single quotes, because CPP may get
    1354   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1355   CPP="${CC-cc} -E"
     3124  if test "${ac_cv_prog_CPP+set}" = set; then
     3125  echo $ECHO_N "(cached) $ECHO_C" >&6
     3126else
     3127      # Double quotes because CPP needs to be expanded
     3128    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3129    do
     3130      ac_preproc_ok=false
     3131for ac_c_preproc_warn_flag in '' yes
     3132do
     3133  # Use a header file that comes with gcc, so configuring glibc
     3134  # with a fresh cross-compiler works.
     3135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3136  # <limits.h> exists even on freestanding compilers.
    13563137  # On the NeXT, cc -E runs the code through the compiler's parser,
    1357   # not just through cpp.
    1358   cat > conftest.$ac_ext <<EOF
    1359 #line 1360 "configure"
    1360 #include "confdefs.h"
    1361 #include <assert.h>
    1362 Syntax Error
    1363 EOF
    1364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1365 { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1367 if test -z "$ac_err"; then
     3138  # not just through cpp. "Syntax error" is here to catch this case.
     3139  cat >conftest.$ac_ext <<_ACEOF
     3140/* confdefs.h.  */
     3141_ACEOF
     3142cat confdefs.h >>conftest.$ac_ext
     3143cat >>conftest.$ac_ext <<_ACEOF
     3144/* end confdefs.h.  */
     3145#ifdef __STDC__
     3146# include <limits.h>
     3147#else
     3148# include <assert.h>
     3149#endif
     3150             Syntax error
     3151_ACEOF
     3152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3154  ac_status=$?
     3155  grep -v '^ *+' conftest.er1 >conftest.err
     3156  rm -f conftest.er1
     3157  cat conftest.err >&5
     3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3159  (exit $ac_status); } >/dev/null; then
     3160  if test -s conftest.err; then
     3161    ac_cpp_err=$ac_c_preproc_warn_flag
     3162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3163  else
     3164    ac_cpp_err=
     3165  fi
     3166else
     3167  ac_cpp_err=yes
     3168fi
     3169if test -z "$ac_cpp_err"; then
    13683170  :
    13693171else
    1370   echo "$ac_err" >&5
    1371   echo "configure: failed program was:" >&5
    1372   cat conftest.$ac_ext >&5
    1373   rm -rf conftest*
    1374   CPP="${CC-cc} -E -traditional-cpp"
    1375   cat > conftest.$ac_ext <<EOF
    1376 #line 1377 "configure"
    1377 #include "confdefs.h"
    1378 #include <assert.h>
    1379 Syntax Error
    1380 EOF
    1381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1382 { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1384 if test -z "$ac_err"; then
     3172  echo "$as_me: failed program was:" >&5
     3173sed 's/^/| /' conftest.$ac_ext >&5
     3174
     3175  # Broken: fails on valid input.
     3176continue
     3177fi
     3178rm -f conftest.err conftest.$ac_ext
     3179
     3180  # OK, works on sane cases.  Now check whether non-existent headers
     3181  # can be detected and how.
     3182  cat >conftest.$ac_ext <<_ACEOF
     3183/* confdefs.h.  */
     3184_ACEOF
     3185cat confdefs.h >>conftest.$ac_ext
     3186cat >>conftest.$ac_ext <<_ACEOF
     3187/* end confdefs.h.  */
     3188#include <ac_nonexistent.h>
     3189_ACEOF
     3190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3192  ac_status=$?
     3193  grep -v '^ *+' conftest.er1 >conftest.err
     3194  rm -f conftest.er1
     3195  cat conftest.err >&5
     3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3197  (exit $ac_status); } >/dev/null; then
     3198  if test -s conftest.err; then
     3199    ac_cpp_err=$ac_c_preproc_warn_flag
     3200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3201  else
     3202    ac_cpp_err=
     3203  fi
     3204else
     3205  ac_cpp_err=yes
     3206fi
     3207if test -z "$ac_cpp_err"; then
     3208  # Broken: success on invalid input.
     3209continue
     3210else
     3211  echo "$as_me: failed program was:" >&5
     3212sed 's/^/| /' conftest.$ac_ext >&5
     3213
     3214  # Passes both tests.
     3215ac_preproc_ok=:
     3216break
     3217fi
     3218rm -f conftest.err conftest.$ac_ext
     3219
     3220done
     3221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3222rm -f conftest.err conftest.$ac_ext
     3223if $ac_preproc_ok; then
     3224  break
     3225fi
     3226
     3227    done
     3228    ac_cv_prog_CPP=$CPP
     3229
     3230fi
     3231  CPP=$ac_cv_prog_CPP
     3232else
     3233  ac_cv_prog_CPP=$CPP
     3234fi
     3235echo "$as_me:$LINENO: result: $CPP" >&5
     3236echo "${ECHO_T}$CPP" >&6
     3237ac_preproc_ok=false
     3238for ac_c_preproc_warn_flag in '' yes
     3239do
     3240  # Use a header file that comes with gcc, so configuring glibc
     3241  # with a fresh cross-compiler works.
     3242  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3243  # <limits.h> exists even on freestanding compilers.
     3244  # On the NeXT, cc -E runs the code through the compiler's parser,
     3245  # not just through cpp. "Syntax error" is here to catch this case.
     3246  cat >conftest.$ac_ext <<_ACEOF
     3247/* confdefs.h.  */
     3248_ACEOF
     3249cat confdefs.h >>conftest.$ac_ext
     3250cat >>conftest.$ac_ext <<_ACEOF
     3251/* end confdefs.h.  */
     3252#ifdef __STDC__
     3253# include <limits.h>
     3254#else
     3255# include <assert.h>
     3256#endif
     3257             Syntax error
     3258_ACEOF
     3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3261  ac_status=$?
     3262  grep -v '^ *+' conftest.er1 >conftest.err
     3263  rm -f conftest.er1
     3264  cat conftest.err >&5
     3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3266  (exit $ac_status); } >/dev/null; then
     3267  if test -s conftest.err; then
     3268    ac_cpp_err=$ac_c_preproc_warn_flag
     3269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3270  else
     3271    ac_cpp_err=
     3272  fi
     3273else
     3274  ac_cpp_err=yes
     3275fi
     3276if test -z "$ac_cpp_err"; then
    13853277  :
    13863278else
    1387   echo "$ac_err" >&5
    1388   echo "configure: failed program was:" >&5
    1389   cat conftest.$ac_ext >&5
    1390   rm -rf conftest*
    1391   CPP="${CC-cc} -nologo -E"
    1392   cat > conftest.$ac_ext <<EOF
    1393 #line 1394 "configure"
    1394 #include "confdefs.h"
    1395 #include <assert.h>
    1396 Syntax Error
    1397 EOF
    1398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1399 { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1401 if test -z "$ac_err"; then
     3279  echo "$as_me: failed program was:" >&5
     3280sed 's/^/| /' conftest.$ac_ext >&5
     3281
     3282  # Broken: fails on valid input.
     3283continue
     3284fi
     3285rm -f conftest.err conftest.$ac_ext
     3286
     3287  # OK, works on sane cases.  Now check whether non-existent headers
     3288  # can be detected and how.
     3289  cat >conftest.$ac_ext <<_ACEOF
     3290/* confdefs.h.  */
     3291_ACEOF
     3292cat confdefs.h >>conftest.$ac_ext
     3293cat >>conftest.$ac_ext <<_ACEOF
     3294/* end confdefs.h.  */
     3295#include <ac_nonexistent.h>
     3296_ACEOF
     3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3299  ac_status=$?
     3300  grep -v '^ *+' conftest.er1 >conftest.err
     3301  rm -f conftest.er1
     3302  cat conftest.err >&5
     3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3304  (exit $ac_status); } >/dev/null; then
     3305  if test -s conftest.err; then
     3306    ac_cpp_err=$ac_c_preproc_warn_flag
     3307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3308  else
     3309    ac_cpp_err=
     3310  fi
     3311else
     3312  ac_cpp_err=yes
     3313fi
     3314if test -z "$ac_cpp_err"; then
     3315  # Broken: success on invalid input.
     3316continue
     3317else
     3318  echo "$as_me: failed program was:" >&5
     3319sed 's/^/| /' conftest.$ac_ext >&5
     3320
     3321  # Passes both tests.
     3322ac_preproc_ok=:
     3323break
     3324fi
     3325rm -f conftest.err conftest.$ac_ext
     3326
     3327done
     3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3329rm -f conftest.err conftest.$ac_ext
     3330if $ac_preproc_ok; then
    14023331  :
    14033332else
    1404   echo "$ac_err" >&5
    1405   echo "configure: failed program was:" >&5
    1406   cat conftest.$ac_ext >&5
    1407   rm -rf conftest*
    1408   CPP=/lib/cpp
    1409 fi
    1410 rm -f conftest*
    1411 fi
    1412 rm -f conftest*
    1413 fi
    1414 rm -f conftest*
    1415   ac_cv_prog_CPP="$CPP"
    1416 fi
    1417   CPP="$ac_cv_prog_CPP"
    1418 else
    1419   ac_cv_prog_CPP="$CPP"
    1420 fi
    1421 echo "$ac_t""$CPP" 1>&6
    1422 
    1423 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1424 echo "configure:1425: checking for AIX" >&5
    1425 cat > conftest.$ac_ext <<EOF
    1426 #line 1427 "configure"
    1427 #include "confdefs.h"
     3333  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3334See \`config.log' for more details." >&5
     3335echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3336See \`config.log' for more details." >&2;}
     3337   { (exit 1); exit 1; }; }
     3338fi
     3339
     3340ac_ext=c
     3341ac_cpp='$CPP $CPPFLAGS'
     3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3345
     3346
     3347echo "$as_me:$LINENO: checking for egrep" >&5
     3348echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3349if test "${ac_cv_prog_egrep+set}" = set; then
     3350  echo $ECHO_N "(cached) $ECHO_C" >&6
     3351else
     3352  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3353    then ac_cv_prog_egrep='grep -E'
     3354    else ac_cv_prog_egrep='egrep'
     3355    fi
     3356fi
     3357echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3358echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3359 EGREP=$ac_cv_prog_egrep
     3360
     3361
     3362
     3363echo "$as_me:$LINENO: checking for AIX" >&5
     3364echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3365cat >conftest.$ac_ext <<_ACEOF
     3366/* confdefs.h.  */
     3367_ACEOF
     3368cat confdefs.h >>conftest.$ac_ext
     3369cat >>conftest.$ac_ext <<_ACEOF
     3370/* end confdefs.h.  */
    14283371#ifdef _AIX
    14293372  yes
    14303373#endif
    14313374
    1432 EOF
     3375_ACEOF
    14333376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1434   egrep "yes" >/dev/null 2>&1; then
    1435   rm -rf conftest*
    1436   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3377  $EGREP "yes" >/dev/null 2>&1; then
     3378  echo "$as_me:$LINENO: result: yes" >&5
     3379echo "${ECHO_T}yes" >&6
     3380cat >>confdefs.h <<\_ACEOF
    14373381#define _ALL_SOURCE 1
    1438 EOF
    1439 
    1440 else
    1441   rm -rf conftest*
    1442   echo "$ac_t""no" 1>&6
     3382_ACEOF
     3383
     3384else
     3385  echo "$as_me:$LINENO: result: no" >&5
     3386echo "${ECHO_T}no" >&6
    14433387fi
    14443388rm -f conftest*
    14453389
    14463390
    1447 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1448 echo "configure:1449: checking for POSIXized ISC" >&5
    1449 if test -d /etc/conf/kconfig.d &&
    1450   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    1451 then
    1452   echo "$ac_t""yes" 1>&6
    1453   ISC=yes # If later tests want to check for ISC.
    1454   cat >> confdefs.h <<\EOF
     3391echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3392echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3393if test "${ac_cv_search_strerror+set}" = set; then
     3394  echo $ECHO_N "(cached) $ECHO_C" >&6
     3395else
     3396  ac_func_search_save_LIBS=$LIBS
     3397ac_cv_search_strerror=no
     3398cat >conftest.$ac_ext <<_ACEOF
     3399/* confdefs.h.  */
     3400_ACEOF
     3401cat confdefs.h >>conftest.$ac_ext
     3402cat >>conftest.$ac_ext <<_ACEOF
     3403/* end confdefs.h.  */
     3404
     3405/* Override any gcc2 internal prototype to avoid an error.  */
     3406#ifdef __cplusplus
     3407extern "C"
     3408#endif
     3409/* We use char because int might match the return type of a gcc2
     3410   builtin and then its argument prototype would still apply.  */
     3411char strerror ();
     3412int
     3413main ()
     3414{
     3415strerror ();
     3416  ;
     3417  return 0;
     3418}
     3419_ACEOF
     3420rm -f conftest.$ac_objext conftest$ac_exeext
     3421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3422  (eval $ac_link) 2>conftest.er1
     3423  ac_status=$?
     3424  grep -v '^ *+' conftest.er1 >conftest.err
     3425  rm -f conftest.er1
     3426  cat conftest.err >&5
     3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3428  (exit $ac_status); } &&
     3429     { ac_try='test -z "$ac_c_werror_flag"
     3430             || test ! -s conftest.err'
     3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3432  (eval $ac_try) 2>&5
     3433  ac_status=$?
     3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3435  (exit $ac_status); }; } &&
     3436     { ac_try='test -s conftest$ac_exeext'
     3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3438  (eval $ac_try) 2>&5
     3439  ac_status=$?
     3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3441  (exit $ac_status); }; }; then
     3442  ac_cv_search_strerror="none required"
     3443else
     3444  echo "$as_me: failed program was:" >&5
     3445sed 's/^/| /' conftest.$ac_ext >&5
     3446
     3447fi
     3448rm -f conftest.err conftest.$ac_objext \
     3449      conftest$ac_exeext conftest.$ac_ext
     3450if test "$ac_cv_search_strerror" = no; then
     3451  for ac_lib in cposix; do
     3452    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3453    cat >conftest.$ac_ext <<_ACEOF
     3454/* confdefs.h.  */
     3455_ACEOF
     3456cat confdefs.h >>conftest.$ac_ext
     3457cat >>conftest.$ac_ext <<_ACEOF
     3458/* end confdefs.h.  */
     3459
     3460/* Override any gcc2 internal prototype to avoid an error.  */
     3461#ifdef __cplusplus
     3462extern "C"
     3463#endif
     3464/* We use char because int might match the return type of a gcc2
     3465   builtin and then its argument prototype would still apply.  */
     3466char strerror ();
     3467int
     3468main ()
     3469{
     3470strerror ();
     3471  ;
     3472  return 0;
     3473}
     3474_ACEOF
     3475rm -f conftest.$ac_objext conftest$ac_exeext
     3476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3477  (eval $ac_link) 2>conftest.er1
     3478  ac_status=$?
     3479  grep -v '^ *+' conftest.er1 >conftest.err
     3480  rm -f conftest.er1
     3481  cat conftest.err >&5
     3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3483  (exit $ac_status); } &&
     3484     { ac_try='test -z "$ac_c_werror_flag"
     3485             || test ! -s conftest.err'
     3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3487  (eval $ac_try) 2>&5
     3488  ac_status=$?
     3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3490  (exit $ac_status); }; } &&
     3491     { ac_try='test -s conftest$ac_exeext'
     3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3493  (eval $ac_try) 2>&5
     3494  ac_status=$?
     3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3496  (exit $ac_status); }; }; then
     3497  ac_cv_search_strerror="-l$ac_lib"
     3498break
     3499else
     3500  echo "$as_me: failed program was:" >&5
     3501sed 's/^/| /' conftest.$ac_ext >&5
     3502
     3503fi
     3504rm -f conftest.err conftest.$ac_objext \
     3505      conftest$ac_exeext conftest.$ac_ext
     3506  done
     3507fi
     3508LIBS=$ac_func_search_save_LIBS
     3509fi
     3510echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3511echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3512if test "$ac_cv_search_strerror" != no; then
     3513  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3514
     3515fi
     3516
     3517echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3518echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3519if test "${ac_cv_header_stdc+set}" = set; then
     3520  echo $ECHO_N "(cached) $ECHO_C" >&6
     3521else
     3522  cat >conftest.$ac_ext <<_ACEOF
     3523/* confdefs.h.  */
     3524_ACEOF
     3525cat confdefs.h >>conftest.$ac_ext
     3526cat >>conftest.$ac_ext <<_ACEOF
     3527/* end confdefs.h.  */
     3528#include <stdlib.h>
     3529#include <stdarg.h>
     3530#include <string.h>
     3531#include <float.h>
     3532
     3533int
     3534main ()
     3535{
     3536
     3537  ;
     3538  return 0;
     3539}
     3540_ACEOF
     3541rm -f conftest.$ac_objext
     3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3543  (eval $ac_compile) 2>conftest.er1
     3544  ac_status=$?
     3545  grep -v '^ *+' conftest.er1 >conftest.err
     3546  rm -f conftest.er1
     3547  cat conftest.err >&5
     3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3549  (exit $ac_status); } &&
     3550     { ac_try='test -z "$ac_c_werror_flag"
     3551             || test ! -s conftest.err'
     3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3553  (eval $ac_try) 2>&5
     3554  ac_status=$?
     3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3556  (exit $ac_status); }; } &&
     3557     { ac_try='test -s conftest.$ac_objext'
     3558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3559  (eval $ac_try) 2>&5
     3560  ac_status=$?
     3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3562  (exit $ac_status); }; }; then
     3563  ac_cv_header_stdc=yes
     3564else
     3565  echo "$as_me: failed program was:" >&5
     3566sed 's/^/| /' conftest.$ac_ext >&5
     3567
     3568ac_cv_header_stdc=no
     3569fi
     3570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3571
     3572if test $ac_cv_header_stdc = yes; then
     3573  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3574  cat >conftest.$ac_ext <<_ACEOF
     3575/* confdefs.h.  */
     3576_ACEOF
     3577cat confdefs.h >>conftest.$ac_ext
     3578cat >>conftest.$ac_ext <<_ACEOF
     3579/* end confdefs.h.  */
     3580#include <string.h>
     3581
     3582_ACEOF
     3583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3584  $EGREP "memchr" >/dev/null 2>&1; then
     3585  :
     3586else
     3587  ac_cv_header_stdc=no
     3588fi
     3589rm -f conftest*
     3590
     3591fi
     3592
     3593if test $ac_cv_header_stdc = yes; then
     3594  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3595  cat >conftest.$ac_ext <<_ACEOF
     3596/* confdefs.h.  */
     3597_ACEOF
     3598cat confdefs.h >>conftest.$ac_ext
     3599cat >>conftest.$ac_ext <<_ACEOF
     3600/* end confdefs.h.  */
     3601#include <stdlib.h>
     3602
     3603_ACEOF
     3604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3605  $EGREP "free" >/dev/null 2>&1; then
     3606  :
     3607else
     3608  ac_cv_header_stdc=no
     3609fi
     3610rm -f conftest*
     3611
     3612fi
     3613
     3614if test $ac_cv_header_stdc = yes; then
     3615  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3616  if test "$cross_compiling" = yes; then
     3617  :
     3618else
     3619  cat >conftest.$ac_ext <<_ACEOF
     3620/* confdefs.h.  */
     3621_ACEOF
     3622cat confdefs.h >>conftest.$ac_ext
     3623cat >>conftest.$ac_ext <<_ACEOF
     3624/* end confdefs.h.  */
     3625#include <ctype.h>
     3626#if ((' ' & 0x0FF) == 0x020)
     3627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3629#else
     3630# define ISLOWER(c) \
     3631           (('a' <= (c) && (c) <= 'i') \
     3632             || ('j' <= (c) && (c) <= 'r') \
     3633             || ('s' <= (c) && (c) <= 'z'))
     3634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3635#endif
     3636
     3637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3638int
     3639main ()
     3640{
     3641  int i;
     3642  for (i = 0; i < 256; i++)
     3643    if (XOR (islower (i), ISLOWER (i))
     3644    || toupper (i) != TOUPPER (i))
     3645      exit(2);
     3646  exit (0);
     3647}
     3648_ACEOF
     3649rm -f conftest$ac_exeext
     3650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3651  (eval $ac_link) 2>&5
     3652  ac_status=$?
     3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3656  (eval $ac_try) 2>&5
     3657  ac_status=$?
     3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3659  (exit $ac_status); }; }; then
     3660  :
     3661else
     3662  echo "$as_me: program exited with status $ac_status" >&5
     3663echo "$as_me: failed program was:" >&5
     3664sed 's/^/| /' conftest.$ac_ext >&5
     3665
     3666( exit $ac_status )
     3667ac_cv_header_stdc=no
     3668fi
     3669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3670fi
     3671fi
     3672fi
     3673echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3674echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3675if test $ac_cv_header_stdc = yes; then
     3676
     3677cat >>confdefs.h <<\_ACEOF
     3678#define STDC_HEADERS 1
     3679_ACEOF
     3680
     3681fi
     3682
     3683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3684
     3685
     3686
     3687
     3688
     3689
     3690
     3691
     3692
     3693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3694          inttypes.h stdint.h unistd.h
     3695do
     3696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3697echo "$as_me:$LINENO: checking for $ac_header" >&5
     3698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3700  echo $ECHO_N "(cached) $ECHO_C" >&6
     3701else
     3702  cat >conftest.$ac_ext <<_ACEOF
     3703/* confdefs.h.  */
     3704_ACEOF
     3705cat confdefs.h >>conftest.$ac_ext
     3706cat >>conftest.$ac_ext <<_ACEOF
     3707/* end confdefs.h.  */
     3708$ac_includes_default
     3709
     3710#include <$ac_header>
     3711_ACEOF
     3712rm -f conftest.$ac_objext
     3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3714  (eval $ac_compile) 2>conftest.er1
     3715  ac_status=$?
     3716  grep -v '^ *+' conftest.er1 >conftest.err
     3717  rm -f conftest.er1
     3718  cat conftest.err >&5
     3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3720  (exit $ac_status); } &&
     3721     { ac_try='test -z "$ac_c_werror_flag"
     3722             || test ! -s conftest.err'
     3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3724  (eval $ac_try) 2>&5
     3725  ac_status=$?
     3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3727  (exit $ac_status); }; } &&
     3728     { ac_try='test -s conftest.$ac_objext'
     3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3730  (eval $ac_try) 2>&5
     3731  ac_status=$?
     3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3733  (exit $ac_status); }; }; then
     3734  eval "$as_ac_Header=yes"
     3735else
     3736  echo "$as_me: failed program was:" >&5
     3737sed 's/^/| /' conftest.$ac_ext >&5
     3738
     3739eval "$as_ac_Header=no"
     3740fi
     3741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3742fi
     3743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3745if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3746  cat >>confdefs.h <<_ACEOF
     3747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3748_ACEOF
     3749
     3750fi
     3751
     3752done
     3753
     3754
     3755if test "${ac_cv_header_minix_config_h+set}" = set; then
     3756  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3757echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3758if test "${ac_cv_header_minix_config_h+set}" = set; then
     3759  echo $ECHO_N "(cached) $ECHO_C" >&6
     3760fi
     3761echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3762echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3763else
     3764  # Is the header compilable?
     3765echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3766echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3767cat >conftest.$ac_ext <<_ACEOF
     3768/* confdefs.h.  */
     3769_ACEOF
     3770cat confdefs.h >>conftest.$ac_ext
     3771cat >>conftest.$ac_ext <<_ACEOF
     3772/* end confdefs.h.  */
     3773$ac_includes_default
     3774#include <minix/config.h>
     3775_ACEOF
     3776rm -f conftest.$ac_objext
     3777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3778  (eval $ac_compile) 2>conftest.er1
     3779  ac_status=$?
     3780  grep -v '^ *+' conftest.er1 >conftest.err
     3781  rm -f conftest.er1
     3782  cat conftest.err >&5
     3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3784  (exit $ac_status); } &&
     3785     { ac_try='test -z "$ac_c_werror_flag"
     3786             || test ! -s conftest.err'
     3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3788  (eval $ac_try) 2>&5
     3789  ac_status=$?
     3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3791  (exit $ac_status); }; } &&
     3792     { ac_try='test -s conftest.$ac_objext'
     3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3794  (eval $ac_try) 2>&5
     3795  ac_status=$?
     3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3797  (exit $ac_status); }; }; then
     3798  ac_header_compiler=yes
     3799else
     3800  echo "$as_me: failed program was:" >&5
     3801sed 's/^/| /' conftest.$ac_ext >&5
     3802
     3803ac_header_compiler=no
     3804fi
     3805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3807echo "${ECHO_T}$ac_header_compiler" >&6
     3808
     3809# Is the header present?
     3810echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3811echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3812cat >conftest.$ac_ext <<_ACEOF
     3813/* confdefs.h.  */
     3814_ACEOF
     3815cat confdefs.h >>conftest.$ac_ext
     3816cat >>conftest.$ac_ext <<_ACEOF
     3817/* end confdefs.h.  */
     3818#include <minix/config.h>
     3819_ACEOF
     3820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3822  ac_status=$?
     3823  grep -v '^ *+' conftest.er1 >conftest.err
     3824  rm -f conftest.er1
     3825  cat conftest.err >&5
     3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3827  (exit $ac_status); } >/dev/null; then
     3828  if test -s conftest.err; then
     3829    ac_cpp_err=$ac_c_preproc_warn_flag
     3830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3831  else
     3832    ac_cpp_err=
     3833  fi
     3834else
     3835  ac_cpp_err=yes
     3836fi
     3837if test -z "$ac_cpp_err"; then
     3838  ac_header_preproc=yes
     3839else
     3840  echo "$as_me: failed program was:" >&5
     3841sed 's/^/| /' conftest.$ac_ext >&5
     3842
     3843  ac_header_preproc=no
     3844fi
     3845rm -f conftest.err conftest.$ac_ext
     3846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3847echo "${ECHO_T}$ac_header_preproc" >&6
     3848
     3849# So?  What about this header?
     3850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3851  yes:no: )
     3852    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3853echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3854    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3855echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3856    ac_header_preproc=yes
     3857    ;;
     3858  no:yes:* )
     3859    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3860echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3861    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3862echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3863    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3864echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3865    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3866echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3867    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3868echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3869    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3870echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3871    (
     3872      cat <<\_ASBOX
     3873## ------------------------------------------ ##
     3874## Report this to the AC_PACKAGE_NAME lists.  ##
     3875## ------------------------------------------ ##
     3876_ASBOX
     3877    ) |
     3878      sed "s/^/$as_me: WARNING:     /" >&2
     3879    ;;
     3880esac
     3881echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3882echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3883if test "${ac_cv_header_minix_config_h+set}" = set; then
     3884  echo $ECHO_N "(cached) $ECHO_C" >&6
     3885else
     3886  ac_cv_header_minix_config_h=$ac_header_preproc
     3887fi
     3888echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3889echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3890
     3891fi
     3892if test $ac_cv_header_minix_config_h = yes; then
     3893  MINIX=yes
     3894else
     3895  MINIX=
     3896fi
     3897
     3898
     3899if test "$MINIX" = yes; then
     3900
     3901cat >>confdefs.h <<\_ACEOF
    14553902#define _POSIX_SOURCE 1
    1456 EOF
    1457 
    1458   if test "$GCC" = yes; then
    1459     CC="$CC -posix"
    1460   else
    1461     CC="$CC -Xp"
    1462   fi
    1463 else
    1464   echo "$ac_t""no" 1>&6
    1465   ISC=
    1466 fi
    1467 
    1468 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1469 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1470 echo "configure:1471: checking for minix/config.h" >&5
    1471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1472   echo $ac_n "(cached) $ac_c" 1>&6
    1473 else
    1474   cat > conftest.$ac_ext <<EOF
    1475 #line 1476 "configure"
    1476 #include "confdefs.h"
    1477 #include <minix/config.h>
    1478 EOF
    1479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1480 { (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1482 if test -z "$ac_err"; then
    1483   rm -rf conftest*
    1484   eval "ac_cv_header_$ac_safe=yes"
    1485 else
    1486   echo "$ac_err" >&5
    1487   echo "configure: failed program was:" >&5
    1488   cat conftest.$ac_ext >&5
    1489   rm -rf conftest*
    1490   eval "ac_cv_header_$ac_safe=no"
    1491 fi
    1492 rm -f conftest*
    1493 fi
    1494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1495   echo "$ac_t""yes" 1>&6
    1496   MINIX=yes
    1497 else
    1498   echo "$ac_t""no" 1>&6
    1499 MINIX=
    1500 fi
    1501 
    1502 if test "$MINIX" = yes; then
    1503   cat >> confdefs.h <<\EOF
    1504 #define _POSIX_SOURCE 1
    1505 EOF
    1506 
    1507   cat >> confdefs.h <<\EOF
     3903_ACEOF
     3904
     3905
     3906cat >>confdefs.h <<\_ACEOF
    15083907#define _POSIX_1_SOURCE 2
    1509 EOF
    1510 
    1511   cat >> confdefs.h <<\EOF
     3908_ACEOF
     3909
     3910
     3911cat >>confdefs.h <<\_ACEOF
    15123912#define _MINIX 1
    1513 EOF
    1514 
    1515 fi
    1516 
    1517 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1518 echo "configure:1519: checking for ${CC-cc} option to accept ANSI C" >&5
    1519 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1520   echo $ac_n "(cached) $ac_c" 1>&6
     3913_ACEOF
     3914
     3915fi
     3916
     3917echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3918echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3919if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3920  echo $ECHO_N "(cached) $ECHO_C" >&6
    15213921else
    15223922  ac_cv_prog_cc_stdc=no
     
    15313931do
    15323932  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1533   cat > conftest.$ac_ext <<EOF
    1534 #line 1535 "configure"
    1535 #include "confdefs.h"
     3933  cat >conftest.$ac_ext <<_ACEOF
     3934/* confdefs.h.  */
     3935_ACEOF
     3936cat confdefs.h >>conftest.$ac_ext
     3937cat >>conftest.$ac_ext <<_ACEOF
     3938/* end confdefs.h.  */
    15363939#if !defined(__STDC__) || __STDC__ != 1
    15373940choke me
    1538 #endif 
    1539 
    1540 int main() {
     3941#endif
     3942
     3943int
     3944main ()
     3945{
    15413946int test (int i, double x);
    15423947struct s1 {int (*f) (int a);};
    15433948struct s2 {int (*f) (double a);};
    1544 ; return 0; }
    1545 EOF
    1546 if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1547   rm -rf conftest*
     3949  ;
     3950  return 0;
     3951}
     3952_ACEOF
     3953rm -f conftest.$ac_objext
     3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3955  (eval $ac_compile) 2>conftest.er1
     3956  ac_status=$?
     3957  grep -v '^ *+' conftest.er1 >conftest.err
     3958  rm -f conftest.er1
     3959  cat conftest.err >&5
     3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3961  (exit $ac_status); } &&
     3962     { ac_try='test -z "$ac_c_werror_flag"
     3963             || test ! -s conftest.err'
     3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3965  (eval $ac_try) 2>&5
     3966  ac_status=$?
     3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3968  (exit $ac_status); }; } &&
     3969     { ac_try='test -s conftest.$ac_objext'
     3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3971  (eval $ac_try) 2>&5
     3972  ac_status=$?
     3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3974  (exit $ac_status); }; }; then
    15483975  ac_cv_prog_cc_stdc="$ac_arg"; break
    15493976else
    1550   echo "configure: failed program was:" >&5
    1551   cat conftest.$ac_ext >&5
    1552 fi
    1553 rm -f conftest*
     3977  echo "$as_me: failed program was:" >&5
     3978sed 's/^/| /' conftest.$ac_ext >&5
     3979
     3980fi
     3981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    15543982done
    15553983CFLAGS="$ac_save_CFLAGS"
     
    15573985fi
    15583986
    1559 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     3987echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3988echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    15603989case "x$ac_cv_prog_cc_stdc" in
    15613990  x|xno) ;;
     
    15643993
    15653994
    1566 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1567 echo "configure:1568: checking for function prototypes" >&5
     3995echo "$as_me:$LINENO: checking for function prototypes" >&5
     3996echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    15683997if test "$ac_cv_prog_cc_stdc" != no; then
    1569   echo "$ac_t""yes" 1>&6
    1570   cat >> confdefs.h <<\EOF
     3998  echo "$as_me:$LINENO: result: yes" >&5
     3999echo "${ECHO_T}yes" >&6
     4000  cat >>confdefs.h <<\_ACEOF
    15714001#define PROTOTYPES 1
    1572 EOF
     4002_ACEOF
    15734003
    15744004  U= ANSI2KNR=
    15754005else
    1576   echo "$ac_t""no" 1>&6
     4006  echo "$as_me:$LINENO: result: no" >&5
     4007echo "${ECHO_T}no" >&6
    15774008  U=_ ANSI2KNR=ansi2knr
    15784009fi
    15794010
    1580 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1581 echo "configure:1582: checking for working const" >&5
    1582 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1583   echo $ac_n "(cached) $ac_c" 1>&6
    1584 else
    1585   cat > conftest.$ac_ext <<EOF
    1586 #line 1587 "configure"
    1587 #include "confdefs.h"
    1588 
    1589 int main() {
    1590 
    1591 /* Ultrix mips cc rejects this.  */
    1592 typedef int charset[2]; const charset x;
    1593 /* SunOS 4.1.1 cc rejects this.  */
    1594 char const *const *ccp;
    1595 char **p;
    1596 /* NEC SVR4.0.2 mips cc rejects this.  */
    1597 struct point {int x, y;};
    1598 static struct point const zero = {0,0};
    1599 /* AIX XL C 1.02.0.0 rejects this.
    1600    It does not let you subtract one const X* pointer from another in an arm
    1601    of an if-expression whose if-part is not a constant expression */
    1602 const char *g = "string";
    1603 ccp = &g + (g ? g-g : 0);
    1604 /* HPUX 7.0 cc rejects these. */
    1605 ++ccp;
    1606 p = (char**) ccp;
    1607 ccp = (char const *const *) p;
    1608 { /* SCO 3.2v4 cc rejects this.  */
    1609   char *t;
    1610   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1611 
    1612   *t++ = 0;
     4011echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     4012echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     4013if test "${ac_cv_c_const+set}" = set; then
     4014  echo $ECHO_N "(cached) $ECHO_C" >&6
     4015else
     4016  cat >conftest.$ac_ext <<_ACEOF
     4017/* confdefs.h.  */
     4018_ACEOF
     4019cat confdefs.h >>conftest.$ac_ext
     4020cat >>conftest.$ac_ext <<_ACEOF
     4021/* end confdefs.h.  */
     4022
     4023int
     4024main ()
     4025{
     4026/* FIXME: Include the comments suggested by Paul. */
     4027#ifndef __cplusplus
     4028  /* Ultrix mips cc rejects this.  */
     4029  typedef int charset[2];
     4030  const charset x;
     4031  /* SunOS 4.1.1 cc rejects this.  */
     4032  char const *const *ccp;
     4033  char **p;
     4034  /* NEC SVR4.0.2 mips cc rejects this.  */
     4035  struct point {int x, y;};
     4036  static struct point const zero = {0,0};
     4037  /* AIX XL C 1.02.0.0 rejects this.
     4038     It does not let you subtract one const X* pointer from another in
     4039     an arm of an if-expression whose if-part is not a constant
     4040     expression */
     4041  const char *g = "string";
     4042  ccp = &g + (g ? g-g : 0);
     4043  /* HPUX 7.0 cc rejects these. */
     4044  ++ccp;
     4045  p = (char**) ccp;
     4046  ccp = (char const *const *) p;
     4047  { /* SCO 3.2v4 cc rejects this.  */
     4048    char *t;
     4049    char const *s = 0 ? (char *) 0 : (char const *) 0;
     4050
     4051    *t++ = 0;
     4052  }
     4053  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     4054    int x[] = {25, 17};
     4055    const int *foo = &x[0];
     4056    ++foo;
     4057  }
     4058  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     4059    typedef const int *iptr;
     4060    iptr p = 0;
     4061    ++p;
     4062  }
     4063  { /* AIX XL C 1.02.0.0 rejects this saying
     4064       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     4065    struct s { int j; const int *ap[3]; };
     4066    struct s *b; b->j = 5;
     4067  }
     4068  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     4069    const int foo = 10;
     4070  }
     4071#endif
     4072
     4073  ;
     4074  return 0;
    16134075}
    1614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1615   int x[] = {25, 17};
    1616   const int *foo = &x[0];
    1617   ++foo;
     4076_ACEOF
     4077rm -f conftest.$ac_objext
     4078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4079  (eval $ac_compile) 2>conftest.er1
     4080  ac_status=$?
     4081  grep -v '^ *+' conftest.er1 >conftest.err
     4082  rm -f conftest.er1
     4083  cat conftest.err >&5
     4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4085  (exit $ac_status); } &&
     4086     { ac_try='test -z "$ac_c_werror_flag"
     4087             || test ! -s conftest.err'
     4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4089  (eval $ac_try) 2>&5
     4090  ac_status=$?
     4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4092  (exit $ac_status); }; } &&
     4093     { ac_try='test -s conftest.$ac_objext'
     4094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4095  (eval $ac_try) 2>&5
     4096  ac_status=$?
     4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4098  (exit $ac_status); }; }; then
     4099  ac_cv_c_const=yes
     4100else
     4101  echo "$as_me: failed program was:" >&5
     4102sed 's/^/| /' conftest.$ac_ext >&5
     4103
     4104ac_cv_c_const=no
     4105fi
     4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4107fi
     4108echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     4109echo "${ECHO_T}$ac_cv_c_const" >&6
     4110if test $ac_cv_c_const = no; then
     4111
     4112cat >>confdefs.h <<\_ACEOF
     4113#define const
     4114_ACEOF
     4115
     4116fi
     4117
     4118echo "$as_me:$LINENO: checking for off_t" >&5
     4119echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     4120if test "${ac_cv_type_off_t+set}" = set; then
     4121  echo $ECHO_N "(cached) $ECHO_C" >&6
     4122else
     4123  cat >conftest.$ac_ext <<_ACEOF
     4124/* confdefs.h.  */
     4125_ACEOF
     4126cat confdefs.h >>conftest.$ac_ext
     4127cat >>conftest.$ac_ext <<_ACEOF
     4128/* end confdefs.h.  */
     4129$ac_includes_default
     4130int
     4131main ()
     4132{
     4133if ((off_t *) 0)
     4134  return 0;
     4135if (sizeof (off_t))
     4136  return 0;
     4137  ;
     4138  return 0;
    16184139}
    1619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1620   typedef const int *iptr;
    1621   iptr p = 0;
    1622   ++p;
     4140_ACEOF
     4141rm -f conftest.$ac_objext
     4142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4143  (eval $ac_compile) 2>conftest.er1
     4144  ac_status=$?
     4145  grep -v '^ *+' conftest.er1 >conftest.err
     4146  rm -f conftest.er1
     4147  cat conftest.err >&5
     4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4149  (exit $ac_status); } &&
     4150     { ac_try='test -z "$ac_c_werror_flag"
     4151             || test ! -s conftest.err'
     4152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4153  (eval $ac_try) 2>&5
     4154  ac_status=$?
     4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4156  (exit $ac_status); }; } &&
     4157     { ac_try='test -s conftest.$ac_objext'
     4158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4159  (eval $ac_try) 2>&5
     4160  ac_status=$?
     4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4162  (exit $ac_status); }; }; then
     4163  ac_cv_type_off_t=yes
     4164else
     4165  echo "$as_me: failed program was:" >&5
     4166sed 's/^/| /' conftest.$ac_ext >&5
     4167
     4168ac_cv_type_off_t=no
     4169fi
     4170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4171fi
     4172echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
     4173echo "${ECHO_T}$ac_cv_type_off_t" >&6
     4174if test $ac_cv_type_off_t = yes; then
     4175  :
     4176else
     4177
     4178cat >>confdefs.h <<_ACEOF
     4179#define off_t long
     4180_ACEOF
     4181
     4182fi
     4183
     4184echo "$as_me:$LINENO: checking for size_t" >&5
     4185echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     4186if test "${ac_cv_type_size_t+set}" = set; then
     4187  echo $ECHO_N "(cached) $ECHO_C" >&6
     4188else
     4189  cat >conftest.$ac_ext <<_ACEOF
     4190/* confdefs.h.  */
     4191_ACEOF
     4192cat confdefs.h >>conftest.$ac_ext
     4193cat >>conftest.$ac_ext <<_ACEOF
     4194/* end confdefs.h.  */
     4195$ac_includes_default
     4196int
     4197main ()
     4198{
     4199if ((size_t *) 0)
     4200  return 0;
     4201if (sizeof (size_t))
     4202  return 0;
     4203  ;
     4204  return 0;
    16234205}
    1624 { /* AIX XL C 1.02.0.0 rejects this saying
    1625      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1626   struct s { int j; const int *ap[3]; };
    1627   struct s *b; b->j = 5;
     4206_ACEOF
     4207rm -f conftest.$ac_objext
     4208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4209  (eval $ac_compile) 2>conftest.er1
     4210  ac_status=$?
     4211  grep -v '^ *+' conftest.er1 >conftest.err
     4212  rm -f conftest.er1
     4213  cat conftest.err >&5
     4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4215  (exit $ac_status); } &&
     4216     { ac_try='test -z "$ac_c_werror_flag"
     4217             || test ! -s conftest.err'
     4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4219  (eval $ac_try) 2>&5
     4220  ac_status=$?
     4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4222  (exit $ac_status); }; } &&
     4223     { ac_try='test -s conftest.$ac_objext'
     4224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4225  (eval $ac_try) 2>&5
     4226  ac_status=$?
     4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4228  (exit $ac_status); }; }; then
     4229  ac_cv_type_size_t=yes
     4230else
     4231  echo "$as_me: failed program was:" >&5
     4232sed 's/^/| /' conftest.$ac_ext >&5
     4233
     4234ac_cv_type_size_t=no
     4235fi
     4236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4237fi
     4238echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     4239echo "${ECHO_T}$ac_cv_type_size_t" >&6
     4240if test $ac_cv_type_size_t = yes; then
     4241  :
     4242else
     4243
     4244cat >>confdefs.h <<_ACEOF
     4245#define size_t unsigned
     4246_ACEOF
     4247
     4248fi
     4249
     4250echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     4251echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     4252if test "${ac_cv_header_time+set}" = set; then
     4253  echo $ECHO_N "(cached) $ECHO_C" >&6
     4254else
     4255  cat >conftest.$ac_ext <<_ACEOF
     4256/* confdefs.h.  */
     4257_ACEOF
     4258cat confdefs.h >>conftest.$ac_ext
     4259cat >>conftest.$ac_ext <<_ACEOF
     4260/* end confdefs.h.  */
     4261#include <sys/types.h>
     4262#include <sys/time.h>
     4263#include <time.h>
     4264
     4265int
     4266main ()
     4267{
     4268if ((struct tm *) 0)
     4269return 0;
     4270  ;
     4271  return 0;
    16284272}
    1629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1630   const int foo = 10;
     4273_ACEOF
     4274rm -f conftest.$ac_objext
     4275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4276  (eval $ac_compile) 2>conftest.er1
     4277  ac_status=$?
     4278  grep -v '^ *+' conftest.er1 >conftest.err
     4279  rm -f conftest.er1
     4280  cat conftest.err >&5
     4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4282  (exit $ac_status); } &&
     4283     { ac_try='test -z "$ac_c_werror_flag"
     4284             || test ! -s conftest.err'
     4285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4286  (eval $ac_try) 2>&5
     4287  ac_status=$?
     4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4289  (exit $ac_status); }; } &&
     4290     { ac_try='test -s conftest.$ac_objext'
     4291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4292  (eval $ac_try) 2>&5
     4293  ac_status=$?
     4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4295  (exit $ac_status); }; }; then
     4296  ac_cv_header_time=yes
     4297else
     4298  echo "$as_me: failed program was:" >&5
     4299sed 's/^/| /' conftest.$ac_ext >&5
     4300
     4301ac_cv_header_time=no
     4302fi
     4303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4304fi
     4305echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     4306echo "${ECHO_T}$ac_cv_header_time" >&6
     4307if test $ac_cv_header_time = yes; then
     4308
     4309cat >>confdefs.h <<\_ACEOF
     4310#define TIME_WITH_SYS_TIME 1
     4311_ACEOF
     4312
     4313fi
     4314
     4315echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     4316echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     4317if test "${ac_cv_struct_tm+set}" = set; then
     4318  echo $ECHO_N "(cached) $ECHO_C" >&6
     4319else
     4320  cat >conftest.$ac_ext <<_ACEOF
     4321/* confdefs.h.  */
     4322_ACEOF
     4323cat confdefs.h >>conftest.$ac_ext
     4324cat >>conftest.$ac_ext <<_ACEOF
     4325/* end confdefs.h.  */
     4326#include <sys/types.h>
     4327#include <time.h>
     4328
     4329int
     4330main ()
     4331{
     4332struct tm *tp; tp->tm_sec;
     4333  ;
     4334  return 0;
    16314335}
    1632 
    1633 ; return 0; }
    1634 EOF
    1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1636   rm -rf conftest*
    1637   ac_cv_c_const=yes
    1638 else
    1639   echo "configure: failed program was:" >&5
    1640   cat conftest.$ac_ext >&5
    1641   rm -rf conftest*
    1642   ac_cv_c_const=no
    1643 fi
    1644 rm -f conftest*
    1645 fi
    1646 
    1647 echo "$ac_t""$ac_cv_c_const" 1>&6
    1648 if test $ac_cv_c_const = no; then
    1649   cat >> confdefs.h <<\EOF
    1650 #define const
    1651 EOF
    1652 
    1653 fi
    1654 
    1655 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1656 echo "configure:1657: checking for ANSI C header files" >&5
    1657 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1658   echo $ac_n "(cached) $ac_c" 1>&6
    1659 else
    1660   cat > conftest.$ac_ext <<EOF
    1661 #line 1662 "configure"
    1662 #include "confdefs.h"
     4336_ACEOF
     4337rm -f conftest.$ac_objext
     4338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4339  (eval $ac_compile) 2>conftest.er1
     4340  ac_status=$?
     4341  grep -v '^ *+' conftest.er1 >conftest.err
     4342  rm -f conftest.er1
     4343  cat conftest.err >&5
     4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4345  (exit $ac_status); } &&
     4346     { ac_try='test -z "$ac_c_werror_flag"
     4347             || test ! -s conftest.err'
     4348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4349  (eval $ac_try) 2>&5
     4350  ac_status=$?
     4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4352  (exit $ac_status); }; } &&
     4353     { ac_try='test -s conftest.$ac_objext'
     4354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4355  (eval $ac_try) 2>&5
     4356  ac_status=$?
     4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4358  (exit $ac_status); }; }; then
     4359  ac_cv_struct_tm=time.h
     4360else
     4361  echo "$as_me: failed program was:" >&5
     4362sed 's/^/| /' conftest.$ac_ext >&5
     4363
     4364ac_cv_struct_tm=sys/time.h
     4365fi
     4366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4367fi
     4368echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     4369echo "${ECHO_T}$ac_cv_struct_tm" >&6
     4370if test $ac_cv_struct_tm = sys/time.h; then
     4371
     4372cat >>confdefs.h <<\_ACEOF
     4373#define TM_IN_SYS_TIME 1
     4374_ACEOF
     4375
     4376fi
     4377
     4378
     4379if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
     4380cat >conftest.$ac_ext <<_ACEOF
     4381/* confdefs.h.  */
     4382_ACEOF
     4383cat confdefs.h >>conftest.$ac_ext
     4384cat >>conftest.$ac_ext <<_ACEOF
     4385/* end confdefs.h.  */
     4386#include <stdio.h>
     4387
     4388int
     4389main ()
     4390{
     4391 FILE *rubbish = popen("yes", "r");
     4392  ;
     4393  return 0;
     4394}
     4395_ACEOF
     4396rm -f conftest.$ac_objext
     4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4398  (eval $ac_compile) 2>conftest.er1
     4399  ac_status=$?
     4400  grep -v '^ *+' conftest.er1 >conftest.err
     4401  rm -f conftest.er1
     4402  cat conftest.err >&5
     4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4404  (exit $ac_status); } &&
     4405     { ac_try='test -z "$ac_c_werror_flag"
     4406             || test ! -s conftest.err'
     4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4408  (eval $ac_try) 2>&5
     4409  ac_status=$?
     4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4411  (exit $ac_status); }; } &&
     4412     { ac_try='test -s conftest.$ac_objext'
     4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4414  (eval $ac_try) 2>&5
     4415  ac_status=$?
     4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4417  (exit $ac_status); }; }; then
     4418  :
     4419else
     4420  echo "$as_me: failed program was:" >&5
     4421sed 's/^/| /' conftest.$ac_ext >&5
     4422
     4423CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     4424fi
     4425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4426fi
     4427
     4428
     4429
     4430echo "$as_me:$LINENO: checking for main in -lg" >&5
     4431echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
     4432if test "${ac_cv_lib_g_main+set}" = set; then
     4433  echo $ECHO_N "(cached) $ECHO_C" >&6
     4434else
     4435  ac_check_lib_save_LIBS=$LIBS
     4436LIBS="-lg  $LIBS"
     4437cat >conftest.$ac_ext <<_ACEOF
     4438/* confdefs.h.  */
     4439_ACEOF
     4440cat confdefs.h >>conftest.$ac_ext
     4441cat >>conftest.$ac_ext <<_ACEOF
     4442/* end confdefs.h.  */
     4443
     4444
     4445int
     4446main ()
     4447{
     4448main ();
     4449  ;
     4450  return 0;
     4451}
     4452_ACEOF
     4453rm -f conftest.$ac_objext conftest$ac_exeext
     4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4455  (eval $ac_link) 2>conftest.er1
     4456  ac_status=$?
     4457  grep -v '^ *+' conftest.er1 >conftest.err
     4458  rm -f conftest.er1
     4459  cat conftest.err >&5
     4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4461  (exit $ac_status); } &&
     4462     { ac_try='test -z "$ac_c_werror_flag"
     4463             || test ! -s conftest.err'
     4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4465  (eval $ac_try) 2>&5
     4466  ac_status=$?
     4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4468  (exit $ac_status); }; } &&
     4469     { ac_try='test -s conftest$ac_exeext'
     4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4471  (eval $ac_try) 2>&5
     4472  ac_status=$?
     4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4474  (exit $ac_status); }; }; then
     4475  ac_cv_lib_g_main=yes
     4476else
     4477  echo "$as_me: failed program was:" >&5
     4478sed 's/^/| /' conftest.$ac_ext >&5
     4479
     4480ac_cv_lib_g_main=no
     4481fi
     4482rm -f conftest.err conftest.$ac_objext \
     4483      conftest$ac_exeext conftest.$ac_ext
     4484LIBS=$ac_check_lib_save_LIBS
     4485fi
     4486echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
     4487echo "${ECHO_T}$ac_cv_lib_g_main" >&6
     4488if test $ac_cv_lib_g_main = yes; then
     4489  cat >>confdefs.h <<_ACEOF
     4490#define HAVE_LIBG 1
     4491_ACEOF
     4492
     4493  LIBS="-lg $LIBS"
     4494
     4495fi
     4496ac_cv_lib_g=ac_cv_lib_g_main
     4497
     4498
     4499echo "$as_me:$LINENO: checking for main in -lm" >&5
     4500echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     4501if test "${ac_cv_lib_m_main+set}" = set; then
     4502  echo $ECHO_N "(cached) $ECHO_C" >&6
     4503else
     4504  ac_check_lib_save_LIBS=$LIBS
     4505LIBS="-lm  $LIBS"
     4506cat >conftest.$ac_ext <<_ACEOF
     4507/* confdefs.h.  */
     4508_ACEOF
     4509cat confdefs.h >>conftest.$ac_ext
     4510cat >>conftest.$ac_ext <<_ACEOF
     4511/* end confdefs.h.  */
     4512
     4513
     4514int
     4515main ()
     4516{
     4517main ();
     4518  ;
     4519  return 0;
     4520}
     4521_ACEOF
     4522rm -f conftest.$ac_objext conftest$ac_exeext
     4523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4524  (eval $ac_link) 2>conftest.er1
     4525  ac_status=$?
     4526  grep -v '^ *+' conftest.er1 >conftest.err
     4527  rm -f conftest.er1
     4528  cat conftest.err >&5
     4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4530  (exit $ac_status); } &&
     4531     { ac_try='test -z "$ac_c_werror_flag"
     4532             || test ! -s conftest.err'
     4533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4534  (eval $ac_try) 2>&5
     4535  ac_status=$?
     4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4537  (exit $ac_status); }; } &&
     4538     { ac_try='test -s conftest$ac_exeext'
     4539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4540  (eval $ac_try) 2>&5
     4541  ac_status=$?
     4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4543  (exit $ac_status); }; }; then
     4544  ac_cv_lib_m_main=yes
     4545else
     4546  echo "$as_me: failed program was:" >&5
     4547sed 's/^/| /' conftest.$ac_ext >&5
     4548
     4549ac_cv_lib_m_main=no
     4550fi
     4551rm -f conftest.err conftest.$ac_objext \
     4552      conftest$ac_exeext conftest.$ac_ext
     4553LIBS=$ac_check_lib_save_LIBS
     4554fi
     4555echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     4556echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     4557if test $ac_cv_lib_m_main = yes; then
     4558  cat >>confdefs.h <<_ACEOF
     4559#define HAVE_LIBM 1
     4560_ACEOF
     4561
     4562  LIBS="-lm $LIBS"
     4563
     4564fi
     4565ac_cv_lib_m=ac_cv_lib_m_main
     4566
     4567
     4568echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
     4569echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
     4570if test "${ac_cv_lib_crypt_main+set}" = set; then
     4571  echo $ECHO_N "(cached) $ECHO_C" >&6
     4572else
     4573  ac_check_lib_save_LIBS=$LIBS
     4574LIBS="-lcrypt  $LIBS"
     4575cat >conftest.$ac_ext <<_ACEOF
     4576/* confdefs.h.  */
     4577_ACEOF
     4578cat confdefs.h >>conftest.$ac_ext
     4579cat >>conftest.$ac_ext <<_ACEOF
     4580/* end confdefs.h.  */
     4581
     4582
     4583int
     4584main ()
     4585{
     4586main ();
     4587  ;
     4588  return 0;
     4589}
     4590_ACEOF
     4591rm -f conftest.$ac_objext conftest$ac_exeext
     4592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4593  (eval $ac_link) 2>conftest.er1
     4594  ac_status=$?
     4595  grep -v '^ *+' conftest.er1 >conftest.err
     4596  rm -f conftest.er1
     4597  cat conftest.err >&5
     4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4599  (exit $ac_status); } &&
     4600     { ac_try='test -z "$ac_c_werror_flag"
     4601             || test ! -s conftest.err'
     4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4603  (eval $ac_try) 2>&5
     4604  ac_status=$?
     4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4606  (exit $ac_status); }; } &&
     4607     { ac_try='test -s conftest$ac_exeext'
     4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4609  (eval $ac_try) 2>&5
     4610  ac_status=$?
     4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4612  (exit $ac_status); }; }; then
     4613  ac_cv_lib_crypt_main=yes
     4614else
     4615  echo "$as_me: failed program was:" >&5
     4616sed 's/^/| /' conftest.$ac_ext >&5
     4617
     4618ac_cv_lib_crypt_main=no
     4619fi
     4620rm -f conftest.err conftest.$ac_objext \
     4621      conftest$ac_exeext conftest.$ac_ext
     4622LIBS=$ac_check_lib_save_LIBS
     4623fi
     4624echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
     4625echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
     4626if test $ac_cv_lib_crypt_main = yes; then
     4627  cat >>confdefs.h <<_ACEOF
     4628#define HAVE_LIBCRYPT 1
     4629_ACEOF
     4630
     4631  LIBS="-lcrypt $LIBS"
     4632
     4633fi
     4634ac_cv_lib_crypt=ac_cv_lib_crypt_main
     4635
     4636
     4637
     4638
     4639
     4640
     4641
     4642
     4643ac_header_dirent=no
     4644for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     4645  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4646echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
     4647echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     4648if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4649  echo $ECHO_N "(cached) $ECHO_C" >&6
     4650else
     4651  cat >conftest.$ac_ext <<_ACEOF
     4652/* confdefs.h.  */
     4653_ACEOF
     4654cat confdefs.h >>conftest.$ac_ext
     4655cat >>conftest.$ac_ext <<_ACEOF
     4656/* end confdefs.h.  */
     4657#include <sys/types.h>
     4658#include <$ac_hdr>
     4659
     4660int
     4661main ()
     4662{
     4663if ((DIR *) 0)
     4664return 0;
     4665  ;
     4666  return 0;
     4667}
     4668_ACEOF
     4669rm -f conftest.$ac_objext
     4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4671  (eval $ac_compile) 2>conftest.er1
     4672  ac_status=$?
     4673  grep -v '^ *+' conftest.er1 >conftest.err
     4674  rm -f conftest.er1
     4675  cat conftest.err >&5
     4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4677  (exit $ac_status); } &&
     4678     { ac_try='test -z "$ac_c_werror_flag"
     4679             || test ! -s conftest.err'
     4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4681  (eval $ac_try) 2>&5
     4682  ac_status=$?
     4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4684  (exit $ac_status); }; } &&
     4685     { ac_try='test -s conftest.$ac_objext'
     4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4687  (eval $ac_try) 2>&5
     4688  ac_status=$?
     4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4690  (exit $ac_status); }; }; then
     4691  eval "$as_ac_Header=yes"
     4692else
     4693  echo "$as_me: failed program was:" >&5
     4694sed 's/^/| /' conftest.$ac_ext >&5
     4695
     4696eval "$as_ac_Header=no"
     4697fi
     4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4699fi
     4700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4702if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4703  cat >>confdefs.h <<_ACEOF
     4704#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4705_ACEOF
     4706
     4707ac_header_dirent=$ac_hdr; break
     4708fi
     4709
     4710done
     4711# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     4712if test $ac_header_dirent = dirent.h; then
     4713  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4714echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4715if test "${ac_cv_search_opendir+set}" = set; then
     4716  echo $ECHO_N "(cached) $ECHO_C" >&6
     4717else
     4718  ac_func_search_save_LIBS=$LIBS
     4719ac_cv_search_opendir=no
     4720cat >conftest.$ac_ext <<_ACEOF
     4721/* confdefs.h.  */
     4722_ACEOF
     4723cat confdefs.h >>conftest.$ac_ext
     4724cat >>conftest.$ac_ext <<_ACEOF
     4725/* end confdefs.h.  */
     4726
     4727/* Override any gcc2 internal prototype to avoid an error.  */
     4728#ifdef __cplusplus
     4729extern "C"
     4730#endif
     4731/* We use char because int might match the return type of a gcc2
     4732   builtin and then its argument prototype would still apply.  */
     4733char opendir ();
     4734int
     4735main ()
     4736{
     4737opendir ();
     4738  ;
     4739  return 0;
     4740}
     4741_ACEOF
     4742rm -f conftest.$ac_objext conftest$ac_exeext
     4743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4744  (eval $ac_link) 2>conftest.er1
     4745  ac_status=$?
     4746  grep -v '^ *+' conftest.er1 >conftest.err
     4747  rm -f conftest.er1
     4748  cat conftest.err >&5
     4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4750  (exit $ac_status); } &&
     4751     { ac_try='test -z "$ac_c_werror_flag"
     4752             || test ! -s conftest.err'
     4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4754  (eval $ac_try) 2>&5
     4755  ac_status=$?
     4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4757  (exit $ac_status); }; } &&
     4758     { ac_try='test -s conftest$ac_exeext'
     4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4760  (eval $ac_try) 2>&5
     4761  ac_status=$?
     4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4763  (exit $ac_status); }; }; then
     4764  ac_cv_search_opendir="none required"
     4765else
     4766  echo "$as_me: failed program was:" >&5
     4767sed 's/^/| /' conftest.$ac_ext >&5
     4768
     4769fi
     4770rm -f conftest.err conftest.$ac_objext \
     4771      conftest$ac_exeext conftest.$ac_ext
     4772if test "$ac_cv_search_opendir" = no; then
     4773  for ac_lib in dir; do
     4774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4775    cat >conftest.$ac_ext <<_ACEOF
     4776/* confdefs.h.  */
     4777_ACEOF
     4778cat confdefs.h >>conftest.$ac_ext
     4779cat >>conftest.$ac_ext <<_ACEOF
     4780/* end confdefs.h.  */
     4781
     4782/* Override any gcc2 internal prototype to avoid an error.  */
     4783#ifdef __cplusplus
     4784extern "C"
     4785#endif
     4786/* We use char because int might match the return type of a gcc2
     4787   builtin and then its argument prototype would still apply.  */
     4788char opendir ();
     4789int
     4790main ()
     4791{
     4792opendir ();
     4793  ;
     4794  return 0;
     4795}
     4796_ACEOF
     4797rm -f conftest.$ac_objext conftest$ac_exeext
     4798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4799  (eval $ac_link) 2>conftest.er1
     4800  ac_status=$?
     4801  grep -v '^ *+' conftest.er1 >conftest.err
     4802  rm -f conftest.er1
     4803  cat conftest.err >&5
     4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4805  (exit $ac_status); } &&
     4806     { ac_try='test -z "$ac_c_werror_flag"
     4807             || test ! -s conftest.err'
     4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4809  (eval $ac_try) 2>&5
     4810  ac_status=$?
     4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4812  (exit $ac_status); }; } &&
     4813     { ac_try='test -s conftest$ac_exeext'
     4814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4815  (eval $ac_try) 2>&5
     4816  ac_status=$?
     4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4818  (exit $ac_status); }; }; then
     4819  ac_cv_search_opendir="-l$ac_lib"
     4820break
     4821else
     4822  echo "$as_me: failed program was:" >&5
     4823sed 's/^/| /' conftest.$ac_ext >&5
     4824
     4825fi
     4826rm -f conftest.err conftest.$ac_objext \
     4827      conftest$ac_exeext conftest.$ac_ext
     4828  done
     4829fi
     4830LIBS=$ac_func_search_save_LIBS
     4831fi
     4832echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4833echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4834if test "$ac_cv_search_opendir" != no; then
     4835  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4836
     4837fi
     4838
     4839else
     4840  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4841echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4842if test "${ac_cv_search_opendir+set}" = set; then
     4843  echo $ECHO_N "(cached) $ECHO_C" >&6
     4844else
     4845  ac_func_search_save_LIBS=$LIBS
     4846ac_cv_search_opendir=no
     4847cat >conftest.$ac_ext <<_ACEOF
     4848/* confdefs.h.  */
     4849_ACEOF
     4850cat confdefs.h >>conftest.$ac_ext
     4851cat >>conftest.$ac_ext <<_ACEOF
     4852/* end confdefs.h.  */
     4853
     4854/* Override any gcc2 internal prototype to avoid an error.  */
     4855#ifdef __cplusplus
     4856extern "C"
     4857#endif
     4858/* We use char because int might match the return type of a gcc2
     4859   builtin and then its argument prototype would still apply.  */
     4860char opendir ();
     4861int
     4862main ()
     4863{
     4864opendir ();
     4865  ;
     4866  return 0;
     4867}
     4868_ACEOF
     4869rm -f conftest.$ac_objext conftest$ac_exeext
     4870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4871  (eval $ac_link) 2>conftest.er1
     4872  ac_status=$?
     4873  grep -v '^ *+' conftest.er1 >conftest.err
     4874  rm -f conftest.er1
     4875  cat conftest.err >&5
     4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4877  (exit $ac_status); } &&
     4878     { ac_try='test -z "$ac_c_werror_flag"
     4879             || test ! -s conftest.err'
     4880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4881  (eval $ac_try) 2>&5
     4882  ac_status=$?
     4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4884  (exit $ac_status); }; } &&
     4885     { ac_try='test -s conftest$ac_exeext'
     4886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4887  (eval $ac_try) 2>&5
     4888  ac_status=$?
     4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4890  (exit $ac_status); }; }; then
     4891  ac_cv_search_opendir="none required"
     4892else
     4893  echo "$as_me: failed program was:" >&5
     4894sed 's/^/| /' conftest.$ac_ext >&5
     4895
     4896fi
     4897rm -f conftest.err conftest.$ac_objext \
     4898      conftest$ac_exeext conftest.$ac_ext
     4899if test "$ac_cv_search_opendir" = no; then
     4900  for ac_lib in x; do
     4901    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4902    cat >conftest.$ac_ext <<_ACEOF
     4903/* confdefs.h.  */
     4904_ACEOF
     4905cat confdefs.h >>conftest.$ac_ext
     4906cat >>conftest.$ac_ext <<_ACEOF
     4907/* end confdefs.h.  */
     4908
     4909/* Override any gcc2 internal prototype to avoid an error.  */
     4910#ifdef __cplusplus
     4911extern "C"
     4912#endif
     4913/* We use char because int might match the return type of a gcc2
     4914   builtin and then its argument prototype would still apply.  */
     4915char opendir ();
     4916int
     4917main ()
     4918{
     4919opendir ();
     4920  ;
     4921  return 0;
     4922}
     4923_ACEOF
     4924rm -f conftest.$ac_objext conftest$ac_exeext
     4925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4926  (eval $ac_link) 2>conftest.er1
     4927  ac_status=$?
     4928  grep -v '^ *+' conftest.er1 >conftest.err
     4929  rm -f conftest.er1
     4930  cat conftest.err >&5
     4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4932  (exit $ac_status); } &&
     4933     { ac_try='test -z "$ac_c_werror_flag"
     4934             || test ! -s conftest.err'
     4935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4936  (eval $ac_try) 2>&5
     4937  ac_status=$?
     4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4939  (exit $ac_status); }; } &&
     4940     { ac_try='test -s conftest$ac_exeext'
     4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4942  (eval $ac_try) 2>&5
     4943  ac_status=$?
     4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4945  (exit $ac_status); }; }; then
     4946  ac_cv_search_opendir="-l$ac_lib"
     4947break
     4948else
     4949  echo "$as_me: failed program was:" >&5
     4950sed 's/^/| /' conftest.$ac_ext >&5
     4951
     4952fi
     4953rm -f conftest.err conftest.$ac_objext \
     4954      conftest$ac_exeext conftest.$ac_ext
     4955  done
     4956fi
     4957LIBS=$ac_func_search_save_LIBS
     4958fi
     4959echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4960echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4961if test "$ac_cv_search_opendir" != no; then
     4962  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4963
     4964fi
     4965
     4966fi
     4967
     4968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4970if test "${ac_cv_header_stdc+set}" = set; then
     4971  echo $ECHO_N "(cached) $ECHO_C" >&6
     4972else
     4973  cat >conftest.$ac_ext <<_ACEOF
     4974/* confdefs.h.  */
     4975_ACEOF
     4976cat confdefs.h >>conftest.$ac_ext
     4977cat >>conftest.$ac_ext <<_ACEOF
     4978/* end confdefs.h.  */
    16634979#include <stdlib.h>
    16644980#include <stdarg.h>
    16654981#include <string.h>
    16664982#include <float.h>
    1667 EOF
    1668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1669 { (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1671 if test -z "$ac_err"; then
    1672   rm -rf conftest*
     4983
     4984int
     4985main ()
     4986{
     4987
     4988  ;
     4989  return 0;
     4990}
     4991_ACEOF
     4992rm -f conftest.$ac_objext
     4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4994  (eval $ac_compile) 2>conftest.er1
     4995  ac_status=$?
     4996  grep -v '^ *+' conftest.er1 >conftest.err
     4997  rm -f conftest.er1
     4998  cat conftest.err >&5
     4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5000  (exit $ac_status); } &&
     5001     { ac_try='test -z "$ac_c_werror_flag"
     5002             || test ! -s conftest.err'
     5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5004  (eval $ac_try) 2>&5
     5005  ac_status=$?
     5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5007  (exit $ac_status); }; } &&
     5008     { ac_try='test -s conftest.$ac_objext'
     5009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5010  (eval $ac_try) 2>&5
     5011  ac_status=$?
     5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5013  (exit $ac_status); }; }; then
    16735014  ac_cv_header_stdc=yes
    16745015else
    1675   echo "$ac_err" >&5
    1676   echo "configure: failed program was:" >&5
    1677   cat conftest.$ac_ext >&5
    1678   rm -rf conftest*
    1679   ac_cv_header_stdc=no
    1680 fi
    1681 rm -f conftest*
     5016  echo "$as_me: failed program was:" >&5
     5017sed 's/^/| /' conftest.$ac_ext >&5
     5018
     5019ac_cv_header_stdc=no
     5020fi
     5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    16825022
    16835023if test $ac_cv_header_stdc = yes; then
    16845024  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1685 cat > conftest.$ac_ext <<EOF
    1686 #line 1687 "configure"
    1687 #include "confdefs.h"
     5025  cat >conftest.$ac_ext <<_ACEOF
     5026/* confdefs.h.  */
     5027_ACEOF
     5028cat confdefs.h >>conftest.$ac_ext
     5029cat >>conftest.$ac_ext <<_ACEOF
     5030/* end confdefs.h.  */
    16885031#include <string.h>
    1689 EOF
     5032
     5033_ACEOF
    16905034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1691   egrep "memchr" >/dev/null 2>&1; then
     5035  $EGREP "memchr" >/dev/null 2>&1; then
    16925036  :
    16935037else
    1694   rm -rf conftest*
    16955038  ac_cv_header_stdc=no
    16965039fi
     
    17015044if test $ac_cv_header_stdc = yes; then
    17025045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1703 cat > conftest.$ac_ext <<EOF
    1704 #line 1705 "configure"
    1705 #include "confdefs.h"
     5046  cat >conftest.$ac_ext <<_ACEOF
     5047/* confdefs.h.  */
     5048_ACEOF
     5049cat confdefs.h >>conftest.$ac_ext
     5050cat >>conftest.$ac_ext <<_ACEOF
     5051/* end confdefs.h.  */
    17065052#include <stdlib.h>
    1707 EOF
     5053
     5054_ACEOF
    17085055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1709   egrep "free" >/dev/null 2>&1; then
     5056  $EGREP "free" >/dev/null 2>&1; then
    17105057  :
    17115058else
    1712   rm -rf conftest*
    17135059  ac_cv_header_stdc=no
    17145060fi
     
    17195065if test $ac_cv_header_stdc = yes; then
    17205066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1721 if test "$cross_compiling" = yes; then
     5067  if test "$cross_compiling" = yes; then
    17225068  :
    17235069else
    1724   cat > conftest.$ac_ext <<EOF
    1725 #line 1726 "configure"
    1726 #include "confdefs.h"
     5070  cat >conftest.$ac_ext <<_ACEOF
     5071/* confdefs.h.  */
     5072_ACEOF
     5073cat confdefs.h >>conftest.$ac_ext
     5074cat >>conftest.$ac_ext <<_ACEOF
     5075/* end confdefs.h.  */
    17275076#include <ctype.h>
    1728 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1729 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     5077#if ((' ' & 0x0FF) == 0x020)
     5078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     5079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     5080#else
     5081# define ISLOWER(c) \
     5082           (('a' <= (c) && (c) <= 'i') \
     5083             || ('j' <= (c) && (c) <= 'r') \
     5084             || ('s' <= (c) && (c) <= 'z'))
     5085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     5086#endif
     5087
    17305088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1731 int main () { int i; for (i = 0; i < 256; i++)
    1732 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1733 exit (0); }
    1734 
    1735 EOF
    1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1737 then
     5089int
     5090main ()
     5091{
     5092  int i;
     5093  for (i = 0; i < 256; i++)
     5094    if (XOR (islower (i), ISLOWER (i))
     5095    || toupper (i) != TOUPPER (i))
     5096      exit(2);
     5097  exit (0);
     5098}
     5099_ACEOF
     5100rm -f conftest$ac_exeext
     5101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5102  (eval $ac_link) 2>&5
     5103  ac_status=$?
     5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5107  (eval $ac_try) 2>&5
     5108  ac_status=$?
     5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5110  (exit $ac_status); }; }; then
    17385111  :
    17395112else
    1740   echo "configure: failed program was:" >&5
    1741   cat conftest.$ac_ext >&5
    1742   rm -fr conftest*
    1743   ac_cv_header_stdc=no
    1744 fi
    1745 rm -fr conftest*
    1746 fi
    1747 
    1748 fi
    1749 fi
    1750 
    1751 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     5113  echo "$as_me: program exited with status $ac_status" >&5
     5114echo "$as_me: failed program was:" >&5
     5115sed 's/^/| /' conftest.$ac_ext >&5
     5116
     5117( exit $ac_status )
     5118ac_cv_header_stdc=no
     5119fi
     5120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5121fi
     5122fi
     5123fi
     5124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     5125echo "${ECHO_T}$ac_cv_header_stdc" >&6
    17525126if test $ac_cv_header_stdc = yes; then
    1753   cat >> confdefs.h <<\EOF
     5127
     5128cat >>confdefs.h <<\_ACEOF
    17545129#define STDC_HEADERS 1
    1755 EOF
    1756 
    1757 fi
    1758 
    1759 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1760 echo "configure:1761: checking for off_t" >&5
    1761 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1762   echo $ac_n "(cached) $ac_c" 1>&6
    1763 else
    1764   cat > conftest.$ac_ext <<EOF
    1765 #line 1766 "configure"
    1766 #include "confdefs.h"
    1767 #include <sys/types.h>
    1768 #if STDC_HEADERS
    1769 #include <stdlib.h>
    1770 #include <stddef.h>
    1771 #endif
    1772 EOF
     5130_ACEOF
     5131
     5132fi
     5133
     5134
     5135
     5136
     5137
     5138
     5139
     5140
     5141
     5142for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
     5143do
     5144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5146  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5148if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5149  echo $ECHO_N "(cached) $ECHO_C" >&6
     5150fi
     5151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5153else
     5154  # Is the header compilable?
     5155echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5157cat >conftest.$ac_ext <<_ACEOF
     5158/* confdefs.h.  */
     5159_ACEOF
     5160cat confdefs.h >>conftest.$ac_ext
     5161cat >>conftest.$ac_ext <<_ACEOF
     5162/* end confdefs.h.  */
     5163$ac_includes_default
     5164#include <$ac_header>
     5165_ACEOF
     5166rm -f conftest.$ac_objext
     5167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5168  (eval $ac_compile) 2>conftest.er1
     5169  ac_status=$?
     5170  grep -v '^ *+' conftest.er1 >conftest.err
     5171  rm -f conftest.er1
     5172  cat conftest.err >&5
     5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5174  (exit $ac_status); } &&
     5175     { ac_try='test -z "$ac_c_werror_flag"
     5176             || test ! -s conftest.err'
     5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5178  (eval $ac_try) 2>&5
     5179  ac_status=$?
     5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5181  (exit $ac_status); }; } &&
     5182     { ac_try='test -s conftest.$ac_objext'
     5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5184  (eval $ac_try) 2>&5
     5185  ac_status=$?
     5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5187  (exit $ac_status); }; }; then
     5188  ac_header_compiler=yes
     5189else
     5190  echo "$as_me: failed program was:" >&5
     5191sed 's/^/| /' conftest.$ac_ext >&5
     5192
     5193ac_header_compiler=no
     5194fi
     5195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5197echo "${ECHO_T}$ac_header_compiler" >&6
     5198
     5199# Is the header present?
     5200echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5202cat >conftest.$ac_ext <<_ACEOF
     5203/* confdefs.h.  */
     5204_ACEOF
     5205cat confdefs.h >>conftest.$ac_ext
     5206cat >>conftest.$ac_ext <<_ACEOF
     5207/* end confdefs.h.  */
     5208#include <$ac_header>
     5209_ACEOF
     5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5212  ac_status=$?
     5213  grep -v '^ *+' conftest.er1 >conftest.err
     5214  rm -f conftest.er1
     5215  cat conftest.err >&5
     5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5217  (exit $ac_status); } >/dev/null; then
     5218  if test -s conftest.err; then
     5219    ac_cpp_err=$ac_c_preproc_warn_flag
     5220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5221  else
     5222    ac_cpp_err=
     5223  fi
     5224else
     5225  ac_cpp_err=yes
     5226fi
     5227if test -z "$ac_cpp_err"; then
     5228  ac_header_preproc=yes
     5229else
     5230  echo "$as_me: failed program was:" >&5
     5231sed 's/^/| /' conftest.$ac_ext >&5
     5232
     5233  ac_header_preproc=no
     5234fi
     5235rm -f conftest.err conftest.$ac_ext
     5236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5237echo "${ECHO_T}$ac_header_preproc" >&6
     5238
     5239# So?  What about this header?
     5240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5241  yes:no: )
     5242    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5246    ac_header_preproc=yes
     5247    ;;
     5248  no:yes:* )
     5249    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5251    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5252echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5253    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5255    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5256echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5259    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5261    (
     5262      cat <<\_ASBOX
     5263## ------------------------------------------ ##
     5264## Report this to the AC_PACKAGE_NAME lists.  ##
     5265## ------------------------------------------ ##
     5266_ASBOX
     5267    ) |
     5268      sed "s/^/$as_me: WARNING:     /" >&2
     5269    ;;
     5270esac
     5271echo "$as_me:$LINENO: checking for $ac_header" >&5
     5272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5273if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5274  echo $ECHO_N "(cached) $ECHO_C" >&6
     5275else
     5276  eval "$as_ac_Header=\$ac_header_preproc"
     5277fi
     5278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5280
     5281fi
     5282if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5283  cat >>confdefs.h <<_ACEOF
     5284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5285_ACEOF
     5286
     5287fi
     5288
     5289done
     5290
     5291cat >conftest.$ac_ext <<_ACEOF
     5292/* confdefs.h.  */
     5293_ACEOF
     5294cat confdefs.h >>conftest.$ac_ext
     5295cat >>conftest.$ac_ext <<_ACEOF
     5296/* end confdefs.h.  */
     5297#include <stdio.h>
     5298
     5299_ACEOF
    17735300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1774   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1775   rm -rf conftest*
    1776   ac_cv_type_off_t=yes
    1777 else
    1778   rm -rf conftest*
    1779   ac_cv_type_off_t=no
     5301  $EGREP "fread" >/dev/null 2>&1; then
     5302  cat >>confdefs.h <<\_ACEOF
     5303#define HAVE_FREAD_DECL 1
     5304_ACEOF
     5305
    17805306fi
    17815307rm -f conftest*
    17825308
    1783 fi
    1784 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1785 if test $ac_cv_type_off_t = no; then
    1786   cat >> confdefs.h <<\EOF
    1787 #define off_t long
    1788 EOF
    1789 
    1790 fi
    1791 
    1792 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1793 echo "configure:1794: checking for size_t" >&5
    1794 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1795   echo $ac_n "(cached) $ac_c" 1>&6
    1796 else
    1797   cat > conftest.$ac_ext <<EOF
    1798 #line 1799 "configure"
    1799 #include "confdefs.h"
    1800 #include <sys/types.h>
    1801 #if STDC_HEADERS
    1802 #include <stdlib.h>
    1803 #include <stddef.h>
    1804 #endif
    1805 EOF
     5309cat >conftest.$ac_ext <<_ACEOF
     5310/* confdefs.h.  */
     5311_ACEOF
     5312cat confdefs.h >>conftest.$ac_ext
     5313cat >>conftest.$ac_ext <<_ACEOF
     5314/* end confdefs.h.  */
     5315#include <stdio.h>
     5316
     5317_ACEOF
    18065318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1807   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1808   rm -rf conftest*
    1809   ac_cv_type_size_t=yes
    1810 else
    1811   rm -rf conftest*
    1812   ac_cv_type_size_t=no
     5319  $EGREP "fgetc" >/dev/null 2>&1; then
     5320  cat >>confdefs.h <<\_ACEOF
     5321#define HAVE_FGETC_DECL 1
     5322_ACEOF
     5323
    18135324fi
    18145325rm -f conftest*
    18155326
    1816 fi
    1817 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1818 if test $ac_cv_type_size_t = no; then
    1819   cat >> confdefs.h <<\EOF
    1820 #define size_t unsigned
    1821 EOF
    1822 
    1823 fi
    1824 
    1825 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1826 echo "configure:1827: checking whether time.h and sys/time.h may both be included" >&5
    1827 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1828   echo $ac_n "(cached) $ac_c" 1>&6
    1829 else
    1830   cat > conftest.$ac_ext <<EOF
    1831 #line 1832 "configure"
    1832 #include "confdefs.h"
    1833 #include <sys/types.h>
    1834 #include <sys/time.h>
    1835 #include <time.h>
    1836 int main() {
    1837 struct tm *tp;
    1838 ; return 0; }
    1839 EOF
    1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1841   rm -rf conftest*
    1842   ac_cv_header_time=yes
    1843 else
    1844   echo "configure: failed program was:" >&5
    1845   cat conftest.$ac_ext >&5
    1846   rm -rf conftest*
    1847   ac_cv_header_time=no
    1848 fi
    1849 rm -f conftest*
    1850 fi
    1851 
    1852 echo "$ac_t""$ac_cv_header_time" 1>&6
    1853 if test $ac_cv_header_time = yes; then
    1854   cat >> confdefs.h <<\EOF
    1855 #define TIME_WITH_SYS_TIME 1
    1856 EOF
    1857 
    1858 fi
    1859 
    1860 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1861 echo "configure:1862: checking whether struct tm is in sys/time.h or time.h" >&5
    1862 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1863   echo $ac_n "(cached) $ac_c" 1>&6
    1864 else
    1865   cat > conftest.$ac_ext <<EOF
    1866 #line 1867 "configure"
    1867 #include "confdefs.h"
    1868 #include <sys/types.h>
    1869 #include <time.h>
    1870 int main() {
    1871 struct tm *tp; tp->tm_sec;
    1872 ; return 0; }
    1873 EOF
    1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1875   rm -rf conftest*
    1876   ac_cv_struct_tm=time.h
    1877 else
    1878   echo "configure: failed program was:" >&5
    1879   cat conftest.$ac_ext >&5
    1880   rm -rf conftest*
    1881   ac_cv_struct_tm=sys/time.h
    1882 fi
    1883 rm -f conftest*
    1884 fi
    1885 
    1886 echo "$ac_t""$ac_cv_struct_tm" 1>&6
    1887 if test $ac_cv_struct_tm = sys/time.h; then
    1888   cat >> confdefs.h <<\EOF
    1889 #define TM_IN_SYS_TIME 1
    1890 EOF
    1891 
    1892 fi
    1893 
    1894 
    1895 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1896 cat > conftest.$ac_ext <<EOF
    1897 #line 1898 "configure"
    1898 #include "confdefs.h"
    1899 #include <stdio.h>
    1900 
    1901 int main() {
    1902  FILE *rubbish = popen("yes", "r");
    1903 ; return 0; }
    1904 EOF
    1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1906   :
    1907 else
    1908   echo "configure: failed program was:" >&5
    1909   cat conftest.$ac_ext >&5
    1910   rm -rf conftest*
    1911   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1912 fi
    1913 rm -f conftest*
    1914 fi
    1915 
    1916 
    1917 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1918 echo "configure:1919: checking for main in -lg" >&5
    1919 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    1920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1921   echo $ac_n "(cached) $ac_c" 1>&6
    1922 else
    1923   ac_save_LIBS="$LIBS"
    1924 LIBS="-lg  $LIBS"
    1925 cat > conftest.$ac_ext <<EOF
    1926 #line 1927 "configure"
    1927 #include "confdefs.h"
    1928 
    1929 int main() {
    1930 main()
    1931 ; return 0; }
    1932 EOF
    1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1934   rm -rf conftest*
    1935   eval "ac_cv_lib_$ac_lib_var=yes"
    1936 else
    1937   echo "configure: failed program was:" >&5
    1938   cat conftest.$ac_ext >&5
    1939   rm -rf conftest*
    1940   eval "ac_cv_lib_$ac_lib_var=no"
    1941 fi
    1942 rm -f conftest*
    1943 LIBS="$ac_save_LIBS"
    1944 
    1945 fi
    1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1947   echo "$ac_t""yes" 1>&6
    1948     ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1949     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1950   cat >> confdefs.h <<EOF
    1951 #define $ac_tr_lib 1
    1952 EOF
    1953 
    1954   LIBS="-lg $LIBS"
    1955 
    1956 else
    1957   echo "$ac_t""no" 1>&6
    1958 fi
    1959 
    1960 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
    1961 echo "configure:1962: checking for main in -lgdbm" >&5
    1962 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
    1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1964   echo $ac_n "(cached) $ac_c" 1>&6
    1965 else
    1966   ac_save_LIBS="$LIBS"
    1967 LIBS="-lgdbm  $LIBS"
    1968 cat > conftest.$ac_ext <<EOF
    1969 #line 1970 "configure"
    1970 #include "confdefs.h"
    1971 
    1972 int main() {
    1973 main()
    1974 ; return 0; }
    1975 EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1977   rm -rf conftest*
    1978   eval "ac_cv_lib_$ac_lib_var=yes"
    1979 else
    1980   echo "configure: failed program was:" >&5
    1981   cat conftest.$ac_ext >&5
    1982   rm -rf conftest*
    1983   eval "ac_cv_lib_$ac_lib_var=no"
    1984 fi
    1985 rm -f conftest*
    1986 LIBS="$ac_save_LIBS"
    1987 
    1988 fi
    1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1990   echo "$ac_t""yes" 1>&6
    1991     ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1992     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1993   cat >> confdefs.h <<EOF
    1994 #define $ac_tr_lib 1
    1995 EOF
    1996 
    1997   LIBS="-lgdbm $LIBS"
    1998 
    1999 else
    2000   echo "$ac_t""no" 1>&6
    2001 fi
    2002 
    2003 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for main in -lm" >&5
    2005 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2007   echo $ac_n "(cached) $ac_c" 1>&6
    2008 else
    2009   ac_save_LIBS="$LIBS"
    2010 LIBS="-lm  $LIBS"
    2011 cat > conftest.$ac_ext <<EOF
    2012 #line 2013 "configure"
    2013 #include "confdefs.h"
    2014 
    2015 int main() {
    2016 main()
    2017 ; return 0; }
    2018 EOF
    2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2020   rm -rf conftest*
    2021   eval "ac_cv_lib_$ac_lib_var=yes"
    2022 else
    2023   echo "configure: failed program was:" >&5
    2024   cat conftest.$ac_ext >&5
    2025   rm -rf conftest*
    2026   eval "ac_cv_lib_$ac_lib_var=no"
    2027 fi
    2028 rm -f conftest*
    2029 LIBS="$ac_save_LIBS"
    2030 
    2031 fi
    2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2033   echo "$ac_t""yes" 1>&6
    2034     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2035     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2036   cat >> confdefs.h <<EOF
    2037 #define $ac_tr_lib 1
    2038 EOF
    2039 
    2040   LIBS="-lm $LIBS"
    2041 
    2042 else
    2043   echo "$ac_t""no" 1>&6
    2044 fi
    2045 
    2046 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    2047 echo "configure:2048: checking for main in -lstdc++" >&5
    2048 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    2049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2050   echo $ac_n "(cached) $ac_c" 1>&6
    2051 else
    2052   ac_save_LIBS="$LIBS"
    2053 LIBS="-lstdc++  $LIBS"
    2054 cat > conftest.$ac_ext <<EOF
    2055 #line 2056 "configure"
    2056 #include "confdefs.h"
    2057 
    2058 int main() {
    2059 main()
    2060 ; return 0; }
    2061 EOF
    2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2063   rm -rf conftest*
    2064   eval "ac_cv_lib_$ac_lib_var=yes"
    2065 else
    2066   echo "configure: failed program was:" >&5
    2067   cat conftest.$ac_ext >&5
    2068   rm -rf conftest*
    2069   eval "ac_cv_lib_$ac_lib_var=no"
    2070 fi
    2071 rm -f conftest*
    2072 LIBS="$ac_save_LIBS"
    2073 
    2074 fi
    2075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2076   echo "$ac_t""yes" 1>&6
    2077     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2078     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2079   cat >> confdefs.h <<EOF
    2080 #define $ac_tr_lib 1
    2081 EOF
    2082 
    2083   LIBS="-lstdc++ $LIBS"
    2084 
    2085 else
    2086   echo "$ac_t""no" 1>&6
    2087 fi
    2088 
    2089 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    2090 echo "configure:2091: checking for main in -lcrypt" >&5
    2091 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    2092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2093   echo $ac_n "(cached) $ac_c" 1>&6
    2094 else
    2095   ac_save_LIBS="$LIBS"
    2096 LIBS="-lcrypt  $LIBS"
    2097 cat > conftest.$ac_ext <<EOF
    2098 #line 2099 "configure"
    2099 #include "confdefs.h"
    2100 
    2101 int main() {
    2102 main()
    2103 ; return 0; }
    2104 EOF
    2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2106   rm -rf conftest*
    2107   eval "ac_cv_lib_$ac_lib_var=yes"
    2108 else
    2109   echo "configure: failed program was:" >&5
    2110   cat conftest.$ac_ext >&5
    2111   rm -rf conftest*
    2112   eval "ac_cv_lib_$ac_lib_var=no"
    2113 fi
    2114 rm -f conftest*
    2115 LIBS="$ac_save_LIBS"
    2116 
    2117 fi
    2118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2119   echo "$ac_t""yes" 1>&6
    2120     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    2121     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    2122   cat >> confdefs.h <<EOF
    2123 #define $ac_tr_lib 1
    2124 EOF
    2125 
    2126   LIBS="-lcrypt $LIBS"
    2127 
    2128 else
    2129   echo "$ac_t""no" 1>&6
    2130 fi
    2131 
    2132 
    2133 
    2134 ac_header_dirent=no
    2135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    2136 do
    2137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2138 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    2139 echo "configure:2140: checking for $ac_hdr that defines DIR" >&5
    2140 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    2141   echo $ac_n "(cached) $ac_c" 1>&6
    2142 else
    2143   cat > conftest.$ac_ext <<EOF
    2144 #line 2145 "configure"
    2145 #include "confdefs.h"
    2146 #include <sys/types.h>
    2147 #include <$ac_hdr>
    2148 int main() {
    2149 DIR *dirp = 0;
    2150 ; return 0; }
    2151 EOF
    2152 if { (eval echo configure:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2153   rm -rf conftest*
    2154   eval "ac_cv_header_dirent_$ac_safe=yes"
    2155 else
    2156   echo "configure: failed program was:" >&5
    2157   cat conftest.$ac_ext >&5
    2158   rm -rf conftest*
    2159   eval "ac_cv_header_dirent_$ac_safe=no"
    2160 fi
    2161 rm -f conftest*
    2162 fi
    2163 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    2164   echo "$ac_t""yes" 1>&6
    2165     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2166   cat >> confdefs.h <<EOF
    2167 #define $ac_tr_hdr 1
    2168 EOF
    2169  ac_header_dirent=$ac_hdr; break
    2170 else
    2171   echo "$ac_t""no" 1>&6
    2172 fi
    2173 done
    2174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    2175 if test $ac_header_dirent = dirent.h; then
    2176 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    2177 echo "configure:2178: checking for opendir in -ldir" >&5
    2178 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    2179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2180   echo $ac_n "(cached) $ac_c" 1>&6
    2181 else
    2182   ac_save_LIBS="$LIBS"
    2183 LIBS="-ldir  $LIBS"
    2184 cat > conftest.$ac_ext <<EOF
    2185 #line 2186 "configure"
    2186 #include "confdefs.h"
    2187 /* Override any gcc2 internal prototype to avoid an error.  */
    2188 /* We use char because int might match the return type of a gcc2
    2189     builtin and then its argument prototype would still apply.  */
    2190 char opendir();
    2191 
    2192 int main() {
    2193 opendir()
    2194 ; return 0; }
    2195 EOF
    2196 if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2197   rm -rf conftest*
    2198   eval "ac_cv_lib_$ac_lib_var=yes"
    2199 else
    2200   echo "configure: failed program was:" >&5
    2201   cat conftest.$ac_ext >&5
    2202   rm -rf conftest*
    2203   eval "ac_cv_lib_$ac_lib_var=no"
    2204 fi
    2205 rm -f conftest*
    2206 LIBS="$ac_save_LIBS"
    2207 
    2208 fi
    2209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2210   echo "$ac_t""yes" 1>&6
    2211   LIBS="$LIBS -ldir"
    2212 else
    2213   echo "$ac_t""no" 1>&6
    2214 fi
    2215 
    2216 else
    2217 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    2218 echo "configure:2219: checking for opendir in -lx" >&5
    2219 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    2220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    2221   echo $ac_n "(cached) $ac_c" 1>&6
    2222 else
    2223   ac_save_LIBS="$LIBS"
    2224 LIBS="-lx  $LIBS"
    2225 cat > conftest.$ac_ext <<EOF
    2226 #line 2227 "configure"
    2227 #include "confdefs.h"
    2228 /* Override any gcc2 internal prototype to avoid an error.  */
    2229 /* We use char because int might match the return type of a gcc2
    2230     builtin and then its argument prototype would still apply.  */
    2231 char opendir();
    2232 
    2233 int main() {
    2234 opendir()
    2235 ; return 0; }
    2236 EOF
    2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2238   rm -rf conftest*
    2239   eval "ac_cv_lib_$ac_lib_var=yes"
    2240 else
    2241   echo "configure: failed program was:" >&5
    2242   cat conftest.$ac_ext >&5
    2243   rm -rf conftest*
    2244   eval "ac_cv_lib_$ac_lib_var=no"
    2245 fi
    2246 rm -f conftest*
    2247 LIBS="$ac_save_LIBS"
    2248 
    2249 fi
    2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    2251   echo "$ac_t""yes" 1>&6
    2252   LIBS="$LIBS -lx"
    2253 else
    2254   echo "$ac_t""no" 1>&6
    2255 fi
    2256 
    2257 fi
    2258 
    2259 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2260 echo "configure:2261: checking for ANSI C header files" >&5
    2261 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    2262   echo $ac_n "(cached) $ac_c" 1>&6
    2263 else
    2264   cat > conftest.$ac_ext <<EOF
    2265 #line 2266 "configure"
    2266 #include "confdefs.h"
    2267 #include <stdlib.h>
    2268 #include <stdarg.h>
    2269 #include <string.h>
    2270 #include <float.h>
    2271 EOF
    2272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2275 if test -z "$ac_err"; then
    2276   rm -rf conftest*
    2277   ac_cv_header_stdc=yes
    2278 else
    2279   echo "$ac_err" >&5
    2280   echo "configure: failed program was:" >&5
    2281   cat conftest.$ac_ext >&5
    2282   rm -rf conftest*
    2283   ac_cv_header_stdc=no
    2284 fi
    2285 rm -f conftest*
    2286 
    2287 if test $ac_cv_header_stdc = yes; then
    2288   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2289 cat > conftest.$ac_ext <<EOF
    2290 #line 2291 "configure"
    2291 #include "confdefs.h"
    2292 #include <string.h>
    2293 EOF
     5327cat >conftest.$ac_ext <<_ACEOF
     5328/* confdefs.h.  */
     5329_ACEOF
     5330cat confdefs.h >>conftest.$ac_ext
     5331cat >>conftest.$ac_ext <<_ACEOF
     5332/* end confdefs.h.  */
     5333#include <sys/procfs.h>
     5334
     5335_ACEOF
    22945336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2295   egrep "memchr" >/dev/null 2>&1; then
    2296   :
    2297 else
    2298   rm -rf conftest*
    2299   ac_cv_header_stdc=no
    2300 fi
    2301 rm -f conftest*
    2302 
    2303 fi
    2304 
    2305 if test $ac_cv_header_stdc = yes; then
    2306   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2307 cat > conftest.$ac_ext <<EOF
    2308 #line 2309 "configure"
    2309 #include "confdefs.h"
    2310 #include <stdlib.h>
    2311 EOF
    2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2313   egrep "free" >/dev/null 2>&1; then
    2314   :
    2315 else
    2316   rm -rf conftest*
    2317   ac_cv_header_stdc=no
    2318 fi
    2319 rm -f conftest*
    2320 
    2321 fi
    2322 
    2323 if test $ac_cv_header_stdc = yes; then
    2324   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2325 if test "$cross_compiling" = yes; then
    2326   :
    2327 else
    2328   cat > conftest.$ac_ext <<EOF
    2329 #line 2330 "configure"
    2330 #include "confdefs.h"
    2331 #include <ctype.h>
    2332 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2333 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2335 int main () { int i; for (i = 0; i < 256; i++)
    2336 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    2337 exit (0); }
    2338 
    2339 EOF
    2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2341 then
    2342   :
    2343 else
    2344   echo "configure: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   rm -fr conftest*
    2347   ac_cv_header_stdc=no
    2348 fi
    2349 rm -fr conftest*
    2350 fi
    2351 
    2352 fi
    2353 fi
    2354 
    2355 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    2356 if test $ac_cv_header_stdc = yes; then
    2357   cat >> confdefs.h <<\EOF
    2358 #define STDC_HEADERS 1
    2359 EOF
    2360 
    2361 fi
    2362 
    2363 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    2364 do
    2365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    2366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2367 echo "configure:2368: checking for $ac_hdr" >&5
    2368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2369   echo $ac_n "(cached) $ac_c" 1>&6
    2370 else
    2371   cat > conftest.$ac_ext <<EOF
    2372 #line 2373 "configure"
    2373 #include "confdefs.h"
    2374 #include <$ac_hdr>
    2375 EOF
    2376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2377 { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    2378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    2379 if test -z "$ac_err"; then
    2380   rm -rf conftest*
    2381   eval "ac_cv_header_$ac_safe=yes"
    2382 else
    2383   echo "$ac_err" >&5
    2384   echo "configure: failed program was:" >&5
    2385   cat conftest.$ac_ext >&5
    2386   rm -rf conftest*
    2387   eval "ac_cv_header_$ac_safe=no"
    2388 fi
    2389 rm -f conftest*
    2390 fi
    2391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    2392   echo "$ac_t""yes" 1>&6
    2393     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    2394   cat >> confdefs.h <<EOF
    2395 #define $ac_tr_hdr 1
    2396 EOF
    2397  
    2398 else
    2399   echo "$ac_t""no" 1>&6
    2400 fi
    2401 done
    2402 
    2403 cat > conftest.$ac_ext <<EOF
    2404 #line 2405 "configure"
    2405 #include "confdefs.h"
    2406 #include <stdio.h>
    2407 EOF
    2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2409   egrep "fread" >/dev/null 2>&1; then
    2410   rm -rf conftest*
    2411   cat >> confdefs.h <<\EOF
    2412 #define HAVE_FREAD_DECL 1
    2413 EOF
    2414 
    2415 fi
    2416 rm -f conftest*
    2417 
    2418 cat > conftest.$ac_ext <<EOF
    2419 #line 2420 "configure"
    2420 #include "confdefs.h"
    2421 #include <stdio.h>
    2422 EOF
    2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2424   egrep "fgetc" >/dev/null 2>&1; then
    2425   rm -rf conftest*
    2426   cat >> confdefs.h <<\EOF
    2427 #define HAVE_FGETC_DECL 1
    2428 EOF
    2429 
    2430 fi
    2431 rm -f conftest*
    2432 
    2433 cat > conftest.$ac_ext <<EOF
    2434 #line 2435 "configure"
    2435 #include "confdefs.h"
    2436 #include <sys/procfs.h>
    2437 EOF
    2438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2439   egrep "pr_brksize" >/dev/null 2>&1; then
    2440   rm -rf conftest*
    2441   cat >> confdefs.h <<\EOF
     5337  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5338  cat >>confdefs.h <<\_ACEOF
    24425339#define HAVE_PR_BRKSIZE 1
    2443 EOF
     5340_ACEOF
    24445341
    24455342fi
     
    24495346# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    24505347# for constant arguments.  Useless!
    2451 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2452 echo "configure:2453: checking for working alloca.h" >&5
    2453 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2454   echo $ac_n "(cached) $ac_c" 1>&6
    2455 else
    2456   cat > conftest.$ac_ext <<EOF
    2457 #line 2458 "configure"
    2458 #include "confdefs.h"
     5348echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5349echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5350if test "${ac_cv_working_alloca_h+set}" = set; then
     5351  echo $ECHO_N "(cached) $ECHO_C" >&6
     5352else
     5353  cat >conftest.$ac_ext <<_ACEOF
     5354/* confdefs.h.  */
     5355_ACEOF
     5356cat confdefs.h >>conftest.$ac_ext
     5357cat >>conftest.$ac_ext <<_ACEOF
     5358/* end confdefs.h.  */
    24595359#include <alloca.h>
    2460 int main() {
    2461 char *p = alloca(2 * sizeof(int));
    2462 ; return 0; }
    2463 EOF
    2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2465   rm -rf conftest*
    2466   ac_cv_header_alloca_h=yes
    2467 else
    2468   echo "configure: failed program was:" >&5
    2469   cat conftest.$ac_ext >&5
    2470   rm -rf conftest*
    2471   ac_cv_header_alloca_h=no
    2472 fi
    2473 rm -f conftest*
    2474 fi
    2475 
    2476 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2477 if test $ac_cv_header_alloca_h = yes; then
    2478   cat >> confdefs.h <<\EOF
     5360int
     5361main ()
     5362{
     5363char *p = (char *) alloca (2 * sizeof (int));
     5364  ;
     5365  return 0;
     5366}
     5367_ACEOF
     5368rm -f conftest.$ac_objext conftest$ac_exeext
     5369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5370  (eval $ac_link) 2>conftest.er1
     5371  ac_status=$?
     5372  grep -v '^ *+' conftest.er1 >conftest.err
     5373  rm -f conftest.er1
     5374  cat conftest.err >&5
     5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5376  (exit $ac_status); } &&
     5377     { ac_try='test -z "$ac_c_werror_flag"
     5378             || test ! -s conftest.err'
     5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5380  (eval $ac_try) 2>&5
     5381  ac_status=$?
     5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5383  (exit $ac_status); }; } &&
     5384     { ac_try='test -s conftest$ac_exeext'
     5385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5386  (eval $ac_try) 2>&5
     5387  ac_status=$?
     5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5389  (exit $ac_status); }; }; then
     5390  ac_cv_working_alloca_h=yes
     5391else
     5392  echo "$as_me: failed program was:" >&5
     5393sed 's/^/| /' conftest.$ac_ext >&5
     5394
     5395ac_cv_working_alloca_h=no
     5396fi
     5397rm -f conftest.err conftest.$ac_objext \
     5398      conftest$ac_exeext conftest.$ac_ext
     5399fi
     5400echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     5401echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5402if test $ac_cv_working_alloca_h = yes; then
     5403
     5404cat >>confdefs.h <<\_ACEOF
    24795405#define HAVE_ALLOCA_H 1
    2480 EOF
    2481 
    2482 fi
    2483 
    2484 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2485 echo "configure:2486: checking for alloca" >&5
    2486 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2487   echo $ac_n "(cached) $ac_c" 1>&6
    2488 else
    2489   cat > conftest.$ac_ext <<EOF
    2490 #line 2491 "configure"
    2491 #include "confdefs.h"
    2492 
     5406_ACEOF
     5407
     5408fi
     5409
     5410echo "$as_me:$LINENO: checking for alloca" >&5
     5411echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     5412if test "${ac_cv_func_alloca_works+set}" = set; then
     5413  echo $ECHO_N "(cached) $ECHO_C" >&6
     5414else
     5415  cat >conftest.$ac_ext <<_ACEOF
     5416/* confdefs.h.  */
     5417_ACEOF
     5418cat confdefs.h >>conftest.$ac_ext
     5419cat >>conftest.$ac_ext <<_ACEOF
     5420/* end confdefs.h.  */
    24935421#ifdef __GNUC__
    24945422# define alloca __builtin_alloca
     
    25125440#endif
    25135441
    2514 int main() {
    2515 char *p = (char *) alloca(1);
    2516 ; return 0; }
    2517 EOF
    2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    2519   rm -rf conftest*
     5442int
     5443main ()
     5444{
     5445char *p = (char *) alloca (1);
     5446  ;
     5447  return 0;
     5448}
     5449_ACEOF
     5450rm -f conftest.$ac_objext conftest$ac_exeext
     5451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5452  (eval $ac_link) 2>conftest.er1
     5453  ac_status=$?
     5454  grep -v '^ *+' conftest.er1 >conftest.err
     5455  rm -f conftest.er1
     5456  cat conftest.err >&5
     5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5458  (exit $ac_status); } &&
     5459     { ac_try='test -z "$ac_c_werror_flag"
     5460             || test ! -s conftest.err'
     5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5462  (eval $ac_try) 2>&5
     5463  ac_status=$?
     5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5465  (exit $ac_status); }; } &&
     5466     { ac_try='test -s conftest$ac_exeext'
     5467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5468  (eval $ac_try) 2>&5
     5469  ac_status=$?
     5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5471  (exit $ac_status); }; }; then
    25205472  ac_cv_func_alloca_works=yes
    25215473else
    2522   echo "configure: failed program was:" >&5
    2523   cat conftest.$ac_ext >&5
    2524   rm -rf conftest*
    2525   ac_cv_func_alloca_works=no
    2526 fi
    2527 rm -f conftest*
    2528 fi
    2529 
    2530 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     5474  echo "$as_me: failed program was:" >&5
     5475sed 's/^/| /' conftest.$ac_ext >&5
     5476
     5477ac_cv_func_alloca_works=no
     5478fi
     5479rm -f conftest.err conftest.$ac_objext \
     5480      conftest$ac_exeext conftest.$ac_ext
     5481fi
     5482echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     5483echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5484
    25315485if test $ac_cv_func_alloca_works = yes; then
    2532   cat >> confdefs.h <<\EOF
     5486
     5487cat >>confdefs.h <<\_ACEOF
    25335488#define HAVE_ALLOCA 1
    2534 EOF
    2535 
    2536 fi
    2537 
    2538 if test $ac_cv_func_alloca_works = no; then
     5489_ACEOF
     5490
     5491else
    25395492  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2540   # that cause trouble.  Some versions do not even contain alloca or
    2541   # contain a buggy version.  If you still want to use their alloca,
    2542   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2543   ALLOCA=alloca.${ac_objext}
    2544   cat >> confdefs.h <<\EOF
     5493# that cause trouble.  Some versions do not even contain alloca or
     5494# contain a buggy version.  If you still want to use their alloca,
     5495# use ar to extract alloca.o from them instead of compiling alloca.c.
     5496
     5497ALLOCA=alloca.$ac_objext
     5498
     5499cat >>confdefs.h <<\_ACEOF
    25455500#define C_ALLOCA 1
    2546 EOF
    2547 
    2548 
    2549 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2550 echo "configure:2551: checking whether alloca needs Cray hooks" >&5
    2551 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2552   echo $ac_n "(cached) $ac_c" 1>&6
    2553 else
    2554   cat > conftest.$ac_ext <<EOF
    2555 #line 2556 "configure"
    2556 #include "confdefs.h"
     5501_ACEOF
     5502
     5503
     5504echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     5505echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     5506if test "${ac_cv_os_cray+set}" = set; then
     5507  echo $ECHO_N "(cached) $ECHO_C" >&6
     5508else
     5509  cat >conftest.$ac_ext <<_ACEOF
     5510/* confdefs.h.  */
     5511_ACEOF
     5512cat confdefs.h >>conftest.$ac_ext
     5513cat >>conftest.$ac_ext <<_ACEOF
     5514/* end confdefs.h.  */
    25575515#if defined(CRAY) && ! defined(CRAY2)
    25585516webecray
     
    25615519#endif
    25625520
    2563 EOF
     5521_ACEOF
    25645522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2565   egrep "webecray" >/dev/null 2>&1; then
    2566   rm -rf conftest*
     5523  $EGREP "webecray" >/dev/null 2>&1; then
    25675524  ac_cv_os_cray=yes
    25685525else
    2569   rm -rf conftest*
    25705526  ac_cv_os_cray=no
    25715527fi
     
    25735529
    25745530fi
    2575 
    2576 echo "$ac_t""$ac_cv_os_cray" 1>&6
     5531echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     5532echo "${ECHO_T}$ac_cv_os_cray" >&6
    25775533if test $ac_cv_os_cray = yes; then
    2578 for ac_func in _getb67 GETB67 getb67; do
    2579   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2580 echo "configure:2581: checking for $ac_func" >&5
    2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2582   echo $ac_n "(cached) $ac_c" 1>&6
    2583 else
    2584   cat > conftest.$ac_ext <<EOF
    2585 #line 2586 "configure"
    2586 #include "confdefs.h"
     5534  for ac_func in _getb67 GETB67 getb67; do
     5535    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5536echo "$as_me:$LINENO: checking for $ac_func" >&5
     5537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5538if eval "test \"\${$as_ac_var+set}\" = set"; then
     5539  echo $ECHO_N "(cached) $ECHO_C" >&6
     5540else
     5541  cat >conftest.$ac_ext <<_ACEOF
     5542/* confdefs.h.  */
     5543_ACEOF
     5544cat confdefs.h >>conftest.$ac_ext
     5545cat >>conftest.$ac_ext <<_ACEOF
     5546/* end confdefs.h.  */
     5547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5548   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5549#define $ac_func innocuous_$ac_func
     5550
    25875551/* System header to define __stub macros and hopefully few prototypes,
    2588     which can conflict with char $ac_func(); below.  */
    2589 #include <assert.h>
     5552    which can conflict with char $ac_func (); below.
     5553    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5554    <limits.h> exists even on freestanding compilers.  */
     5555
     5556#ifdef __STDC__
     5557# include <limits.h>
     5558#else
     5559# include <assert.h>
     5560#endif
     5561
     5562#undef $ac_func
     5563
    25905564/* Override any gcc2 internal prototype to avoid an error.  */
     5565#ifdef __cplusplus
     5566extern "C"
     5567{
     5568#endif
    25915569/* We use char because int might match the return type of a gcc2
    2592     builtin and then its argument prototype would still apply.  */
    2593 char $ac_func();