Changeset 10852


Ignore:
Timestamp:
2005-11-07T13:30:40+13:00 (18 years ago)
Author:
kjdon
Message:

changed LIBOBJS= to AC_LIBOBJ(), added in check for endianness

Location:
trunk/gsdl/packages/mg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/mg/aclocal.m4

    r439 r10852  
    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/packages/mg/config.h.in

    r439 r10852  
    170170/* Define if you have the m library (-lm).  */
    171171#undef HAVE_LIBM
     172
     173/* define if big endian */
     174#undef WORDS_BIGENDIAN
  • trunk/gsdl/packages/mg/configure

    r3762 r10852  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
    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   --with-dmalloc          use dmalloc, as in
    16                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
    17 ac_help="$ac_help
    18   --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="src/text/mgquery.c"
     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_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS LTLIBOBJS'
     313ac_subst_files=''
    19314
    20315# Initialize some variables set by options.
     316ac_init_help=
     317ac_init_version=false
    21318# The variables have the same names as the options, with
    22319# dashes changed to underlines.
    23 build=NONE
    24 cache_file=./config.cache
     320cache_file=/dev/null
    25321exec_prefix=NONE
    26 host=NONE
    27322no_create=
    28 nonopt=NONE
    29323no_recursion=
    30324prefix=NONE
     
    35329site=
    36330srcdir=
    37 target=NONE
    38331verbose=
    39332x_includes=NONE
    40333x_libraries=NONE
     334
     335# Installation directory options.
     336# These are left unexpanded so users can "make install exec_prefix=/foo"
     337# and all the variables that are supposed to be based on exec_prefix
     338# by default will actually change.
     339# Use braces instead of parens because sh, perl, etc. also accept them.
    41340bindir='${exec_prefix}/bin'
    42341sbindir='${exec_prefix}/sbin'
     
    52351mandir='${prefix}/man'
    53352
    54 # Initialize some other variables.
    55 subdirs=
    56 MFLAGS= MAKEFLAGS=
    57 # Maximum number of lines to put in a shell here document.
    58 ac_max_here_lines=12
    59 
    60353ac_prev=
    61354for ac_option
    62355do
    63 
    64356  # If the previous option needs an argument, assign it.
    65357  if test -n "$ac_prev"; then
     
    69361  fi
    70362
    71   case "$ac_option" in
    72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    73   *) ac_optarg= ;;
    74   esac
     363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    75364
    76365  # Accept the important Cygnus configure options, so we can diagnose typos.
    77366
    78   case "$ac_option" in
     367  case $ac_option in
    79368
    80369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    81370    ac_prev=bindir ;;
    82371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    83     bindir="$ac_optarg" ;;
     372    bindir=$ac_optarg ;;
    84373
    85374  -build | --build | --buil | --bui | --bu)
    86     ac_prev=build ;;
     375    ac_prev=build_alias ;;
    87376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    88     build="$ac_optarg" ;;
     377    build_alias=$ac_optarg ;;
    89378
    90379  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    93382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    94383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    95     cache_file="$ac_optarg" ;;
     384    cache_file=$ac_optarg ;;
     385
     386  --config-cache | -C)
     387    cache_file=config.cache ;;
    96388
    97389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    99391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    100392  | --da=*)
    101     datadir="$ac_optarg" ;;
     393    datadir=$ac_optarg ;;
    102394
    103395  -disable-* | --disable-*)
    104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    105397    # Reject names that are not valid shell variable names.
    106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    108     fi
    109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    110     eval "enable_${ac_feature}=no" ;;
     398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     400   { (exit 1); exit 1; }; }
     401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     402    eval "enable_$ac_feature=no" ;;
    111403
    112404  -enable-* | --enable-*)
    113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    114406    # 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     case "$ac_option" in
    120       *=*) ;;
     407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     409   { (exit 1); exit 1; }; }
     410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     411    case $ac_option in
     412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    121413      *) ac_optarg=yes ;;
    122414    esac
    123     eval "enable_${ac_feature}='$ac_optarg'" ;;
     415    eval "enable_$ac_feature='$ac_optarg'" ;;
    124416
    125417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    130422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    131423  | --exec=* | --exe=* | --ex=*)
    132     exec_prefix="$ac_optarg" ;;
     424    exec_prefix=$ac_optarg ;;
    133425
    134426  -gas | --gas | --ga | --g)
     
    136428    with_gas=yes ;;
    137429
    138   -help | --help | --hel | --he)
    139     # Omit some internal or obsolete options to make the list less imposing.
    140     # This message is too long to be a string in the A/UX 3.1 sh.
    141     cat << EOF
    142 Usage: configure [options] [host]
    143 Options: [defaults in brackets after descriptions]
    144 Configuration:
    145   --cache-file=FILE       cache test results in FILE
    146   --help                  print this message
    147   --no-create             do not create output files
    148   --quiet, --silent       do not print \`checking...' messages
    149   --version               print the version of autoconf that created configure
    150 Directory and file names:
    151   --prefix=PREFIX         install architecture-independent files in PREFIX
    152                           [$ac_default_prefix]
    153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    154                           [same as prefix]
    155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    158   --datadir=DIR           read-only architecture-independent data in DIR
    159                           [PREFIX/share]
    160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    162                           [PREFIX/com]
    163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    165   --includedir=DIR        C header files in DIR [PREFIX/include]
    166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    167   --infodir=DIR           info documentation in DIR [PREFIX/info]
    168   --mandir=DIR            man documentation in DIR [PREFIX/man]
    169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    170   --program-prefix=PREFIX prepend PREFIX to installed program names
    171   --program-suffix=SUFFIX append SUFFIX to installed program names
    172   --program-transform-name=PROGRAM
    173                           run sed PROGRAM on installed program names
    174 EOF
    175     cat << EOF
    176 Host type:
    177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    178   --host=HOST             configure for HOST [guessed]
    179   --target=TARGET         configure for TARGET [TARGET=HOST]
    180 Features and packages:
    181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    185   --x-includes=DIR        X include files are in DIR
    186   --x-libraries=DIR       X library files are in DIR
    187 EOF
    188     if test -n "$ac_help"; then
    189       echo "--enable and --with options recognized:$ac_help"
    190     fi
    191     exit 0 ;;
     430  -help | --help | --hel | --he | -h)
     431    ac_init_help=long ;;
     432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     433    ac_init_help=recursive ;;
     434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     435    ac_init_help=short ;;
    192436
    193437  -host | --host | --hos | --ho)
    194     ac_prev=host ;;
     438    ac_prev=host_alias ;;
    195439  -host=* | --host=* | --hos=* | --ho=*)
    196     host="$ac_optarg" ;;
     440    host_alias=$ac_optarg ;;
    197441
    198442  -includedir | --includedir | --includedi | --included | --include \
     
    201445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    202446  | --includ=* | --inclu=* | --incl=* | --inc=*)
    203     includedir="$ac_optarg" ;;
     447    includedir=$ac_optarg ;;
    204448
    205449  -infodir | --infodir | --infodi | --infod | --info | --inf)
    206450    ac_prev=infodir ;;
    207451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    208     infodir="$ac_optarg" ;;
     452    infodir=$ac_optarg ;;
    209453
    210454  -libdir | --libdir | --libdi | --libd)
    211455    ac_prev=libdir ;;
    212456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    213     libdir="$ac_optarg" ;;
     457    libdir=$ac_optarg ;;
    214458
    215459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    218462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    219463  | --libexe=* | --libex=* | --libe=*)
    220     libexecdir="$ac_optarg" ;;
     464    libexecdir=$ac_optarg ;;
    221465
    222466  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    227471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    228472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    229     localstatedir="$ac_optarg" ;;
     473    localstatedir=$ac_optarg ;;
    230474
    231475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    232476    ac_prev=mandir ;;
    233477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    234     mandir="$ac_optarg" ;;
     478    mandir=$ac_optarg ;;
    235479
    236480  -nfp | --nfp | --nf)
     
    239483
    240484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    241   | --no-cr | --no-c)
     485  | --no-cr | --no-c | -n)
    242486    no_create=yes ;;
    243487
     
    253497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    254498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    255     oldincludedir="$ac_optarg" ;;
     499    oldincludedir=$ac_optarg ;;
    256500
    257501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    258502    ac_prev=prefix ;;
    259503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    260     prefix="$ac_optarg" ;;
     504    prefix=$ac_optarg ;;
    261505
    262506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    265509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    266510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    267     program_prefix="$ac_optarg" ;;
     511    program_prefix=$ac_optarg ;;
    268512
    269513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    272516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    273517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    274     program_suffix="$ac_optarg" ;;
     518    program_suffix=$ac_optarg ;;
    275519
    276520  -program-transform-name | --program-transform-name \
     
    289533  | --program-trans=* | --program-tran=* \
    290534  | --progr-tra=* | --program-tr=* | --program-t=*)
    291     program_transform_name="$ac_optarg" ;;
     535    program_transform_name=$ac_optarg ;;
    292536
    293537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    299543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    300544  | --sbi=* | --sb=*)
    301     sbindir="$ac_optarg" ;;
     545    sbindir=$ac_optarg ;;
    302546
    303547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    310554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    311555  | --sha=* | --sh=*)
    312     sharedstatedir="$ac_optarg" ;;
     556    sharedstatedir=$ac_optarg ;;
    313557
    314558  -site | --site | --sit)
    315559    ac_prev=site ;;
    316560  -site=* | --site=* | --sit=*)
    317     site="$ac_optarg" ;;
     561    site=$ac_optarg ;;
    318562
    319563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    320564    ac_prev=srcdir ;;
    321565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    322     srcdir="$ac_optarg" ;;
     566    srcdir=$ac_optarg ;;
    323567
    324568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    327571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    328572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    329     sysconfdir="$ac_optarg" ;;
     573    sysconfdir=$ac_optarg ;;
    330574
    331575  -target | --target | --targe | --targ | --tar | --ta | --t)
    332     ac_prev=target ;;
     576    ac_prev=target_alias ;;
    333577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    334     target="$ac_optarg" ;;
     578    target_alias=$ac_optarg ;;
    335579
    336580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    337581    verbose=yes ;;
    338582
    339   -version | --version | --versio | --versi | --vers)
    340     echo "configure generated by autoconf version 2.12"
    341     exit 0 ;;
     583  -version | --version | --versio | --versi | --vers | -V)
     584    ac_init_version=: ;;
    342585
    343586  -with-* | --with-*)
    344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    345588    # Reject names that are not valid shell variable names.
    346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    348     fi
     589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     590      { echo "$as_me: error: invalid package name: $ac_package" >&2
     591   { (exit 1); exit 1; }; }
    349592    ac_package=`echo $ac_package| sed 's/-/_/g'`
    350     case "$ac_option" in
    351       *=*) ;;
     593    case $ac_option in
     594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    352595      *) ac_optarg=yes ;;
    353596    esac
    354     eval "with_${ac_package}='$ac_optarg'" ;;
     597    eval "with_$ac_package='$ac_optarg'" ;;
    355598
    356599  -without-* | --without-*)
    357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    358601    # Reject names that are not valid shell variable names.
    359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    361     fi
    362     ac_package=`echo $ac_package| sed 's/-/_/g'`
    363     eval "with_${ac_package}=no" ;;
     602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     603      { echo "$as_me: error: invalid package name: $ac_package" >&2
     604   { (exit 1); exit 1; }; }
     605    ac_package=`echo $ac_package | sed 's/-/_/g'`
     606    eval "with_$ac_package=no" ;;
    364607
    365608  --x)
     
    372615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    373616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    374     x_includes="$ac_optarg" ;;
     617    x_includes=$ac_optarg ;;
    375618
    376619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    379622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    380623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    381     x_libraries="$ac_optarg" ;;
    382 
    383   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     624    x_libraries=$ac_optarg ;;
     625
     626  -*) { echo "$as_me: error: unrecognized option: $ac_option
     627Try \`$0 --help' for more information." >&2
     628   { (exit 1); exit 1; }; }
    384629    ;;
    385630
     631  *=*)
     632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     633    # Reject names that are not valid shell variable names.
     634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     636   { (exit 1); exit 1; }; }
     637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     638    eval "$ac_envvar='$ac_optarg'"
     639    export $ac_envvar ;;
     640
    386641  *)
    387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    388       echo "configure: warning: $ac_option: invalid host type" 1>&2
    389     fi
    390     if test "x$nonopt" != xNONE; then
    391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    392     fi
    393     nonopt="$ac_option"
     642    # FIXME: should be removed in autoconf 3.0.
     643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    394647    ;;
    395648
     
    398651
    399652if test -n "$ac_prev"; then
    400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    401 fi
    402 
    403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    404 
    405 # File descriptor usage:
    406 # 0 standard input
    407 # 1 file creation
    408 # 2 errors and warnings
    409 # 3 some systems may open it to /dev/tty
    410 # 4 used on the Kubota Titan
    411 # 6 checking for... messages and results
    412 # 5 compiler messages saved in config.log
    413 if test "$silent" = yes; then
    414   exec 6>/dev/null
    415 else
    416   exec 6>&1
    417 fi
    418 exec 5>./config.log
    419 
    420 echo "\
    421 This file contains any messages produced by compilers while
    422 running configure, to aid debugging if configure makes a mistake.
    423 " 1>&5
    424 
    425 # Strip out --no-create and --no-recursion so they do not pile up.
    426 # Also quote any args containing shell metacharacters.
    427 ac_configure_args=
    428 for ac_arg
     653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     654  { echo "$as_me: error: missing argument to $ac_option" >&2
     655   { (exit 1); exit 1; }; }
     656fi
     657
     658# Be sure to have absolute paths.
     659for ac_var in exec_prefix prefix
    429660do
    430   case "$ac_arg" in
    431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    432   | --no-cr | --no-c) ;;
    433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    435   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    437   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     661  eval ac_val=$`echo $ac_var`
     662  case $ac_val in
     663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     665   { (exit 1); exit 1; }; };;
    438666  esac
    439667done
    440668
    441 # NLS nuisances.
    442 # Only set these to C if already set.  These must not be set unconditionally
    443 # because not all systems understand e.g. LANG=C (notably SCO).
    444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    445 # Non-C LC_CTYPE values break the ctype check.
    446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    450 
    451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    452 rm -rf conftest* confdefs.h
    453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    454 echo > confdefs.h
    455 
    456 # A filename unique to this package, relative to the directory that
    457 # configure is in, which we can look for to find out if srcdir is correct.
    458 ac_unique_file=src/text/mgquery.c
     669# Be sure to have absolute paths.
     670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     671          localstatedir libdir includedir oldincludedir infodir mandir
     672do
     673  eval ac_val=$`echo $ac_var`
     674  case $ac_val in
     675    [\\/$]* | ?:[\\/]* ) ;;
     676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     677   { (exit 1); exit 1; }; };;
     678  esac
     679done
     680
     681# There might be people who depend on the old broken behavior: `$host'
     682# used to hold the argument of --host etc.
     683# FIXME: To remove some day.
     684build=$build_alias
     685host=$host_alias
     686target=$target_alias
     687
     688# FIXME: To remove some day.
     689if test "x$host_alias" != x; then
     690  if test "x$build_alias" = x; then
     691    cross_compiling=maybe
     692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     693    If a cross compiler is detected then cross compile mode will be used." >&2
     694  elif test "x$build_alias" != "x$host_alias"; then
     695    cross_compiling=yes
     696  fi
     697fi
     698
     699ac_tool_prefix=
     700test -n "$host_alias" && ac_tool_prefix=$host_alias-
     701
     702test "$silent" = yes && exec 6>/dev/null
     703
    459704
    460705# Find the source files, if location was not specified.
     
    462707  ac_srcdir_defaulted=yes
    463708  # Try the directory containing this script, then its parent.
    464   ac_prog=$0
    465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    466   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     709  ac_confdir=`(dirname "$0") 2>/dev/null ||
     710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     711     X"$0" : 'X\(//\)[^/]' \| \
     712     X"$0" : 'X\(//\)$' \| \
     713     X"$0" : 'X\(/\)' \| \
     714     .     : '\(.\)' 2>/dev/null ||
     715echo X"$0" |
     716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     717      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     718      /^X\(\/\/\)$/{ s//\1/; q; }
     719      /^X\(\/\).*/{ s//\1/; q; }
     720      s/.*/./; q'`
    467721  srcdir=$ac_confdir
    468722  if test ! -r $srcdir/$ac_unique_file; then
     
    474728if test ! -r $srcdir/$ac_unique_file; then
    475729  if test "$ac_srcdir_defaulted" = yes; then
    476     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     731   { (exit 1); exit 1; }; }
    477732  else
    478     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     734   { (exit 1); exit 1; }; }
    479735  fi
    480736fi
    481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    482 
     737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     739   { (exit 1); exit 1; }; }
     740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     741ac_env_build_alias_set=${build_alias+set}
     742ac_env_build_alias_value=$build_alias
     743ac_cv_env_build_alias_set=${build_alias+set}
     744ac_cv_env_build_alias_value=$build_alias
     745ac_env_host_alias_set=${host_alias+set}
     746ac_env_host_alias_value=$host_alias
     747ac_cv_env_host_alias_set=${host_alias+set}
     748ac_cv_env_host_alias_value=$host_alias
     749ac_env_target_alias_set=${target_alias+set}
     750ac_env_target_alias_value=$target_alias
     751ac_cv_env_target_alias_set=${target_alias+set}
     752ac_cv_env_target_alias_value=$target_alias
     753ac_env_CXX_set=${CXX+set}
     754ac_env_CXX_value=$CXX
     755ac_cv_env_CXX_set=${CXX+set}
     756ac_cv_env_CXX_value=$CXX
     757ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     758ac_env_CXXFLAGS_value=$CXXFLAGS
     759ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     760ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     761ac_env_LDFLAGS_set=${LDFLAGS+set}
     762ac_env_LDFLAGS_value=$LDFLAGS
     763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     764ac_cv_env_LDFLAGS_value=$LDFLAGS
     765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     766ac_env_CPPFLAGS_value=$CPPFLAGS
     767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     769ac_env_CC_set=${CC+set}
     770ac_env_CC_value=$CC
     771ac_cv_env_CC_set=${CC+set}
     772ac_cv_env_CC_value=$CC
     773ac_env_CFLAGS_set=${CFLAGS+set}
     774ac_env_CFLAGS_value=$CFLAGS
     775ac_cv_env_CFLAGS_set=${CFLAGS+set}
     776ac_cv_env_CFLAGS_value=$CFLAGS
     777ac_env_CPP_set=${CPP+set}
     778ac_env_CPP_value=$CPP
     779ac_cv_env_CPP_set=${CPP+set}
     780ac_cv_env_CPP_value=$CPP
     781
     782#
     783# Report the --help message.
     784#
     785if test "$ac_init_help" = "long"; then
     786  # Omit some internal or obsolete options to make the list less imposing.
     787  # This message is too long to be a string in the A/UX 3.1 sh.
     788  cat <<_ACEOF
     789\`configure' configures this package to adapt to many kinds of systems.
     790
     791Usage: $0 [OPTION]... [VAR=VALUE]...
     792
     793To assign environment variables (e.g., CC, CFLAGS...), specify them as
     794VAR=VALUE.  See below for descriptions of some of the useful variables.
     795
     796Defaults for the options are specified in brackets.
     797
     798Configuration:
     799  -h, --help              display this help and exit
     800      --help=short        display options specific to this package
     801      --help=recursive    display the short help of all the included packages
     802  -V, --version           display version information and exit
     803  -q, --quiet, --silent   do not print \`checking...' messages
     804      --cache-file=FILE   cache test results in FILE [disabled]
     805  -C, --config-cache      alias for \`--cache-file=config.cache'
     806  -n, --no-create         do not create output files
     807      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     808
     809_ACEOF
     810
     811  cat <<_ACEOF
     812Installation directories:
     813  --prefix=PREFIX         install architecture-independent files in PREFIX
     814              [$ac_default_prefix]
     815  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     816              [PREFIX]
     817
     818By default, \`make install' will install all the files in
     819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     821for instance \`--prefix=\$HOME'.
     822
     823For better control, use the options below.
     824
     825Fine tuning of the installation directories:
     826  --bindir=DIR           user executables [EPREFIX/bin]
     827  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     828  --libexecdir=DIR       program executables [EPREFIX/libexec]
     829  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     830  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     831  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     832  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     833  --libdir=DIR           object code libraries [EPREFIX/lib]
     834  --includedir=DIR       C header files [PREFIX/include]
     835  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     836  --infodir=DIR          info documentation [PREFIX/info]
     837  --mandir=DIR           man documentation [PREFIX/man]
     838_ACEOF
     839
     840  cat <<\_ACEOF
     841
     842Program names:
     843  --program-prefix=PREFIX            prepend PREFIX to installed program names
     844  --program-suffix=SUFFIX            append SUFFIX to installed program names
     845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     846_ACEOF
     847fi
     848
     849if test -n "$ac_init_help"; then
     850
     851  cat <<\_ACEOF
     852
     853Optional Packages:
     854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     856  --with-dmalloc          use dmalloc, as in
     857                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
     858  --with-regex            use older regex in lieu of GNU rx for matching
     859
     860Some influential environment variables:
     861  CXX         C++ compiler command
     862  CXXFLAGS    C++ compiler flags
     863  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     864              nonstandard directory <lib dir>
     865  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     866              headers in a nonstandard directory <include dir>
     867  CC          C compiler command
     868  CFLAGS      C compiler flags
     869  CPP         C preprocessor
     870
     871Use these variables to override the choices made by `configure' or to help
     872it to find libraries and programs with nonstandard names/locations.
     873
     874_ACEOF
     875fi
     876
     877if test "$ac_init_help" = "recursive"; then
     878  # If there are subdirs, report their specific --help.
     879  ac_popdir=`pwd`
     880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     881    test -d $ac_dir || continue
     882    ac_builddir=.
     883
     884if test "$ac_dir" != .; then
     885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     886  # A "../" for each directory in $ac_dir_suffix.
     887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     888else
     889  ac_dir_suffix= ac_top_builddir=
     890fi
     891
     892case $srcdir in
     893  .)  # No --srcdir option.  We are building in place.
     894    ac_srcdir=.
     895    if test -z "$ac_top_builddir"; then
     896       ac_top_srcdir=.
     897    else
     898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     899    fi ;;
     900  [\\/]* | ?:[\\/]* )  # Absolute path.
     901    ac_srcdir=$srcdir$ac_dir_suffix;
     902    ac_top_srcdir=$srcdir ;;
     903  *) # Relative path.
     904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     906esac
     907
     908# Do not use `cd foo && pwd` to compute absolute paths, because
     909# the directories may not exist.
     910case `pwd` in
     911.) ac_abs_builddir="$ac_dir";;
     912*)
     913  case "$ac_dir" in
     914  .) ac_abs_builddir=`pwd`;;
     915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     917  esac;;
     918esac
     919case $ac_abs_builddir in
     920.) ac_abs_top_builddir=${ac_top_builddir}.;;
     921*)
     922  case ${ac_top_builddir}. in
     923  .) ac_abs_top_builddir=$ac_abs_builddir;;
     924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     926  esac;;
     927esac
     928case $ac_abs_builddir in
     929.) ac_abs_srcdir=$ac_srcdir;;
     930*)
     931  case $ac_srcdir in
     932  .) ac_abs_srcdir=$ac_abs_builddir;;
     933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     935  esac;;
     936esac
     937case $ac_abs_builddir in
     938.) ac_abs_top_srcdir=$ac_top_srcdir;;
     939*)
     940  case $ac_top_srcdir in
     941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     944  esac;;
     945esac
     946
     947    cd $ac_dir
     948    # Check for guested configure; otherwise get Cygnus style configure.
     949    if test -f $ac_srcdir/configure.gnu; then
     950      echo
     951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     952    elif test -f $ac_srcdir/configure; then
     953      echo
     954      $SHELL $ac_srcdir/configure  --help=recursive
     955    elif test -f $ac_srcdir/configure.ac ||
     956       test -f $ac_srcdir/configure.in; then
     957      echo
     958      $ac_configure --help
     959    else
     960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     961    fi
     962    cd $ac_popdir
     963  done
     964fi
     965
     966test -n "$ac_init_help" && exit 0
     967if $ac_init_version; then
     968  cat <<\_ACEOF
     969
     970Copyright (C) 2003 Free Software Foundation, Inc.
     971This configure script is free software; the Free Software Foundation
     972gives unlimited permission to copy, distribute and modify it.
     973_ACEOF
     974  exit 0
     975fi
     976exec 5>config.log
     977cat >&5 <<_ACEOF
     978This file contains any messages produced by compilers while
     979running configure, to aid debugging if configure makes a mistake.
     980
     981It was created by $as_me, which was
     982generated by GNU Autoconf 2.59.  Invocation command line was
     983
     984  $ $0 $@
     985
     986_ACEOF
     987{
     988cat <<_ASUNAME
     989## --------- ##
     990## Platform. ##
     991## --------- ##
     992
     993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     994uname -m = `(uname -m) 2>/dev/null || echo unknown`
     995uname -r = `(uname -r) 2>/dev/null || echo unknown`
     996uname -s = `(uname -s) 2>/dev/null || echo unknown`
     997uname -v = `(uname -v) 2>/dev/null || echo unknown`
     998
     999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1001
     1002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1005hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1009
     1010_ASUNAME
     1011
     1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1013for as_dir in $PATH
     1014do
     1015  IFS=$as_save_IFS
     1016  test -z "$as_dir" && as_dir=.
     1017  echo "PATH: $as_dir"
     1018done
     1019
     1020} >&5
     1021
     1022cat >&5 <<_ACEOF
     1023
     1024
     1025## ----------- ##
     1026## Core tests. ##
     1027## ----------- ##
     1028
     1029_ACEOF
     1030
     1031
     1032# Keep a trace of the command line.
     1033# Strip out --no-create and --no-recursion so they do not pile up.
     1034# Strip out --silent because we don't want to record it for future runs.
     1035# Also quote any args containing shell meta-characters.
     1036# Make two passes to allow for proper duplicate-argument suppression.
     1037ac_configure_args=
     1038ac_configure_args0=
     1039ac_configure_args1=
     1040ac_sep=
     1041ac_must_keep_next=false
     1042for ac_pass in 1 2
     1043do
     1044  for ac_arg
     1045  do
     1046    case $ac_arg in
     1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1049    | -silent | --silent | --silen | --sile | --sil)
     1050      continue ;;
     1051    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1053    esac
     1054    case $ac_pass in
     1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1056    2)
     1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1058      if test $ac_must_keep_next = true; then
     1059    ac_must_keep_next=false # Got value, back to normal.
     1060      else
     1061    case $ac_arg in
     1062      *=* | --config-cache | -C | -disable-* | --disable-* \
     1063      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1064      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1065      | -with-* | --with-* | -without-* | --without-* | --x)
     1066        case "$ac_configure_args0 " in
     1067          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1068        esac
     1069        ;;
     1070      -* ) ac_must_keep_next=true ;;
     1071    esac
     1072      fi
     1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1074      # Get rid of the leading space.
     1075      ac_sep=" "
     1076      ;;
     1077    esac
     1078  done
     1079done
     1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1082
     1083# When interrupted or exit'd, cleanup temporary files, and complete
     1084# config.log.  We remove comments because anyway the quotes in there
     1085# would cause problems or look ugly.
     1086# WARNING: Be sure not to use single quotes in there, as some shells,
     1087# such as our DU 5.0 friend, will then `close' the trap.
     1088trap 'exit_status=$?
     1089  # Save into config.log some information that might help in debugging.
     1090  {
     1091    echo
     1092
     1093    cat <<\_ASBOX
     1094## ---------------- ##
     1095## Cache variables. ##
     1096## ---------------- ##
     1097_ASBOX
     1098    echo
     1099    # The following way of writing the cache mishandles newlines in values,
     1100{
     1101  (set) 2>&1 |
     1102    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1103    *ac_space=\ *)
     1104      sed -n \
     1105    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1106      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1107      ;;
     1108    *)
     1109      sed -n \
     1110    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1111      ;;
     1112    esac;
     1113}
     1114    echo
     1115
     1116    cat <<\_ASBOX
     1117## ----------------- ##
     1118## Output variables. ##
     1119## ----------------- ##
     1120_ASBOX
     1121    echo
     1122    for ac_var in $ac_subst_vars
     1123    do
     1124      eval ac_val=$`echo $ac_var`
     1125      echo "$ac_var='"'"'$ac_val'"'"'"
     1126    done | sort
     1127    echo
     1128
     1129    if test -n "$ac_subst_files"; then
     1130      cat <<\_ASBOX
     1131## ------------- ##
     1132## Output files. ##
     1133## ------------- ##
     1134_ASBOX
     1135      echo
     1136      for ac_var in $ac_subst_files
     1137      do
     1138    eval ac_val=$`echo $ac_var`
     1139    echo "$ac_var='"'"'$ac_val'"'"'"
     1140      done | sort
     1141      echo
     1142    fi
     1143
     1144    if test -s confdefs.h; then
     1145      cat <<\_ASBOX
     1146## ----------- ##
     1147## confdefs.h. ##
     1148## ----------- ##
     1149_ASBOX
     1150      echo
     1151      sed "/^$/d" confdefs.h | sort
     1152      echo
     1153    fi
     1154    test "$ac_signal" != 0 &&
     1155      echo "$as_me: caught signal $ac_signal"
     1156    echo "$as_me: exit $exit_status"
     1157  } >&5
     1158  rm -f core *.core &&
     1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1160    exit $exit_status
     1161     ' 0
     1162for ac_signal in 1 2 13 15; do
     1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1164done
     1165ac_signal=0
     1166
     1167# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1168rm -rf conftest* confdefs.h
     1169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1170echo >confdefs.h
     1171
     1172# Predefined preprocessor variables.
     1173
     1174cat >>confdefs.h <<_ACEOF
     1175#define PACKAGE_NAME "$PACKAGE_NAME"
     1176_ACEOF
     1177
     1178
     1179cat >>confdefs.h <<_ACEOF
     1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1181_ACEOF
     1182
     1183
     1184cat >>confdefs.h <<_ACEOF
     1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1186_ACEOF
     1187
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_STRING "$PACKAGE_STRING"
     1191_ACEOF
     1192
     1193
     1194cat >>confdefs.h <<_ACEOF
     1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1196_ACEOF
     1197
     1198
     1199# Let the site file select an alternate cache file if it wants to.
    4831200# Prefer explicitly selected file to automatically selected ones.
    4841201if test -z "$CONFIG_SITE"; then
     
    4911208for ac_site_file in $CONFIG_SITE; do
    4921209  if test -r "$ac_site_file"; then
    493     echo "loading site script $ac_site_file"
     1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1211echo "$as_me: loading site script $ac_site_file" >&6;}
     1212    sed 's/^/| /' "$ac_site_file" >&5
    4941213    . "$ac_site_file"
    4951214  fi
     
    4971216
    4981217if test -r "$cache_file"; then
    499   echo "loading cache $cache_file"
    500   . $cache_file
    501 else
    502   echo "creating cache $cache_file"
    503   > $cache_file
     1218  # Some versions of bash will fail to source /dev/null (special
     1219  # files actually), so we avoid doing that.
     1220  if test -f "$cache_file"; then
     1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1222echo "$as_me: loading cache $cache_file" >&6;}
     1223    case $cache_file in
     1224      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1225      *)                      . ./$cache_file;;
     1226    esac
     1227  fi
     1228else
     1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1230echo "$as_me: creating cache $cache_file" >&6;}
     1231  >$cache_file
     1232fi
     1233
     1234# Check that the precious variables saved in the cache have kept the same
     1235# value.
     1236ac_cache_corrupted=false
     1237for ac_var in `(set) 2>&1 |
     1238           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1240  eval ac_new_set=\$ac_env_${ac_var}_set
     1241  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1242  eval ac_new_val="\$ac_env_${ac_var}_value"
     1243  case $ac_old_set,$ac_new_set in
     1244    set,)
     1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1247      ac_cache_corrupted=: ;;
     1248    ,set)
     1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1251      ac_cache_corrupted=: ;;
     1252    ,);;
     1253    *)
     1254      if test "x$ac_old_val" != "x$ac_new_val"; then
     1255    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1257    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1258echo "$as_me:   former value:  $ac_old_val" >&2;}
     1259    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1260echo "$as_me:   current value: $ac_new_val" >&2;}
     1261    ac_cache_corrupted=:
     1262      fi;;
     1263  esac
     1264  # Pass precious variables to config.status.
     1265  if test "$ac_new_set" = set; then
     1266    case $ac_new_val in
     1267    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1268      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1269    *) ac_arg=$ac_var=$ac_new_val ;;
     1270    esac
     1271    case " $ac_configure_args " in
     1272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1273      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1274    esac
     1275  fi
     1276done
     1277if $ac_cache_corrupted; then
     1278  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1279echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1280  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1282   { (exit 1); exit 1; }; }
    5041283fi
    5051284
    5061285ac_ext=c
    507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    5081286ac_cpp='$CPP $CPPFLAGS'
    509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    511 cross_compiling=$ac_cv_prog_cc_cross
    512 
    513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    514   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    516     ac_n= ac_c='
    517 ' ac_t='    '
    518   else
    519     ac_n=-n ac_c= ac_t=
    520   fi
    521 else
    522   ac_n= ac_c='\c' ac_t=
    523 fi
    524 
    525 
    526 
    527 if test "$program_transform_name" = s,x,x,; then
    528   program_transform_name=
    529 else
    530   # Double any \ or $.  echo might interpret backslashes.
    531   cat <<\EOF_SED > conftestsed
    532 s,\\,\\\\,g; s,\$,$$,g
    533 EOF_SED
    534   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    535   rm -f conftestsed
    536 fi
     1287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1289ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1290
     1291
     1292
     1293
     1294
     1295
     1296
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309          ac_config_headers="$ac_config_headers config.h"
     1310
    5371311test "$program_prefix" != NONE &&
    538   program_transform_name="s,^,${program_prefix},; $program_transform_name"
     1312  program_transform_name="s,^,$program_prefix,;$program_transform_name"
    5391313# Use a double $ so make ignores it.
    5401314test "$program_suffix" != NONE &&
    541   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
    542 
    543 # sed with no file args requires a program.
    544 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     1315  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1316# Double any \ or $.  echo might interpret backslashes.
     1317# By default was `s,x,x', remove it if useless.
     1318cat <<\_ACEOF >conftest.sed
     1319s/[\\$]/&&/g;s/;s,x,x,$//
     1320_ACEOF
     1321program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1322rm conftest.sed
    5451323
    5461324
    5471325PACKAGE=mg
    548 VERSION=1.3e
    549 
    550 cat >> confdefs.h <<EOF
     1326VERSION=1.2
     1327
     1328cat >>confdefs.h <<_ACEOF
    5511329#define PACKAGE "$PACKAGE"
    552 EOF
    553 
    554 cat >> confdefs.h <<EOF
     1330_ACEOF
     1331
     1332cat >>confdefs.h <<_ACEOF
    5551333#define VERSION "$VERSION"
    556 EOF
    557 
    558 
    559 
    560 
    561 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
    562 do
    563 # Extract the first word of "$ac_prog", so it can be a program name with args.
    564 set dummy $ac_prog; ac_word=$2
    565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    566 echo "configure:567: checking for $ac_word" >&5
    567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    568   echo $ac_n "(cached) $ac_c" 1>&6
     1334_ACEOF
     1335
     1336
     1337
     1338
     1339ac_ext=cc
     1340ac_cpp='$CXXCPP $CPPFLAGS'
     1341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1344if test -n "$ac_tool_prefix"; then
     1345  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1346  do
     1347    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1348set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1349echo "$as_me:$LINENO: checking for $ac_word" >&5
     1350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1351if test "${ac_cv_prog_CXX+set}" = set; then
     1352  echo $ECHO_N "(cached) $ECHO_C" >&6
    5691353else
    5701354  if test -n "$CXX"; then
    5711355  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    5721356else
    573   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    574   for ac_dir in $PATH; do
    575     test -z "$ac_dir" && ac_dir=.
    576     if test -f $ac_dir/$ac_word; then
    577       ac_cv_prog_CXX="$ac_prog"
    578       break
     1357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1358for as_dir in $PATH
     1359do
     1360  IFS=$as_save_IFS
     1361  test -z "$as_dir" && as_dir=.
     1362  for ac_exec_ext in '' $ac_executable_extensions; do
     1363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1364    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1366    break 2
     1367  fi
     1368done
     1369done
     1370
     1371fi
     1372fi
     1373CXX=$ac_cv_prog_CXX
     1374if test -n "$CXX"; then
     1375  echo "$as_me:$LINENO: result: $CXX" >&5
     1376echo "${ECHO_T}$CXX" >&6
     1377else
     1378  echo "$as_me:$LINENO: result: no" >&5
     1379echo "${ECHO_T}no" >&6
     1380fi
     1381
     1382    test -n "$CXX" && break
     1383  done
     1384fi
     1385if test -z "$CXX"; then
     1386  ac_ct_CXX=$CXX
     1387  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1388do
     1389  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1390set dummy $ac_prog; ac_word=$2
     1391echo "$as_me:$LINENO: checking for $ac_word" >&5
     1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1393if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1394  echo $ECHO_N "(cached) $ECHO_C" >&6
     1395else
     1396  if test -n "$ac_ct_CXX"; then
     1397  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1398else
     1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1400for as_dir in $PATH
     1401do
     1402  IFS=$as_save_IFS
     1403  test -z "$as_dir" && as_dir=.
     1404  for ac_exec_ext in '' $ac_executable_extensions; do
     1405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1406    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1408    break 2
     1409  fi
     1410done
     1411done
     1412
     1413fi
     1414fi
     1415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1416if test -n "$ac_ct_CXX"; then
     1417  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     1418echo "${ECHO_T}$ac_ct_CXX" >&6
     1419else
     1420  echo "$as_me:$LINENO: result: no" >&5
     1421echo "${ECHO_T}no" >&6
     1422fi
     1423
     1424  test -n "$ac_ct_CXX" && break
     1425done
     1426test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1427
     1428  CXX=$ac_ct_CXX
     1429fi
     1430
     1431
     1432# Provide some information about the compiler.
     1433echo "$as_me:$LINENO:" \
     1434     "checking for C++ compiler version" >&5
     1435ac_compiler=`set X $ac_compile; echo $2`
     1436{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1437  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1438  ac_status=$?
     1439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1440  (exit $ac_status); }
     1441{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1442  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1443  ac_status=$?
     1444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1445  (exit $ac_status); }
     1446{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1447  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1448  ac_status=$?
     1449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1450  (exit $ac_status); }
     1451
     1452cat >conftest.$ac_ext <<_ACEOF
     1453/* confdefs.h.  */
     1454_ACEOF
     1455cat confdefs.h >>conftest.$ac_ext
     1456cat >>conftest.$ac_ext <<_ACEOF
     1457/* end confdefs.h.  */
     1458
     1459int
     1460main ()
     1461{
     1462
     1463  ;
     1464  return 0;
     1465}
     1466_ACEOF
     1467ac_clean_files_save=$ac_clean_files
     1468ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1469# Try to create an executable without -o first, disregard a.out.
     1470# It will help us diagnose broken compilers, and finding out an intuition
     1471# of exeext.
     1472echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1473echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
     1474ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1475if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1476  (eval $ac_link_default) 2>&5
     1477  ac_status=$?
     1478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1479  (exit $ac_status); }; then
     1480  # Find the output, starting from the most likely.  This scheme is
     1481# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1482# resort.
     1483
     1484# Be careful to initialize this variable, since it used to be cached.
     1485# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1486ac_cv_exeext=
     1487# b.out is created by i960 compilers.
     1488for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1489do
     1490  test -f "$ac_file" || continue
     1491  case $ac_file in
     1492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1493    ;;
     1494    conftest.$ac_ext )
     1495    # This is the source file.
     1496    ;;
     1497    [ab].out )
     1498    # We found the default executable, but exeext='' is most
     1499    # certainly right.
     1500    break;;
     1501    *.* )
     1502    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1503    # FIXME: I believe we export ac_cv_exeext for Libtool,
     1504    # but it would be cool to find out if it's true.  Does anybody
     1505    # maintain Libtool? --akim.
     1506    export ac_cv_exeext
     1507    break;;
     1508    * )
     1509    break;;
     1510  esac
     1511done
     1512else
     1513  echo "$as_me: failed program was:" >&5
     1514sed 's/^/| /' conftest.$ac_ext >&5
     1515
     1516{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1517See \`config.log' for more details." >&5
     1518echo "$as_me: error: C++ compiler cannot create executables
     1519See \`config.log' for more details." >&2;}
     1520   { (exit 77); exit 77; }; }
     1521fi
     1522
     1523ac_exeext=$ac_cv_exeext
     1524echo "$as_me:$LINENO: result: $ac_file" >&5
     1525echo "${ECHO_T}$ac_file" >&6
     1526
     1527# Check the compiler produces executables we can run.  If not, either
     1528# the compiler is broken, or we cross compile.
     1529echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
     1530echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1531# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1532# If not cross compiling, check that we can run a simple program.
     1533if test "$cross_compiling" != yes; then
     1534  if { ac_try='./$ac_file'
     1535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1536  (eval $ac_try) 2>&5
     1537  ac_status=$?
     1538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1539  (exit $ac_status); }; }; then
     1540    cross_compiling=no
     1541  else
     1542    if test "$cross_compiling" = maybe; then
     1543    cross_compiling=yes
     1544    else
     1545    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1546If you meant to cross compile, use \`--host'.
     1547See \`config.log' for more details." >&5
     1548echo "$as_me: error: cannot run C++ compiled programs.
     1549If you meant to cross compile, use \`--host'.
     1550See \`config.log' for more details." >&2;}
     1551   { (exit 1); exit 1; }; }
    5791552    fi
    580   done
    581   IFS="$ac_save_ifs"
    582 fi
    583 fi
    584 CXX="$ac_cv_prog_CXX"
    585 if test -n "$CXX"; then
    586   echo "$ac_t""$CXX" 1>&6
    587 else
    588   echo "$ac_t""no" 1>&6
    589 fi
    590 
    591 test -n "$CXX" && break
     1553  fi
     1554fi
     1555echo "$as_me:$LINENO: result: yes" >&5
     1556echo "${ECHO_T}yes" >&6
     1557
     1558rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1559ac_clean_files=$ac_clean_files_save
     1560# Check the compiler produces executables we can run.  If not, either
     1561# the compiler is broken, or we cross compile.
     1562echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1563echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1564echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1565echo "${ECHO_T}$cross_compiling" >&6
     1566
     1567echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1568echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1570  (eval $ac_link) 2>&5
     1571  ac_status=$?
     1572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1573  (exit $ac_status); }; then
     1574  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1575# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1576# work properly (i.e., refer to `conftest.exe'), while it won't with
     1577# `rm'.
     1578for ac_file in conftest.exe conftest conftest.*; do
     1579  test -f "$ac_file" || continue
     1580  case $ac_file in
     1581    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1582    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1583      export ac_cv_exeext
     1584      break;;
     1585    * ) break;;
     1586  esac
    5921587done
    593 test -n "$CXX" || CXX="gcc"
    594 
    595 
    596 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    597 echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    598 
    599 ac_ext=C
    600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    601 ac_cpp='$CXXCPP $CPPFLAGS'
    602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    603 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    604 cross_compiling=$ac_cv_prog_cxx_cross
    605 
    606 cat > conftest.$ac_ext <<EOF
    607 #line 608 "configure"
    608 #include "confdefs.h"
    609 main(){return(0);}
    610 EOF
    611 if { (eval echo configure:612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    612   ac_cv_prog_cxx_works=yes
    613   # If we can't run a trivial program, we are probably using a cross compiler.
    614   if (./conftest; exit) 2>/dev/null; then
    615     ac_cv_prog_cxx_cross=no
    616   else
    617     ac_cv_prog_cxx_cross=yes
    618   fi
    619 else
    620   echo "configure: failed program was:" >&5
    621   cat conftest.$ac_ext >&5
    622   ac_cv_prog_cxx_works=no
    623 fi
    624 rm -fr conftest*
    625 ac_ext=c
    626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    627 ac_cpp='$CPP $CPPFLAGS'
    628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    629 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    630 cross_compiling=$ac_cv_prog_cc_cross
    631 
    632 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    633 if test $ac_cv_prog_cxx_works = no; then
    634   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    635 fi
    636 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    637 echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    638 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    639 cross_compiling=$ac_cv_prog_cxx_cross
    640 
    641 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    642 echo "configure:643: checking whether we are using GNU C++" >&5
    643 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    644   echo $ac_n "(cached) $ac_c" 1>&6
    645 else
    646   cat > conftest.C <<EOF
    647 #ifdef __GNUC__
    648   yes;
     1588else
     1589  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1590See \`config.log' for more details." >&5
     1591echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1592See \`config.log' for more details." >&2;}
     1593   { (exit 1); exit 1; }; }
     1594fi
     1595
     1596rm -f conftest$ac_cv_exeext
     1597echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1598echo "${ECHO_T}$ac_cv_exeext" >&6
     1599
     1600rm -f conftest.$ac_ext
     1601EXEEXT=$ac_cv_exeext
     1602ac_exeext=$EXEEXT
     1603echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1604echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1605if test "${ac_cv_objext+set}" = set; then
     1606  echo $ECHO_N "(cached) $ECHO_C" >&6
     1607else
     1608  cat >conftest.$ac_ext <<_ACEOF
     1609/* confdefs.h.  */
     1610_ACEOF
     1611cat confdefs.h >>conftest.$ac_ext
     1612cat >>conftest.$ac_ext <<_ACEOF
     1613/* end confdefs.h.  */
     1614
     1615int
     1616main ()
     1617{
     1618
     1619  ;
     1620  return 0;
     1621}
     1622_ACEOF
     1623rm -f conftest.o conftest.obj
     1624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1625  (eval $ac_compile) 2>&5
     1626  ac_status=$?
     1627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1628  (exit $ac_status); }; then
     1629  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1630  case $ac_file in
     1631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1632    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1633       break;;
     1634  esac
     1635done
     1636else
     1637  echo "$as_me: failed program was:" >&5
     1638sed 's/^/| /' conftest.$ac_ext >&5
     1639
     1640{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1641See \`config.log' for more details." >&5
     1642echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1643See \`config.log' for more details." >&2;}
     1644   { (exit 1); exit 1; }; }
     1645fi
     1646
     1647rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1648fi
     1649echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1650echo "${ECHO_T}$ac_cv_objext" >&6
     1651OBJEXT=$ac_cv_objext
     1652ac_objext=$OBJEXT
     1653echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     1654echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1655if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1656  echo $ECHO_N "(cached) $ECHO_C" >&6
     1657else
     1658  cat >conftest.$ac_ext <<_ACEOF
     1659/* confdefs.h.  */
     1660_ACEOF
     1661cat confdefs.h >>conftest.$ac_ext
     1662cat >>conftest.$ac_ext <<_ACEOF
     1663/* end confdefs.h.  */
     1664
     1665int
     1666main ()
     1667{
     1668#ifndef __GNUC__
     1669       choke me
    6491670#endif
    650 EOF
    651 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    652   ac_cv_prog_gxx=yes
    653 else
    654   ac_cv_prog_gxx=no
    655 fi
    656 fi
    657 
    658 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    659 
    660 if test $ac_cv_prog_gxx = yes; then
    661   GXX=yes
    662   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    663   ac_save_CXXFLAGS="$CXXFLAGS"
    664   CXXFLAGS=
    665   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    666 echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5
    667 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    668   echo $ac_n "(cached) $ac_c" 1>&6
    669 else
    670   echo 'void f(){}' > conftest.cc
    671 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1671
     1672  ;
     1673  return 0;
     1674}
     1675_ACEOF
     1676rm -f conftest.$ac_objext
     1677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1678  (eval $ac_compile) 2>conftest.er1
     1679  ac_status=$?
     1680  grep -v '^ *+' conftest.er1 >conftest.err
     1681  rm -f conftest.er1
     1682  cat conftest.err >&5
     1683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1684  (exit $ac_status); } &&
     1685     { ac_try='test -z "$ac_cxx_werror_flag"
     1686             || test ! -s conftest.err'
     1687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1688  (eval $ac_try) 2>&5
     1689  ac_status=$?
     1690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1691  (exit $ac_status); }; } &&
     1692     { ac_try='test -s conftest.$ac_objext'
     1693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1694  (eval $ac_try) 2>&5
     1695  ac_status=$?
     1696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1697  (exit $ac_status); }; }; then
     1698  ac_compiler_gnu=yes
     1699else
     1700  echo "$as_me: failed program was:" >&5
     1701sed 's/^/| /' conftest.$ac_ext >&5
     1702
     1703ac_compiler_gnu=no
     1704fi
     1705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1706ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1707
     1708fi
     1709echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     1710echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1711GXX=`test $ac_compiler_gnu = yes && echo yes`
     1712ac_test_CXXFLAGS=${CXXFLAGS+set}
     1713ac_save_CXXFLAGS=$CXXFLAGS
     1714CXXFLAGS="-g"
     1715echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     1716echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1717if test "${ac_cv_prog_cxx_g+set}" = set; then
     1718  echo $ECHO_N "(cached) $ECHO_C" >&6
     1719else
     1720  cat >conftest.$ac_ext <<_ACEOF
     1721/* confdefs.h.  */
     1722_ACEOF
     1723cat confdefs.h >>conftest.$ac_ext
     1724cat >>conftest.$ac_ext <<_ACEOF
     1725/* end confdefs.h.  */
     1726
     1727int
     1728main ()
     1729{
     1730
     1731  ;
     1732  return 0;
     1733}
     1734_ACEOF
     1735rm -f conftest.$ac_objext
     1736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1737  (eval $ac_compile) 2>conftest.er1
     1738  ac_status=$?
     1739  grep -v '^ *+' conftest.er1 >conftest.err
     1740  rm -f conftest.er1
     1741  cat conftest.err >&5
     1742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1743  (exit $ac_status); } &&
     1744     { ac_try='test -z "$ac_cxx_werror_flag"
     1745             || test ! -s conftest.err'
     1746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1747  (eval $ac_try) 2>&5
     1748  ac_status=$?
     1749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1750  (exit $ac_status); }; } &&
     1751     { ac_try='test -s conftest.$ac_objext'
     1752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1753  (eval $ac_try) 2>&5
     1754  ac_status=$?
     1755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1756  (exit $ac_status); }; }; then
    6721757  ac_cv_prog_cxx_g=yes
    6731758else
    674   ac_cv_prog_cxx_g=no
    675 fi
    676 rm -f conftest*
    677 
    678 fi
    679 
    680 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    681   if test "$ac_test_CXXFLAGS" = set; then
    682     CXXFLAGS="$ac_save_CXXFLAGS"
    683   elif test $ac_cv_prog_cxx_g = yes; then
     1759  echo "$as_me: failed program was:" >&5
     1760sed 's/^/| /' conftest.$ac_ext >&5
     1761
     1762ac_cv_prog_cxx_g=no
     1763fi
     1764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1765fi
     1766echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     1767echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     1768if test "$ac_test_CXXFLAGS" = set; then
     1769  CXXFLAGS=$ac_save_CXXFLAGS
     1770elif test $ac_cv_prog_cxx_g = yes; then
     1771  if test "$GXX" = yes; then
    6841772    CXXFLAGS="-g -O2"
    6851773  else
     1774    CXXFLAGS="-g"
     1775  fi
     1776else
     1777  if test "$GXX" = yes; then
    6861778    CXXFLAGS="-O2"
     1779  else
     1780    CXXFLAGS=
    6871781  fi
    688 else
    689   GXX=
    690   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    691 fi
    692 
    693 for ac_prog in mawk gawk nawk awk
     1782fi
     1783for ac_declaration in \
     1784   '' \
     1785   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1786   'extern "C" void std::exit (int); using std::exit;' \
     1787   'extern "C" void exit (int) throw ();' \
     1788   'extern "C" void exit (int);' \
     1789   'void exit (int);'
    6941790do
    695 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1791  cat >conftest.$ac_ext <<_ACEOF
     1792/* confdefs.h.  */
     1793_ACEOF
     1794cat confdefs.h >>conftest.$ac_ext
     1795cat >>conftest.$ac_ext <<_ACEOF
     1796/* end confdefs.h.  */
     1797$ac_declaration
     1798#include <stdlib.h>
     1799int
     1800main ()
     1801{
     1802exit (42);
     1803  ;
     1804  return 0;
     1805}
     1806_ACEOF
     1807rm -f conftest.$ac_objext
     1808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1809  (eval $ac_compile) 2>conftest.er1
     1810  ac_status=$?
     1811  grep -v '^ *+' conftest.er1 >conftest.err
     1812  rm -f conftest.er1
     1813  cat conftest.err >&5
     1814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1815  (exit $ac_status); } &&
     1816     { ac_try='test -z "$ac_cxx_werror_flag"
     1817             || test ! -s conftest.err'
     1818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1819  (eval $ac_try) 2>&5
     1820  ac_status=$?
     1821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1822  (exit $ac_status); }; } &&
     1823     { ac_try='test -s conftest.$ac_objext'
     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  :
     1830else
     1831  echo "$as_me: failed program was:" >&5
     1832sed 's/^/| /' conftest.$ac_ext >&5
     1833
     1834continue
     1835fi
     1836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1837  cat >conftest.$ac_ext <<_ACEOF
     1838/* confdefs.h.  */
     1839_ACEOF
     1840cat confdefs.h >>conftest.$ac_ext
     1841cat >>conftest.$ac_ext <<_ACEOF
     1842/* end confdefs.h.  */
     1843$ac_declaration
     1844int
     1845main ()
     1846{
     1847exit (42);
     1848  ;
     1849  return 0;
     1850}
     1851_ACEOF
     1852rm -f conftest.$ac_objext
     1853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1854  (eval $ac_compile) 2>conftest.er1
     1855  ac_status=$?
     1856  grep -v '^ *+' conftest.er1 >conftest.err
     1857  rm -f conftest.er1
     1858  cat conftest.err >&5
     1859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1860  (exit $ac_status); } &&
     1861     { ac_try='test -z "$ac_cxx_werror_flag"
     1862             || test ! -s conftest.err'
     1863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1864  (eval $ac_try) 2>&5
     1865  ac_status=$?
     1866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1867  (exit $ac_status); }; } &&
     1868     { ac_try='test -s conftest.$ac_objext'
     1869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1870  (eval $ac_try) 2>&5
     1871  ac_status=$?
     1872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1873  (exit $ac_status); }; }; then
     1874  break
     1875else
     1876  echo "$as_me: failed program was:" >&5
     1877sed 's/^/| /' conftest.$ac_ext >&5
     1878
     1879fi
     1880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1881done
     1882rm -f conftest*
     1883if test -n "$ac_declaration"; then
     1884  echo '#ifdef __cplusplus' >>confdefs.h
     1885  echo $ac_declaration      >>confdefs.h
     1886  echo '#endif'             >>confdefs.h
     1887fi
     1888
     1889ac_ext=c
     1890ac_cpp='$CPP $CPPFLAGS'
     1891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1893ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1894
     1895for ac_prog in gawk mawk nawk awk
     1896do
     1897  # Extract the first word of "$ac_prog", so it can be a program name with args.
    6961898set dummy $ac_prog; ac_word=$2
    697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    698 echo "configure:699: checking for $ac_word" >&5
    699 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    700   echo $ac_n "(cached) $ac_c" 1>&6
     1899echo "$as_me:$LINENO: checking for $ac_word" >&5
     1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1901if test "${ac_cv_prog_AWK+set}" = set; then
     1902  echo $ECHO_N "(cached) $ECHO_C" >&6
    7011903else
    7021904  if test -n "$AWK"; then
    7031905  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    7041906else
    705   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    706   for ac_dir in $PATH; do
    707     test -z "$ac_dir" && ac_dir=.
    708     if test -f $ac_dir/$ac_word; then
    709       ac_cv_prog_AWK="$ac_prog"
    710       break
    711     fi
    712   done
    713   IFS="$ac_save_ifs"
    714 fi
    715 fi
    716 AWK="$ac_cv_prog_AWK"
     1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1908for as_dir in $PATH
     1909do
     1910  IFS=$as_save_IFS
     1911  test -z "$as_dir" && as_dir=.
     1912  for ac_exec_ext in '' $ac_executable_extensions; do
     1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1914    ac_cv_prog_AWK="$ac_prog"
     1915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1916    break 2
     1917  fi
     1918done
     1919done
     1920
     1921fi
     1922fi
     1923AWK=$ac_cv_prog_AWK
    7171924if test -n "$AWK"; then
    718   echo "$ac_t""$AWK" 1>&6
    719 else
    720   echo "$ac_t""no" 1>&6
    721 fi
    722 
    723 test -n "$AWK" && break
     1925  echo "$as_me:$LINENO: result: $AWK" >&5
     1926echo "${ECHO_T}$AWK" >&6
     1927else
     1928  echo "$as_me:$LINENO: result: no" >&5
     1929echo "${ECHO_T}no" >&6
     1930fi
     1931
     1932  test -n "$AWK" && break
    7241933done
    7251934
    7261935for ac_prog in 'bison -y' byacc
    7271936do
    728 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1937  # Extract the first word of "$ac_prog", so it can be a program name with args.
    7291938set dummy $ac_prog; ac_word=$2
    730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    731 echo "configure:732: checking for $ac_word" >&5
    732 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    733   echo $ac_n "(cached) $ac_c" 1>&6
     1939echo "$as_me:$LINENO: checking for $ac_word" >&5
     1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1941if test "${ac_cv_prog_YACC+set}" = set; then
     1942  echo $ECHO_N "(cached) $ECHO_C" >&6
    7341943else
    7351944  if test -n "$YACC"; then
    7361945  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    7371946else
    738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    739   for ac_dir in $PATH; do
    740     test -z "$ac_dir" && ac_dir=.
    741     if test -f $ac_dir/$ac_word; then
    742       ac_cv_prog_YACC="$ac_prog"
    743       break
    744     fi
    745   done
    746   IFS="$ac_save_ifs"
    747 fi
    748 fi
    749 YACC="$ac_cv_prog_YACC"
     1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1948for as_dir in $PATH
     1949do
     1950  IFS=$as_save_IFS
     1951  test -z "$as_dir" && as_dir=.
     1952  for ac_exec_ext in '' $ac_executable_extensions; do
     1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1954    ac_cv_prog_YACC="$ac_prog"
     1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1956    break 2
     1957  fi
     1958done
     1959done
     1960
     1961fi
     1962fi
     1963YACC=$ac_cv_prog_YACC
    7501964if test -n "$YACC"; then
    751   echo "$ac_t""$YACC" 1>&6
    752 else
    753   echo "$ac_t""no" 1>&6
    754 fi
    755 
    756 test -n "$YACC" && break
     1965  echo "$as_me:$LINENO: result: $YACC" >&5
     1966echo "${ECHO_T}$YACC" >&6
     1967else
     1968  echo "$as_me:$LINENO: result: no" >&5
     1969echo "${ECHO_T}no" >&6
     1970fi
     1971
     1972  test -n "$YACC" && break
    7571973done
    7581974test -n "$YACC" || YACC="yacc"
    7591975
    760 # Extract the first word of "gcc", so it can be a program name with args.
    761 set dummy gcc; ac_word=$2
    762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    763 echo "configure:764: checking for $ac_word" >&5
    764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    765   echo $ac_n "(cached) $ac_c" 1>&6
     1976ac_ext=c
     1977ac_cpp='$CPP $CPPFLAGS'
     1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1981if test -n "$ac_tool_prefix"; then
     1982  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1983set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1984echo "$as_me:$LINENO: checking for $ac_word" >&5
     1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1986if test "${ac_cv_prog_CC+set}" = set; then
     1987  echo $ECHO_N "(cached) $ECHO_C" >&6
    7661988else
    7671989  if test -n "$CC"; then
    7681990  ac_cv_prog_CC="$CC" # Let the user override the test.
    7691991else
    770   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    771   for ac_dir in $PATH; do
    772     test -z "$ac_dir" && ac_dir=.
    773     if test -f $ac_dir/$ac_word; then
    774       ac_cv_prog_CC="gcc"
    775       break
    776     fi
    777   done
    778   IFS="$ac_save_ifs"
    779 fi
    780 fi
    781 CC="$ac_cv_prog_CC"
     1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1993for as_dir in $PATH
     1994do
     1995  IFS=$as_save_IFS
     1996  test -z "$as_dir" && as_dir=.
     1997  for ac_exec_ext in '' $ac_executable_extensions; do
     1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1999    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2001    break 2
     2002  fi
     2003done
     2004done
     2005
     2006fi
     2007fi
     2008CC=$ac_cv_prog_CC
    7822009if test -n "$CC"; then
    783   echo "$ac_t""$CC" 1>&6
    784 else
    785   echo "$ac_t""no" 1>&6
    786 fi
    787 
     2010  echo "$as_me:$LINENO: result: $CC" >&5
     2011echo "${ECHO_T}$CC" >&6
     2012else
     2013  echo "$as_me:$LINENO: result: no" >&5
     2014echo "${ECHO_T}no" >&6
     2015fi
     2016
     2017fi
     2018if test -z "$ac_cv_prog_CC"; then
     2019  ac_ct_CC=$CC
     2020  # Extract the first word of "gcc", so it can be a program name with args.
     2021set dummy gcc; ac_word=$2
     2022echo "$as_me:$LINENO: checking for $ac_word" >&5
     2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2025  echo $ECHO_N "(cached) $ECHO_C" >&6
     2026else
     2027  if test -n "$ac_ct_CC"; then
     2028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2029else
     2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2031for as_dir in $PATH
     2032do
     2033  IFS=$as_save_IFS
     2034  test -z "$as_dir" && as_dir=.
     2035  for ac_exec_ext in '' $ac_executable_extensions; do
     2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2037    ac_cv_prog_ac_ct_CC="gcc"
     2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2039    break 2
     2040  fi
     2041done
     2042done
     2043
     2044fi
     2045fi
     2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2047if test -n "$ac_ct_CC"; then
     2048  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2049echo "${ECHO_T}$ac_ct_CC" >&6
     2050else
     2051  echo "$as_me:$LINENO: result: no" >&5
     2052echo "${ECHO_T}no" >&6
     2053fi
     2054
     2055  CC=$ac_ct_CC
     2056else
     2057  CC="$ac_cv_prog_CC"
     2058fi
     2059
     2060if test -z "$CC"; then
     2061  if test -n "$ac_tool_prefix"; then
     2062  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2063set dummy ${ac_tool_prefix}cc; ac_word=$2
     2064echo "$as_me:$LINENO: checking for $ac_word" >&5
     2065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2066if test "${ac_cv_prog_CC+set}" = set; then
     2067  echo $ECHO_N "(cached) $ECHO_C" >&6
     2068else
     2069  if test -n "$CC"; then
     2070  ac_cv_prog_CC="$CC" # Let the user override the test.
     2071else
     2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2073for as_dir in $PATH
     2074do
     2075  IFS=$as_save_IFS
     2076  test -z "$as_dir" && as_dir=.
     2077  for ac_exec_ext in '' $ac_executable_extensions; do
     2078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2079    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2081    break 2
     2082  fi
     2083done
     2084done
     2085
     2086fi
     2087fi
     2088CC=$ac_cv_prog_CC
     2089if test -n "$CC"; then
     2090  echo "$as_me:$LINENO: result: $CC" >&5
     2091echo "${ECHO_T}$CC" >&6
     2092else
     2093  echo "$as_me:$LINENO: result: no" >&5
     2094echo "${ECHO_T}no" >&6
     2095fi
     2096
     2097fi
     2098if test -z "$ac_cv_prog_CC"; then
     2099  ac_ct_CC=$CC
     2100  # Extract the first word of "cc", so it can be a program name with args.
     2101set dummy cc; ac_word=$2
     2102echo "$as_me:$LINENO: checking for $ac_word" >&5
     2103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2105  echo $ECHO_N "(cached) $ECHO_C" >&6
     2106else
     2107  if test -n "$ac_ct_CC"; then
     2108  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2109else
     2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2111for as_dir in $PATH
     2112do
     2113  IFS=$as_save_IFS
     2114  test -z "$as_dir" && as_dir=.
     2115  for ac_exec_ext in '' $ac_executable_extensions; do
     2116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2117    ac_cv_prog_ac_ct_CC="cc"
     2118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2119    break 2
     2120  fi
     2121done
     2122done
     2123
     2124fi
     2125fi
     2126ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2127if test -n "$ac_ct_CC"; then
     2128  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2129echo "${ECHO_T}$ac_ct_CC" >&6
     2130else
     2131  echo "$as_me:$LINENO: result: no" >&5
     2132echo "${ECHO_T}no" >&6
     2133fi
     2134
     2135  CC=$ac_ct_CC
     2136else
     2137  CC="$ac_cv_prog_CC"
     2138fi
     2139
     2140fi
    7882141if test -z "$CC"; then
    7892142  # Extract the first word of "cc", so it can be a program name with args.
    7902143set dummy cc; ac_word=$2
    791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    792 echo "configure:793: checking for $ac_word" >&5
    793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    794   echo $ac_n "(cached) $ac_c" 1>&6
     2144echo "$as_me:$LINENO: checking for $ac_word" >&5
     2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2146if test "${ac_cv_prog_CC+set}" = set; then
     2147  echo $ECHO_N "(cached) $ECHO_C" >&6
    7952148else
    7962149  if test -n "$CC"; then
    7972150  ac_cv_prog_CC="$CC" # Let the user override the test.
    7982151else
    799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    8002152  ac_prog_rejected=no
    801   for ac_dir in $PATH; do
    802     test -z "$ac_dir" && ac_dir=.
    803     if test -f $ac_dir/$ac_word; then
    804       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    805         ac_prog_rejected=yes
    806     continue
    807       fi
    808       ac_cv_prog_CC="cc"
    809       break
    810     fi
    811   done
    812   IFS="$ac_save_ifs"
     2153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2154for as_dir in $PATH
     2155do
     2156  IFS=$as_save_IFS
     2157  test -z "$as_dir" && as_dir=.
     2158  for ac_exec_ext in '' $ac_executable_extensions; do
     2159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2160    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2161       ac_prog_rejected=yes
     2162       continue
     2163     fi
     2164    ac_cv_prog_CC="cc"
     2165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2166    break 2
     2167  fi
     2168done
     2169done
     2170
    8132171if test $ac_prog_rejected = yes; then
    8142172  # We found a bogon in the path, so make sure we never use it.
    8152173  set dummy $ac_cv_prog_CC
    8162174  shift
    817   if test $# -gt 0; then
     2175  if test $# != 0; then
    8182176    # We chose a different compiler from the bogus one.
    8192177    # However, it has the same basename, so the bogon will be chosen
    8202178    # first if we set CC to just the basename; use the full file name.
    8212179    shift
    822     set dummy "$ac_dir/$ac_word" "$@"
    823     shift
    824     ac_cv_prog_CC="$@"
     2180    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    8252181  fi
    8262182fi
    8272183fi
    8282184fi
    829 CC="$ac_cv_prog_CC"
     2185CC=$ac_cv_prog_CC
    8302186if test -n "$CC"; then
    831   echo "$ac_t""$CC" 1>&6
    832 else
    833   echo "$ac_t""no" 1>&6
    834 fi
    835 
    836   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    837 fi
    838 
    839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    841 
    842 ac_ext=c
    843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    844 ac_cpp='$CPP $CPPFLAGS'
    845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    846 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    847 cross_compiling=$ac_cv_prog_cc_cross
    848 
    849 cat > conftest.$ac_ext <<EOF
    850 #line 851 "configure"
    851 #include "confdefs.h"
    852 main(){return(0);}
    853 EOF
    854 if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    855   ac_cv_prog_cc_works=yes
    856   # If we can't run a trivial program, we are probably using a cross compiler.
    857   if (./conftest; exit) 2>/dev/null; then
    858     ac_cv_prog_cc_cross=no
    859   else
    860     ac_cv_prog_cc_cross=yes
     2187  echo "$as_me:$LINENO: result: $CC" >&5
     2188echo "${ECHO_T}$CC" >&6
     2189else
     2190  echo "$as_me:$LINENO: result: no" >&5
     2191echo "${ECHO_T}no" >&6
     2192fi
     2193
     2194fi
     2195if test -z "$CC"; then
     2196  if test -n "$ac_tool_prefix"; then
     2197  for ac_prog in cl
     2198  do
     2199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2201echo "$as_me:$LINENO: checking for $ac_word" >&5
     2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2203if test "${ac_cv_prog_CC+set}" = set; then
     2204  echo $ECHO_N "(cached) $ECHO_C" >&6
     2205else
     2206  if test -n "$CC"; then
     2207  ac_cv_prog_CC="$CC" # Let the user override the test.
     2208else
     2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2210for as_dir in $PATH
     2211do
     2212  IFS=$as_save_IFS
     2213  test -z "$as_dir" && as_dir=.
     2214  for ac_exec_ext in '' $ac_executable_extensions; do
     2215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2216    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2218    break 2
    8612219  fi
    862 else
    863   echo "configure: failed program was:" >&5
    864   cat conftest.$ac_ext >&5
    865   ac_cv_prog_cc_works=no
    866 fi
    867 rm -fr conftest*
    868 
    869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    870 if test $ac_cv_prog_cc_works = no; then
    871   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    872 fi
    873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    876 cross_compiling=$ac_cv_prog_cc_cross
    877 
    878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    879 echo "configure:880: checking whether we are using GNU C" >&5
    880 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    881   echo $ac_n "(cached) $ac_c" 1>&6
    882 else
    883   cat > conftest.c <<EOF
    884 #ifdef __GNUC__
    885   yes;
     2220done
     2221done
     2222
     2223fi
     2224fi
     2225CC=$ac_cv_prog_CC
     2226if test -n "$CC"; then
     2227  echo "$as_me:$LINENO: result: $CC" >&5
     2228echo "${ECHO_T}$CC" >&6
     2229else
     2230  echo "$as_me:$LINENO: result: no" >&5
     2231echo "${ECHO_T}no" >&6
     2232fi
     2233
     2234    test -n "$CC" && break
     2235  done
     2236fi
     2237if test -z "$CC"; then
     2238  ac_ct_CC=$CC
     2239  for ac_prog in cl
     2240do
     2241  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2242set dummy $ac_prog; ac_word=$2
     2243echo "$as_me:$LINENO: checking for $ac_word" >&5
     2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2246  echo $ECHO_N "(cached) $ECHO_C" >&6
     2247else
     2248  if test -n "$ac_ct_CC"; then
     2249  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2250else
     2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2252for as_dir in $PATH
     2253do
     2254  IFS=$as_save_IFS
     2255  test -z "$as_dir" && as_dir=.
     2256  for ac_exec_ext in '' $ac_executable_extensions; do
     2257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2258    ac_cv_prog_ac_ct_CC="$ac_prog"
     2259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2260    break 2
     2261  fi
     2262done
     2263done
     2264
     2265fi
     2266fi
     2267ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2268if test -n "$ac_ct_CC"; then
     2269  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2270echo "${ECHO_T}$ac_ct_CC" >&6
     2271else
     2272  echo "$as_me:$LINENO: result: no" >&5
     2273echo "${ECHO_T}no" >&6
     2274fi
     2275
     2276  test -n "$ac_ct_CC" && break
     2277done
     2278
     2279  CC=$ac_ct_CC
     2280fi
     2281
     2282fi
     2283
     2284
     2285test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2286See \`config.log' for more details." >&5
     2287echo "$as_me: error: no acceptable C compiler found in \$PATH
     2288See \`config.log' for more details." >&2;}
     2289   { (exit 1); exit 1; }; }
     2290
     2291# Provide some information about the compiler.
     2292echo "$as_me:$LINENO:" \
     2293     "checking for C compiler version" >&5
     2294ac_compiler=`set X $ac_compile; echo $2`
     2295{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2296  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2297  ac_status=$?
     2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2299  (exit $ac_status); }
     2300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2301  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2302  ac_status=$?
     2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2304  (exit $ac_status); }
     2305{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2306  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2307  ac_status=$?
     2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2309  (exit $ac_status); }
     2310
     2311echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2312echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2313if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2314  echo $ECHO_N "(cached) $ECHO_C" >&6
     2315else
     2316  cat >conftest.$ac_ext <<_ACEOF
     2317/* confdefs.h.  */
     2318_ACEOF
     2319cat confdefs.h >>conftest.$ac_ext
     2320cat >>conftest.$ac_ext <<_ACEOF
     2321/* end confdefs.h.  */
     2322
     2323int
     2324main ()
     2325{
     2326#ifndef __GNUC__
     2327       choke me
    8862328#endif
    887 EOF
    888 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    889   ac_cv_prog_gcc=yes
    890 else
    891   ac_cv_prog_gcc=no
    892 fi
    893 fi
    894 
    895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    896 
    897 if test $ac_cv_prog_gcc = yes; then
    898   GCC=yes
    899   ac_test_CFLAGS="${CFLAGS+set}"
    900   ac_save_CFLAGS="$CFLAGS"
    901   CFLAGS=
    902   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    903 echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
    904 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    905   echo $ac_n "(cached) $ac_c" 1>&6
    906 else
    907   echo 'void f(){}' > conftest.c
    908 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     2329
     2330  ;
     2331  return 0;
     2332}
     2333_ACEOF
     2334rm -f conftest.$ac_objext
     2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2336  (eval $ac_compile) 2>conftest.er1
     2337  ac_status=$?
     2338  grep -v '^ *+' conftest.er1 >conftest.err
     2339  rm -f conftest.er1
     2340  cat conftest.err >&5
     2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2342  (exit $ac_status); } &&
     2343     { ac_try='test -z "$ac_c_werror_flag"
     2344             || test ! -s conftest.err'
     2345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2346  (eval $ac_try) 2>&5
     2347  ac_status=$?
     2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2349  (exit $ac_status); }; } &&
     2350     { ac_try='test -s conftest.$ac_objext'
     2351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2352  (eval $ac_try) 2>&5
     2353  ac_status=$?
     2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2355  (exit $ac_status); }; }; then
     2356  ac_compiler_gnu=yes
     2357else
     2358  echo "$as_me: failed program was:" >&5
     2359sed 's/^/| /' conftest.$ac_ext >&5
     2360
     2361ac_compiler_gnu=no
     2362fi
     2363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2364ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2365
     2366fi
     2367echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2368echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2369GCC=`test $ac_compiler_gnu = yes && echo yes`
     2370ac_test_CFLAGS=${CFLAGS+set}
     2371ac_save_CFLAGS=$CFLAGS
     2372CFLAGS="-g"
     2373echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2374echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2375if test "${ac_cv_prog_cc_g+set}" = set; then
     2376  echo $ECHO_N "(cached) $ECHO_C" >&6
     2377else
     2378  cat >conftest.$ac_ext <<_ACEOF
     2379/* confdefs.h.  */
     2380_ACEOF
     2381cat confdefs.h >>conftest.$ac_ext
     2382cat >>conftest.$ac_ext <<_ACEOF
     2383/* end confdefs.h.  */
     2384
     2385int
     2386main ()
     2387{
     2388
     2389  ;
     2390  return 0;
     2391}
     2392_ACEOF
     2393rm -f conftest.$ac_objext
     2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2395  (eval $ac_compile) 2>conftest.er1
     2396  ac_status=$?
     2397  grep -v '^ *+' conftest.er1 >conftest.err
     2398  rm -f conftest.er1
     2399  cat conftest.err >&5
     2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2401  (exit $ac_status); } &&
     2402     { ac_try='test -z "$ac_c_werror_flag"
     2403             || test ! -s conftest.err'
     2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2405  (eval $ac_try) 2>&5
     2406  ac_status=$?
     2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2408  (exit $ac_status); }; } &&
     2409     { ac_try='test -s conftest.$ac_objext'
     2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2411  (eval $ac_try) 2>&5
     2412  ac_status=$?
     2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2414  (exit $ac_status); }; }; then
    9092415  ac_cv_prog_cc_g=yes
    9102416else
    911   ac_cv_prog_cc_g=no
    912 fi
    913 rm -f conftest*
    914 
    915 fi
    916 
    917 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    918   if test "$ac_test_CFLAGS" = set; then
    919     CFLAGS="$ac_save_CFLAGS"
    920   elif test $ac_cv_prog_cc_g = yes; then
     2417  echo "$as_me: failed program was:" >&5
     2418sed 's/^/| /' conftest.$ac_ext >&5
     2419
     2420ac_cv_prog_cc_g=no
     2421fi
     2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2423fi
     2424echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2425echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2426if test "$ac_test_CFLAGS" = set; then
     2427  CFLAGS=$ac_save_CFLAGS
     2428elif test $ac_cv_prog_cc_g = yes; then
     2429  if test "$GCC" = yes; then
    9212430    CFLAGS="-g -O2"
    9222431  else
     2432    CFLAGS="-g"
     2433  fi
     2434else
     2435  if test "$GCC" = yes; then
    9232436    CFLAGS="-O2"
     2437  else
     2438    CFLAGS=
    9242439  fi
    925 else
    926   GCC=
    927   test "${CFLAGS+set}" = set || CFLAGS="-g"
    928 fi
     2440fi
     2441echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2442echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2443if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2444  echo $ECHO_N "(cached) $ECHO_C" >&6
     2445else
     2446  ac_cv_prog_cc_stdc=no
     2447ac_save_CC=$CC
     2448cat >conftest.$ac_ext <<_ACEOF
     2449/* confdefs.h.  */
     2450_ACEOF
     2451cat confdefs.h >>conftest.$ac_ext
     2452cat >>conftest.$ac_ext <<_ACEOF
     2453/* end confdefs.h.  */
     2454#include <stdarg.h>
     2455#include <stdio.h>
     2456#include <sys/types.h>
     2457#include <sys/stat.h>
     2458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2459struct buf { int x; };
     2460FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2461static char *e (p, i)
     2462     char **p;
     2463     int i;
     2464{
     2465  return p[i];
     2466}
     2467static char *f (char * (*g) (char **, int), char **p, ...)
     2468{
     2469  char *s;
     2470  va_list v;
     2471  va_start (v,p);
     2472  s = g (p, va_arg (v,int));
     2473  va_end (v);
     2474  return s;
     2475}
     2476
     2477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2478   function prototypes and stuff, but not '\xHH' hex character constants.
     2479   These don't provoke an error unfortunately, instead are silently treated
     2480   as 'x'.  The following induces an error, until -std1 is added to get
     2481   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2482   array size at least.  It's necessary to write '\x00'==0 to get something
     2483   that's true only with -std1.  */
     2484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2485
     2486int test (int i, double x);
     2487struct s1 {int (*f) (int a);};
     2488struct s2 {int (*f) (double a);};
     2489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2490int argc;
     2491char **argv;
     2492int
     2493main ()
     2494{
     2495return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2496  ;
     2497  return 0;
     2498}
     2499_ACEOF
     2500# Don't try gcc -ansi; that turns off useful extensions and
     2501# breaks some systems' header files.
     2502# AIX           -qlanglvl=ansi
     2503# Ultrix and OSF/1  -std1
     2504# HP-UX 10.20 and later -Ae
     2505# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2506# SVR4          -Xc -D__EXTENSIONS__
     2507for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2508do
     2509  CC="$ac_save_CC $ac_arg"
     2510  rm -f conftest.$ac_objext
     2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2512  (eval $ac_compile) 2>conftest.er1
     2513  ac_status=$?
     2514  grep -v '^ *+' conftest.er1 >conftest.err
     2515  rm -f conftest.er1
     2516  cat conftest.err >&5
     2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2518  (exit $ac_status); } &&
     2519     { ac_try='test -z "$ac_c_werror_flag"
     2520             || test ! -s conftest.err'
     2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2522  (eval $ac_try) 2>&5
     2523  ac_status=$?
     2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2525  (exit $ac_status); }; } &&
     2526     { ac_try='test -s conftest.$ac_objext'
     2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2528  (eval $ac_try) 2>&5
     2529  ac_status=$?
     2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2531  (exit $ac_status); }; }; then
     2532  ac_cv_prog_cc_stdc=$ac_arg
     2533break
     2534else
     2535  echo "$as_me: failed program was:" >&5
     2536sed 's/^/| /' conftest.$ac_ext >&5
     2537
     2538fi
     2539rm -f conftest.err conftest.$ac_objext
     2540done
     2541rm -f conftest.$ac_ext conftest.$ac_objext
     2542CC=$ac_save_CC
     2543
     2544fi
     2545
     2546case "x$ac_cv_prog_cc_stdc" in
     2547  x|xno)
     2548    echo "$as_me:$LINENO: result: none needed" >&5
     2549echo "${ECHO_T}none needed" >&6 ;;
     2550  *)
     2551    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2552echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2553    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2554esac
     2555
     2556# Some people use a C++ compiler to compile C.  Since we use `exit',
     2557# in C++ we need to declare it.  In case someone uses the same compiler
     2558# for both compiling C and C++ we need to have the C++ compiler decide
     2559# the declaration of exit, since it's the most demanding environment.
     2560cat >conftest.$ac_ext <<_ACEOF
     2561#ifndef __cplusplus
     2562  choke me
     2563#endif
     2564_ACEOF
     2565rm -f conftest.$ac_objext
     2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2567  (eval $ac_compile) 2>conftest.er1
     2568  ac_status=$?
     2569  grep -v '^ *+' conftest.er1 >conftest.err
     2570  rm -f conftest.er1
     2571  cat conftest.err >&5
     2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2573  (exit $ac_status); } &&
     2574     { ac_try='test -z "$ac_c_werror_flag"
     2575             || test ! -s conftest.err'
     2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2577  (eval $ac_try) 2>&5
     2578  ac_status=$?
     2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2580  (exit $ac_status); }; } &&
     2581     { ac_try='test -s conftest.$ac_objext'
     2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2583  (eval $ac_try) 2>&5
     2584  ac_status=$?
     2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2586  (exit $ac_status); }; }; then
     2587  for ac_declaration in \
     2588   '' \
     2589   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2590   'extern "C" void std::exit (int); using std::exit;' \
     2591   'extern "C" void exit (int) throw ();' \
     2592   'extern "C" void exit (int);' \
     2593   'void exit (int);'
     2594do
     2595  cat >conftest.$ac_ext <<_ACEOF
     2596/* confdefs.h.  */
     2597_ACEOF
     2598cat confdefs.h >>conftest.$ac_ext
     2599cat >>conftest.$ac_ext <<_ACEOF
     2600/* end confdefs.h.  */
     2601$ac_declaration
     2602#include <stdlib.h>
     2603int
     2604main ()
     2605{
     2606exit (42);
     2607  ;
     2608  return 0;
     2609}
     2610_ACEOF
     2611rm -f conftest.$ac_objext
     2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2613  (eval $ac_compile) 2>conftest.er1
     2614  ac_status=$?
     2615  grep -v '^ *+' conftest.er1 >conftest.err
     2616  rm -f conftest.er1
     2617  cat conftest.err >&5
     2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2619  (exit $ac_status); } &&
     2620     { ac_try='test -z "$ac_c_werror_flag"
     2621             || test ! -s conftest.err'
     2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2623  (eval $ac_try) 2>&5
     2624  ac_status=$?
     2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2626  (exit $ac_status); }; } &&
     2627     { ac_try='test -s conftest.$ac_objext'
     2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2629  (eval $ac_try) 2>&5
     2630  ac_status=$?
     2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2632  (exit $ac_status); }; }; then
     2633  :
     2634else
     2635  echo "$as_me: failed program was:" >&5
     2636sed 's/^/| /' conftest.$ac_ext >&5
     2637
     2638continue
     2639fi
     2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2641  cat >conftest.$ac_ext <<_ACEOF
     2642/* confdefs.h.  */
     2643_ACEOF
     2644cat confdefs.h >>conftest.$ac_ext
     2645cat >>conftest.$ac_ext <<_ACEOF
     2646/* end confdefs.h.  */
     2647$ac_declaration
     2648int
     2649main ()
     2650{
     2651exit (42);
     2652  ;
     2653  return 0;
     2654}
     2655_ACEOF
     2656rm -f conftest.$ac_objext
     2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2658  (eval $ac_compile) 2>conftest.er1
     2659  ac_status=$?
     2660  grep -v '^ *+' conftest.er1 >conftest.err
     2661  rm -f conftest.er1
     2662  cat conftest.err >&5
     2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2664  (exit $ac_status); } &&
     2665     { ac_try='test -z "$ac_c_werror_flag"
     2666             || test ! -s conftest.err'
     2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2668  (eval $ac_try) 2>&5
     2669  ac_status=$?
     2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2671  (exit $ac_status); }; } &&
     2672     { ac_try='test -s conftest.$ac_objext'
     2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2674  (eval $ac_try) 2>&5
     2675  ac_status=$?
     2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2677  (exit $ac_status); }; }; then
     2678  break
     2679else
     2680  echo "$as_me: failed program was:" >&5
     2681sed 's/^/| /' conftest.$ac_ext >&5
     2682
     2683fi
     2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2685done
     2686rm -f conftest*
     2687if test -n "$ac_declaration"; then
     2688  echo '#ifdef __cplusplus' >>confdefs.h
     2689  echo $ac_declaration      >>confdefs.h
     2690  echo '#endif'             >>confdefs.h
     2691fi
     2692
     2693else
     2694  echo "$as_me: failed program was:" >&5
     2695sed 's/^/| /' conftest.$ac_ext >&5
     2696
     2697fi
     2698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2699ac_ext=c
     2700ac_cpp='$CPP $CPPFLAGS'
     2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9292704
    9302705ac_aux_dir=
     
    9382713    ac_install_sh="$ac_aux_dir/install.sh -c"
    9392714    break
     2715  elif test -f $ac_dir/shtool; then
     2716    ac_aux_dir=$ac_dir
     2717    ac_install_sh="$ac_aux_dir/shtool install -c"
     2718    break
    9402719  fi
    9412720done
    9422721if test -z "$ac_aux_dir"; then
    943   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    944 fi
    945 ac_config_guess=$ac_aux_dir/config.guess
    946 ac_config_sub=$ac_aux_dir/config.sub
    947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2723echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2724   { (exit 1); exit 1; }; }
     2725fi
     2726ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2727ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2728ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    9482729
    9492730# Find a good install program.  We prefer a C program (faster),
     
    9542735# IRIX /sbin/install
    9552736# AIX /bin/install
     2737# AmigaOS /C/install, which installs bootblocks on floppy discs
     2738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    9562739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    9572740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2741# OS/2's system install, which has a completely different semantic
    9582742# ./install, which can be erroneously created by make from ./install.sh.
    959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    960 echo "configure:961: checking for a BSD compatible install" >&5
     2743echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2744echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    9612745if test -z "$INSTALL"; then
    962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    963   echo $ac_n "(cached) $ac_c" 1>&6
    964 else
    965     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
    966   for ac_dir in $PATH; do
    967     # Account for people who put trailing slashes in PATH elements.
    968     case "$ac_dir/" in
    969     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    970     *)
    971       # OSF1 and SCO ODT 3.0 have their own names for install.
    972       for ac_prog in ginstall installbsd scoinst install; do
    973         if test -f $ac_dir/$ac_prog; then
     2746if test "${ac_cv_path_install+set}" = set; then
     2747  echo $ECHO_N "(cached) $ECHO_C" >&6
     2748else
     2749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2750for as_dir in $PATH
     2751do
     2752  IFS=$as_save_IFS
     2753  test -z "$as_dir" && as_dir=.
     2754  # Account for people who put trailing slashes in PATH elements.
     2755case $as_dir/ in
     2756  ./ | .// | /cC/* | \
     2757  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2758  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     2759  /usr/ucb/* ) ;;
     2760  *)
     2761    # OSF1 and SCO ODT 3.0 have their own names for install.
     2762    # Don't use installbsd from OSF since it installs stuff as root
     2763    # by default.
     2764    for ac_prog in ginstall scoinst install; do
     2765      for ac_exec_ext in '' $ac_executable_extensions; do
     2766    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    9742767      if test $ac_prog = install &&
    975             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2768        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    9762769        # AIX install.  It has an incompatible calling convention.
    977         # OSF/1 installbsd also uses dspmsg, but is usable.
     2770        :
     2771      elif test $ac_prog = install &&
     2772        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2773        # program-specific install script used by HP pwplus--don't use.
    9782774        :
    9792775      else
    980         ac_cv_path_install="$ac_dir/$ac_prog -c"
    981         break 2
     2776        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2777        break 3
    9822778      fi
    9832779    fi
    9842780      done
    985       ;;
    986     esac
    987   done
    988   IFS="$ac_save_IFS"
     2781    done
     2782    ;;
     2783esac
     2784done
     2785
    9892786
    9902787fi
    9912788  if test "${ac_cv_path_install+set}" = set; then
    992     INSTALL="$ac_cv_path_install"
     2789    INSTALL=$ac_cv_path_install
    9932790  else
    9942791    # As a last resort, use the slow shell script.  We don't cache a
     
    9962793    # break other packages using the cache if that directory is
    9972794    # removed, or if the path is relative.
    998     INSTALL="$ac_install_sh"
     2795    INSTALL=$ac_install_sh
    9992796  fi
    10002797fi
    1001 echo "$ac_t""$INSTALL" 1>&6
     2798echo "$as_me:$LINENO: result: $INSTALL" >&5
     2799echo "${ECHO_T}$INSTALL" >&6
    10022800
    10032801# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10052803test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10062804
     2805test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2806
    10072807test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    10082808
    1009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1010 echo "configure:1011: checking whether ln -s works" >&5
    1011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1012   echo $ac_n "(cached) $ac_c" 1>&6
    1013 else
    1014   rm -f conftestdata
    1015 if ln -s X conftestdata 2>/dev/null
    1016 then
    1017   rm -f conftestdata
    1018   ac_cv_prog_LN_S="ln -s"
    1019 else
    1020   ac_cv_prog_LN_S=ln
    1021 fi
    1022 fi
    1023 LN_S="$ac_cv_prog_LN_S"
    1024 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1025   echo "$ac_t""yes" 1>&6
    1026 else
    1027   echo "$ac_t""no" 1>&6
    1028 fi
    1029 
    1030 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1031 echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    1033 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    1034   echo $ac_n "(cached) $ac_c" 1>&6
    1035 else
    1036   cat > conftestmake <<\EOF
     2809echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2810echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     2811LN_S=$as_ln_s
     2812if test "$LN_S" = "ln -s"; then
     2813  echo "$as_me:$LINENO: result: yes" >&5
     2814echo "${ECHO_T}yes" >&6
     2815else
     2816  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2817echo "${ECHO_T}no, using $LN_S" >&6
     2818fi
     2819
     2820echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2821echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2823if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     2824  echo $ECHO_N "(cached) $ECHO_C" >&6
     2825else
     2826  cat >conftest.make <<\_ACEOF
    10372827all:
    1038     @echo 'ac_maketemp="${MAKE}"'
    1039 EOF
     2828    @echo 'ac_maketemp="$(MAKE)"'
     2829_ACEOF
    10402830# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1041 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     2831eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    10422832if test -n "$ac_maketemp"; then
    10432833  eval ac_cv_prog_make_${ac_make}_set=yes
     
    10452835  eval ac_cv_prog_make_${ac_make}_set=no
    10462836fi
    1047 rm -f conftestmake
     2837rm -f conftest.make
    10482838fi
    10492839if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1050   echo "$ac_t""yes" 1>&6
     2840  echo "$as_me:$LINENO: result: yes" >&5
     2841echo "${ECHO_T}yes" >&6
    10512842  SET_MAKE=
    10522843else
    1053   echo "$ac_t""no" 1>&6
     2844  echo "$as_me:$LINENO: result: no" >&5
     2845echo "${ECHO_T}no" >&6
    10542846  SET_MAKE="MAKE=${MAKE-make}"
    10552847fi
    10562848
    1057 # Extract the first word of "ranlib", so it can be a program name with args.
    1058 set dummy ranlib; ac_word=$2
    1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1060 echo "configure:1061: checking for $ac_word" >&5
    1061 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1062   echo $ac_n "(cached) $ac_c" 1>&6
     2849if test -n "$ac_tool_prefix"; then
     2850  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2851set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2852echo "$as_me:$LINENO: checking for $ac_word" >&5
     2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2854if test "${ac_cv_prog_RANLIB+set}" = set; then
     2855  echo $ECHO_N "(cached) $ECHO_C" >&6
    10632856else
    10642857  if test -n "$RANLIB"; then
    10652858  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    10662859else
    1067   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1068   for ac_dir in $PATH; do
    1069     test -z "$ac_dir" && ac_dir=.
    1070     if test -f $ac_dir/$ac_word; then
    1071       ac_cv_prog_RANLIB="ranlib"
    1072       break
    1073     fi
    1074   done
    1075   IFS="$ac_save_ifs"
    1076   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1077 fi
    1078 fi
    1079 RANLIB="$ac_cv_prog_RANLIB"
     2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2861for as_dir in $PATH
     2862do
     2863  IFS=$as_save_IFS
     2864  test -z "$as_dir" && as_dir=.
     2865  for ac_exec_ext in '' $ac_executable_extensions; do
     2866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2867    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2869    break 2
     2870  fi
     2871done
     2872done
     2873
     2874fi
     2875fi
     2876RANLIB=$ac_cv_prog_RANLIB
    10802877if test -n "$RANLIB"; then
    1081   echo "$ac_t""$RANLIB" 1>&6
    1082 else
    1083   echo "$ac_t""no" 1>&6
    1084 fi
    1085 
    1086 
    1087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1088 echo "configure:1089: checking how to run the C preprocessor" >&5
     2878  echo "$as_me:$LINENO: result: $RANLIB" >&5
     2879echo "${ECHO_T}$RANLIB" >&6
     2880else
     2881  echo "$as_me:$LINENO: result: no" >&5
     2882echo "${ECHO_T}no" >&6
     2883fi
     2884
     2885fi
     2886if test -z "$ac_cv_prog_RANLIB"; then
     2887  ac_ct_RANLIB=$RANLIB
     2888  # Extract the first word of "ranlib", so it can be a program name with args.
     2889set dummy ranlib; ac_word=$2
     2890echo "$as_me:$LINENO: checking for $ac_word" >&5
     2891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2892if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2893  echo $ECHO_N "(cached) $ECHO_C" >&6
     2894else
     2895  if test -n "$ac_ct_RANLIB"; then
     2896  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2897else
     2898as_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  for ac_exec_ext in '' $ac_executable_extensions; do
     2904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2905    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2907    break 2
     2908  fi
     2909done
     2910done
     2911
     2912  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2913fi
     2914fi
     2915ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2916if test -n "$ac_ct_RANLIB"; then
     2917  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2918echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2919else
     2920  echo "$as_me:$LINENO: result: no" >&5
     2921echo "${ECHO_T}no" >&6
     2922fi
     2923
     2924  RANLIB=$ac_ct_RANLIB
     2925else
     2926  RANLIB="$ac_cv_prog_RANLIB"
     2927fi
     2928
     2929
     2930
     2931ac_ext=c
     2932ac_cpp='$CPP $CPPFLAGS'
     2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2936echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2937echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    10892938# On Suns, sometimes $CPP names a directory.
    10902939if test -n "$CPP" && test -d "$CPP"; then
     
    10922941fi
    10932942if test -z "$CPP"; then
    1094 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1095   echo $ac_n "(cached) $ac_c" 1>&6
    1096 else
    1097     # This must be in double quotes, not single quotes, because CPP may get
    1098   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1099   CPP="${CC-cc} -E"
     2943  if test "${ac_cv_prog_CPP+set}" = set; then
     2944  echo $ECHO_N "(cached) $ECHO_C" >&6
     2945else
     2946      # Double quotes because CPP needs to be expanded
     2947    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2948    do
     2949      ac_preproc_ok=false
     2950for ac_c_preproc_warn_flag in '' yes
     2951do
     2952  # Use a header file that comes with gcc, so configuring glibc
     2953  # with a fresh cross-compiler works.
     2954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2955  # <limits.h> exists even on freestanding compilers.
    11002956  # On the NeXT, cc -E runs the code through the compiler's parser,
    1101   # not just through cpp.
    1102   cat > conftest.$ac_ext <<EOF
    1103 #line 1104 "configure"
    1104 #include "confdefs.h"
    1105 #include <assert.h>
    1106 Syntax Error
    1107 EOF
    1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1110 ac_err=`grep -v '^ *+' conftest.out`
    1111 if test -z "$ac_err"; then
     2957  # not just through cpp. "Syntax error" is here to catch this case.
     2958  cat >conftest.$ac_ext <<_ACEOF
     2959/* confdefs.h.  */
     2960_ACEOF
     2961cat confdefs.h >>conftest.$ac_ext
     2962cat >>conftest.$ac_ext <<_ACEOF
     2963/* end confdefs.h.  */
     2964#ifdef __STDC__
     2965# include <limits.h>
     2966#else
     2967# include <assert.h>
     2968#endif
     2969             Syntax error
     2970_ACEOF
     2971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2973  ac_status=$?
     2974  grep -v '^ *+' conftest.er1 >conftest.err
     2975  rm -f conftest.er1
     2976  cat conftest.err >&5
     2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2978  (exit $ac_status); } >/dev/null; then
     2979  if test -s conftest.err; then
     2980    ac_cpp_err=$ac_c_preproc_warn_flag
     2981    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2982  else
     2983    ac_cpp_err=
     2984  fi
     2985else
     2986  ac_cpp_err=yes
     2987fi
     2988if test -z "$ac_cpp_err"; then
    11122989  :
    11132990else
    1114   echo "$ac_err" >&5
    1115   echo "configure: failed program was:" >&5
    1116   cat conftest.$ac_ext >&5
    1117   rm -rf conftest*
    1118   CPP="${CC-cc} -E -traditional-cpp"
    1119   cat > conftest.$ac_ext <<EOF
    1120 #line 1121 "configure"
    1121 #include "confdefs.h"
    1122 #include <assert.h>
    1123 Syntax Error
    1124 EOF
    1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1127 ac_err=`grep -v '^ *+' conftest.out`
    1128 if test -z "$ac_err"; then
     2991  echo "$as_me: failed program was:" >&5
     2992sed 's/^/| /' conftest.$ac_ext >&5
     2993
     2994  # Broken: fails on valid input.
     2995continue
     2996fi
     2997rm -f conftest.err conftest.$ac_ext
     2998
     2999  # OK, works on sane cases.  Now check whether non-existent headers
     3000  # can be detected and how.
     3001  cat >conftest.$ac_ext <<_ACEOF
     3002/* confdefs.h.  */
     3003_ACEOF
     3004cat confdefs.h >>conftest.$ac_ext
     3005cat >>conftest.$ac_ext <<_ACEOF
     3006/* end confdefs.h.  */
     3007#include <ac_nonexistent.h>
     3008_ACEOF
     3009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3011  ac_status=$?
     3012  grep -v '^ *+' conftest.er1 >conftest.err
     3013  rm -f conftest.er1
     3014  cat conftest.err >&5
     3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3016  (exit $ac_status); } >/dev/null; then
     3017  if test -s conftest.err; then
     3018    ac_cpp_err=$ac_c_preproc_warn_flag
     3019    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3020  else
     3021    ac_cpp_err=
     3022  fi
     3023else
     3024  ac_cpp_err=yes
     3025fi
     3026if test -z "$ac_cpp_err"; then
     3027  # Broken: success on invalid input.
     3028continue
     3029else
     3030  echo "$as_me: failed program was:" >&5
     3031sed 's/^/| /' conftest.$ac_ext >&5
     3032
     3033  # Passes both tests.
     3034ac_preproc_ok=:
     3035break
     3036fi
     3037rm -f conftest.err conftest.$ac_ext
     3038
     3039done
     3040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3041rm -f conftest.err conftest.$ac_ext
     3042if $ac_preproc_ok; then
     3043  break
     3044fi
     3045
     3046    done
     3047    ac_cv_prog_CPP=$CPP
     3048
     3049fi
     3050  CPP=$ac_cv_prog_CPP
     3051else
     3052  ac_cv_prog_CPP=$CPP
     3053fi
     3054echo "$as_me:$LINENO: result: $CPP" >&5
     3055echo "${ECHO_T}$CPP" >&6
     3056ac_preproc_ok=false
     3057for ac_c_preproc_warn_flag in '' yes
     3058do
     3059  # Use a header file that comes with gcc, so configuring glibc
     3060  # with a fresh cross-compiler works.
     3061  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3062  # <limits.h> exists even on freestanding compilers.
     3063  # On the NeXT, cc -E runs the code through the compiler's parser,
     3064  # not just through cpp. "Syntax error" is here to catch this case.
     3065  cat >conftest.$ac_ext <<_ACEOF
     3066/* confdefs.h.  */
     3067_ACEOF
     3068cat confdefs.h >>conftest.$ac_ext
     3069cat >>conftest.$ac_ext <<_ACEOF
     3070/* end confdefs.h.  */
     3071#ifdef __STDC__
     3072# include <limits.h>
     3073#else
     3074# include <assert.h>
     3075#endif
     3076             Syntax error
     3077_ACEOF
     3078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3079  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3080  ac_status=$?
     3081  grep -v '^ *+' conftest.er1 >conftest.err
     3082  rm -f conftest.er1
     3083  cat conftest.err >&5
     3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3085  (exit $ac_status); } >/dev/null; then
     3086  if test -s conftest.err; then
     3087    ac_cpp_err=$ac_c_preproc_warn_flag
     3088    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3089  else
     3090    ac_cpp_err=
     3091  fi
     3092else
     3093  ac_cpp_err=yes
     3094fi
     3095if test -z "$ac_cpp_err"; then
    11293096  :
    11303097else
    1131   echo "$ac_err" >&5
    1132   echo "configure: failed program was:" >&5
    1133   cat conftest.$ac_ext >&5
    1134   rm -rf conftest*
    1135   CPP=/lib/cpp
    1136 fi
    1137 rm -f conftest*
    1138 fi
    1139 rm -f conftest*
    1140   ac_cv_prog_CPP="$CPP"
    1141 fi
    1142   CPP="$ac_cv_prog_CPP"
    1143 else
    1144   ac_cv_prog_CPP="$CPP"
    1145 fi
    1146 echo "$ac_t""$CPP" 1>&6
    1147 
    1148 echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1149 echo "configure:1150: checking for AIX" >&5
    1150 cat > conftest.$ac_ext <<EOF
    1151 #line 1152 "configure"
    1152 #include "confdefs.h"
     3098  echo "$as_me: failed program was:" >&5
     3099sed 's/^/| /' conftest.$ac_ext >&5
     3100
     3101  # Broken: fails on valid input.
     3102continue
     3103fi
     3104rm -f conftest.err conftest.$ac_ext
     3105
     3106  # OK, works on sane cases.  Now check whether non-existent headers
     3107  # can be detected and how.
     3108  cat >conftest.$ac_ext <<_ACEOF
     3109/* confdefs.h.  */
     3110_ACEOF
     3111cat confdefs.h >>conftest.$ac_ext
     3112cat >>conftest.$ac_ext <<_ACEOF
     3113/* end confdefs.h.  */
     3114#include <ac_nonexistent.h>
     3115_ACEOF
     3116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3117  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3118  ac_status=$?
     3119  grep -v '^ *+' conftest.er1 >conftest.err
     3120  rm -f conftest.er1
     3121  cat conftest.err >&5
     3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3123  (exit $ac_status); } >/dev/null; then
     3124  if test -s conftest.err; then
     3125    ac_cpp_err=$ac_c_preproc_warn_flag
     3126    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3127  else
     3128    ac_cpp_err=
     3129  fi
     3130else
     3131  ac_cpp_err=yes
     3132fi
     3133if test -z "$ac_cpp_err"; then
     3134  # Broken: success on invalid input.
     3135continue
     3136else
     3137  echo "$as_me: failed program was:" >&5
     3138sed 's/^/| /' conftest.$ac_ext >&5
     3139
     3140  # Passes both tests.
     3141ac_preproc_ok=:
     3142break
     3143fi
     3144rm -f conftest.err conftest.$ac_ext
     3145
     3146done
     3147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3148rm -f conftest.err conftest.$ac_ext
     3149if $ac_preproc_ok; then
     3150  :
     3151else
     3152  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3153See \`config.log' for more details." >&5
     3154echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3155See \`config.log' for more details." >&2;}
     3156   { (exit 1); exit 1; }; }
     3157fi
     3158
     3159ac_ext=c
     3160ac_cpp='$CPP $CPPFLAGS'
     3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3164
     3165
     3166echo "$as_me:$LINENO: checking for egrep" >&5
     3167echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3168if test "${ac_cv_prog_egrep+set}" = set; then
     3169  echo $ECHO_N "(cached) $ECHO_C" >&6
     3170else
     3171  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3172    then ac_cv_prog_egrep='grep -E'
     3173    else ac_cv_prog_egrep='egrep'
     3174    fi
     3175fi
     3176echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3177echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3178 EGREP=$ac_cv_prog_egrep
     3179
     3180
     3181
     3182echo "$as_me:$LINENO: checking for AIX" >&5
     3183echo $ECHO_N "checking for AIX... $ECHO_C" >&6
     3184cat >conftest.$ac_ext <<_ACEOF
     3185/* confdefs.h.  */
     3186_ACEOF
     3187cat confdefs.h >>conftest.$ac_ext
     3188cat >>conftest.$ac_ext <<_ACEOF
     3189/* end confdefs.h.  */
    11533190#ifdef _AIX
    11543191  yes
    11553192#endif
    11563193
    1157 EOF
     3194_ACEOF
    11583195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1159   egrep "yes" >/dev/null 2>&1; then
    1160   rm -rf conftest*
    1161   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     3196  $EGREP "yes" >/dev/null 2>&1; then
     3197  echo "$as_me:$LINENO: result: yes" >&5
     3198echo "${ECHO_T}yes" >&6
     3199cat >>confdefs.h <<\_ACEOF
    11623200#define _ALL_SOURCE 1
    1163 EOF
    1164 
    1165 else
    1166   rm -rf conftest*
    1167   echo "$ac_t""no" 1>&6
     3201_ACEOF
     3202
     3203else
     3204  echo "$as_me:$LINENO: result: no" >&5
     3205echo "${ECHO_T}no" >&6
    11683206fi
    11693207rm -f conftest*
    11703208
    11713209
    1172 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1173 echo "configure:1174: checking for POSIXized ISC" >&5
    1174 if test -d /etc/conf/kconfig.d &&
    1175   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    1176 then
    1177   echo "$ac_t""yes" 1>&6
    1178   ISC=yes # If later tests want to check for ISC.
    1179   cat >> confdefs.h <<\EOF
     3210echo "$as_me:$LINENO: checking for library containing strerror" >&5
     3211echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
     3212if test "${ac_cv_search_strerror+set}" = set; then
     3213  echo $ECHO_N "(cached) $ECHO_C" >&6
     3214else
     3215  ac_func_search_save_LIBS=$LIBS
     3216ac_cv_search_strerror=no
     3217cat >conftest.$ac_ext <<_ACEOF
     3218/* confdefs.h.  */
     3219_ACEOF
     3220cat confdefs.h >>conftest.$ac_ext
     3221cat >>conftest.$ac_ext <<_ACEOF
     3222/* end confdefs.h.  */
     3223
     3224/* Override any gcc2 internal prototype to avoid an error.  */
     3225#ifdef __cplusplus
     3226extern "C"
     3227#endif
     3228/* We use char because int might match the return type of a gcc2
     3229   builtin and then its argument prototype would still apply.  */
     3230char strerror ();
     3231int
     3232main ()
     3233{
     3234strerror ();
     3235  ;
     3236  return 0;
     3237}
     3238_ACEOF
     3239rm -f conftest.$ac_objext conftest$ac_exeext
     3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3241  (eval $ac_link) 2>conftest.er1
     3242  ac_status=$?
     3243  grep -v '^ *+' conftest.er1 >conftest.err
     3244  rm -f conftest.er1
     3245  cat conftest.err >&5
     3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3247  (exit $ac_status); } &&
     3248     { ac_try='test -z "$ac_c_werror_flag"
     3249             || test ! -s conftest.err'
     3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3251  (eval $ac_try) 2>&5
     3252  ac_status=$?
     3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3254  (exit $ac_status); }; } &&
     3255     { ac_try='test -s conftest$ac_exeext'
     3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3257  (eval $ac_try) 2>&5
     3258  ac_status=$?
     3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3260  (exit $ac_status); }; }; then
     3261  ac_cv_search_strerror="none required"
     3262else
     3263  echo "$as_me: failed program was:" >&5
     3264sed 's/^/| /' conftest.$ac_ext >&5
     3265
     3266fi
     3267rm -f conftest.err conftest.$ac_objext \
     3268      conftest$ac_exeext conftest.$ac_ext
     3269if test "$ac_cv_search_strerror" = no; then
     3270  for ac_lib in cposix; do
     3271    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3272    cat >conftest.$ac_ext <<_ACEOF
     3273/* confdefs.h.  */
     3274_ACEOF
     3275cat confdefs.h >>conftest.$ac_ext
     3276cat >>conftest.$ac_ext <<_ACEOF
     3277/* end confdefs.h.  */
     3278
     3279/* Override any gcc2 internal prototype to avoid an error.  */
     3280#ifdef __cplusplus
     3281extern "C"
     3282#endif
     3283/* We use char because int might match the return type of a gcc2
     3284   builtin and then its argument prototype would still apply.  */
     3285char strerror ();
     3286int
     3287main ()
     3288{
     3289strerror ();
     3290  ;
     3291  return 0;
     3292}
     3293_ACEOF
     3294rm -f conftest.$ac_objext conftest$ac_exeext
     3295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3296  (eval $ac_link) 2>conftest.er1
     3297  ac_status=$?
     3298  grep -v '^ *+' conftest.er1 >conftest.err
     3299  rm -f conftest.er1
     3300  cat conftest.err >&5
     3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3302  (exit $ac_status); } &&
     3303     { ac_try='test -z "$ac_c_werror_flag"
     3304             || test ! -s conftest.err'
     3305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3306  (eval $ac_try) 2>&5
     3307  ac_status=$?
     3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3309  (exit $ac_status); }; } &&
     3310     { ac_try='test -s conftest$ac_exeext'
     3311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3312  (eval $ac_try) 2>&5
     3313  ac_status=$?
     3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3315  (exit $ac_status); }; }; then
     3316  ac_cv_search_strerror="-l$ac_lib"
     3317break
     3318else
     3319  echo "$as_me: failed program was:" >&5
     3320sed 's/^/| /' conftest.$ac_ext >&5
     3321
     3322fi
     3323rm -f conftest.err conftest.$ac_objext \
     3324      conftest$ac_exeext conftest.$ac_ext
     3325  done
     3326fi
     3327LIBS=$ac_func_search_save_LIBS
     3328fi
     3329echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
     3330echo "${ECHO_T}$ac_cv_search_strerror" >&6
     3331if test "$ac_cv_search_strerror" != no; then
     3332  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
     3333
     3334fi
     3335
     3336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3338if test "${ac_cv_header_stdc+set}" = set; then
     3339  echo $ECHO_N "(cached) $ECHO_C" >&6
     3340else
     3341  cat >conftest.$ac_ext <<_ACEOF
     3342/* confdefs.h.  */
     3343_ACEOF
     3344cat confdefs.h >>conftest.$ac_ext
     3345cat >>conftest.$ac_ext <<_ACEOF
     3346/* end confdefs.h.  */
     3347#include <stdlib.h>
     3348#include <stdarg.h>
     3349#include <string.h>
     3350#include <float.h>
     3351
     3352int
     3353main ()
     3354{
     3355
     3356  ;
     3357  return 0;
     3358}
     3359_ACEOF
     3360rm -f conftest.$ac_objext
     3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3362  (eval $ac_compile) 2>conftest.er1
     3363  ac_status=$?
     3364  grep -v '^ *+' conftest.er1 >conftest.err
     3365  rm -f conftest.er1
     3366  cat conftest.err >&5
     3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3368  (exit $ac_status); } &&
     3369     { ac_try='test -z "$ac_c_werror_flag"
     3370             || test ! -s conftest.err'
     3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3372  (eval $ac_try) 2>&5
     3373  ac_status=$?
     3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3375  (exit $ac_status); }; } &&
     3376     { ac_try='test -s conftest.$ac_objext'
     3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3378  (eval $ac_try) 2>&5
     3379  ac_status=$?
     3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3381  (exit $ac_status); }; }; then
     3382  ac_cv_header_stdc=yes
     3383else
     3384  echo "$as_me: failed program was:" >&5
     3385sed 's/^/| /' conftest.$ac_ext >&5
     3386
     3387ac_cv_header_stdc=no
     3388fi
     3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3390
     3391if test $ac_cv_header_stdc = yes; then
     3392  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3393  cat >conftest.$ac_ext <<_ACEOF
     3394/* confdefs.h.  */
     3395_ACEOF
     3396cat confdefs.h >>conftest.$ac_ext
     3397cat >>conftest.$ac_ext <<_ACEOF
     3398/* end confdefs.h.  */
     3399#include <string.h>
     3400
     3401_ACEOF
     3402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3403  $EGREP "memchr" >/dev/null 2>&1; then
     3404  :
     3405else
     3406  ac_cv_header_stdc=no
     3407fi
     3408rm -f conftest*
     3409
     3410fi
     3411
     3412if test $ac_cv_header_stdc = yes; then
     3413  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3414  cat >conftest.$ac_ext <<_ACEOF
     3415/* confdefs.h.  */
     3416_ACEOF
     3417cat confdefs.h >>conftest.$ac_ext
     3418cat >>conftest.$ac_ext <<_ACEOF
     3419/* end confdefs.h.  */
     3420#include <stdlib.h>
     3421
     3422_ACEOF
     3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3424  $EGREP "free" >/dev/null 2>&1; then
     3425  :
     3426else
     3427  ac_cv_header_stdc=no
     3428fi
     3429rm -f conftest*
     3430
     3431fi
     3432
     3433if test $ac_cv_header_stdc = yes; then
     3434  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3435  if test "$cross_compiling" = yes; then
     3436  :
     3437else
     3438  cat >conftest.$ac_ext <<_ACEOF
     3439/* confdefs.h.  */
     3440_ACEOF
     3441cat confdefs.h >>conftest.$ac_ext
     3442cat >>conftest.$ac_ext <<_ACEOF
     3443/* end confdefs.h.  */
     3444#include <ctype.h>
     3445#if ((' ' & 0x0FF) == 0x020)
     3446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3448#else
     3449# define ISLOWER(c) \
     3450           (('a' <= (c) && (c) <= 'i') \
     3451             || ('j' <= (c) && (c) <= 'r') \
     3452             || ('s' <= (c) && (c) <= 'z'))
     3453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3454#endif
     3455
     3456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3457int
     3458main ()
     3459{
     3460  int i;
     3461  for (i = 0; i < 256; i++)
     3462    if (XOR (islower (i), ISLOWER (i))
     3463    || toupper (i) != TOUPPER (i))
     3464      exit(2);
     3465  exit (0);
     3466}
     3467_ACEOF
     3468rm -f conftest$ac_exeext
     3469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3470  (eval $ac_link) 2>&5
     3471  ac_status=$?
     3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3475  (eval $ac_try) 2>&5
     3476  ac_status=$?
     3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3478  (exit $ac_status); }; }; then
     3479  :
     3480else
     3481  echo "$as_me: program exited with status $ac_status" >&5
     3482echo "$as_me: failed program was:" >&5
     3483sed 's/^/| /' conftest.$ac_ext >&5
     3484
     3485( exit $ac_status )
     3486ac_cv_header_stdc=no
     3487fi
     3488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3489fi
     3490fi
     3491fi
     3492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3493echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3494if test $ac_cv_header_stdc = yes; then
     3495
     3496cat >>confdefs.h <<\_ACEOF
     3497#define STDC_HEADERS 1
     3498_ACEOF
     3499
     3500fi
     3501
     3502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3503
     3504
     3505
     3506
     3507
     3508
     3509
     3510
     3511
     3512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3513          inttypes.h stdint.h unistd.h
     3514do
     3515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3516echo "$as_me:$LINENO: checking for $ac_header" >&5
     3517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3518if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3519  echo $ECHO_N "(cached) $ECHO_C" >&6
     3520else
     3521  cat >conftest.$ac_ext <<_ACEOF
     3522/* confdefs.h.  */
     3523_ACEOF
     3524cat confdefs.h >>conftest.$ac_ext
     3525cat >>conftest.$ac_ext <<_ACEOF
     3526/* end confdefs.h.  */
     3527$ac_includes_default
     3528
     3529#include <$ac_header>
     3530_ACEOF
     3531rm -f conftest.$ac_objext
     3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3533  (eval $ac_compile) 2>conftest.er1
     3534  ac_status=$?
     3535  grep -v '^ *+' conftest.er1 >conftest.err
     3536  rm -f conftest.er1
     3537  cat conftest.err >&5
     3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3539  (exit $ac_status); } &&
     3540     { ac_try='test -z "$ac_c_werror_flag"
     3541             || test ! -s conftest.err'
     3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3543  (eval $ac_try) 2>&5
     3544  ac_status=$?
     3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3546  (exit $ac_status); }; } &&
     3547     { ac_try='test -s conftest.$ac_objext'
     3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3549  (eval $ac_try) 2>&5
     3550  ac_status=$?
     3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3552  (exit $ac_status); }; }; then
     3553  eval "$as_ac_Header=yes"
     3554else
     3555  echo "$as_me: failed program was:" >&5
     3556sed 's/^/| /' conftest.$ac_ext >&5
     3557
     3558eval "$as_ac_Header=no"
     3559fi
     3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3561fi
     3562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3564if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3565  cat >>confdefs.h <<_ACEOF
     3566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3567_ACEOF
     3568
     3569fi
     3570
     3571done
     3572
     3573
     3574if test "${ac_cv_header_minix_config_h+set}" = set; then
     3575  echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3576echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3577if test "${ac_cv_header_minix_config_h+set}" = set; then
     3578  echo $ECHO_N "(cached) $ECHO_C" >&6
     3579fi
     3580echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3581echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3582else
     3583  # Is the header compilable?
     3584echo "$as_me:$LINENO: checking minix/config.h usability" >&5
     3585echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
     3586cat >conftest.$ac_ext <<_ACEOF
     3587/* confdefs.h.  */
     3588_ACEOF
     3589cat confdefs.h >>conftest.$ac_ext
     3590cat >>conftest.$ac_ext <<_ACEOF
     3591/* end confdefs.h.  */
     3592$ac_includes_default
     3593#include <minix/config.h>
     3594_ACEOF
     3595rm -f conftest.$ac_objext
     3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3597  (eval $ac_compile) 2>conftest.er1
     3598  ac_status=$?
     3599  grep -v '^ *+' conftest.er1 >conftest.err
     3600  rm -f conftest.er1
     3601  cat conftest.err >&5
     3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3603  (exit $ac_status); } &&
     3604     { ac_try='test -z "$ac_c_werror_flag"
     3605             || test ! -s conftest.err'
     3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3607  (eval $ac_try) 2>&5
     3608  ac_status=$?
     3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3610  (exit $ac_status); }; } &&
     3611     { ac_try='test -s conftest.$ac_objext'
     3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3613  (eval $ac_try) 2>&5
     3614  ac_status=$?
     3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3616  (exit $ac_status); }; }; then
     3617  ac_header_compiler=yes
     3618else
     3619  echo "$as_me: failed program was:" >&5
     3620sed 's/^/| /' conftest.$ac_ext >&5
     3621
     3622ac_header_compiler=no
     3623fi
     3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3626echo "${ECHO_T}$ac_header_compiler" >&6
     3627
     3628# Is the header present?
     3629echo "$as_me:$LINENO: checking minix/config.h presence" >&5
     3630echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
     3631cat >conftest.$ac_ext <<_ACEOF
     3632/* confdefs.h.  */
     3633_ACEOF
     3634cat confdefs.h >>conftest.$ac_ext
     3635cat >>conftest.$ac_ext <<_ACEOF
     3636/* end confdefs.h.  */
     3637#include <minix/config.h>
     3638_ACEOF
     3639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3640  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3641  ac_status=$?
     3642  grep -v '^ *+' conftest.er1 >conftest.err
     3643  rm -f conftest.er1
     3644  cat conftest.err >&5
     3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3646  (exit $ac_status); } >/dev/null; then
     3647  if test -s conftest.err; then
     3648    ac_cpp_err=$ac_c_preproc_warn_flag
     3649    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3650  else
     3651    ac_cpp_err=
     3652  fi
     3653else
     3654  ac_cpp_err=yes
     3655fi
     3656if test -z "$ac_cpp_err"; then
     3657  ac_header_preproc=yes
     3658else
     3659  echo "$as_me: failed program was:" >&5
     3660sed 's/^/| /' conftest.$ac_ext >&5
     3661
     3662  ac_header_preproc=no
     3663fi
     3664rm -f conftest.err conftest.$ac_ext
     3665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3666echo "${ECHO_T}$ac_header_preproc" >&6
     3667
     3668# So?  What about this header?
     3669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3670  yes:no: )
     3671    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
     3672echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3673    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
     3674echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
     3675    ac_header_preproc=yes
     3676    ;;
     3677  no:yes:* )
     3678    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
     3679echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
     3680    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
     3681echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
     3682    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
     3683echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
     3684    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
     3685echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     3686    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
     3687echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
     3688    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
     3689echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
     3690    (
     3691      cat <<\_ASBOX
     3692## ------------------------------------------ ##
     3693## Report this to the AC_PACKAGE_NAME lists.  ##
     3694## ------------------------------------------ ##
     3695_ASBOX
     3696    ) |
     3697      sed "s/^/$as_me: WARNING:     /" >&2
     3698    ;;
     3699esac
     3700echo "$as_me:$LINENO: checking for minix/config.h" >&5
     3701echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
     3702if test "${ac_cv_header_minix_config_h+set}" = set; then
     3703  echo $ECHO_N "(cached) $ECHO_C" >&6
     3704else
     3705  ac_cv_header_minix_config_h=$ac_header_preproc
     3706fi
     3707echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
     3708echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
     3709
     3710fi
     3711if test $ac_cv_header_minix_config_h = yes; then
     3712  MINIX=yes
     3713else
     3714  MINIX=
     3715fi
     3716
     3717
     3718if test "$MINIX" = yes; then
     3719
     3720cat >>confdefs.h <<\_ACEOF
    11803721#define _POSIX_SOURCE 1
    1181 EOF
    1182 
    1183   if test "$GCC" = yes; then
    1184     CC="$CC -posix"
    1185   else
    1186     CC="$CC -Xp"
    1187   fi
    1188 else
    1189   echo "$ac_t""no" 1>&6
    1190   ISC=
    1191 fi
    1192 
    1193 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    1194 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1195 echo "configure:1196: checking for minix/config.h" >&5
    1196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1197   echo $ac_n "(cached) $ac_c" 1>&6
    1198 else
    1199   cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
    1201 #include "confdefs.h"
    1202 #include <minix/config.h>
    1203 EOF
    1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1206 ac_err=`grep -v '^ *+' conftest.out`
    1207 if test -z "$ac_err"; then
    1208   rm -rf conftest*
    1209   eval "ac_cv_header_$ac_safe=yes"
    1210 else
    1211   echo "$ac_err" >&5
    1212   echo "configure: failed program was:" >&5
    1213   cat conftest.$ac_ext >&5
    1214   rm -rf conftest*
    1215   eval "ac_cv_header_$ac_safe=no"
    1216 fi
    1217 rm -f conftest*
    1218 fi
    1219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1220   echo "$ac_t""yes" 1>&6
    1221   MINIX=yes
    1222 else
    1223   echo "$ac_t""no" 1>&6
    1224 MINIX=
    1225 fi
    1226 
    1227 if test "$MINIX" = yes; then
    1228   cat >> confdefs.h <<\EOF
    1229 #define _POSIX_SOURCE 1
    1230 EOF
    1231 
    1232   cat >> confdefs.h <<\EOF
     3722_ACEOF
     3723
     3724
     3725cat >>confdefs.h <<\_ACEOF
    12333726#define _POSIX_1_SOURCE 2
    1234 EOF
    1235 
    1236   cat >> confdefs.h <<\EOF
     3727_ACEOF
     3728
     3729
     3730cat >>confdefs.h <<\_ACEOF
    12373731#define _MINIX 1
    1238 EOF
    1239 
    1240 fi
    1241 
    1242 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1243 echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&5
    1244 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    1245   echo $ac_n "(cached) $ac_c" 1>&6
     3732_ACEOF
     3733
     3734fi
     3735
     3736echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
     3737echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
     3738if test "${ac_cv_prog_cc_stdc+set}" = set; then
     3739  echo $ECHO_N "(cached) $ECHO_C" >&6
    12463740else
    12473741  ac_cv_prog_cc_stdc=no
     
    12563750do
    12573751  CFLAGS="$ac_save_CFLAGS $ac_arg"
    1258   cat > conftest.$ac_ext <<EOF
    1259 #line 1260 "configure"
    1260 #include "confdefs.h"
     3752  cat >conftest.$ac_ext <<_ACEOF
     3753/* confdefs.h.  */
     3754_ACEOF
     3755cat confdefs.h >>conftest.$ac_ext
     3756cat >>conftest.$ac_ext <<_ACEOF
     3757/* end confdefs.h.  */
    12613758#if !defined(__STDC__) || __STDC__ != 1
    12623759choke me
    1263 #endif 
    1264 
    1265 int main() {
     3760#endif
     3761
     3762int
     3763main ()
     3764{
    12663765int test (int i, double x);
    12673766struct s1 {int (*f) (int a);};
    12683767struct s2 {int (*f) (double a);};
    1269 ; return 0; }
    1270 EOF
    1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1272   rm -rf conftest*
     3768  ;
     3769  return 0;
     3770}
     3771_ACEOF
     3772rm -f conftest.$ac_objext
     3773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3774  (eval $ac_compile) 2>conftest.er1
     3775  ac_status=$?
     3776  grep -v '^ *+' conftest.er1 >conftest.err
     3777  rm -f conftest.er1
     3778  cat conftest.err >&5
     3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3780  (exit $ac_status); } &&
     3781     { ac_try='test -z "$ac_c_werror_flag"
     3782             || test ! -s conftest.err'
     3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3784  (eval $ac_try) 2>&5
     3785  ac_status=$?
     3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3787  (exit $ac_status); }; } &&
     3788     { ac_try='test -s conftest.$ac_objext'
     3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3790  (eval $ac_try) 2>&5
     3791  ac_status=$?
     3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3793  (exit $ac_status); }; }; then
    12733794  ac_cv_prog_cc_stdc="$ac_arg"; break
    12743795else
    1275   echo "configure: failed program was:" >&5
    1276   cat conftest.$ac_ext >&5
    1277 fi
    1278 rm -f conftest*
     3796  echo "$as_me: failed program was:" >&5
     3797sed 's/^/| /' conftest.$ac_ext >&5
     3798
     3799fi
     3800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    12793801done
    12803802CFLAGS="$ac_save_CFLAGS"
     
    12823804fi
    12833805
    1284 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
     3806echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     3807echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    12853808case "x$ac_cv_prog_cc_stdc" in
    12863809  x|xno) ;;
     
    12893812
    12903813
    1291 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for function prototypes" >&5
     3814echo "$as_me:$LINENO: checking for function prototypes" >&5
     3815echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
    12933816if test "$ac_cv_prog_cc_stdc" != no; then
    1294   echo "$ac_t""yes" 1>&6
    1295   cat >> confdefs.h <<\EOF
     3817  echo "$as_me:$LINENO: result: yes" >&5
     3818echo "${ECHO_T}yes" >&6
     3819  cat >>confdefs.h <<\_ACEOF
    12963820#define PROTOTYPES 1
    1297 EOF
     3821_ACEOF
    12983822
    12993823  U= ANSI2KNR=
    13003824else
    1301   echo "$ac_t""no" 1>&6
     3825  echo "$as_me:$LINENO: result: no" >&5
     3826echo "${ECHO_T}no" >&6
    13023827  U=_ ANSI2KNR=ansi2knr
    13033828fi
    13043829
    1305 echo $ac_n "checking for working const""... $ac_c" 1>&6
    1306 echo "configure:1307: checking for working const" >&5
    1307 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    1308   echo $ac_n "(cached) $ac_c" 1>&6
    1309 else
    1310   cat > conftest.$ac_ext <<EOF
    1311 #line 1312 "configure"
    1312 #include "confdefs.h"
    1313 
    1314 int main() {
    1315 
    1316 /* Ultrix mips cc rejects this.  */
    1317 typedef int charset[2]; const charset x;
    1318 /* SunOS 4.1.1 cc rejects this.  */
    1319 char const *const *ccp;
    1320 char **p;
    1321 /* NEC SVR4.0.2 mips cc rejects this.  */
    1322 struct point {int x, y;};
    1323 static struct point const zero = {0,0};
    1324 /* AIX XL C 1.02.0.0 rejects this.
    1325    It does not let you subtract one const X* pointer from another in an arm
    1326    of an if-expression whose if-part is not a constant expression */
    1327 const char *g = "string";
    1328 ccp = &g + (g ? g-g : 0);
    1329 /* HPUX 7.0 cc rejects these. */
    1330 ++ccp;
    1331 p = (char**) ccp;
    1332 ccp = (char const *const *) p;
    1333 { /* SCO 3.2v4 cc rejects this.  */
    1334   char *t;
    1335   char const *s = 0 ? (char *) 0 : (char const *) 0;
    1336 
    1337   *t++ = 0;
     3830echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     3831echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     3832if test "${ac_cv_c_const+set}" = set; then
     3833  echo $ECHO_N "(cached) $ECHO_C" >&6
     3834else
     3835  cat >conftest.$ac_ext <<_ACEOF
     3836/* confdefs.h.  */
     3837_ACEOF
     3838cat confdefs.h >>conftest.$ac_ext
     3839cat >>conftest.$ac_ext <<_ACEOF
     3840/* end confdefs.h.  */
     3841
     3842int
     3843main ()
     3844{
     3845/* FIXME: Include the comments suggested by Paul. */
     3846#ifndef __cplusplus
     3847  /* Ultrix mips cc rejects this.  */
     3848  typedef int charset[2];
     3849  const charset x;
     3850  /* SunOS 4.1.1 cc rejects this.  */
     3851  char const *const *ccp;
     3852  char **p;
     3853  /* NEC SVR4.0.2 mips cc rejects this.  */
     3854  struct point {int x, y;};
     3855  static struct point const zero = {0,0};
     3856  /* AIX XL C 1.02.0.0 rejects this.
     3857     It does not let you subtract one const X* pointer from another in
     3858     an arm of an if-expression whose if-part is not a constant
     3859     expression */
     3860  const char *g = "string";
     3861  ccp = &g + (g ? g-g : 0);
     3862  /* HPUX 7.0 cc rejects these. */
     3863  ++ccp;
     3864  p = (char**) ccp;
     3865  ccp = (char const *const *) p;
     3866  { /* SCO 3.2v4 cc rejects this.  */
     3867    char *t;
     3868    char const *s = 0 ? (char *) 0 : (char const *) 0;
     3869
     3870    *t++ = 0;
     3871  }
     3872  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     3873    int x[] = {25, 17};
     3874    const int *foo = &x[0];
     3875    ++foo;
     3876  }
     3877  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     3878    typedef const int *iptr;
     3879    iptr p = 0;
     3880    ++p;
     3881  }
     3882  { /* AIX XL C 1.02.0.0 rejects this saying
     3883       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     3884    struct s { int j; const int *ap[3]; };
     3885    struct s *b; b->j = 5;
     3886  }
     3887  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     3888    const int foo = 10;
     3889  }
     3890#endif
     3891
     3892  ;
     3893  return 0;
    13383894}
    1339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    1340   int x[] = {25, 17};
    1341   const int *foo = &x[0];
    1342   ++foo;
     3895_ACEOF
     3896rm -f conftest.$ac_objext
     3897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3898  (eval $ac_compile) 2>conftest.er1
     3899  ac_status=$?
     3900  grep -v '^ *+' conftest.er1 >conftest.err
     3901  rm -f conftest.er1
     3902  cat conftest.err >&5
     3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3904  (exit $ac_status); } &&
     3905     { ac_try='test -z "$ac_c_werror_flag"
     3906             || test ! -s conftest.err'
     3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3908  (eval $ac_try) 2>&5
     3909  ac_status=$?
     3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3911  (exit $ac_status); }; } &&
     3912     { ac_try='test -s conftest.$ac_objext'
     3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3914  (eval $ac_try) 2>&5
     3915  ac_status=$?
     3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3917  (exit $ac_status); }; }; then
     3918  ac_cv_c_const=yes
     3919else
     3920  echo "$as_me: failed program was:" >&5
     3921sed 's/^/| /' conftest.$ac_ext >&5
     3922
     3923ac_cv_c_const=no
     3924fi
     3925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3926fi
     3927echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     3928echo "${ECHO_T}$ac_cv_c_const" >&6
     3929if test $ac_cv_c_const = no; then
     3930
     3931cat >>confdefs.h <<\_ACEOF
     3932#define const
     3933_ACEOF
     3934
     3935fi
     3936
     3937echo "$as_me:$LINENO: checking for off_t" >&5
     3938echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     3939if test "${ac_cv_type_off_t+set}" = set; then
     3940  echo $ECHO_N "(cached) $ECHO_C" >&6
     3941else
     3942  cat >conftest.$ac_ext <<_ACEOF
     3943/* confdefs.h.  */
     3944_ACEOF
     3945cat confdefs.h >>conftest.$ac_ext
     3946cat >>conftest.$ac_ext <<_ACEOF
     3947/* end confdefs.h.  */
     3948$ac_includes_default
     3949int
     3950main ()
     3951{
     3952if ((off_t *) 0)
     3953  return 0;
     3954if (sizeof (off_t))
     3955  return 0;
     3956  ;
     3957  return 0;
    13433958}
    1344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    1345   typedef const int *iptr;
    1346   iptr p = 0;
    1347   ++p;
     3959_ACEOF
     3960rm -f conftest.$ac_objext
     3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3962  (eval $ac_compile) 2>conftest.er1
     3963  ac_status=$?
     3964  grep -v '^ *+' conftest.er1 >conftest.err
     3965  rm -f conftest.er1
     3966  cat conftest.err >&5
     3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3968  (exit $ac_status); } &&
     3969     { ac_try='test -z "$ac_c_werror_flag"
     3970             || test ! -s conftest.err'
     3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3972  (eval $ac_try) 2>&5
     3973  ac_status=$?
     3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3975  (exit $ac_status); }; } &&
     3976     { ac_try='test -s conftest.$ac_objext'
     3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3978  (eval $ac_try) 2>&5
     3979  ac_status=$?
     3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3981  (exit $ac_status); }; }; then
     3982  ac_cv_type_off_t=yes
     3983else
     3984  echo "$as_me: failed program was:" >&5
     3985sed 's/^/| /' conftest.$ac_ext >&5
     3986
     3987ac_cv_type_off_t=no
     3988fi
     3989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3990fi
     3991echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
     3992echo "${ECHO_T}$ac_cv_type_off_t" >&6
     3993if test $ac_cv_type_off_t = yes; then
     3994  :
     3995else
     3996
     3997cat >>confdefs.h <<_ACEOF
     3998#define off_t long
     3999_ACEOF
     4000
     4001fi
     4002
     4003echo "$as_me:$LINENO: checking for size_t" >&5
     4004echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     4005if test "${ac_cv_type_size_t+set}" = set; then
     4006  echo $ECHO_N "(cached) $ECHO_C" >&6
     4007else
     4008  cat >conftest.$ac_ext <<_ACEOF
     4009/* confdefs.h.  */
     4010_ACEOF
     4011cat confdefs.h >>conftest.$ac_ext
     4012cat >>conftest.$ac_ext <<_ACEOF
     4013/* end confdefs.h.  */
     4014$ac_includes_default
     4015int
     4016main ()
     4017{
     4018if ((size_t *) 0)
     4019  return 0;
     4020if (sizeof (size_t))
     4021  return 0;
     4022  ;
     4023  return 0;
    13484024}
    1349 { /* AIX XL C 1.02.0.0 rejects this saying
    1350      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    1351   struct s { int j; const int *ap[3]; };
    1352   struct s *b; b->j = 5;
     4025_ACEOF
     4026rm -f conftest.$ac_objext
     4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4028  (eval $ac_compile) 2>conftest.er1
     4029  ac_status=$?
     4030  grep -v '^ *+' conftest.er1 >conftest.err
     4031  rm -f conftest.er1
     4032  cat conftest.err >&5
     4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4034  (exit $ac_status); } &&
     4035     { ac_try='test -z "$ac_c_werror_flag"
     4036             || test ! -s conftest.err'
     4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4038  (eval $ac_try) 2>&5
     4039  ac_status=$?
     4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4041  (exit $ac_status); }; } &&
     4042     { ac_try='test -s conftest.$ac_objext'
     4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4044  (eval $ac_try) 2>&5
     4045  ac_status=$?
     4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4047  (exit $ac_status); }; }; then
     4048  ac_cv_type_size_t=yes
     4049else
     4050  echo "$as_me: failed program was:" >&5
     4051sed 's/^/| /' conftest.$ac_ext >&5
     4052
     4053ac_cv_type_size_t=no
     4054fi
     4055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4056fi
     4057echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     4058echo "${ECHO_T}$ac_cv_type_size_t" >&6
     4059if test $ac_cv_type_size_t = yes; then
     4060  :
     4061else
     4062
     4063cat >>confdefs.h <<_ACEOF
     4064#define size_t unsigned
     4065_ACEOF
     4066
     4067fi
     4068
     4069echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     4070echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     4071if test "${ac_cv_header_time+set}" = set; then
     4072  echo $ECHO_N "(cached) $ECHO_C" >&6
     4073else
     4074  cat >conftest.$ac_ext <<_ACEOF
     4075/* confdefs.h.  */
     4076_ACEOF
     4077cat confdefs.h >>conftest.$ac_ext
     4078cat >>conftest.$ac_ext <<_ACEOF
     4079/* end confdefs.h.  */
     4080#include <sys/types.h>
     4081#include <sys/time.h>
     4082#include <time.h>
     4083
     4084int
     4085main ()
     4086{
     4087if ((struct tm *) 0)
     4088return 0;
     4089  ;
     4090  return 0;
    13534091}
    1354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    1355   const int foo = 10;
     4092_ACEOF
     4093rm -f conftest.$ac_objext
     4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4095  (eval $ac_compile) 2>conftest.er1
     4096  ac_status=$?
     4097  grep -v '^ *+' conftest.er1 >conftest.err
     4098  rm -f conftest.er1
     4099  cat conftest.err >&5
     4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4101  (exit $ac_status); } &&
     4102     { ac_try='test -z "$ac_c_werror_flag"
     4103             || test ! -s conftest.err'
     4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4105  (eval $ac_try) 2>&5
     4106  ac_status=$?
     4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4108  (exit $ac_status); }; } &&
     4109     { ac_try='test -s conftest.$ac_objext'
     4110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4111  (eval $ac_try) 2>&5
     4112  ac_status=$?
     4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4114  (exit $ac_status); }; }; then
     4115  ac_cv_header_time=yes
     4116else
     4117  echo "$as_me: failed program was:" >&5
     4118sed 's/^/| /' conftest.$ac_ext >&5
     4119
     4120ac_cv_header_time=no
     4121fi
     4122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4123fi
     4124echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     4125echo "${ECHO_T}$ac_cv_header_time" >&6
     4126if test $ac_cv_header_time = yes; then
     4127
     4128cat >>confdefs.h <<\_ACEOF
     4129#define TIME_WITH_SYS_TIME 1
     4130_ACEOF
     4131
     4132fi
     4133
     4134echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
     4135echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
     4136if test "${ac_cv_struct_tm+set}" = set; then
     4137  echo $ECHO_N "(cached) $ECHO_C" >&6
     4138else
     4139  cat >conftest.$ac_ext <<_ACEOF
     4140/* confdefs.h.  */
     4141_ACEOF
     4142cat confdefs.h >>conftest.$ac_ext
     4143cat >>conftest.$ac_ext <<_ACEOF
     4144/* end confdefs.h.  */
     4145#include <sys/types.h>
     4146#include <time.h>
     4147
     4148int
     4149main ()
     4150{
     4151struct tm *tp; tp->tm_sec;
     4152  ;
     4153  return 0;
    13564154}
    1357 
    1358 ; return 0; }
    1359 EOF
    1360 if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1361   rm -rf conftest*
    1362   ac_cv_c_const=yes
    1363 else
    1364   echo "configure: failed program was:" >&5
    1365   cat conftest.$ac_ext >&5
    1366   rm -rf conftest*
    1367   ac_cv_c_const=no
    1368 fi
    1369 rm -f conftest*
    1370 fi
    1371 
    1372 echo "$ac_t""$ac_cv_c_const" 1>&6
    1373 if test $ac_cv_c_const = no; then
    1374   cat >> confdefs.h <<\EOF
    1375 #define const
    1376 EOF
    1377 
    1378 fi
    1379 
    1380 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1381 echo "configure:1382: checking for ANSI C header files" >&5
    1382 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1383   echo $ac_n "(cached) $ac_c" 1>&6
    1384 else
    1385   cat > conftest.$ac_ext <<EOF
    1386 #line 1387 "configure"
    1387 #include "confdefs.h"
     4155_ACEOF
     4156rm -f conftest.$ac_objext
     4157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4158  (eval $ac_compile) 2>conftest.er1
     4159  ac_status=$?
     4160  grep -v '^ *+' conftest.er1 >conftest.err
     4161  rm -f conftest.er1
     4162  cat conftest.err >&5
     4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4164  (exit $ac_status); } &&
     4165     { ac_try='test -z "$ac_c_werror_flag"
     4166             || test ! -s conftest.err'
     4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4168  (eval $ac_try) 2>&5
     4169  ac_status=$?
     4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4171  (exit $ac_status); }; } &&
     4172     { ac_try='test -s conftest.$ac_objext'
     4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4174  (eval $ac_try) 2>&5
     4175  ac_status=$?
     4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4177  (exit $ac_status); }; }; then
     4178  ac_cv_struct_tm=time.h
     4179else
     4180  echo "$as_me: failed program was:" >&5
     4181sed 's/^/| /' conftest.$ac_ext >&5
     4182
     4183ac_cv_struct_tm=sys/time.h
     4184fi
     4185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4186fi
     4187echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
     4188echo "${ECHO_T}$ac_cv_struct_tm" >&6
     4189if test $ac_cv_struct_tm = sys/time.h; then
     4190
     4191cat >>confdefs.h <<\_ACEOF
     4192#define TM_IN_SYS_TIME 1
     4193_ACEOF
     4194
     4195fi
     4196
     4197
     4198if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
     4199cat >conftest.$ac_ext <<_ACEOF
     4200/* confdefs.h.  */
     4201_ACEOF
     4202cat confdefs.h >>conftest.$ac_ext
     4203cat >>conftest.$ac_ext <<_ACEOF
     4204/* end confdefs.h.  */
     4205#include <stdio.h>
     4206
     4207int
     4208main ()
     4209{
     4210 FILE *rubbish = popen("yes", "r");
     4211  ;
     4212  return 0;
     4213}
     4214_ACEOF
     4215rm -f conftest.$ac_objext
     4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4217  (eval $ac_compile) 2>conftest.er1
     4218  ac_status=$?
     4219  grep -v '^ *+' conftest.er1 >conftest.err
     4220  rm -f conftest.er1
     4221  cat conftest.err >&5
     4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4223  (exit $ac_status); } &&
     4224     { ac_try='test -z "$ac_c_werror_flag"
     4225             || test ! -s conftest.err'
     4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4227  (eval $ac_try) 2>&5
     4228  ac_status=$?
     4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4230  (exit $ac_status); }; } &&
     4231     { ac_try='test -s conftest.$ac_objext'
     4232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4233  (eval $ac_try) 2>&5
     4234  ac_status=$?
     4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4236  (exit $ac_status); }; }; then
     4237  :
     4238else
     4239  echo "$as_me: failed program was:" >&5
     4240sed 's/^/| /' conftest.$ac_ext >&5
     4241
     4242CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     4243fi
     4244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4245fi
     4246
     4247
     4248
     4249echo "$as_me:$LINENO: checking for main in -lm" >&5
     4250echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     4251if test "${ac_cv_lib_m_main+set}" = set; then
     4252  echo $ECHO_N "(cached) $ECHO_C" >&6
     4253else
     4254  ac_check_lib_save_LIBS=$LIBS
     4255LIBS="-lm  $LIBS"
     4256cat >conftest.$ac_ext <<_ACEOF
     4257/* confdefs.h.  */
     4258_ACEOF
     4259cat confdefs.h >>conftest.$ac_ext
     4260cat >>conftest.$ac_ext <<_ACEOF
     4261/* end confdefs.h.  */
     4262
     4263
     4264int
     4265main ()
     4266{
     4267main ();
     4268  ;
     4269  return 0;
     4270}
     4271_ACEOF
     4272rm -f conftest.$ac_objext conftest$ac_exeext
     4273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4274  (eval $ac_link) 2>conftest.er1
     4275  ac_status=$?
     4276  grep -v '^ *+' conftest.er1 >conftest.err
     4277  rm -f conftest.er1
     4278  cat conftest.err >&5
     4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4280  (exit $ac_status); } &&
     4281     { ac_try='test -z "$ac_c_werror_flag"
     4282             || test ! -s conftest.err'
     4283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4284  (eval $ac_try) 2>&5
     4285  ac_status=$?
     4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4287  (exit $ac_status); }; } &&
     4288     { ac_try='test -s conftest$ac_exeext'
     4289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4290  (eval $ac_try) 2>&5
     4291  ac_status=$?
     4292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4293  (exit $ac_status); }; }; then
     4294  ac_cv_lib_m_main=yes
     4295else
     4296  echo "$as_me: failed program was:" >&5
     4297sed 's/^/| /' conftest.$ac_ext >&5
     4298
     4299ac_cv_lib_m_main=no
     4300fi
     4301rm -f conftest.err conftest.$ac_objext \
     4302      conftest$ac_exeext conftest.$ac_ext
     4303LIBS=$ac_check_lib_save_LIBS
     4304fi
     4305echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     4306echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     4307if test $ac_cv_lib_m_main = yes; then
     4308  cat >>confdefs.h <<_ACEOF
     4309#define HAVE_LIBM 1
     4310_ACEOF
     4311
     4312  LIBS="-lm $LIBS"
     4313
     4314fi
     4315
     4316
     4317
     4318
     4319
     4320
     4321
     4322ac_header_dirent=no
     4323for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     4324  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     4325echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
     4326echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     4327if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4328  echo $ECHO_N "(cached) $ECHO_C" >&6
     4329else
     4330  cat >conftest.$ac_ext <<_ACEOF
     4331/* confdefs.h.  */
     4332_ACEOF
     4333cat confdefs.h >>conftest.$ac_ext
     4334cat >>conftest.$ac_ext <<_ACEOF
     4335/* end confdefs.h.  */
     4336#include <sys/types.h>
     4337#include <$ac_hdr>
     4338
     4339int
     4340main ()
     4341{
     4342if ((DIR *) 0)
     4343return 0;
     4344  ;
     4345  return 0;
     4346}
     4347_ACEOF
     4348rm -f conftest.$ac_objext
     4349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4350  (eval $ac_compile) 2>conftest.er1
     4351  ac_status=$?
     4352  grep -v '^ *+' conftest.er1 >conftest.err
     4353  rm -f conftest.er1
     4354  cat conftest.err >&5
     4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4356  (exit $ac_status); } &&
     4357     { ac_try='test -z "$ac_c_werror_flag"
     4358             || test ! -s conftest.err'
     4359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4360  (eval $ac_try) 2>&5
     4361  ac_status=$?
     4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4363  (exit $ac_status); }; } &&
     4364     { ac_try='test -s conftest.$ac_objext'
     4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4366  (eval $ac_try) 2>&5
     4367  ac_status=$?
     4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4369  (exit $ac_status); }; }; then
     4370  eval "$as_ac_Header=yes"
     4371else
     4372  echo "$as_me: failed program was:" >&5
     4373sed 's/^/| /' conftest.$ac_ext >&5
     4374
     4375eval "$as_ac_Header=no"
     4376fi
     4377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4378fi
     4379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4381if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4382  cat >>confdefs.h <<_ACEOF
     4383#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     4384_ACEOF
     4385
     4386ac_header_dirent=$ac_hdr; break
     4387fi
     4388
     4389done
     4390# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     4391if test $ac_header_dirent = dirent.h; then
     4392  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4393echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4394if test "${ac_cv_search_opendir+set}" = set; then
     4395  echo $ECHO_N "(cached) $ECHO_C" >&6
     4396else
     4397  ac_func_search_save_LIBS=$LIBS
     4398ac_cv_search_opendir=no
     4399cat >conftest.$ac_ext <<_ACEOF
     4400/* confdefs.h.  */
     4401_ACEOF
     4402cat confdefs.h >>conftest.$ac_ext
     4403cat >>conftest.$ac_ext <<_ACEOF
     4404/* end confdefs.h.  */
     4405
     4406/* Override any gcc2 internal prototype to avoid an error.  */
     4407#ifdef __cplusplus
     4408extern "C"
     4409#endif
     4410/* We use char because int might match the return type of a gcc2
     4411   builtin and then its argument prototype would still apply.  */
     4412char opendir ();
     4413int
     4414main ()
     4415{
     4416opendir ();
     4417  ;
     4418  return 0;
     4419}
     4420_ACEOF
     4421rm -f conftest.$ac_objext conftest$ac_exeext
     4422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4423  (eval $ac_link) 2>conftest.er1
     4424  ac_status=$?
     4425  grep -v '^ *+' conftest.er1 >conftest.err
     4426  rm -f conftest.er1
     4427  cat conftest.err >&5
     4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4429  (exit $ac_status); } &&
     4430     { ac_try='test -z "$ac_c_werror_flag"
     4431             || test ! -s conftest.err'
     4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4433  (eval $ac_try) 2>&5
     4434  ac_status=$?
     4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4436  (exit $ac_status); }; } &&
     4437     { ac_try='test -s conftest$ac_exeext'
     4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4439  (eval $ac_try) 2>&5
     4440  ac_status=$?
     4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4442  (exit $ac_status); }; }; then
     4443  ac_cv_search_opendir="none required"
     4444else
     4445  echo "$as_me: failed program was:" >&5
     4446sed 's/^/| /' conftest.$ac_ext >&5
     4447
     4448fi
     4449rm -f conftest.err conftest.$ac_objext \
     4450      conftest$ac_exeext conftest.$ac_ext
     4451if test "$ac_cv_search_opendir" = no; then
     4452  for ac_lib in dir; do
     4453    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4454    cat >conftest.$ac_ext <<_ACEOF
     4455/* confdefs.h.  */
     4456_ACEOF
     4457cat confdefs.h >>conftest.$ac_ext
     4458cat >>conftest.$ac_ext <<_ACEOF
     4459/* end confdefs.h.  */
     4460
     4461/* Override any gcc2 internal prototype to avoid an error.  */
     4462#ifdef __cplusplus
     4463extern "C"
     4464#endif
     4465/* We use char because int might match the return type of a gcc2
     4466   builtin and then its argument prototype would still apply.  */
     4467char opendir ();
     4468int
     4469main ()
     4470{
     4471opendir ();
     4472  ;
     4473  return 0;
     4474}
     4475_ACEOF
     4476rm -f conftest.$ac_objext conftest$ac_exeext
     4477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4478  (eval $ac_link) 2>conftest.er1
     4479  ac_status=$?
     4480  grep -v '^ *+' conftest.er1 >conftest.err
     4481  rm -f conftest.er1
     4482  cat conftest.err >&5
     4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4484  (exit $ac_status); } &&
     4485     { ac_try='test -z "$ac_c_werror_flag"
     4486             || test ! -s conftest.err'
     4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4488  (eval $ac_try) 2>&5
     4489  ac_status=$?
     4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4491  (exit $ac_status); }; } &&
     4492     { ac_try='test -s conftest$ac_exeext'
     4493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4494  (eval $ac_try) 2>&5
     4495  ac_status=$?
     4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4497  (exit $ac_status); }; }; then
     4498  ac_cv_search_opendir="-l$ac_lib"
     4499break
     4500else
     4501  echo "$as_me: failed program was:" >&5
     4502sed 's/^/| /' conftest.$ac_ext >&5
     4503
     4504fi
     4505rm -f conftest.err conftest.$ac_objext \
     4506      conftest$ac_exeext conftest.$ac_ext
     4507  done
     4508fi
     4509LIBS=$ac_func_search_save_LIBS
     4510fi
     4511echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4512echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4513if test "$ac_cv_search_opendir" != no; then
     4514  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4515
     4516fi
     4517
     4518else
     4519  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     4520echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     4521if test "${ac_cv_search_opendir+set}" = set; then
     4522  echo $ECHO_N "(cached) $ECHO_C" >&6
     4523else
     4524  ac_func_search_save_LIBS=$LIBS
     4525ac_cv_search_opendir=no
     4526cat >conftest.$ac_ext <<_ACEOF
     4527/* confdefs.h.  */
     4528_ACEOF
     4529cat confdefs.h >>conftest.$ac_ext
     4530cat >>conftest.$ac_ext <<_ACEOF
     4531/* end confdefs.h.  */
     4532
     4533/* Override any gcc2 internal prototype to avoid an error.  */
     4534#ifdef __cplusplus
     4535extern "C"
     4536#endif
     4537/* We use char because int might match the return type of a gcc2
     4538   builtin and then its argument prototype would still apply.  */
     4539char opendir ();
     4540int
     4541main ()
     4542{
     4543opendir ();
     4544  ;
     4545  return 0;
     4546}
     4547_ACEOF
     4548rm -f conftest.$ac_objext conftest$ac_exeext
     4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4550  (eval $ac_link) 2>conftest.er1
     4551  ac_status=$?
     4552  grep -v '^ *+' conftest.er1 >conftest.err
     4553  rm -f conftest.er1
     4554  cat conftest.err >&5
     4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4556  (exit $ac_status); } &&
     4557     { ac_try='test -z "$ac_c_werror_flag"
     4558             || test ! -s conftest.err'
     4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4560  (eval $ac_try) 2>&5
     4561  ac_status=$?
     4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4563  (exit $ac_status); }; } &&
     4564     { ac_try='test -s conftest$ac_exeext'
     4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4566  (eval $ac_try) 2>&5
     4567  ac_status=$?
     4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4569  (exit $ac_status); }; }; then
     4570  ac_cv_search_opendir="none required"
     4571else
     4572  echo "$as_me: failed program was:" >&5
     4573sed 's/^/| /' conftest.$ac_ext >&5
     4574
     4575fi
     4576rm -f conftest.err conftest.$ac_objext \
     4577      conftest$ac_exeext conftest.$ac_ext
     4578if test "$ac_cv_search_opendir" = no; then
     4579  for ac_lib in x; do
     4580    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4581    cat >conftest.$ac_ext <<_ACEOF
     4582/* confdefs.h.  */
     4583_ACEOF
     4584cat confdefs.h >>conftest.$ac_ext
     4585cat >>conftest.$ac_ext <<_ACEOF
     4586/* end confdefs.h.  */
     4587
     4588/* Override any gcc2 internal prototype to avoid an error.  */
     4589#ifdef __cplusplus
     4590extern "C"
     4591#endif
     4592/* We use char because int might match the return type of a gcc2
     4593   builtin and then its argument prototype would still apply.  */
     4594char opendir ();
     4595int
     4596main ()
     4597{
     4598opendir ();
     4599  ;
     4600  return 0;
     4601}
     4602_ACEOF
     4603rm -f conftest.$ac_objext conftest$ac_exeext
     4604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4605  (eval $ac_link) 2>conftest.er1
     4606  ac_status=$?
     4607  grep -v '^ *+' conftest.er1 >conftest.err
     4608  rm -f conftest.er1
     4609  cat conftest.err >&5
     4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4611  (exit $ac_status); } &&
     4612     { ac_try='test -z "$ac_c_werror_flag"
     4613             || test ! -s conftest.err'
     4614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4615  (eval $ac_try) 2>&5
     4616  ac_status=$?
     4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4618  (exit $ac_status); }; } &&
     4619     { ac_try='test -s conftest$ac_exeext'
     4620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4621  (eval $ac_try) 2>&5
     4622  ac_status=$?
     4623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4624  (exit $ac_status); }; }; then
     4625  ac_cv_search_opendir="-l$ac_lib"
     4626break
     4627else
     4628  echo "$as_me: failed program was:" >&5
     4629sed 's/^/| /' conftest.$ac_ext >&5
     4630
     4631fi
     4632rm -f conftest.err conftest.$ac_objext \
     4633      conftest$ac_exeext conftest.$ac_ext
     4634  done
     4635fi
     4636LIBS=$ac_func_search_save_LIBS
     4637fi
     4638echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4639echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4640if test "$ac_cv_search_opendir" != no; then
     4641  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4642
     4643fi
     4644
     4645fi
     4646
     4647echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4648echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4649if test "${ac_cv_header_stdc+set}" = set; then
     4650  echo $ECHO_N "(cached) $ECHO_C" >&6
     4651else
     4652  cat >conftest.$ac_ext <<_ACEOF
     4653/* confdefs.h.  */
     4654_ACEOF
     4655cat confdefs.h >>conftest.$ac_ext
     4656cat >>conftest.$ac_ext <<_ACEOF
     4657/* end confdefs.h.  */
    13884658#include <stdlib.h>
    13894659#include <stdarg.h>
    13904660#include <string.h>
    13914661#include <float.h>
    1392 EOF
    1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1395 ac_err=`grep -v '^ *+' conftest.out`
    1396 if test -z "$ac_err"; then
    1397   rm -rf conftest*
     4662
     4663int
     4664main ()
     4665{
     4666
     4667  ;
     4668  return 0;
     4669}
     4670_ACEOF
     4671rm -f conftest.$ac_objext
     4672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4673  (eval $ac_compile) 2>conftest.er1
     4674  ac_status=$?
     4675  grep -v '^ *+' conftest.er1 >conftest.err
     4676  rm -f conftest.er1
     4677  cat conftest.err >&5
     4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4679  (exit $ac_status); } &&
     4680     { ac_try='test -z "$ac_c_werror_flag"
     4681             || test ! -s conftest.err'
     4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4683  (eval $ac_try) 2>&5
     4684  ac_status=$?
     4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4686  (exit $ac_status); }; } &&
     4687     { ac_try='test -s conftest.$ac_objext'
     4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4689  (eval $ac_try) 2>&5
     4690  ac_status=$?
     4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4692  (exit $ac_status); }; }; then
    13984693  ac_cv_header_stdc=yes
    13994694else
    1400   echo "$ac_err" >&5
    1401   echo "configure: failed program was:" >&5
    1402   cat conftest.$ac_ext >&5
    1403   rm -rf conftest*
    1404   ac_cv_header_stdc=no
    1405 fi
    1406 rm -f conftest*
     4695  echo "$as_me: failed program was:" >&5
     4696sed 's/^/| /' conftest.$ac_ext >&5
     4697
     4698ac_cv_header_stdc=no
     4699fi
     4700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    14074701
    14084702if test $ac_cv_header_stdc = yes; then
    14094703  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1410 cat > conftest.$ac_ext <<EOF
    1411 #line 1412 "configure"
    1412 #include "confdefs.h"
     4704  cat >conftest.$ac_ext <<_ACEOF
     4705/* confdefs.h.  */
     4706_ACEOF
     4707cat confdefs.h >>conftest.$ac_ext
     4708cat >>conftest.$ac_ext <<_ACEOF
     4709/* end confdefs.h.  */
    14134710#include <string.h>
    1414 EOF
     4711
     4712_ACEOF
    14154713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1416   egrep "memchr" >/dev/null 2>&1; then
     4714  $EGREP "memchr" >/dev/null 2>&1; then
    14174715  :
    14184716else
    1419   rm -rf conftest*
    14204717  ac_cv_header_stdc=no
    14214718fi
     
    14264723if test $ac_cv_header_stdc = yes; then
    14274724  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1428 cat > conftest.$ac_ext <<EOF
    1429 #line 1430 "configure"
    1430 #include "confdefs.h"
     4725  cat >conftest.$ac_ext <<_ACEOF
     4726/* confdefs.h.  */
     4727_ACEOF
     4728cat confdefs.h >>conftest.$ac_ext
     4729cat >>conftest.$ac_ext <<_ACEOF
     4730/* end confdefs.h.  */
    14314731#include <stdlib.h>
    1432 EOF
     4732
     4733_ACEOF
    14334734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1434   egrep "free" >/dev/null 2>&1; then
     4735  $EGREP "free" >/dev/null 2>&1; then
    14354736  :
    14364737else
    1437   rm -rf conftest*
    14384738  ac_cv_header_stdc=no
    14394739fi
     
    14444744if test $ac_cv_header_stdc = yes; then
    14454745  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1446 if test "$cross_compiling" = yes; then
     4746  if test "$cross_compiling" = yes; then
    14474747  :
    14484748else
    1449   cat > conftest.$ac_ext <<EOF
    1450 #line 1451 "configure"
    1451 #include "confdefs.h"
     4749  cat >conftest.$ac_ext <<_ACEOF
     4750/* confdefs.h.  */
     4751_ACEOF
     4752cat confdefs.h >>conftest.$ac_ext
     4753cat >>conftest.$ac_ext <<_ACEOF
     4754/* end confdefs.h.  */
    14524755#include <ctype.h>
    1453 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1454 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4756#if ((' ' & 0x0FF) == 0x020)
     4757# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4758# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4759#else
     4760# define ISLOWER(c) \
     4761           (('a' <= (c) && (c) <= 'i') \
     4762             || ('j' <= (c) && (c) <= 'r') \
     4763             || ('s' <= (c) && (c) <= 'z'))
     4764# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4765#endif
     4766
    14554767#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1456 int main () { int i; for (i = 0; i < 256; i++)
    1457 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1458 exit (0); }
    1459 
    1460 EOF
    1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1462 then
     4768int
     4769main ()
     4770{
     4771  int i;
     4772  for (i = 0; i < 256; i++)
     4773    if (XOR (islower (i), ISLOWER (i))
     4774    || toupper (i) != TOUPPER (i))
     4775      exit(2);
     4776  exit (0);
     4777}
     4778_ACEOF
     4779rm -f conftest$ac_exeext
     4780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4781  (eval $ac_link) 2>&5
     4782  ac_status=$?
     4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4784  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4786  (eval $ac_try) 2>&5
     4787  ac_status=$?
     4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4789  (exit $ac_status); }; }; then
    14634790  :
    14644791else
    1465   echo "configure: failed program was:" >&5
    1466   cat conftest.$ac_ext >&5
    1467   rm -fr conftest*
    1468   ac_cv_header_stdc=no
    1469 fi
    1470 rm -fr conftest*
    1471 fi
    1472 
    1473 fi
    1474 fi
    1475 
    1476 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     4792  echo "$as_me: program exited with status $ac_status" >&5
     4793echo "$as_me: failed program was:" >&5
     4794sed 's/^/| /' conftest.$ac_ext >&5
     4795
     4796( exit $ac_status )
     4797ac_cv_header_stdc=no
     4798fi
     4799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4800fi
     4801fi
     4802fi
     4803echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4804echo "${ECHO_T}$ac_cv_header_stdc" >&6
    14774805if test $ac_cv_header_stdc = yes; then
    1478   cat >> confdefs.h <<\EOF
     4806
     4807cat >>confdefs.h <<\_ACEOF
    14794808#define STDC_HEADERS 1
    1480 EOF
    1481 
    1482 fi
    1483 
    1484 echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1485 echo "configure:1486: checking for off_t" >&5
    1486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    1487   echo $ac_n "(cached) $ac_c" 1>&6
    1488 else
    1489   cat > conftest.$ac_ext <<EOF
    1490 #line 1491 "configure"
    1491 #include "confdefs.h"
    1492 #include <sys/types.h>
    1493 #if STDC_HEADERS
    1494 #include <stdlib.h>
    1495 #include <stddef.h>
    1496 #endif
    1497 EOF
     4809_ACEOF
     4810
     4811fi
     4812
     4813
     4814
     4815
     4816
     4817
     4818
     4819
     4820for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     4821do
     4822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4823if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4824  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4826if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4827  echo $ECHO_N "(cached) $ECHO_C" >&6
     4828fi
     4829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4831else
     4832  # Is the header compilable?
     4833echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4835cat >conftest.$ac_ext <<_ACEOF
     4836/* confdefs.h.  */
     4837_ACEOF
     4838cat confdefs.h >>conftest.$ac_ext
     4839cat >>conftest.$ac_ext <<_ACEOF
     4840/* end confdefs.h.  */
     4841$ac_includes_default
     4842#include <$ac_header>
     4843_ACEOF
     4844rm -f conftest.$ac_objext
     4845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4846  (eval $ac_compile) 2>conftest.er1
     4847  ac_status=$?
     4848  grep -v '^ *+' conftest.er1 >conftest.err
     4849  rm -f conftest.er1
     4850  cat conftest.err >&5
     4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4852  (exit $ac_status); } &&
     4853     { ac_try='test -z "$ac_c_werror_flag"
     4854             || test ! -s conftest.err'
     4855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4856  (eval $ac_try) 2>&5
     4857  ac_status=$?
     4858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4859  (exit $ac_status); }; } &&
     4860     { ac_try='test -s conftest.$ac_objext'
     4861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4862  (eval $ac_try) 2>&5
     4863  ac_status=$?
     4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4865  (exit $ac_status); }; }; then
     4866  ac_header_compiler=yes
     4867else
     4868  echo "$as_me: failed program was:" >&5
     4869sed 's/^/| /' conftest.$ac_ext >&5
     4870
     4871ac_header_compiler=no
     4872fi
     4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4875echo "${ECHO_T}$ac_header_compiler" >&6
     4876
     4877# Is the header present?
     4878echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4880cat >conftest.$ac_ext <<_ACEOF
     4881/* confdefs.h.  */
     4882_ACEOF
     4883cat confdefs.h >>conftest.$ac_ext
     4884cat >>conftest.$ac_ext <<_ACEOF
     4885/* end confdefs.h.  */
     4886#include <$ac_header>
     4887_ACEOF
     4888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4889  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4890  ac_status=$?
     4891  grep -v '^ *+' conftest.er1 >conftest.err
     4892  rm -f conftest.er1
     4893  cat conftest.err >&5
     4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4895  (exit $ac_status); } >/dev/null; then
     4896  if test -s conftest.err; then
     4897    ac_cpp_err=$ac_c_preproc_warn_flag
     4898    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4899  else
     4900    ac_cpp_err=
     4901  fi
     4902else
     4903  ac_cpp_err=yes
     4904fi
     4905if test -z "$ac_cpp_err"; then
     4906  ac_header_preproc=yes
     4907else
     4908  echo "$as_me: failed program was:" >&5
     4909sed 's/^/| /' conftest.$ac_ext >&5
     4910
     4911  ac_header_preproc=no
     4912fi
     4913rm -f conftest.err conftest.$ac_ext
     4914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4915echo "${ECHO_T}$ac_header_preproc" >&6
     4916
     4917# So?  What about this header?
     4918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4919  yes:no: )
     4920    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4922    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4924    ac_header_preproc=yes
     4925    ;;
     4926  no:yes:* )
     4927    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4929    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4930echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4931    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4933    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4934echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4937    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4939    (
     4940      cat <<\_ASBOX
     4941## ------------------------------------------ ##
     4942## Report this to the AC_PACKAGE_NAME lists.  ##
     4943## ------------------------------------------ ##
     4944_ASBOX
     4945    ) |
     4946      sed "s/^/$as_me: WARNING:     /" >&2
     4947    ;;
     4948esac
     4949echo "$as_me:$LINENO: checking for $ac_header" >&5
     4950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4951if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4952  echo $ECHO_N "(cached) $ECHO_C" >&6
     4953else
     4954  eval "$as_ac_Header=\$ac_header_preproc"
     4955fi
     4956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4958
     4959fi
     4960if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4961  cat >>confdefs.h <<_ACEOF
     4962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4963_ACEOF
     4964
     4965fi
     4966
     4967done
     4968
     4969cat >conftest.$ac_ext <<_ACEOF
     4970/* confdefs.h.  */
     4971_ACEOF
     4972cat confdefs.h >>conftest.$ac_ext
     4973cat >>conftest.$ac_ext <<_ACEOF
     4974/* end confdefs.h.  */
     4975#include <stdio.h>
     4976
     4977_ACEOF
    14984978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1499   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1500   rm -rf conftest*
    1501   ac_cv_type_off_t=yes
    1502 else
    1503   rm -rf conftest*
    1504   ac_cv_type_off_t=no
     4979  $EGREP "fread" >/dev/null 2>&1; then
     4980  cat >>confdefs.h <<\_ACEOF
     4981#define HAVE_FREAD_DECL 1
     4982_ACEOF
     4983
    15054984fi
    15064985rm -f conftest*
    15074986
    1508 fi
    1509 echo "$ac_t""$ac_cv_type_off_t" 1>&6
    1510 if test $ac_cv_type_off_t = no; then
    1511   cat >> confdefs.h <<\EOF
    1512 #define off_t long
    1513 EOF
    1514 
    1515 fi
    1516 
    1517 echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1518 echo "configure:1519: checking for size_t" >&5
    1519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    1520   echo $ac_n "(cached) $ac_c" 1>&6
    1521 else
    1522   cat > conftest.$ac_ext <<EOF
    1523 #line 1524 "configure"
    1524 #include "confdefs.h"
    1525 #include <sys/types.h>
    1526 #if STDC_HEADERS
    1527 #include <stdlib.h>
    1528 #include <stddef.h>
    1529 #endif
    1530 EOF
     4987cat >conftest.$ac_ext <<_ACEOF
     4988/* confdefs.h.  */
     4989_ACEOF
     4990cat confdefs.h >>conftest.$ac_ext
     4991cat >>conftest.$ac_ext <<_ACEOF
     4992/* end confdefs.h.  */
     4993#include <stdio.h>
     4994
     4995_ACEOF
    15314996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1532   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    1533   rm -rf conftest*
    1534   ac_cv_type_size_t=yes
    1535 else
    1536   rm -rf conftest*
    1537   ac_cv_type_size_t=no
     4997  $EGREP "fgetc" >/dev/null 2>&1; then
     4998  cat >>confdefs.h <<\_ACEOF
     4999#define HAVE_FGETC_DECL 1
     5000_ACEOF
     5001
    15385002fi
    15395003rm -f conftest*
    15405004
    1541 fi
    1542 echo "$ac_t""$ac_cv_type_size_t" 1>&6
    1543 if test $ac_cv_type_size_t = no; then
    1544   cat >> confdefs.h <<\EOF
    1545 #define size_t unsigned
    1546 EOF
    1547 
    1548 fi
    1549 
    1550 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1551 echo "configure:1552: checking whether time.h and sys/time.h may both be included" >&5
    1552 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    1553   echo $ac_n "(cached) $ac_c" 1>&6
    1554 else
    1555   cat > conftest.$ac_ext <<EOF
    1556 #line 1557 "configure"
    1557 #include "confdefs.h"
    1558 #include <sys/types.h>
    1559 #include <sys/time.h>
    1560 #include <time.h>
    1561 int main() {
    1562 struct tm *tp;
    1563 ; return 0; }
    1564 EOF
    1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1566   rm -rf conftest*
    1567   ac_cv_header_time=yes
    1568 else
    1569   echo "configure: failed program was:" >&5
    1570   cat conftest.$ac_ext >&5
    1571   rm -rf conftest*
    1572   ac_cv_header_time=no
    1573 fi
    1574 rm -f conftest*
    1575 fi
    1576 
    1577 echo "$ac_t""$ac_cv_header_time" 1>&6
    1578 if test $ac_cv_header_time = yes; then
    1579   cat >> confdefs.h <<\EOF
    1580 #define TIME_WITH_SYS_TIME 1
    1581 EOF
    1582 
    1583 fi
    1584 
    1585 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1586 echo "configure:1587: checking whether struct tm is in sys/time.h or time.h" >&5
    1587 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    1588   echo $ac_n "(cached) $ac_c" 1>&6
    1589 else
    1590   cat > conftest.$ac_ext <<EOF
    1591 #line 1592 "configure"
    1592 #include "confdefs.h"
    1593 #include <sys/types.h>
    1594 #include <time.h>
    1595 int main() {
    1596 struct tm *tp; tp->tm_sec;
    1597 ; return 0; }
    1598 EOF
    1599 if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1600   rm -rf conftest*
    1601   ac_cv_struct_tm=time.h
    1602 else
    1603   echo "configure: failed program was:" >&5
    1604   cat conftest.$ac_ext >&5
    1605   rm -rf conftest*
    1606   ac_cv_struct_tm=sys/time.h
    1607 fi
    1608 rm -f conftest*
    1609 fi
    1610 
    1611 echo "$ac_t""$ac_cv_struct_tm" 1>&6
    1612 if test $ac_cv_struct_tm = sys/time.h; then
    1613   cat >> confdefs.h <<\EOF
    1614 #define TM_IN_SYS_TIME 1
    1615 EOF
    1616 
    1617 fi
    1618 
    1619 
    1620 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    1621 cat > conftest.$ac_ext <<EOF
    1622 #line 1623 "configure"
    1623 #include "confdefs.h"
    1624 #include <stdio.h>
    1625 
    1626 int main() {
    1627  FILE *rubbish = popen("yes", "r");
    1628 ; return 0; }
    1629 EOF
    1630 if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1631   :
    1632 else
    1633   echo "configure: failed program was:" >&5
    1634   cat conftest.$ac_ext >&5
    1635   rm -rf conftest*
    1636   CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    1637 fi
    1638 rm -f conftest*
    1639 fi
    1640 
    1641 
    1642 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1643 echo "configure:1644: checking for main in -lm" >&5
    1644 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1646   echo $ac_n "(cached) $ac_c" 1>&6
    1647 else
    1648   ac_save_LIBS="$LIBS"
    1649 LIBS="-lm  $LIBS"
    1650 cat > conftest.$ac_ext <<EOF
    1651 #line 1652 "configure"
    1652 #include "confdefs.h"
    1653 
    1654 int main() {
    1655 main()
    1656 ; return 0; }
    1657 EOF
    1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1659   rm -rf conftest*
    1660   eval "ac_cv_lib_$ac_lib_var=yes"
    1661 else
    1662   echo "configure: failed program was:" >&5
    1663   cat conftest.$ac_ext >&5
    1664   rm -rf conftest*
    1665   eval "ac_cv_lib_$ac_lib_var=no"
    1666 fi
    1667 rm -f conftest*
    1668 LIBS="$ac_save_LIBS"
    1669 
    1670 fi
    1671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1672   echo "$ac_t""yes" 1>&6
    1673     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1674     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1675   cat >> confdefs.h <<EOF
    1676 #define $ac_tr_lib 1
    1677 EOF
    1678 
    1679   LIBS="-lm $LIBS"
    1680 
    1681 else
    1682   echo "$ac_t""no" 1>&6
    1683 fi
    1684 
    1685 
    1686 ac_header_dirent=no
    1687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    1688 do
    1689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    1691 echo "configure:1692: checking for $ac_hdr that defines DIR" >&5
    1692 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    1693   echo $ac_n "(cached) $ac_c" 1>&6
    1694 else
    1695   cat > conftest.$ac_ext <<EOF
    1696 #line 1697 "configure"
    1697 #include "confdefs.h"
    1698 #include <sys/types.h>
    1699 #include <$ac_hdr>
    1700 int main() {
    1701 DIR *dirp = 0;
    1702 ; return 0; }
    1703 EOF
    1704 if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1705   rm -rf conftest*
    1706   eval "ac_cv_header_dirent_$ac_safe=yes"
    1707 else
    1708   echo "configure: failed program was:" >&5
    1709   cat conftest.$ac_ext >&5
    1710   rm -rf conftest*
    1711   eval "ac_cv_header_dirent_$ac_safe=no"
    1712 fi
    1713 rm -f conftest*
    1714 fi
    1715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    1716   echo "$ac_t""yes" 1>&6
    1717     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1718   cat >> confdefs.h <<EOF
    1719 #define $ac_tr_hdr 1
    1720 EOF
    1721  ac_header_dirent=$ac_hdr; break
    1722 else
    1723   echo "$ac_t""no" 1>&6
    1724 fi
    1725 done
    1726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    1727 if test $ac_header_dirent = dirent.h; then
    1728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    1729 echo "configure:1730: checking for opendir in -ldir" >&5
    1730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1732   echo $ac_n "(cached) $ac_c" 1>&6
    1733 else
    1734   ac_save_LIBS="$LIBS"
    1735 LIBS="-ldir  $LIBS"
    1736 cat > conftest.$ac_ext <<EOF
    1737 #line 1738 "configure"
    1738 #include "confdefs.h"
    1739 /* Override any gcc2 internal prototype to avoid an error.  */
    1740 /* We use char because int might match the return type of a gcc2
    1741     builtin and then its argument prototype would still apply.  */
    1742 char opendir();
    1743 
    1744 int main() {
    1745 opendir()
    1746 ; return 0; }
    1747 EOF
    1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1749   rm -rf conftest*
    1750   eval "ac_cv_lib_$ac_lib_var=yes"
    1751 else
    1752   echo "configure: failed program was:" >&5
    1753   cat conftest.$ac_ext >&5
    1754   rm -rf conftest*
    1755   eval "ac_cv_lib_$ac_lib_var=no"
    1756 fi
    1757 rm -f conftest*
    1758 LIBS="$ac_save_LIBS"
    1759 
    1760 fi
    1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1762   echo "$ac_t""yes" 1>&6
    1763   LIBS="$LIBS -ldir"
    1764 else
    1765   echo "$ac_t""no" 1>&6
    1766 fi
    1767 
    1768 else
    1769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    1770 echo "configure:1771: checking for opendir in -lx" >&5
    1771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    1772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1773   echo $ac_n "(cached) $ac_c" 1>&6
    1774 else
    1775   ac_save_LIBS="$LIBS"
    1776 LIBS="-lx  $LIBS"
    1777 cat > conftest.$ac_ext <<EOF
    1778 #line 1779 "configure"
    1779 #include "confdefs.h"
    1780 /* Override any gcc2 internal prototype to avoid an error.  */
    1781 /* We use char because int might match the return type of a gcc2
    1782     builtin and then its argument prototype would still apply.  */
    1783 char opendir();
    1784 
    1785 int main() {
    1786 opendir()
    1787 ; return 0; }
    1788 EOF
    1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1790   rm -rf conftest*
    1791   eval "ac_cv_lib_$ac_lib_var=yes"
    1792 else
    1793   echo "configure: failed program was:" >&5
    1794   cat conftest.$ac_ext >&5
    1795   rm -rf conftest*
    1796   eval "ac_cv_lib_$ac_lib_var=no"
    1797 fi
    1798 rm -f conftest*
    1799 LIBS="$ac_save_LIBS"
    1800 
    1801 fi
    1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1803   echo "$ac_t""yes" 1>&6
    1804   LIBS="$LIBS -lx"
    1805 else
    1806   echo "$ac_t""no" 1>&6
    1807 fi
    1808 
    1809 fi
    1810 
    1811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1812 echo "configure:1813: checking for ANSI C header files" >&5
    1813 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1814   echo $ac_n "(cached) $ac_c" 1>&6
    1815 else
    1816   cat > conftest.$ac_ext <<EOF
    1817 #line 1818 "configure"
    1818 #include "confdefs.h"
    1819 #include <stdlib.h>
    1820 #include <stdarg.h>
    1821 #include <string.h>
    1822 #include <float.h>
    1823 EOF
    1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1826 ac_err=`grep -v '^ *+' conftest.out`
    1827 if test -z "$ac_err"; then
    1828   rm -rf conftest*
    1829   ac_cv_header_stdc=yes
    1830 else
    1831   echo "$ac_err" >&5
    1832   echo "configure: failed program was:" >&5
    1833   cat conftest.$ac_ext >&5
    1834   rm -rf conftest*
    1835   ac_cv_header_stdc=no
    1836 fi
    1837 rm -f conftest*
    1838 
    1839 if test $ac_cv_header_stdc = yes; then
    1840   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1841 cat > conftest.$ac_ext <<EOF
    1842 #line 1843 "configure"
    1843 #include "confdefs.h"
    1844 #include <string.h>
    1845 EOF
     5005cat >conftest.$ac_ext <<_ACEOF
     5006/* confdefs.h.  */
     5007_ACEOF
     5008cat confdefs.h >>conftest.$ac_ext
     5009cat >>conftest.$ac_ext <<_ACEOF
     5010/* end confdefs.h.  */
     5011#include <sys/procfs.h>
     5012
     5013_ACEOF
    18465014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1847   egrep "memchr" >/dev/null 2>&1; then
    1848   :
    1849 else
    1850   rm -rf conftest*
    1851   ac_cv_header_stdc=no
    1852 fi
    1853 rm -f conftest*
    1854 
    1855 fi
    1856 
    1857 if test $ac_cv_header_stdc = yes; then
    1858   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1859 cat > conftest.$ac_ext <<EOF
    1860 #line 1861 "configure"
    1861 #include "confdefs.h"
    1862 #include <stdlib.h>
    1863 EOF
    1864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1865   egrep "free" >/dev/null 2>&1; then
    1866   :
    1867 else
    1868   rm -rf conftest*
    1869   ac_cv_header_stdc=no
    1870 fi
    1871 rm -f conftest*
    1872 
    1873 fi
    1874 
    1875 if test $ac_cv_header_stdc = yes; then
    1876   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1877 if test "$cross_compiling" = yes; then
    1878   :
    1879 else
    1880   cat > conftest.$ac_ext <<EOF
    1881 #line 1882 "configure"
    1882 #include "confdefs.h"
    1883 #include <ctype.h>
    1884 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1885 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    1886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1887 int main () { int i; for (i = 0; i < 256; i++)
    1888 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1889 exit (0); }
    1890 
    1891 EOF
    1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1893 then
    1894   :
    1895 else
    1896   echo "configure: failed program was:" >&5
    1897   cat conftest.$ac_ext >&5
    1898   rm -fr conftest*
    1899   ac_cv_header_stdc=no
    1900 fi
    1901 rm -fr conftest*
    1902 fi
    1903 
    1904 fi
    1905 fi
    1906 
    1907 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1908 if test $ac_cv_header_stdc = yes; then
    1909   cat >> confdefs.h <<\EOF
    1910 #define STDC_HEADERS 1
    1911 EOF
    1912 
    1913 fi
    1914 
    1915 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    1916 do
    1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1919 echo "configure:1920: checking for $ac_hdr" >&5
    1920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1921   echo $ac_n "(cached) $ac_c" 1>&6
    1922 else
    1923   cat > conftest.$ac_ext <<EOF
    1924 #line 1925 "configure"
    1925 #include "confdefs.h"
    1926 #include <$ac_hdr>
    1927 EOF
    1928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1929 { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1930 ac_err=`grep -v '^ *+' conftest.out`
    1931 if test -z "$ac_err"; then
    1932   rm -rf conftest*
    1933   eval "ac_cv_header_$ac_safe=yes"
    1934 else
    1935   echo "$ac_err" >&5
    1936   echo "configure: failed program was:" >&5
    1937   cat conftest.$ac_ext >&5
    1938   rm -rf conftest*
    1939   eval "ac_cv_header_$ac_safe=no"
    1940 fi
    1941 rm -f conftest*
    1942 fi
    1943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1944   echo "$ac_t""yes" 1>&6
    1945     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1946   cat >> confdefs.h <<EOF
    1947 #define $ac_tr_hdr 1
    1948 EOF
    1949  
    1950 else
    1951   echo "$ac_t""no" 1>&6
    1952 fi
    1953 done
    1954 
    1955 cat > conftest.$ac_ext <<EOF
    1956 #line 1957 "configure"
    1957 #include "confdefs.h"
    1958 #include <stdio.h>
    1959 EOF
    1960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1961   egrep "fread" >/dev/null 2>&1; then
    1962   rm -rf conftest*
    1963   cat >> confdefs.h <<\EOF
    1964 #define HAVE_FREAD_DECL 1
    1965 EOF
    1966 
    1967 fi
    1968 rm -f conftest*
    1969 
    1970 cat > conftest.$ac_ext <<EOF
    1971 #line 1972 "configure"
    1972 #include "confdefs.h"
    1973 #include <stdio.h>
    1974 EOF
    1975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1976   egrep "fgetc" >/dev/null 2>&1; then
    1977   rm -rf conftest*
    1978   cat >> confdefs.h <<\EOF
    1979 #define HAVE_FGETC_DECL 1
    1980 EOF
    1981 
    1982 fi
    1983 rm -f conftest*
    1984 
    1985 cat > conftest.$ac_ext <<EOF
    1986 #line 1987 "configure"
    1987 #include "confdefs.h"
    1988 #include <sys/procfs.h>
    1989 EOF
    1990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1991   egrep "pr_brksize" >/dev/null 2>&1; then
    1992   rm -rf conftest*
    1993   cat >> confdefs.h <<\EOF
     5015  $EGREP "pr_brksize" >/dev/null 2>&1; then
     5016  cat >>confdefs.h <<\_ACEOF
    19945017#define HAVE_PR_BRKSIZE 1
    1995 EOF
     5018_ACEOF
    19965019
    19975020fi
     
    20015024# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    20025025# for constant arguments.  Useless!
    2003 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for working alloca.h" >&5
    2005 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    2006   echo $ac_n "(cached) $ac_c" 1>&6
    2007 else
    2008   cat > conftest.$ac_ext <<EOF
    2009 #line 2010 "configure"
    2010 #include "confdefs.h"
     5026echo "$as_me:$LINENO: checking for working alloca.h" >&5
     5027echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     5028if test "${ac_cv_working_alloca_h+set}" = set; then
     5029  echo $ECHO_N "(cached) $ECHO_C" >&6
     5030else
     5031  cat >conftest.$ac_ext <<_ACEOF
     5032/* confdefs.h.  */
     5033_ACEOF
     5034cat confdefs.h >>conftest.$ac_ext
     5035cat >>conftest.$ac_ext <<_ACEOF
     5036/* end confdefs.h.  */
    20115037#include <alloca.h>
    2012 int main() {
    2013 char *p = alloca(2 * sizeof(int));
    2014 ; return 0; }
    2015 EOF
    2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2017   rm -rf conftest*
    2018   ac_cv_header_alloca_h=yes
    2019 else
    2020   echo "configure: failed program was:" >&5
    2021   cat conftest.$ac_ext >&5
    2022   rm -rf conftest*
    2023   ac_cv_header_alloca_h=no
    2024 fi
    2025 rm -f conftest*
    2026 fi
    2027 
    2028 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
    2029 if test $ac_cv_header_alloca_h = yes; then
    2030   cat >> confdefs.h <<\EOF
     5038int
     5039main ()
     5040{
     5041char *p = (char *) alloca (2 * sizeof (int));
     5042  ;
     5043  return 0;
     5044}
     5045_ACEOF
     5046rm -f conftest.$ac_objext conftest$ac_exeext
     5047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5048  (eval $ac_link) 2>conftest.er1
     5049  ac_status=$?
     5050  grep -v '^ *+' conftest.er1 >conftest.err
     5051  rm -f conftest.er1
     5052  cat conftest.err >&5
     5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5054  (exit $ac_status); } &&
     5055     { ac_try='test -z "$ac_c_werror_flag"
     5056             || test ! -s conftest.err'
     5057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5058  (eval $ac_try) 2>&5
     5059  ac_status=$?
     5060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5061  (exit $ac_status); }; } &&
     5062     { ac_try='test -s conftest$ac_exeext'
     5063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5064  (eval $ac_try) 2>&5
     5065  ac_status=$?
     5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5067  (exit $ac_status); }; }; then
     5068  ac_cv_working_alloca_h=yes
     5069else
     5070  echo "$as_me: failed program was:" >&5
     5071sed 's/^/| /' conftest.$ac_ext >&5
     5072
     5073ac_cv_working_alloca_h=no
     5074fi
     5075rm -f conftest.err conftest.$ac_objext \
     5076      conftest$ac_exeext conftest.$ac_ext
     5077fi
     5078echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     5079echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5080if test $ac_cv_working_alloca_h = yes; then
     5081
     5082cat >>confdefs.h <<\_ACEOF
    20315083#define HAVE_ALLOCA_H 1
    2032 EOF
    2033 
    2034 fi
    2035 
    2036 echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2037 echo "configure:2038: checking for alloca" >&5
    2038 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    2039   echo $ac_n "(cached) $ac_c" 1>&6
    2040 else
    2041   cat > conftest.$ac_ext <<EOF
    2042 #line 2043 "configure"
    2043 #include "confdefs.h"
    2044 
     5084_ACEOF
     5085
     5086fi
     5087
     5088echo "$as_me:$LINENO: checking for alloca" >&5
     5089echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     5090if test "${ac_cv_func_alloca_works+set}" = set; then
     5091  echo $ECHO_N "(cached) $ECHO_C" >&6
     5092else
     5093  cat >conftest.$ac_ext <<_ACEOF
     5094/* confdefs.h.  */
     5095_ACEOF
     5096cat confdefs.h >>conftest.$ac_ext
     5097cat >>conftest.$ac_ext <<_ACEOF
     5098/* end confdefs.h.  */
    20455099#ifdef __GNUC__
    20465100# define alloca __builtin_alloca
    20475101#else
    2048 # if HAVE_ALLOCA_H
    2049 #  include <alloca.h>
     5102# ifdef _MSC_VER
     5103#  include <malloc.h>
     5104#  define alloca _alloca
    20505105# else
    2051 #  ifdef _AIX
     5106#  if HAVE_ALLOCA_H
     5107#   include <alloca.h>
     5108#  else
     5109#   ifdef _AIX
    20525110 #pragma alloca
    2053 else
    2054 #   ifndef alloca /* predefined by HP cc +Olibcalls */
     5111 else
     5112#    ifndef alloca /* predefined by HP cc +Olibcalls */
    20555113char *alloca ();
     5114#    endif
    20565115#   endif
    20575116#  endif
     
    20595118#endif
    20605119
    2061 int main() {
    2062 char *p = (char *) alloca(1);
    2063 ; return 0; }
    2064 EOF
    2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2066   rm -rf conftest*
     5120int
     5121main ()
     5122{
     5123char *p = (char *) alloca (1);
     5124  ;
     5125  return 0;
     5126}
     5127_ACEOF
     5128rm -f conftest.$ac_objext conftest$ac_exeext
     5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5130  (eval $ac_link) 2>conftest.er1
     5131  ac_status=$?
     5132  grep -v '^ *+' conftest.er1 >conftest.err
     5133  rm -f conftest.er1
     5134  cat conftest.err >&5
     5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5136  (exit $ac_status); } &&
     5137     { ac_try='test -z "$ac_c_werror_flag"
     5138             || test ! -s conftest.err'
     5139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5140  (eval $ac_try) 2>&5
     5141  ac_status=$?
     5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5143  (exit $ac_status); }; } &&
     5144     { ac_try='test -s conftest$ac_exeext'
     5145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5146  (eval $ac_try) 2>&5
     5147  ac_status=$?
     5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5149  (exit $ac_status); }; }; then
    20675150  ac_cv_func_alloca_works=yes
    20685151else
    2069   echo "configure: failed program was:" >&5
    2070   cat conftest.$ac_ext >&5
    2071   rm -rf conftest*
    2072   ac_cv_func_alloca_works=no
    2073 fi
    2074 rm -f conftest*
    2075 fi
    2076 
    2077 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     5152  echo "$as_me: failed program was:" >&5
     5153sed 's/^/| /' conftest.$ac_ext >&5
     5154
     5155ac_cv_func_alloca_works=no
     5156fi
     5157rm -f conftest.err conftest.$ac_objext \
     5158      conftest$ac_exeext conftest.$ac_ext
     5159fi
     5160echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     5161echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5162
    20785163if test $ac_cv_func_alloca_works = yes; then
    2079   cat >> confdefs.h <<\EOF
     5164
     5165cat >>confdefs.h <<\_ACEOF
    20805166#define HAVE_ALLOCA 1
    2081 EOF
    2082 
    2083 fi
    2084 
    2085 if test $ac_cv_func_alloca_works = no; then
     5167_ACEOF
     5168
     5169else
    20865170  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    2087   # that cause trouble.  Some versions do not even contain alloca or
    2088   # contain a buggy version.  If you still want to use their alloca,
    2089   # use ar to extract alloca.o from them instead of compiling alloca.c.
    2090   ALLOCA=alloca.o
    2091   cat >> confdefs.h <<\EOF
     5171# that cause trouble.  Some versions do not even contain alloca or
     5172# contain a buggy version.  If you still want to use their alloca,
     5173# use ar to extract alloca.o from them instead of compiling alloca.c.
     5174
     5175ALLOCA=alloca.$ac_objext
     5176
     5177cat >>confdefs.h <<\_ACEOF
    20925178#define C_ALLOCA 1
    2093 EOF
    2094 
    2095 
    2096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2097 echo "configure:2098: checking whether alloca needs Cray hooks" >&5
    2098 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    2099   echo $ac_n "(cached) $ac_c" 1>&6
    2100 else
    2101   cat > conftest.$ac_ext <<EOF
    2102 #line 2103 "configure"
    2103 #include "confdefs.h"
     5179_ACEOF
     5180
     5181
     5182echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     5183echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     5184if test "${ac_cv_os_cray+set}" = set; then
     5185  echo $ECHO_N "(cached) $ECHO_C" >&6
     5186else
     5187  cat >conftest.$ac_ext <<_ACEOF
     5188/* confdefs.h.  */
     5189_ACEOF
     5190cat confdefs.h >>conftest.$ac_ext
     5191cat >>conftest.$ac_ext <<_ACEOF
     5192/* end confdefs.h.  */
    21045193#if defined(CRAY) && ! defined(CRAY2)
    21055194webecray
     
    21085197#endif
    21095198
    2110 EOF
     5199_ACEOF
    21115200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2112   egrep "webecray" >/dev/null 2>&1; then
    2113   rm -rf conftest*
     5201  $EGREP "webecray" >/dev/null 2>&1; then
    21145202  ac_cv_os_cray=yes
    21155203else
    2116   rm -rf conftest*
    21175204  ac_cv_os_cray=no
    21185205fi
     
    21205207
    21215208fi
    2122 
    2123 echo "$ac_t""$ac_cv_os_cray" 1>&6
     5209echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     5210echo "${ECHO_T}$ac_cv_os_cray" >&6
    21245211if test $ac_cv_os_cray = yes; then
    2125 for ac_func in _getb67 GETB67 getb67; do
    2126   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2127 echo "configure:2128: checking for $ac_func" >&5
    2128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2129   echo $ac_n "(cached) $ac_c" 1>&6
    2130 else
    2131   cat > conftest.$ac_ext <<EOF
    2132 #line 2133 "configure"
    2133 #include "confdefs.h"
     5212  for ac_func in _getb67 GETB67 getb67; do
     5213    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5214echo "$as_me:$LINENO: checking for $ac_func" >&5
     5215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5216if eval "test \"\${$as_ac_var+set}\" = set"; then
     5217  echo $ECHO_N "(cached) $ECHO_C" >&6
     5218else
     5219  cat >conftest.$ac_ext <<_ACEOF
     5220/* confdefs.h.  */
     5221_ACEOF
     5222cat confdefs.h >>conftest.$ac_ext
     5223cat >>conftest.$ac_ext <<_ACEOF
     5224/* end confdefs.h.  */
     5225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5227#define $ac_func innocuous_$ac_func
     5228
    21345229/* System header to define __stub macros and hopefully few prototypes,
    2135     which can conflict with char $ac_func(); below.  */
    2136 #include <assert.h>
     5230    which can conflict with char $ac_func (); below.
     5231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5232    <limits.h> exists even on freestanding compilers.  */
     5233
     5234#ifdef __STDC__
     5235# include <limits.h>
     5236#else
     5237# include <assert.h>
     5238#endif
     5239
     5240#undef $ac_func
     5241
    21375242/* Override any gcc2 internal prototype to avoid an error.  */
     5243#ifdef __cplusplus
     5244extern "C"
     5245{
     5246#endif
    21385247/* We use char because int might match the return type of a gcc2
    2139     builtin and then its argument prototype would still apply.  */
    2140 char $ac_func();
    2141 
    2142 int main() {
    2143 
     5248   builtin and then its argument prototype would still apply.  */
     5249char $ac_func ();
    21445250/* The GNU C library defines this for functions which it implements
    21455251    to always fail with ENOSYS.  Some functions are actually named
     
    21485254choke me
    21495255#else
    2150 $ac_func();
     5256char (*f) () = $ac_func;
    21515257#endif
    2152 
    2153 ; return 0; }
    2154 EOF
    2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2156   rm -rf conftest*
    2157   eval "ac_cv_func_$ac_func=yes"
    2158 else
    2159   echo "configure: failed program was:" >&5
    2160   cat conftest.$ac_ext >&5
    2161   rm -rf conftest*
    2162   eval "ac_cv_func_$ac_func=no"
    2163 fi
    2164 rm -f conftest*
    2165 fi
    2166 
    2167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2168   echo "$ac_t""yes" 1>&6
    2169   cat >> confdefs.h <<EOF
     5258#ifdef __cplusplus
     5259}
     5260#endif
     5261
     5262int
     5263main ()
     5264{
     5265return f != $ac_func;
     5266  ;
     5267  return 0;
     5268}
     5269_ACEOF
     5270rm -f conftest.$ac_objext conftest$ac_exeext
     5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5272  (eval $ac_link) 2>conftest.er1
     5273  ac_status=$?
     5274  grep -v '^ *+' conftest.er1 >conftest.err
     5275  rm -f conftest.er1
     5276  cat conftest.err >&5
     5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5278  (exit $ac_status); } &&
     5279     { ac_try='test -z "$ac_c_werror_flag"
     5280             || test ! -s conftest.err'
     5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5282  (eval $ac_try) 2>&5
     5283  ac_status=$?
     5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5285  (exit $ac_status); }; } &&
     5286     { ac_try='test -s conftest$ac_exeext'
     5287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5288  (eval $ac_try) 2>&5
     5289  ac_status=$?
     5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5291  (exit $ac_status); }; }; then
     5292  eval "$as_ac_var=yes"
     5293else
     5294  echo "$as_me: failed program was:" >&5
     5295sed 's/^/| /' conftest.$ac_ext >&5
     5296
     5297eval "$as_ac_var=no"
     5298fi
     5299rm -f conftest.err conftest.$ac_objext \
     5300      conftest$ac_exeext conftest.$ac_ext
     5301fi
     5302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5304if test `eval echo '${'$as_ac_var'}'` = yes; then
     5305
     5306cat >>confdefs.h <<_ACEOF
    21705307#define CRAY_STACKSEG_END $ac_func
    2171 EOF
    2172 
    2173   break
    2174 else
    2175   echo "$ac_t""no" 1>&6
    2176 fi
    2177 
    2178 done
    2179 fi
    2180 
    2181 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2182 echo "configure:2183: checking stack direction for C alloca" >&5
    2183 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    2184   echo $ac_n "(cached) $ac_c" 1>&6
     5308_ACEOF
     5309
     5310    break
     5311fi
     5312
     5313  done
     5314fi
     5315
     5316echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
     5317echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     5318if test "${ac_cv_c_stack_direction+set}" = set; then
     5319  echo $ECHO_N "(cached) $ECHO_C" >&6
    21855320else
    21865321  if test "$cross_compiling" = yes; then
    21875322  ac_cv_c_stack_direction=0
    21885323else
    2189   cat > conftest.$ac_ext <<EOF
    2190 #line 2191 "configure"
    2191 #include "confdefs.h"
     5324  cat >conftest.$ac_ext <<_ACEOF
     5325/* confdefs.h.  */
     5326_ACEOF
     5327cat confdefs.h >>conftest.$ac_ext
     5328cat >>conftest.$ac_ext <<_ACEOF
     5329/* end confdefs.h.  */
     5330int
    21925331find_stack_direction ()
    21935332{
     
    22025341    return (&dummy > addr) ? 1 : -1;
    22035342}
     5343
     5344int
    22045345main ()
    22055346{
    2206   exit (find_stack_direction() < 0);
     5347  exit (find_stack_direction () < 0);
    22075348}
    2208 EOF
    2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    2210 then
     5349_ACEOF
     5350rm -f conftest$ac_exeext
     5351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5352  (eval $ac_link) 2>&5
     5353  ac_status=$?
     5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5355  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5357  (eval $ac_try) 2>&5
     5358  ac_status=$?
     5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5360  (exit $ac_status); }; }; then
    22115361  ac_cv_c_stack_direction=1
    22125362else
    2213   echo "configure: failed program was:" >&5
    2214   cat conftest.$ac_ext >&5
    2215   rm -fr conftest*
    2216   ac_cv_c_stack_direction=-1
    2217 fi
    2218 rm -fr conftest*
    2219 fi
    2220 
    2221 fi
    2222 
    2223 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
    2224 cat >> confdefs.h <<EOF
     5363  echo "$as_me: program exited with status $ac_status" >&5
     5364echo "$as_me: failed program was:" >&5
     5365sed 's/^/| /' conftest.$ac_ext >&5
     5366
     5367( exit $ac_status )
     5368ac_cv_c_stack_direction=-1
     5369fi
     5370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5371fi
     5372fi
     5373echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
     5374echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     5375
     5376cat >>confdefs.h <<_ACEOF
    22255377#define STACK_DIRECTION $ac_cv_c_stack_direction
    2226 EOF
    2227 
    2228 fi
    2229 
    2230 if test $ac_cv_prog_gcc = yes; then
    2231     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2232 echo "configure:2233: checking whether ${CC-cc} needs -traditional" >&5
    2233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    2234   echo $ac_n "(cached) $ac_c" 1>&6
     5378_ACEOF
     5379
     5380
     5381fi
     5382
     5383if test $ac_cv_c_compiler_gnu = yes; then
     5384    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
     5385echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     5386if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     5387  echo $ECHO_N "(cached) $ECHO_C" >&6
    22355388else
    22365389    ac_pattern="Autoconf.*'x'"
    2237   cat > conftest.$ac_ext <<EOF
    2238 #line 2239 "configure"
    2239 #include "confdefs.h"
     5390  cat >conftest.$ac_ext <<_ACEOF
     5391/* confdefs.h.  */
     5392_ACEOF
     5393cat confdefs.h >>conftest.$ac_ext
     5394cat >>conftest.$ac_ext <<_ACEOF
     5395/* end confdefs.h.  */
    22405396#include <sgtty.h>
    22415397Autoconf TIOCGETP
    2242 EOF
     5398_ACEOF
    22435399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2244   egrep "$ac_pattern" >/dev/null 2>&1; then
    2245   rm -rf conftest*
     5400  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    22465401  ac_cv_prog_gcc_traditional=yes
    22475402else
    2248   rm -rf conftest*
    22495403  ac_cv_prog_gcc_traditional=no
    22505404fi
     
    22535407
    22545408  if test $ac_cv_prog_gcc_traditional = no; then
    2255     cat > conftest.$ac_ext <<EOF
    2256 #line 2257 "configure"
    2257 #include "confdefs.h"
     5409    cat >conftest.$ac_ext <<_ACEOF
     5410/* confdefs.h.  */
     5411_ACEOF
     5412cat confdefs.h >>conftest.$ac_ext
     5413cat >>conftest.$ac_ext <<_ACEOF
     5414/* end confdefs.h.  */
    22585415#include <termio.h>
    22595416Autoconf TCGETA
    2260 EOF
     5417_ACEOF
    22615418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2262   egrep "$ac_pattern" >/dev/null 2>&1; then
    2263   rm -rf conftest*
     5419  $EGREP "$ac_pattern" >/dev/null 2>&1; then
    22645420  ac_cv_prog_gcc_traditional=yes
    22655421fi
     
    22685424  fi
    22695425fi
    2270 
    2271 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     5426echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
     5427echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    22725428  if test $ac_cv_prog_gcc_traditional = yes; then
    22735429    CC="$CC -traditional"
     
    22755431fi
    22765432
    2277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2278 echo "configure:2279: checking return type of signal handlers" >&5
    2279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    2280   echo $ac_n "(cached) $ac_c" 1>&6
    2281 else
    2282   cat > conftest.$ac_ext <<EOF
    2283 #line 2284 "configure"
    2284 #include "confdefs.h"
     5433echo "$as_me:$LINENO: checking return type of signal handlers" >&5
     5434echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
     5435if test "${ac_cv_type_signal+set}" = set; then
     5436  echo $ECHO_N "(cached) $ECHO_C" >&6
     5437else
     5438  cat >conftest.$ac_ext <<_ACEOF
     5439/* confdefs.h.  */
     5440_ACEOF
     5441cat confdefs.h >>conftest.$ac_ext
     5442cat >>conftest.$ac_ext <<_ACEOF
     5443/* end confdefs.h.  */
    22855444#include <sys/types.h>
    22865445#include <signal.h>
    22875446#ifdef signal
    2288 #undef signal
     5447# undef signal
    22895448#endif
    22905449#ifdef __cplusplus
     
    22945453#endif
    22955454
    2296 int main() {
     5455int
     5456main ()
     5457{
    22975458int i;
    2298 ; return 0; }
    2299 EOF
    2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    2301   rm -rf conftest*
     5459  ;
     5460  return 0;
     5461}
     5462_ACEOF
     5463rm -f conftest.$ac_objext
     5464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5465  (eval $ac_compile) 2>conftest.er1
     5466  ac_status=$?
     5467  grep -v '^ *+' conftest.er1 >conftest.err
     5468  rm -f conftest.er1
     5469  cat conftest.err >&5
     5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5471  (exit $ac_status); } &&
     5472     { ac_try='test -z "$ac_c_werror_flag"
     5473             || test ! -s conftest.err'
     5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5475  (eval $ac_try) 2>&5
     5476  ac_status=$?
     5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5478  (exit $ac_status); }; } &&
     5479     { ac_try='test -s conftest.$ac_objext'
     5480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5481  (eval $ac_try) 2>&5
     5482  ac_status=$?
     5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5484  (exit $ac_status); }; }; then
    23025485  ac_cv_type_signal=void
    23035486else
    2304   echo "configure: failed program was:" >&5
    2305   cat conftest.$ac_ext >&5
    2306   rm -rf conftest*
    2307   ac_cv_type_signal=int
    2308 fi
    2309 rm -f conftest*
    2310 fi
    2311 
    2312 echo "$ac_t""$ac_cv_type_signal" 1>&6
    2313 cat >> confdefs.h <<EOF
     5487  echo "$as_me: failed program was:" >&5
     5488sed 's/^/| /' conftest.$ac_ext >&5
     5489
     5490ac_cv_type_signal=int
     5491fi
     5492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5493fi
     5494echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
     5495echo "${ECHO_T}$ac_cv_type_signal" >&6
     5496
     5497cat >>confdefs.h <<_ACEOF
    23145498#define RETSIGTYPE $ac_cv_type_signal
    2315 EOF
    2316 
    2317 
    2318 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2319 echo "configure:2320: checking for vprintf" >&5
    2320 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    2321   echo $ac_n "(cached) $ac_c" 1>&6
    2322 else
    2323   cat > conftest.$ac_ext <<EOF
    2324 #line 2325 "configure"
    2325 #include "confdefs.h"
     5499_ACEOF
     5500
     5501
     5502
     5503for ac_func in vprintf
     5504do
     5505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5506echo "$as_me:$LINENO: checking for $ac_func" >&5
     5507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5508if eval "test \"\${$as_ac_var+set}\" = set"; then
     5509  echo $ECHO_N "(cached) $ECHO_C" >&6
     5510else
     5511  cat >conftest.$ac_ext <<_ACEOF
     5512/* confdefs.h.  */
     5513_ACEOF
     5514cat confdefs.h >>conftest.$ac_ext
     5515cat >>conftest.$ac_ext <<_ACEOF
     5516/* end confdefs.h.  */
     5517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5518   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5519#define $ac_func innocuous_$ac_func
     5520
    23265521/* System header to define __stub macros and hopefully few prototypes,
    2327     which can conflict with char vprintf(); below.  */
    2328 #include <assert.h>
     5522    which can conflict with char $ac_func (); below.
     5523    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5524    <limits.h> exists even on freestanding compilers.  */
     5525
     5526#ifdef __STDC__
     5527# include <limits.h>
     5528#else
     5529# include <assert.h>
     5530#endif
     5531
     5532#undef $ac_func
     5533
    23295534/* Override any gcc2 internal prototype to avoid an error.  */
     5535#ifdef __cplusplus
     5536extern "C"
     5537{
     5538#endif
    23305539/* We use char because int might match the return type of a gcc2
    2331     builtin and then its argument prototype would still apply.  */
    2332 char vprintf();
    2333 
    2334 int main() {
    2335 
     5540   builtin and then its argument prototype would still apply.  */
     5541char $ac_func ();
    23365542/* The GNU C library defines this for functions which it implements
    23375543    to always fail with ENOSYS.  Some functions are actually named
    23385544    something starting with __ and the normal name is an alias.  */
    2339 #if defined (__stub_vprintf) || defined (__stub___vprintf)
     5545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    23405546choke me
    23415547#else
    2342 vprintf();
     5548char (*f) () = $ac_func;
    23435549#endif
    2344 
    2345 ; return 0; }
    2346 EOF
    2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2348   rm -rf conftest*
    2349   eval "ac_cv_func_vprintf=yes"
    2350 else
    2351   echo "configure: failed program was:" >&5
    2352   cat conftest.$ac_ext >&5
    2353   rm -rf conftest*
    2354   eval "ac_cv_func_vprintf=no"
    2355 fi
    2356 rm -f conftest*
    2357 fi
    2358 
    2359 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    2360   echo "$ac_t""yes" 1>&6
    2361   cat >> confdefs.h <<\EOF
    2362 #define HAVE_VPRINTF 1
    2363 EOF
    2364 
    2365 else
    2366   echo "$ac_t""no" 1>&6
    2367 fi
    2368 
    2369 if test "$ac_cv_func_vprintf" != yes; then
    2370 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2371 echo "configure:2372: checking for _doprnt" >&5
    2372 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    2373   echo $ac_n "(cached) $ac_c" 1>&6
    2374 else
    2375   cat > conftest.$ac_ext <<EOF
    2376 #line 2377 "configure"
    2377 #include "confdefs.h"
     5550#ifdef __cplusplus
     5551}
     5552#endif
     5553
     5554int
     5555main ()
     5556{
     5557return f != $ac_func;
     5558  ;
     5559  return 0;
     5560}
     5561_ACEOF
     5562rm -f conftest.$ac_objext conftest$ac_exeext
     5563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5564  (eval $ac_link) 2>conftest.er1
     5565  ac_status=$?
     5566  grep -v '^ *+' conftest.er1 >conftest.err
     5567  rm -f conftest.er1
     5568  cat conftest.err >&5
     5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5570  (exit $ac_status); } &&
     5571     { ac_try='test -z "$ac_c_werror_flag"
     5572             || test ! -s conftest.err'
     5573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5574  (eval $ac_try) 2>&5
     5575  ac_status=$?
     5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5577  (exit $ac_status); }; } &&
     5578     { ac_try='test -s conftest$ac_exeext'
     5579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5580  (eval $ac_try) 2>&5
     5581  ac_status=$?
     5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5583  (exit $ac_status); }; }; then
     5584  eval "$as_ac_var=yes"
     5585else
     5586  echo "$as_me: failed program was:" >&5
     5587sed 's/^/| /' conftest.$ac_ext >&5
     5588
     5589eval "$as_ac_var=no"
     5590fi
     5591rm -f conftest.err conftest.$ac_objext \
     5592      conftest$ac_exeext conftest.$ac_ext
     5593fi
     5594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5596if test `eval echo '${'$as_ac_var'}'` = yes; then
     5597  cat >>confdefs.h <<_ACEOF
     5598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5599_ACEOF
     5600
     5601echo "$as_me:$LINENO: checking for _doprnt" >&5
     5602echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
     5603if test "${ac_cv_func__doprnt+set}" = set; then
     5604  echo $ECHO_N "(cached) $ECHO_C" >&6
     5605else
     5606  cat >conftest.$ac_ext <<_ACEOF
     5607/* confdefs.h.  */
     5608_ACEOF
     5609cat confdefs.h >>conftest.$ac_ext
     5610cat >>conftest.$ac_ext <<_ACEOF
     5611/* end confdefs.h.  */
     5612/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
     5613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5614#define _doprnt innocuous__doprnt
     5615
    23785616/* System header to define __stub macros and hopefully few prototypes,
    2379     which can conflict with char _doprnt(); below.  */
    2380 #include <assert.h>
     5617    which can conflict with char _doprnt (); below.
     5618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5619    <limits.h> exists even on freestanding compilers.  */
     5620
     5621#ifdef __STDC__
     5622# include <limits.h>
     5623#else
     5624# include <assert.h>
     5625#endif
     5626
     5627#undef _doprnt
     5628
    23815629/* Override any gcc2 internal prototype to avoid an error.  */
     5630#ifdef __cplusplus
     5631extern "C"
     5632{
     5633#endif
    23825634/* We use char because int might match the return type of a gcc2
    2383     builtin and then its argument prototype would still apply.  */
    2384 char _doprnt();
    2385 
    2386 int main() {
    2387 
     5635   builtin and then its argument prototype would still apply.  */
     5636char _doprnt ();
    23885637/* The GNU C library defines this for functions which it implements
    23895638    to always fail with ENOSYS.  Some functions are actually named
     
    23925641choke me
    23935642#else
    2394 _doprnt();
     5643char (*f) () = _doprnt;
    23955644#endif
    2396 
    2397 ; return 0; }
    2398 EOF
    2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2400   rm -rf conftest*
    2401   eval "ac_cv_func__doprnt=yes"
    2402 else
    2403   echo "configure: failed program was:" >&5
    2404   cat conftest.$ac_ext >&5
    2405   rm -rf conftest*
    2406   eval "ac_cv_func__doprnt=no"
    2407 fi
    2408 rm -f conftest*
    2409 fi
    2410 
    2411 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    2412   echo "$ac_t""yes" 1>&6
    2413   cat >> confdefs.h <<\EOF
     5645#ifdef __cplusplus
     5646}
     5647#endif
     5648
     5649int
     5650main ()
     5651{
     5652return f != _doprnt;
     5653  ;
     5654  return 0;
     5655}
     5656_ACEOF
     5657rm -f conftest.$ac_objext conftest$ac_exeext
     5658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5659  (eval $ac_link) 2>conftest.er1
     5660  ac_status=$?
     5661  grep -v '^ *+' conftest.er1 >conftest.err
     5662  rm -f conftest.er1
     5663  cat conftest.err >&5
     5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5665  (exit $ac_status); } &&
     5666     { ac_try='test -z "$ac_c_werror_flag"
     5667             || test ! -s conftest.err'
     5668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5669  (eval $ac_try) 2>&5
     5670  ac_status=$?
     5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5672  (exit $ac_status); }; } &&
     5673     { ac_try='test -s conftest$ac_exeext'
     5674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5675  (eval $ac_try) 2>&5
     5676  ac_status=$?
     5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5678  (exit $ac_status); }; }; then
     5679  ac_cv_func__doprnt=yes
     5680else
     5681  echo "$as_me: failed program was:" >&5
     5682sed 's/^/| /' conftest.$ac_ext >&5
     5683
     5684ac_cv_func__doprnt=no
     5685fi
     5686rm -f conftest.err conftest.$ac_objext \
     5687      conftest$ac_exeext conftest.$ac_ext
     5688fi
     5689echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
     5690echo "${ECHO_T}$ac_cv_func__doprnt" >&6
     5691if test $ac_cv_func__doprnt = yes; then
     5692
     5693cat >>confdefs.h <<\_ACEOF
    24145694#define HAVE_DOPRNT 1
    2415 EOF
    2416 
    2417 else
    2418   echo "$ac_t""no" 1>&6
    2419 fi
    2420 
    2421 fi
     5695_ACEOF
     5696
     5697fi
     5698
     5699fi
     5700done
     5701
     5702
     5703
     5704
     5705
     5706
     5707
     5708
     5709
     5710
    24225711
    24235712for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    24245713do
    2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2426 echo "configure:2427: checking for $ac_func" >&5
    2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2428   echo $ac_n "(cached) $ac_c" 1>&6
    2429 else
    2430   cat > conftest.$ac_ext <<EOF
    2431 #line 2432 "configure"
    2432 #include "confdefs.h"
     5714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5715echo "$as_me:$LINENO: checking for $ac_func" >&5
     5716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5717if eval "test \"\${$as_ac_var+set}\" = set"; then
     5718  echo $ECHO_N "(cached) $ECHO_C" >&6
     5719else
     5720  cat >conftest.$ac_ext <<_ACEOF
     5721/* confdefs.h.  */
     5722_ACEOF
     5723cat confdefs.h >>conftest.$ac_ext
     5724cat >>conftest.$ac_ext <<_ACEOF
     5725/* end confdefs.h.  */
     5726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5727   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5728#define $ac_func innocuous_$ac_func
     5729
    24335730/* System header to define __stub macros and hopefully few prototypes,
    2434     which can conflict with char $ac_func(); below.  */
    2435 #include <assert.h>
     5731    which can conflict with char $ac_func (); below.
     5732    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5733    <limits.h> exists even on freestanding compilers.  */
     5734
     5735#ifdef __STDC__
     5736# include <limits.h>
     5737#else
     5738# include <assert.h>
     5739#endif
     5740
     5741#undef $ac_func
     5742
    24365743/* Override any gcc2 internal prototype to avoid an error.  */
     5744#ifdef __cplusplus
     5745extern "C"
     5746{
     5747#endif
    24375748/* We use char because int might match the return type of a gcc2
    2438     builtin and then its argument prototype would still apply.  */
    2439 char $ac_func();
    2440 
    2441 int main() {
    2442 
     5749   builtin and then its argument prototype would still apply.  */
     5750char $ac_func ();
    24435751/* The GNU C library defines this for functions which it implements
    24445752    to always fail with ENOSYS.  Some functions are actually named
     
    24475755choke me
    24485756#else
    2449 $ac_func();
     5757char (*f) () = $ac_func;
    24505758#endif
    2451 
    2452 ; return 0; }
    2453 EOF
    2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2455   rm -rf conftest*
    2456   eval "ac_cv_func_$ac_func=yes"
    2457 else
    2458   echo "configure: failed program was:" >&5
    2459   cat conftest.$ac_ext >&5
    2460   rm -rf conftest*
    2461   eval "ac_cv_func_$ac_func=no"
    2462 fi
    2463 rm -f conftest*
    2464 fi
    2465 
    2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2467   echo "$ac_t""yes" 1>&6
    2468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2469   cat >> confdefs.h <<EOF
    2470 #define $ac_tr_func 1
    2471 EOF
    2472  
    2473 else
    2474   echo "$ac_t""no" 1>&6
     5759#ifdef __cplusplus
     5760}
     5761#endif
     5762
     5763int
     5764main ()
     5765{
     5766return f != $ac_func;
     5767  ;
     5768  return 0;
     5769}
     5770_ACEOF
     5771rm -f conftest.$ac_objext conftest$ac_exeext
     5772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5773  (eval $ac_link) 2>conftest.er1
     5774  ac_status=$?
     5775  grep -v '^ *+' conftest.er1 >conftest.err
     5776  rm -f conftest.er1
     5777  cat conftest.err >&5
     5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5779  (exit $ac_status); } &&
     5780     { ac_try='test -z "$ac_c_werror_flag"
     5781             || test ! -s conftest.err'
     5782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5783  (eval $ac_try) 2>&5
     5784  ac_status=$?
     5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5786  (exit $ac_status); }; } &&
     5787     { ac_try='test -s conftest$ac_exeext'
     5788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5789  (eval $ac_try) 2>&5
     5790  ac_status=$?
     5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5792  (exit $ac_status); }; }; then
     5793  eval "$as_ac_var=yes"
     5794else
     5795  echo "$as_me: failed program was:" >&5
     5796sed 's/^/| /' conftest.$ac_ext >&5
     5797
     5798eval "$as_ac_var=no"
     5799fi
     5800rm -f conftest.err conftest.$ac_objext \
     5801      conftest$ac_exeext conftest.$ac_ext
     5802fi
     5803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5805if test `eval echo '${'$as_ac_var'}'` = yes; then
     5806  cat >>confdefs.h <<_ACEOF
     5807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5808_ACEOF
     5809
    24755810fi
    24765811done
     5812
     5813
     5814
    24775815
    24785816for ac_func in ftruncate strstr strcasecmp
    24795817do
    2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2481 echo "configure:2482: checking for $ac_func" >&5
    2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2483   echo $ac_n "(cached) $ac_c" 1>&6
    2484 else
    2485   cat > conftest.$ac_ext <<EOF
    2486 #line 2487 "configure"
    2487 #include "confdefs.h"
     5818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5819echo "$as_me:$LINENO: checking for $ac_func" >&5
     5820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5821if eval "test \"\${$as_ac_var+set}\" = set"; then
     5822  echo $ECHO_N "(cached) $ECHO_C" >&6
     5823else
     5824  cat >conftest.$ac_ext <<_ACEOF
     5825/* confdefs.h.  */
     5826_ACEOF
     5827cat confdefs.h >>conftest.$ac_ext
     5828cat >>conftest.$ac_ext <<_ACEOF
     5829/* end confdefs.h.  */
     5830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5832#define $ac_func innocuous_$ac_func
     5833
    24885834/* System header to define __stub macros and hopefully few prototypes,
    2489     which can conflict with char $ac_func(); below.  */
    2490 #include <assert.h>
     5835    which can conflict with char $ac_func (); below.
     5836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5837    <limits.h> exists even on freestanding compilers.  */
     5838
     5839#ifdef __STDC__
     5840# include <limits.h>
     5841#else
     5842# include <assert.h>
     5843#endif
     5844
     5845#undef $ac_func
     5846
    24915847/* Override any gcc2 internal prototype to avoid an error.  */
     5848#ifdef __cplusplus
     5849extern "C"
     5850{
     5851#endif
    24925852/* We use char because int might match the return type of a gcc2
    2493     builtin and then its argument prototype would still apply.  */
    2494 char $ac_func();
    2495 
    2496 int main() {
    2497 
     5853   builtin and then its argument prototype would still apply.  */
     5854char $ac_func ();
    24985855/* The GNU C library defines this for functions which it implements
    24995856    to always fail with ENOSYS.  Some functions are actually named
     
    25025859choke me
    25035860#else
    2504 $ac_func();
     5861char (*f) () = $ac_func;
    25055862#endif
    2506 
    2507 ; return 0; }
    2508 EOF
    2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2510   rm -rf conftest*
    2511   eval "ac_cv_func_$ac_func=yes"
    2512 else
    2513   echo "configure: failed program was:" >&5
    2514   cat conftest.$ac_ext >&5
    2515   rm -rf conftest*
    2516   eval "ac_cv_func_$ac_func=no"
    2517 fi
    2518 rm -f conftest*
    2519 fi
    2520 
    2521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2522   echo "$ac_t""yes" 1>&6
    2523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2524   cat >> confdefs.h <<EOF
    2525 #define $ac_tr_func 1
    2526 EOF
    2527  
    2528 else
    2529   echo "$ac_t""no" 1>&6
    2530 LIBOBJS="$LIBOBJS ${ac_func}.o"
     5863#ifdef __cplusplus
     5864}
     5865#endif
     5866
     5867int
     5868main ()
     5869{
     5870return f != $ac_func;
     5871  ;
     5872  return 0;
     5873}
     5874_ACEOF
     5875rm -f conftest.$ac_objext conftest$ac_exeext
     5876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5877  (eval $ac_link) 2>conftest.er1
     5878  ac_status=$?
     5879  grep -v '^ *+' conftest.er1 >conftest.err
     5880  rm -f conftest.er1
     5881  cat conftest.err >&5
     5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5883  (exit $ac_status); } &&
     5884     { ac_try='test -z "$ac_c_werror_flag"
     5885             || test ! -s conftest.err'
     5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5887  (eval $ac_try) 2>&5
     5888  ac_status=$?
     5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5890  (exit $ac_status); }; } &&
     5891     { ac_try='test -s conftest$ac_exeext'
     5892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5893  (eval $ac_try) 2>&5
     5894  ac_status=$?
     5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5896  (exit $ac_status); }; }; then
     5897  eval "$as_ac_var=yes"
     5898else
     5899  echo "$as_me: failed program was:" >&5
     5900sed 's/^/| /' conftest.$ac_ext >&5
     5901
     5902eval "$as_ac_var=no"
     5903fi
     5904rm -f conftest.err conftest.$ac_objext \
     5905      conftest$ac_exeext conftest.$ac_ext
     5906fi
     5907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5909if test `eval echo '${'$as_ac_var'}'` = yes; then
     5910  cat >>confdefs.h <<_ACEOF
     5911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5912_ACEOF
     5913
     5914else
     5915  case $LIBOBJS in
     5916    "$ac_func.$ac_objext"   | \
     5917  *" $ac_func.$ac_objext"   | \
     5918    "$ac_func.$ac_objext "* | \
     5919  *" $ac_func.$ac_objext "* ) ;;
     5920  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5921esac
     5922
    25315923fi
    25325924done
     
    25375929# *** Custom checking (based on GNU tar configure.in) ***
    25385930# ---------------------------------------------------------------------------
    2539 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2540 echo "configure:2541: checking for HP-UX needing gmalloc" >&5
     5931echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
     5932echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    25415933if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    2542   echo "$ac_t""yes" 1>&6
    2543   LIBOBJS="$LIBOBJS gmalloc.o"
    2544   cat >> confdefs.h <<\EOF
     5934  echo "$as_me:$LINENO: result: yes" >&5
     5935echo "${ECHO_T}yes" >&6
     5936  case $LIBOBJS in
     5937    "gmalloc.$ac_objext"   | \
     5938  *" gmalloc.$ac_objext"   | \
     5939    "gmalloc.$ac_objext "* | \
     5940  *" gmalloc.$ac_objext "* ) ;;
     5941  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5942esac
     5943
     5944  cat >>confdefs.h <<\_ACEOF
    25455945#define HAVE_VALLOC 1
    2546 EOF
    2547 
    2548 else
    2549   echo "$ac_t""no" 1>&6
    2550   for ac_func in valloc
     5946_ACEOF
     5947
     5948else
     5949  echo "$as_me:$LINENO: result: no" >&5
     5950echo "${ECHO_T}no" >&6
     5951
     5952for ac_func in valloc
    25515953do
    2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2553 echo "configure:2554: checking for $ac_func" >&5
    2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    2555   echo $ac_n "(cached) $ac_c" 1>&6
    2556 else
    2557   cat > conftest.$ac_ext <<EOF
    2558 #line 2559 "configure"
    2559 #include "confdefs.h"
     5954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5955echo "$as_me:$LINENO: checking for $ac_func" >&5
     5956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5957if eval "test \"\${$as_ac_var+set}\" = set"; then
     5958  echo $ECHO_N "(cached) $ECHO_C" >&6
     5959else
     5960  cat >conftest.$ac_ext <<_ACEOF
     5961/* confdefs.h.  */
     5962_ACEOF
     5963cat confdefs.h >>conftest.$ac_ext
     5964cat >>conftest.$ac_ext <<_ACEOF
     5965/* end confdefs.h.  */
     5966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5968#define $ac_func innocuous_$ac_func
     5969
    25605970/* System header to define __stub macros and hopefully few prototypes,
    2561     which can conflict with char $ac_func(); below.  */
    2562 #include <assert.h>
     5971    which can conflict with char $ac_func (); below.
     5972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5973    <limits.h> exists even on freestanding compilers.  */
     5974
     5975#ifdef __STDC__
     5976# include <limits.h>
     5977#else
     5978# include <assert.h>
     5979#endif
     5980
     5981#undef $ac_func
     5982
    25635983/* Override any gcc2 internal prototype to avoid an error.  */
     5984#ifdef __cplusplus
     5985extern "C"
     5986{
     5987#endif
    25645988/* We use char because int might match the return type of a gcc2
    2565     builtin and then its argument prototype would still apply.  */
    2566 char $ac_func();
    2567 
    2568 int main() {
    2569 
     5989   builtin and then its argument prototype would still apply.  */
     5990char $ac_func ();
    25705991/* The GNU C library defines this for functions which it implements
    25715992    to always fail with ENOSYS.  Some functions are actually named
     
    25745995choke me
    25755996#else
    2576 $ac_func();
     5997char (*f) () = $ac_func;
    25775998#endif
    2578 
    2579 ; return 0; }
    2580 EOF
    2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2582   rm -rf conftest*
    2583   eval "ac_cv_func_$ac_func=yes"
    2584 else
    2585   echo "configure: failed program was:" >&5
    2586   cat conftest.$ac_ext >&5
    2587   rm -rf conftest*
    2588   eval "ac_cv_func_$ac_func=no"
    2589 fi
    2590 rm -f conftest*
    2591 fi
    2592 
    2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    2594   echo "$ac_t""yes" 1>&6
    2595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    2596   cat >> confdefs.h <<EOF
    2597 #define $ac_tr_func 1
    2598 EOF
    2599  
    2600 else
    2601   echo "$ac_t""no" 1>&6
     5999#ifdef __cplusplus
     6000}
     6001#endif
     6002
     6003int
     6004main ()
     6005{
     6006return f != $ac_func;
     6007  ;
     6008  return 0;
     6009}
     6010_ACEOF
     6011rm -f conftest.$ac_objext conftest$ac_exeext
     6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6013  (eval $ac_link) 2>conftest.er1
     6014  ac_status=$?
     6015  grep -v '^ *+' conftest.er1 >conftest.err
     6016  rm -f conftest.er1
     6017  cat conftest.err >&5
     6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6019  (exit $ac_status); } &&
     6020     { ac_try='test -z "$ac_c_werror_flag"
     6021             || test ! -s conftest.err'
     6022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6023  (eval $ac_try) 2>&5
     6024  ac_status=$?
     6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6026  (exit $ac_status); }; } &&
     6027     { ac_try='test -s conftest$ac_exeext'
     6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6029  (eval $ac_try) 2>&5
     6030  ac_status=$?
     6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6032  (exit $ac_status); }; }; then
     6033  eval "$as_ac_var=yes"
     6034else
     6035  echo "$as_me: failed program was:" >&5
     6036sed 's/^/| /' conftest.$ac_ext >&5
     6037
     6038eval "$as_ac_var=no"
     6039fi
     6040rm -f conftest.err conftest.$ac_objext \
     6041      conftest$ac_exeext conftest.$ac_ext
     6042fi
     6043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     6044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     6045if test `eval echo '${'$as_ac_var'}'` = yes; then
     6046  cat >>confdefs.h <<_ACEOF
     6047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6048_ACEOF
     6049
    26026050fi
    26036051done
     
    26056053fi
    26066054
    2607 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2608 echo "configure:2609: checking if malloc debugging is wanted" >&5
     6055echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
     6056echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
     6057
    26096058# Check whether --with-dmalloc or --without-dmalloc was given.
    26106059if test "${with_dmalloc+set}" = set; then
    26116060  withval="$with_dmalloc"
    26126061  if test "$withval" = yes; then
    2613   echo "$ac_t""yes" 1>&6
    2614   cat >> confdefs.h <<\EOF
     6062  echo "$as_me:$LINENO: result: yes" >&5
     6063echo "${ECHO_T}yes" >&6
     6064  cat >>confdefs.h <<\_ACEOF
    26156065#define WITH_DMALLOC 1
    2616 EOF
     6066_ACEOF
    26176067
    26186068  LIBS="$LIBS -ldmalloc"
    26196069  LDFLAGS="$LDFLAGS -g"
    26206070else
    2621   echo "$ac_t""no" 1>&6
    2622 fi
    2623 else
    2624   echo "$ac_t""no" 1>&6
    2625 fi
    2626 
    2627 
    2628 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2629 echo "configure:2630: checking which of rx or regex is wanted" >&5
     6071  echo "$as_me:$LINENO: result: no" >&5
     6072echo "${ECHO_T}no" >&6
     6073fi
     6074else
     6075  echo "$as_me:$LINENO: result: no" >&5
     6076echo "${ECHO_T}no" >&6
     6077fi;
     6078
     6079echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
     6080echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
     6081
    26306082# Check whether --with-regex or --without-regex was given.
    26316083if test "${with_regex+set}" = set; then
     
    26336085  if test "$withval" = yes; then
    26346086  ac_with_regex=1
    2635   echo "$ac_t""regex" 1>&6
    2636   cat >> confdefs.h <<\EOF
     6087  echo "$as_me:$LINENO: result: regex" >&5
     6088echo "${ECHO_T}regex" >&6
     6089  cat >>confdefs.h <<\_ACEOF
    26376090#define WITH_REGEX 1
    2638 EOF
    2639 
    2640   LIBOBJS="$LIBOBJS regex.o"
    2641 fi
    2642 fi
    2643 
     6091_ACEOF
     6092
     6093  case $LIBOBJS in
     6094    "regex.$ac_objext"   | \
     6095  *" regex.$ac_objext"   | \
     6096    "regex.$ac_objext "* | \
     6097  *" regex.$ac_objext "* ) ;;
     6098  *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6099esac
     6100
     6101fi
     6102fi;
    26446103if test -z "$ac_with_regex"; then
    2645   echo "$ac_t""rx" 1>&6
    2646   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    2647 echo "configure:2648: checking for re_rx_search" >&5
    2648 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    2649   echo $ac_n "(cached) $ac_c" 1>&6
    2650 else
    2651   cat > conftest.$ac_ext <<EOF
    2652 #line 2653 "configure"
    2653 #include "confdefs.h"
     6104  echo "$as_me:$LINENO: result: rx" >&5
     6105echo "${ECHO_T}rx" >&6
     6106  echo "$as_me:$LINENO: checking for re_rx_search" >&5
     6107echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
     6108if test "${ac_cv_func_re_rx_search+set}" = set; then
     6109  echo $ECHO_N "(cached) $ECHO_C" >&6
     6110else
     6111  cat >conftest.$ac_ext <<_ACEOF
     6112/* confdefs.h.  */
     6113_ACEOF
     6114cat confdefs.h >>conftest.$ac_ext
     6115cat >>conftest.$ac_ext <<_ACEOF
     6116/* end confdefs.h.  */
     6117/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
     6118   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6119#define re_rx_search innocuous_re_rx_search
     6120
    26546121/* System header to define __stub macros and hopefully few prototypes,
    2655     which can conflict with char re_rx_search(); below.  */
    2656 #include <assert.h>
     6122    which can conflict with char re_rx_search (); below.
     6123    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6124    <limits.h> exists even on freestanding compilers.  */
     6125
     6126#ifdef __STDC__
     6127# include <limits.h>
     6128#else
     6129# include <assert.h>
     6130#endif
     6131
     6132#undef re_rx_search
     6133
    26576134/* Override any gcc2 internal prototype to avoid an error.  */
     6135#ifdef __cplusplus
     6136extern "C"
     6137{
     6138#endif
    26586139/* We use char because int might match the return type of a gcc2
    2659     builtin and then its argument prototype would still apply.  */
    2660 char re_rx_search();
    2661 
    2662 int main() {
    2663 
     6140   builtin and then its argument prototype would still apply.  */
     6141char re_rx_search ();
    26646142/* The GNU C library defines this for functions which it implements
    26656143    to always fail with ENOSYS.  Some functions are actually named
     
    26686146choke me
    26696147#else
    2670 re_rx_search();
     6148char (*f) () = re_rx_search;
    26716149#endif
    2672 
    2673 ; return 0; }
    2674 EOF
    2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    2676   rm -rf conftest*
    2677   eval "ac_cv_func_re_rx_search=yes"
    2678 else
    2679   echo "configure: failed program was:" >&5
    2680   cat conftest.$ac_ext >&5
    2681   rm -rf conftest*
    2682   eval "ac_cv_func_re_rx_search=no"
    2683 fi
    2684 rm -f conftest*
    2685 fi
    2686 
    2687 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    2688   echo "$ac_t""yes" 1>&6
     6150#ifdef __cplusplus
     6151}
     6152#endif
     6153
     6154int
     6155main ()
     6156{
     6157return f != re_rx_search;
     6158  ;
     6159  return 0;
     6160}
     6161_ACEOF
     6162rm -f conftest.$ac_objext conftest$ac_exeext
     6163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6164  (eval $ac_link) 2>conftest.er1
     6165  ac_status=$?
     6166  grep -v '^ *+' conftest.er1 >conftest.err
     6167  rm -f conftest.er1
     6168  cat conftest.err >&5
     6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6170  (exit $ac_status); } &&
     6171     { ac_try='test -z "$ac_c_werror_flag"
     6172             || test ! -s conftest.err'
     6173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6174  (eval $ac_try) 2>&5
     6175  ac_status=$?
     6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6177  (exit $ac_status); }; } &&
     6178     { ac_try='test -s conftest$ac_exeext'
     6179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6180  (eval $ac_try) 2>&5
     6181  ac_status=$?
     6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6183  (exit $ac_status); }; }; then
     6184  ac_cv_func_re_rx_search=yes
     6185else
     6186  echo "$as_me: failed program was:" >&5
     6187sed 's/^/| /' conftest.$ac_ext >&5
     6188
     6189ac_cv_func_re_rx_search=no
     6190fi
     6191rm -f conftest.err conftest.$ac_objext \
     6192      conftest$ac_exeext conftest.$ac_ext
     6193fi
     6194echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
     6195echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
     6196if test $ac_cv_func_re_rx_search = yes; then
    26896197  :
    26906198else
    2691   echo "$ac_t""no" 1>&6
    2692 LIBOBJS="$LIBOBJS rx.o"
    2693 fi
    2694 
    2695 fi
     6199  case $LIBOBJS in
     6200    "rx.$ac_objext"   | \
     6201  *" rx.$ac_objext"   | \
     6202    "rx.$ac_objext "* | \
     6203  *" rx.$ac_objext "* ) ;;
     6204  *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6205esac
     6206
     6207fi
     6208
     6209fi
     6210
     6211
     6212echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     6213echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
     6214if test "${ac_cv_c_bigendian+set}" = set; then
     6215  echo $ECHO_N "(cached) $ECHO_C" >&6
     6216else
     6217  # See if sys/param.h defines the BYTE_ORDER macro.
     6218cat >conftest.$ac_ext <<_ACEOF
     6219/* confdefs.h.  */
     6220_ACEOF
     6221cat confdefs.h >>conftest.$ac_ext
     6222cat >>conftest.$ac_ext <<_ACEOF
     6223/* end confdefs.h.  */
     6224#include <sys/types.h>
     6225#include <sys/param.h>
     6226
     6227int
     6228main ()
     6229{
     6230#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
     6231 bogus endian macros
     6232#endif
     6233
     6234  ;
     6235  return 0;
     6236}
     6237_ACEOF
     6238rm -f conftest.$ac_objext
     6239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6240  (eval $ac_compile) 2>conftest.er1
     6241  ac_status=$?
     6242  grep -v '^ *+' conftest.er1 >conftest.err
     6243  rm -f conftest.er1
     6244  cat conftest.err >&5
     6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6246  (exit $ac_status); } &&
     6247     { ac_try='test -z "$ac_c_werror_flag"
     6248             || test ! -s conftest.err'
     6249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6250  (eval $ac_try) 2>&5
     6251  ac_status=$?
     6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6253  (exit $ac_status); }; } &&
     6254     { ac_try='test -s conftest.$ac_objext'
     6255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6256  (eval $ac_try) 2>&5
     6257  ac_status=$?
     6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6259  (exit $ac_status); }; }; then
     6260  # It does; now see whether it defined to BIG_ENDIAN or not.
     6261cat >conftest.$ac_ext <<_ACEOF
     6262/* confdefs.h.  */
     6263_ACEOF
     6264cat confdefs.h >>conftest.$ac_ext
     6265cat >>conftest.$ac_ext <<_ACEOF
     6266/* end confdefs.h.  */
     6267#include <sys/types.h>
     6268#include <sys/param.h>
     6269
     6270int
     6271main ()
     6272{
     6273#if BYTE_ORDER != BIG_ENDIAN
     6274 not big endian
     6275#endif
     6276
     6277  ;
     6278  return 0;
     6279}
     6280_ACEOF
     6281rm -f conftest.$ac_objext
     6282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6283  (eval $ac_compile) 2>conftest.er1
     6284  ac_status=$?
     6285  grep -v '^ *+' conftest.er1 >conftest.err
     6286  rm -f conftest.er1
     6287  cat conftest.err >&5
     6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6289  (exit $ac_status); } &&
     6290     { ac_try='test -z "$ac_c_werror_flag"
     6291             || test ! -s conftest.err'
     6292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6293  (eval $ac_try) 2>&5
     6294  ac_status=$?
     6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6296  (exit $ac_status); }; } &&
     6297     { ac_try='test -s conftest.$ac_objext'
     6298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6299  (eval $ac_try) 2>&5
     6300  ac_status=$?
     6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6302  (exit $ac_status); }; }; then
     6303  ac_cv_c_bigendian=yes
     6304else
     6305  echo "$as_me: failed program was:" >&5
     6306sed 's/^/| /' conftest.$ac_ext >&5
     6307
     6308ac_cv_c_bigendian=no
     6309fi
     6310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6311else
     6312  echo "$as_me: failed program was:" >&5
     6313sed 's/^/| /' conftest.$ac_ext >&5
     6314
     6315# It does not; compile a test program.
     6316if test "$cross_compiling" = yes; then
     6317  # try to guess the endianness by grepping values into an object file
     6318  ac_cv_c_bigendian=unknown
     6319  cat >conftest.$ac_ext <<_ACEOF
     6320/* confdefs.h.  */
     6321_ACEOF
     6322cat confdefs.h >>conftest.$ac_ext
     6323cat >>conftest.$ac_ext <<_ACEOF
     6324/* end confdefs.h.  */
     6325short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6326short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6327void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
     6328short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6329short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6330void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6331int
     6332main ()
     6333{
     6334 _ascii (); _ebcdic ();
     6335  ;
     6336  return 0;
     6337}
     6338_ACEOF
     6339rm -f conftest.$ac_objext
     6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6341  (eval $ac_compile) 2>conftest.er1
     6342  ac_status=$?
     6343  grep -v '^ *+' conftest.er1 >conftest.err
     6344  rm -f conftest.er1
     6345  cat conftest.err >&5
     6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6347  (exit $ac_status); } &&
     6348     { ac_try='test -z "$ac_c_werror_flag"
     6349             || test ! -s conftest.err'
     6350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6351  (eval $ac_try) 2>&5
     6352  ac_status=$?
     6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6354  (exit $ac_status); }; } &&
     6355     { ac_try='test -s conftest.$ac_objext'
     6356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6357  (eval $ac_try) 2>&5
     6358  ac_status=$?
     6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6360  (exit $ac_status); }; }; then
     6361  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
     6362  ac_cv_c_bigendian=yes
     6363fi
     6364if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6365  if test "$ac_cv_c_bigendian" = unknown; then
     6366    ac_cv_c_bigendian=no
     6367  else
     6368    # finding both strings is unlikely to happen, but who knows?
     6369    ac_cv_c_bigendian=unknown
     6370  fi
     6371fi
     6372else
     6373  echo "$as_me: failed program was:" >&5
     6374sed 's/^/| /' conftest.$ac_ext >&5
     6375
     6376fi
     6377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6378else
     6379  cat >conftest.$ac_ext <<_ACEOF
     6380/* confdefs.h.  */
     6381_ACEOF
     6382cat confdefs.h >>conftest.$ac_ext
     6383cat >>conftest.$ac_ext <<_ACEOF
     6384/* end confdefs.h.  */
     6385int
     6386main ()
     6387{
     6388  /* Are we little or big endian?  From Harbison&Steele.  */
     6389  union
     6390  {
     6391    long l;
     6392    char c[sizeof (long)];
     6393  } u;
     6394  u.l = 1;
     6395  exit (u.c[sizeof (long) - 1] == 1);
     6396}
     6397_ACEOF
     6398rm -f conftest$ac_exeext
     6399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6400  (eval $ac_link) 2>&5
     6401  ac_status=$?
     6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6403  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6405  (eval $ac_try) 2>&5
     6406  ac_status=$?
     6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6408  (exit $ac_status); }; }; then
     6409  ac_cv_c_bigendian=no
     6410else
     6411  echo "$as_me: program exited with status $ac_status" >&5
     6412echo "$as_me: failed program was:" >&5
     6413sed 's/^/| /' conftest.$ac_ext >&5
     6414
     6415( exit $ac_status )
     6416ac_cv_c_bigendian=yes
     6417fi
     6418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6419fi
     6420fi
     6421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6422fi
     6423echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     6424echo "${ECHO_T}$ac_cv_c_bigendian" >&6
     6425case $ac_cv_c_bigendian in
     6426  yes)
     6427
     6428cat >>confdefs.h <<\_ACEOF
     6429#define WORDS_BIGENDIAN 1
     6430_ACEOF
     6431 ;;
     6432  no)
     6433     ;;
     6434  *)
     6435    { { echo "$as_me:$LINENO: error: unknown endianness
     6436presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     6437echo "$as_me: error: unknown endianness
     6438presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     6439   { (exit 1); exit 1; }; } ;;
     6440esac
    26966441
    26976442
    26986443# ---------------------------------------------------------------------------
    26996444if test "$ac_cv_func_alloca" = 'no'; then
    2700   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     6445  case $LIBOBJS in
     6446    "xmalloc.$ac_objext"   | \
     6447  *" xmalloc.$ac_objext"   | \
     6448    "xmalloc.$ac_objext "* | \
     6449  *" xmalloc.$ac_objext "* ) ;;
     6450  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6451esac
     6452
     6453  case $LIBOBJS in
     6454    "error.$ac_objext"   | \
     6455  *" error.$ac_objext"   | \
     6456    "error.$ac_objext "* | \
     6457  *" error.$ac_objext "* ) ;;
     6458  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6459esac
     6460
    27016461fi
    27026462
     
    27046464# ---------------------------------------------------------------------------
    27056465
    2706 trap '' 1 2 15
    2707 cat > confcache <<\EOF
     6466                                                  ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile"
     6467          ac_config_commands="$ac_config_commands default"
     6468cat >confcache <<\_ACEOF
    27086469# This file is a shell script that caches the results of configure
    27096470# tests run on this system so they can be shared between configure
    2710 # scripts and configure runs.  It is not useful on other systems.
    2711 # If it contains results you don't want to keep, you may remove or edit it.
     6471# scripts and configure runs, see configure's option --config-cache.
     6472# It is not useful on other systems.  If it contains results you don't
     6473# want to keep, you may remove or edit it.
    27126474#
    2713 # By default, configure uses ./config.cache as the cache file,
    2714 # creating it if it does not exist already.  You can give configure
    2715 # the --cache-file=FILE option to use a different cache file; that is
    2716 # what configure does when it calls configure scripts in
    2717 # subdirectories, so they share the cache.
    2718 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    2719 # config.status only pays attention to the cache file if you give it the
    2720 # --recheck option to rerun configure.
     6475# config.status only pays attention to the cache file if you give it
     6476# the --recheck option to rerun configure.
    27216477#
    2722 EOF
     6478# `ac_cv_env_foo' variables (set or unset) will be overridden when
     6479# loading this file, other *unset* `ac_cv_foo' will be assigned the
     6480# following values.
     6481
     6482_ACEOF
     6483
    27236484# The following way of writing the cache mishandles newlines in values,
    27246485# but we know of no workaround that is simple, portable, and efficient.
     
    27266487# Ultrix sh set writes to stderr and can't be redirected directly,
    27276488# and sets the high bit in the cache file unless we assign to the vars.
    2728 (set) 2>&1 |
    2729   case `(ac_space=' '; set) 2>&1` in
    2730   *ac_space=\ *)
    2731     # `set' does not quote correctly, so add quotes (double-quote substitution
    2732     # turns \\\\ into \\, and sed turns \\ into \).
    2733     sed -n \
    2734       -e "s/'/'\\\\''/g" \
    2735       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    2736     ;;
    2737   *)
    2738     # `set' quotes correctly as required by POSIX, so do not add quotes.
    2739     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    2740     ;;
    2741   esac >> confcache
    2742 if cmp -s $cache_file confcache; then
    2743   :
    2744 else
     6489{
     6490  (set) 2>&1 |
     6491    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     6492    *ac_space=\ *)
     6493      # `set' does not quote correctly, so add quotes (double-quote
     6494      # substitution turns \\\\ into \\, and sed turns \\ into \).
     6495      sed -n \
     6496    "s/'/'\\\\''/g;
     6497      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     6498      ;;
     6499    *)
     6500      # `set' quotes correctly as required by POSIX, so do not add quotes.
     6501      sed -n \
     6502    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6503      ;;
     6504    esac;
     6505} |
     6506  sed '
     6507     t clear
     6508     : clear
     6509     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     6510     t end
     6511     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6512     : end' >>confcache
     6513if diff $cache_file confcache >/dev/null 2>&1; then :; else
    27456514  if test -w $cache_file; then
    2746     echo "updating cache $cache_file"
    2747     cat confcache > $cache_file
     6515    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6516    cat confcache >$cache_file
    27486517  else
    27496518    echo "not updating unwritable cache $cache_file"
     
    27526521rm -f confcache
    27536522
    2754 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    2755 
    27566523test "x$prefix" = xNONE && prefix=$ac_default_prefix
    27576524# Let make expand exec_prefix.
    27586525test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    27596526
    2760 # Any assignment to VPATH causes Sun make to only execute
    2761 # the first set of double-colon rules, so remove it if not needed.
    2762 # If there is a colon in the path, we need to keep it.
     6527# VPATH may cause trouble with some makes, so we remove $(srcdir),
     6528# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     6529# trailing colons and then remove the whole line if VPATH becomes empty
     6530# (actually we leave an empty line to preserve line numbers).
    27636531if test "x$srcdir" = x.; then
    2764   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    2765 fi
    2766 
    2767 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     6532  ac_vpsub='/^[  ]*VPATH[    ]*=/{
     6533s/:*\$(srcdir):*/:/;
     6534s/:*\${srcdir}:*/:/;
     6535s/:*@srcdir@:*/:/;
     6536s/^\([^=]*=[     ]*\):*/\1/;
     6537s/:*$//;
     6538s/^[^=]*=[   ]*$//;
     6539}'
     6540fi
    27686541
    27696542DEFS=-DHAVE_CONFIG_H
    27706543
    2771 # Without the "./", some shells look in PATH for config.status.
     6544ac_libobjs=
     6545ac_ltlibobjs=
     6546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     6547  # 1. Remove the extension, and $U if already installed.
     6548  ac_i=`echo "$ac_i" |
     6549     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     6550  # 2. Add them.
     6551  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     6552  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6553done
     6554LIBOBJS=$ac_libobjs
     6555
     6556LTLIBOBJS=$ac_ltlibobjs
     6557
     6558
     6559
    27726560: ${CONFIG_STATUS=./config.status}
    2773 
    2774 echo creating $CONFIG_STATUS
    2775 rm -f $CONFIG_STATUS
    2776 cat > $CONFIG_STATUS <<EOF
    2777 #! /bin/sh
    2778 # Generated automatically by configure.
     6561ac_clean_files_save=$ac_clean_files
     6562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     6563{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     6564echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6565cat >$CONFIG_STATUS <<_ACEOF
     6566#! $SHELL
     6567# Generated by $as_me.
    27796568# Run this file to recreate the current configuration.
    2780 # This directory was configured as follows,
    2781 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    2782 #
    2783 # $0 $ac_configure_args
    2784 #
    27856569# Compiler output produced by configure, useful for debugging
    2786 # configure, is in ./config.log if it exists.
    2787 
    2788 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    2789 for ac_option
     6570# configure, is in config.log if it exists.
     6571
     6572debug=false
     6573ac_cs_recheck=false
     6574ac_cs_silent=false
     6575SHELL=\${CONFIG_SHELL-$SHELL}
     6576_ACEOF
     6577
     6578cat >>$CONFIG_STATUS <<\_ACEOF
     6579## --------------------- ##
     6580## M4sh Initialization.  ##
     6581## --------------------- ##
     6582
     6583# Be Bourne compatible
     6584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6585  emulate sh
     6586  NULLCMD=:
     6587  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6588  # is contrary to our usage.  Disable this feature.
     6589  alias -g '${1+"$@"}'='"$@"'
     6590elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     6591  set -o posix
     6592fi
     6593DUALCASE=1; export DUALCASE # for MKS sh
     6594
     6595# Support unset when possible.
     6596if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     6597  as_unset=unset
     6598else
     6599  as_unset=false
     6600fi
     6601
     6602
     6603# Work around bugs in pre-3.0 UWIN ksh.
     6604$as_unset ENV MAIL MAILPATH
     6605PS1='$ '
     6606PS2='> '
     6607PS4='+ '
     6608
     6609# NLS nuisances.
     6610for as_var in \
     6611  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     6612  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     6613  LC_TELEPHONE LC_TIME
    27906614do
    2791   case "\$ac_option" in
     6615  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     6616    eval $as_var=C; export $as_var
     6617  else
     6618    $as_unset $as_var
     6619  fi
     6620done
     6621
     6622# Required to use basename.
     6623if expr a : '\(a\)' >/dev/null 2>&1; then
     6624  as_expr=expr
     6625else
     6626  as_expr=false
     6627fi
     6628
     6629if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6630  as_basename=basename
     6631else
     6632  as_basename=false
     6633fi
     6634
     6635
     6636# Name of the executable.
     6637as_me=`$as_basename "$0" ||
     6638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     6639     X"$0" : 'X\(//\)$' \| \
     6640     X"$0" : 'X\(/\)$' \| \
     6641     .     : '\(.\)' 2>/dev/null ||
     6642echo X/"$0" |
     6643    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     6644      /^X\/\(\/\/\)$/{ s//\1/; q; }
     6645      /^X\/\(\/\).*/{ s//\1/; q; }
     6646      s/.*/./; q'`
     6647
     6648
     6649# PATH needs CR, and LINENO needs CR and PATH.
     6650# Avoid depending upon Character Ranges.
     6651as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     6652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     6653as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     6654as_cr_digits='0123456789'
     6655as_cr_alnum=$as_cr_Letters$as_cr_digits
     6656
     6657# The user is always right.
     6658if test "${PATH_SEPARATOR+set}" != set; then
     6659  echo "#! /bin/sh" >conf$$.sh
     6660  echo  "exit 0"   >>conf$$.sh
     6661  chmod +x conf$$.sh
     6662  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     6663    PATH_SEPARATOR=';'
     6664  else
     6665    PATH_SEPARATOR=:
     6666  fi
     6667  rm -f conf$$.sh
     6668fi
     6669
     6670
     6671  as_lineno_1=$LINENO
     6672  as_lineno_2=$LINENO
     6673  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6674  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6675  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     6676  # Find who we are.  Look in the path if we contain no path at all
     6677  # relative or not.
     6678  case $0 in
     6679    *[\\/]* ) as_myself=$0 ;;
     6680    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6681for as_dir in $PATH
     6682do
     6683  IFS=$as_save_IFS
     6684  test -z "$as_dir" && as_dir=.
     6685  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6686done
     6687
     6688       ;;
     6689  esac
     6690  # We did not find ourselves, most probably we were run as `sh COMMAND'
     6691  # in which case we are not to be found in the path.
     6692  if test "x$as_myself" = x; then
     6693    as_myself=$0
     6694  fi
     6695  if test ! -f "$as_myself"; then
     6696    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     6697echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     6698   { (exit 1); exit 1; }; }
     6699  fi
     6700  case $CONFIG_SHELL in
     6701  '')
     6702    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6703for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     6704do
     6705  IFS=$as_save_IFS
     6706  test -z "$as_dir" && as_dir=.
     6707  for as_base in sh bash ksh sh5; do
     6708     case $as_dir in
     6709     /*)
     6710       if ("$as_dir/$as_base" -c '
     6711  as_lineno_1=$LINENO
     6712  as_lineno_2=$LINENO
     6713  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6714  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6715  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     6716         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     6717         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     6718         CONFIG_SHELL=$as_dir/$as_base
     6719         export CONFIG_SHELL
     6720         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     6721       fi;;
     6722     esac
     6723       done
     6724done
     6725;;
     6726  esac
     6727
     6728  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     6729  # uniformly replaced by the line number.  The first 'sed' inserts a
     6730  # line-number line before each line; the second 'sed' does the real
     6731  # work.  The second script uses 'N' to pair each line-number line
     6732  # with the numbered line, and appends trailing '-' during
     6733  # substitution so that $LINENO is not a special case at line end.
     6734  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     6735  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     6736  sed '=' <$as_myself |
     6737    sed '
     6738      N
     6739      s,$,-,
     6740      : loop
     6741      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     6742      t loop
     6743      s,-$,,
     6744      s,^['$as_cr_digits']*\n,,
     6745    ' >$as_me.lineno &&
     6746  chmod +x $as_me.lineno ||
     6747    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     6748echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     6749   { (exit 1); exit 1; }; }
     6750
     6751  # Don't try to exec as it changes $[0], causing all sort of problems
     6752  # (the dirname of $[0] is not the place where we might find the
     6753  # original and so on.  Autoconf is especially sensible to this).
     6754  . ./$as_me.lineno
     6755  # Exit status is that of the last command.
     6756  exit
     6757}
     6758
     6759
     6760case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     6761  *c*,-n*) ECHO_N= ECHO_C='
     6762' ECHO_T='  ' ;;
     6763  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     6764  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     6765esac
     6766
     6767if expr a : '\(a\)' >/dev/null 2>&1; then
     6768  as_expr=expr
     6769else
     6770  as_expr=false
     6771fi
     6772
     6773rm -f conf$$ conf$$.exe conf$$.file
     6774echo >conf$$.file
     6775if ln -s conf$$.file conf$$ 2>/dev/null; then
     6776  # We could just check for DJGPP; but this test a) works b) is more generic
     6777  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     6778  if test -f conf$$.exe; then
     6779    # Don't use ln at all; we don't have any links
     6780    as_ln_s='cp -p'
     6781  else
     6782    as_ln_s='ln -s'
     6783  fi
     6784elif ln conf$$.file conf$$ 2>/dev/null; then
     6785  as_ln_s=ln
     6786else
     6787  as_ln_s='cp -p'
     6788fi
     6789rm -f conf$$ conf$$.exe conf$$.file
     6790
     6791if mkdir -p . 2>/dev/null; then
     6792  as_mkdir_p=:
     6793else
     6794  test -d ./-p && rmdir ./-p
     6795  as_mkdir_p=false
     6796fi
     6797
     6798as_executable_p="test -f"
     6799
     6800# Sed expression to map a string onto a valid CPP name.
     6801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     6802
     6803# Sed expression to map a string onto a valid variable name.
     6804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     6805
     6806
     6807# IFS
     6808# We need space, tab and new line, in precisely that order.
     6809as_nl='
     6810'
     6811IFS="   $as_nl"
     6812
     6813# CDPATH.
     6814$as_unset CDPATH
     6815
     6816exec 6>&1
     6817
     6818# Open the log real soon, to keep \$[0] and so on meaningful, and to
     6819# report actual input values of CONFIG_FILES etc. instead of their
     6820# values after options handling.  Logging --version etc. is OK.
     6821exec 5>>config.log
     6822{
     6823  echo
     6824  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     6825## Running $as_me. ##
     6826_ASBOX
     6827} >&5
     6828cat >&5 <<_CSEOF
     6829
     6830This file was extended by $as_me, which was
     6831generated by GNU Autoconf 2.59.  Invocation command line was
     6832
     6833  CONFIG_FILES    = $CONFIG_FILES
     6834  CONFIG_HEADERS  = $CONFIG_HEADERS
     6835  CONFIG_LINKS    = $CONFIG_LINKS
     6836  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6837  $ $0 $@
     6838
     6839_CSEOF
     6840echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     6841echo >&5
     6842_ACEOF
     6843
     6844# Files that config.status was made for.
     6845if test -n "$ac_config_files"; then
     6846  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     6847fi
     6848
     6849if test -n "$ac_config_headers"; then
     6850  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     6851fi
     6852
     6853if test -n "$ac_config_links"; then
     6854  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     6855fi
     6856
     6857if test -n "$ac_config_commands"; then
     6858  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     6859fi
     6860
     6861cat >>$CONFIG_STATUS <<\_ACEOF
     6862
     6863ac_cs_usage="\
     6864\`$as_me' instantiates files from templates according to the
     6865current configuration.
     6866
     6867Usage: $0 [OPTIONS] [FILE]...
     6868
     6869  -h, --help       print this help, then exit
     6870  -V, --version    print version number, then exit
     6871  -q, --quiet      do not print progress messages
     6872  -d, --debug      don't remove temporary files
     6873      --recheck    update $as_me by reconfiguring in the same conditions
     6874  --file=FILE[:TEMPLATE]
     6875           instantiate the configuration file FILE
     6876  --header=FILE[:TEMPLATE]
     6877           instantiate the configuration header FILE
     6878
     6879Configuration files:
     6880$config_files
     6881
     6882Configuration headers:
     6883$config_headers
     6884
     6885Configuration commands:
     6886$config_commands
     6887
     6888Report bugs to <[email protected]>."
     6889_ACEOF
     6890
     6891cat >>$CONFIG_STATUS <<_ACEOF
     6892ac_cs_version="\\
     6893config.status
     6894configured by $0, generated by GNU Autoconf 2.59,
     6895  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     6896
     6897Copyright (C) 2003 Free Software Foundation, Inc.
     6898This config.status script is free software; the Free Software Foundation
     6899gives unlimited permission to copy, distribute and modify it."
     6900srcdir=$srcdir
     6901INSTALL="$INSTALL"
     6902_ACEOF
     6903
     6904cat >>$CONFIG_STATUS <<\_ACEOF
     6905# If no file are specified by the user, then we need to provide default
     6906# value.  By we need to know if files were specified by the user.
     6907ac_need_defaults=:
     6908while test $# != 0
     6909do
     6910  case $1 in
     6911  --*=*)
     6912    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     6913    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     6914    ac_shift=:
     6915    ;;
     6916  -*)
     6917    ac_option=$1
     6918    ac_optarg=$2
     6919    ac_shift=shift
     6920    ;;
     6921  *) # This is not an option, so the user has probably given explicit
     6922     # arguments.
     6923     ac_option=$1
     6924     ac_need_defaults=false;;
     6925  esac
     6926
     6927  case $ac_option in
     6928  # Handling of the options.
     6929_ACEOF
     6930cat >>$CONFIG_STATUS <<\_ACEOF
    27926931  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    2793     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    2794     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    2795   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    2796     echo "$CONFIG_STATUS generated by autoconf version 2.12"
    2797     exit 0 ;;
    2798   -help | --help | --hel | --he | --h)
    2799     echo "\$ac_cs_usage"; exit 0 ;;
    2800   *) echo "\$ac_cs_usage"; exit 1 ;;
     6932    ac_cs_recheck=: ;;
     6933  --version | --vers* | -V )
     6934    echo "$ac_cs_version"; exit 0 ;;
     6935  --he | --h)
     6936    # Conflict between --help and --header
     6937    { { echo "$as_me:$LINENO: error: ambiguous option: $1
     6938Try \`$0 --help' for more information." >&5
     6939echo "$as_me: error: ambiguous option: $1
     6940Try \`$0 --help' for more information." >&2;}
     6941   { (exit 1); exit 1; }; };;
     6942  --help | --hel | -h )
     6943    echo "$ac_cs_usage"; exit 0 ;;
     6944  --debug | --d* | -d )
     6945    debug=: ;;
     6946  --file | --fil | --fi | --f )
     6947    $ac_shift
     6948    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     6949    ac_need_defaults=false;;
     6950  --header | --heade | --head | --hea )
     6951    $ac_shift
     6952    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     6953    ac_need_defaults=false;;
     6954  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6955  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6956    ac_cs_silent=: ;;
     6957
     6958  # This is an error.
     6959  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
     6960Try \`$0 --help' for more information." >&5
     6961echo "$as_me: error: unrecognized option: $1
     6962Try \`$0 --help' for more information." >&2;}
     6963   { (exit 1); exit 1; }; } ;;
     6964
     6965  *) ac_config_targets="$ac_config_targets $1" ;;
     6966
     6967  esac
     6968  shift
     6969done
     6970
     6971ac_configure_extra_args=
     6972
     6973if $ac_cs_silent; then
     6974  exec 6>/dev/null
     6975  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6976fi
     6977
     6978_ACEOF
     6979cat >>$CONFIG_STATUS <<_ACEOF
     6980if \$ac_cs_recheck; then
     6981  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     6982  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6983fi
     6984
     6985_ACEOF
     6986
     6987
     6988
     6989
     6990
     6991cat >>$CONFIG_STATUS <<\_ACEOF
     6992for ac_config_target in $ac_config_targets
     6993do
     6994  case "$ac_config_target" in
     6995  # Handling of arguments.
     6996  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6997  "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     6998  "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
     6999  "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
     7000  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     7001  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     7002  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7003  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     7004echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     7005   { (exit 1); exit 1; }; };;
    28017006  esac
    28027007done
    28037008
    2804 ac_given_srcdir=$srcdir
    2805 ac_given_INSTALL="$INSTALL"
    2806 
    2807 trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile
    2808           src/scripts/Makefile lib/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    2809 EOF
    2810 cat >> $CONFIG_STATUS <<EOF
    2811 
    2812 # Protect against being on the right side of a sed subst in config.status.
    2813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    2814  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    2815 $ac_vpsub
     7009# If the user did not use the arguments to specify the items to instantiate,
     7010# then the envvar interface is used.  Set only those that are not.
     7011# We use the long form for the default assignment because of an extremely
     7012# bizarre bug on SunOS 4.1.3.
     7013if $ac_need_defaults; then
     7014  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     7015  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     7016  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
     7017fi
     7018
     7019# Have a temporary directory for convenience.  Make it in the build tree
     7020# simply because there is no reason to put it here, and in addition,
     7021# creating and moving files from /tmp can sometimes cause problems.
     7022# Create a temporary directory, and hook for its removal unless debugging.
     7023$debug ||
     7024{
     7025  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     7026  trap '{ (exit 1); exit 1; }' 1 2 13 15
     7027}
     7028
     7029# Create a (secure) tmp directory for tmp files.
     7030
     7031{
     7032  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7033  test -n "$tmp" && test -d "$tmp"
     7034}  ||
     7035{
     7036  tmp=./confstat$$-$RANDOM
     7037  (umask 077 && mkdir $tmp)
     7038} ||
     7039{
     7040   echo "$me: cannot create a temporary directory in ." >&2
     7041   { (exit 1); exit 1; }
     7042}
     7043
     7044_ACEOF
     7045
     7046cat >>$CONFIG_STATUS <<_ACEOF
     7047
     7048#
     7049# CONFIG_FILES section.
     7050#
     7051
     7052# No need to generate the scripts if there are no CONFIG_FILES.
     7053# This happens for instance when ./config.status config.h
     7054if test -n "\$CONFIG_FILES"; then
     7055  # Protect against being on the right side of a sed subst in config.status.
     7056  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     7057   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     7058s,@SHELL@,$SHELL,;t t
     7059s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     7060s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     7061s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     7062s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     7063s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     7064s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     7065s,@exec_prefix@,$exec_prefix,;t t
     7066s,@prefix@,$prefix,;t t
     7067s,@program_transform_name@,$program_transform_name,;t t
     7068s,@bindir@,$bindir,;t t
     7069s,@sbindir@,$sbindir,;t t
     7070s,@libexecdir@,$libexecdir,;t t
     7071s,@datadir@,$datadir,;t t
     7072s,@sysconfdir@,$sysconfdir,;t t
     7073s,@sharedstatedir@,$sharedstatedir,;t t
     7074s,@localstatedir@,$localstatedir,;t t
     7075s,@libdir@,$libdir,;t t
     7076s,@includedir@,$includedir,;t t
     7077s,@oldincludedir@,$oldincludedir,;t t
     7078s,@infodir@,$infodir,;t t
     7079s,@mandir@,$mandir,;t t
     7080s,@build_alias@,$build_alias,;t t
     7081s,@host_alias@,$host_alias,;t t
     7082s,@target_alias@,$target_alias,;t t
     7083s,@DEFS@,$DEFS,;t t
     7084s,@ECHO_C@,$ECHO_C,;t t
     7085s,@ECHO_N@,$ECHO_N,;t t
     7086s,@ECHO_T@,$ECHO_T,;t t
     7087s,@LIBS@,$LIBS,;t t
     7088s,@PACKAGE@,$PACKAGE,;t t
     7089s,@VERSION@,$VERSION,;t t
     7090s,@CXX@,$CXX,;t t
     7091s,@CXXFLAGS@,$CXXFLAGS,;t t
     7092s,@LDFLAGS@,$LDFLAGS,;t t
     7093s,@CPPFLAGS@,$CPPFLAGS,;t t
     7094s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     7095s,@EXEEXT@,$EXEEXT,;t t
     7096s,@OBJEXT@,$OBJEXT,;t t
     7097s,@AWK@,$AWK,;t t
     7098s,@YACC@,$YACC,;t t
     7099s,@CC@,$CC,;t t
     7100s,@CFLAGS@,$CFLAGS,;t t
     7101s,@ac_ct_CC@,$ac_ct_CC,;t t
     7102s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     7103s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     7104s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     7105s,@LN_S@,$LN_S,;t t
     7106s,@SET_MAKE@,$SET_MAKE,;t t
     7107s,@RANLIB@,$RANLIB,;t t
     7108s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     7109s,@CPP@,$CPP,;t t
     7110s,@EGREP@,$EGREP,;t t
     7111s,@U@,$U,;t t
     7112s,@ANSI2KNR@,$ANSI2KNR,;t t
     7113s,@ALLOCA@,$ALLOCA,;t t
     7114s,@LIBOBJS@,$LIBOBJS,;t t
     7115s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     7116CEOF
     7117
     7118_ACEOF
     7119
     7120  cat >>$CONFIG_STATUS <<\_ACEOF
     7121  # Split the substitutions into bite-sized pieces for seds with
     7122  # small command number limits, like on Digital OSF/1 and HP-UX.
     7123  ac_max_sed_lines=48
     7124  ac_sed_frag=1 # Number of current file.
     7125  ac_beg=1 # First line for current file.
     7126  ac_end=$ac_max_sed_lines # Line after last line for current file.
     7127  ac_more_lines=:
     7128  ac_sed_cmds=
     7129  while $ac_more_lines; do
     7130    if test $ac_beg -gt 1; then
     7131      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7132    else
     7133      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7134    fi
     7135    if test ! -s $tmp/subs.frag; then
     7136      ac_more_lines=false
     7137    else
     7138      # The purpose of the label and of the branching condition is to
     7139      # speed up the sed processing (if there are no `@' at all, there
     7140      # is no need to browse any of the substitutions).
     7141      # These are the two extra sed commands mentioned above.
     7142      (echo ':t
     7143  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     7144      if test -z "$ac_sed_cmds"; then
     7145    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     7146      else
     7147    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     7148      fi
     7149      ac_sed_frag=`expr $ac_sed_frag + 1`
     7150      ac_beg=$ac_end
     7151      ac_end=`expr $ac_end + $ac_max_sed_lines`
     7152    fi
     7153  done
     7154  if test -z "$ac_sed_cmds"; then
     7155    ac_sed_cmds=cat
     7156  fi
     7157fi # test -n "$CONFIG_FILES"
     7158
     7159_ACEOF
     7160cat >>$CONFIG_STATUS <<\_ACEOF
     7161for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     7162  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     7163  case $ac_file in
     7164  - | *:- | *:-:* ) # input from stdin
     7165    cat >$tmp/stdin
     7166    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7167    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7168  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7169    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7170  * )   ac_file_in=$ac_file.in ;;
     7171  esac
     7172
     7173  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     7174  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7175$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7176     X"$ac_file" : 'X\(//\)[^/]' \| \
     7177     X"$ac_file" : 'X\(//\)$' \| \
     7178     X"$ac_file" : 'X\(/\)' \| \
     7179     .     : '\(.\)' 2>/dev/null ||
     7180echo X"$ac_file" |
     7181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7182      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7183      /^X\(\/\/\)$/{ s//\1/; q; }
     7184      /^X\(\/\).*/{ s//\1/; q; }
     7185      s/.*/./; q'`
     7186  { if $as_mkdir_p; then
     7187    mkdir -p "$ac_dir"
     7188  else
     7189    as_dir="$ac_dir"
     7190    as_dirs=
     7191    while test ! -d "$as_dir"; do
     7192      as_dirs="$as_dir $as_dirs"
     7193      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7194$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7195     X"$as_dir" : 'X\(//\)[^/]' \| \
     7196     X"$as_dir" : 'X\(//\)$' \| \
     7197     X"$as_dir" : 'X\(/\)' \| \
     7198     .     : '\(.\)' 2>/dev/null ||
     7199echo X"$as_dir" |
     7200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7201      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7202      /^X\(\/\/\)$/{ s//\1/; q; }
     7203      /^X\(\/\).*/{ s//\1/; q; }
     7204      s/.*/./; q'`
     7205    done
     7206    test ! -n "$as_dirs" || mkdir $as_dirs
     7207  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7208echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7209   { (exit 1); exit 1; }; }; }
     7210
     7211  ac_builddir=.
     7212
     7213if test "$ac_dir" != .; then
     7214  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7215  # A "../" for each directory in $ac_dir_suffix.
     7216  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7217else
     7218  ac_dir_suffix= ac_top_builddir=
     7219fi
     7220
     7221case $srcdir in
     7222  .)  # No --srcdir option.  We are building in place.
     7223    ac_srcdir=.
     7224    if test -z "$ac_top_builddir"; then
     7225       ac_top_srcdir=.
     7226    else
     7227       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7228    fi ;;
     7229  [\\/]* | ?:[\\/]* )  # Absolute path.
     7230    ac_srcdir=$srcdir$ac_dir_suffix;
     7231    ac_top_srcdir=$srcdir ;;
     7232  *) # Relative path.
     7233    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7234    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7235esac
     7236
     7237# Do not use `cd foo && pwd` to compute absolute paths, because
     7238# the directories may not exist.
     7239case `pwd` in
     7240.) ac_abs_builddir="$ac_dir";;
     7241*)
     7242  case "$ac_dir" in
     7243  .) ac_abs_builddir=`pwd`;;
     7244  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7245  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7246  esac;;
     7247esac
     7248case $ac_abs_builddir in
     7249.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7250*)
     7251  case ${ac_top_builddir}. in
     7252  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7253  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7254  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7255  esac;;
     7256esac
     7257case $ac_abs_builddir in
     7258.) ac_abs_srcdir=$ac_srcdir;;
     7259*)
     7260  case $ac_srcdir in
     7261  .) ac_abs_srcdir=$ac_abs_builddir;;
     7262  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7263  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7264  esac;;
     7265esac
     7266case $ac_abs_builddir in
     7267.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7268*)
     7269  case $ac_top_srcdir in
     7270  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7271  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7272  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7273  esac;;
     7274esac
     7275
     7276
     7277  case $INSTALL in
     7278  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     7279  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7280  esac
     7281
     7282  if test x"$ac_file" != x-; then
     7283    { echo "$as_me:$LINENO: creating $ac_file" >&5
     7284echo "$as_me: creating $ac_file" >&6;}
     7285    rm -f "$ac_file"
     7286  fi
     7287  # Let's still pretend it is `configure' which instantiates (i.e., don't
     7288  # use $as_me), people would be surprised to read:
     7289  #    /* config.h.  Generated by config.status.  */
     7290  if test x"$ac_file" = x-; then
     7291    configure_input=
     7292  else
     7293    configure_input="$ac_file.  "
     7294  fi
     7295  configure_input=$configure_input"Generated from `echo $ac_file_in |
     7296                     sed 's,.*/,,'` by configure."
     7297
     7298  # First look for the input files in the build tree, otherwise in the
     7299  # src tree.
     7300  ac_file_inputs=`IFS=:
     7301    for f in $ac_file_in; do
     7302      case $f in
     7303      -) echo $tmp/stdin ;;
     7304      [\\/$]*)
     7305     # Absolute (can't be DOS-style, as IFS=:)
     7306     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7307echo "$as_me: error: cannot find input file: $f" >&2;}
     7308   { (exit 1); exit 1; }; }
     7309     echo "$f";;
     7310      *) # Relative
     7311     if test -f "$f"; then
     7312       # Build tree
     7313       echo "$f"
     7314     elif test -f "$srcdir/$f"; then
     7315       # Source tree
     7316       echo "$srcdir/$f"
     7317     else
     7318       # /dev/null tree
     7319       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7320echo "$as_me: error: cannot find input file: $f" >&2;}
     7321   { (exit 1); exit 1; }; }
     7322     fi;;
     7323      esac
     7324    done` || { (exit 1); exit 1; }
     7325_ACEOF
     7326cat >>$CONFIG_STATUS <<_ACEOF
     7327  sed "$ac_vpsub
    28167328$extrasub
    2817 s%@CFLAGS@%$CFLAGS%g
    2818 s%@CPPFLAGS@%$CPPFLAGS%g
    2819 s%@CXXFLAGS@%$CXXFLAGS%g
    2820 s%@DEFS@%$DEFS%g
    2821 s%@LDFLAGS@%$LDFLAGS%g
    2822 s%@LIBS@%$LIBS%g
    2823 s%@exec_prefix@%$exec_prefix%g
    2824 s%@prefix@%$prefix%g
    2825 s%@program_transform_name@%$program_transform_name%g
    2826 s%@bindir@%$bindir%g
    2827 s%@sbindir@%$sbindir%g
    2828 s%@libexecdir@%$libexecdir%g
    2829 s%@datadir@%$datadir%g
    2830 s%@sysconfdir@%$sysconfdir%g
    2831 s%@sharedstatedir@%$sharedstatedir%g
    2832 s%@localstatedir@%$localstatedir%g
    2833 s%@libdir@%$libdir%g
    2834 s%@includedir@%$includedir%g
    2835 s%@oldincludedir@%$oldincludedir%g
    2836 s%@infodir@%$infodir%g
    2837 s%@mandir@%$mandir%g
    2838 s%@PACKAGE@%$PACKAGE%g
    2839 s%@VERSION@%$VERSION%g
    2840 s%@CXX@%$CXX%g
    2841 s%@AWK@%$AWK%g
    2842 s%@YACC@%$YACC%g
    2843 s%@CC@%$CC%g
    2844 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    2845 s%@INSTALL_DATA@%$INSTALL_DATA%g
    2846 s%@LN_S@%$LN_S%g
    2847 s%@SET_MAKE@%$SET_MAKE%g
    2848 s%@RANLIB@%$RANLIB%g
    2849 s%@CPP@%$CPP%g
    2850 s%@U@%$U%g
    2851 s%@ANSI2KNR@%$ANSI2KNR%g
    2852 s%@ALLOCA@%$ALLOCA%g
    2853 s%@LIBOBJS@%$LIBOBJS%g
    2854 
    2855 CEOF
    2856 EOF
    2857 
    2858 cat >> $CONFIG_STATUS <<\EOF
    2859 
    2860 # Split the substitutions into bite-sized pieces for seds with
    2861 # small command number limits, like on Digital OSF/1 and HP-UX.
    2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    2863 ac_file=1 # Number of current file.
    2864 ac_beg=1 # First line for current file.
    2865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    2866 ac_more_lines=:
    2867 ac_sed_cmds=""
    2868 while $ac_more_lines; do
    2869   if test $ac_beg -gt 1; then
    2870     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     7329_ACEOF
     7330cat >>$CONFIG_STATUS <<\_ACEOF
     7331:t
     7332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     7333s,@configure_input@,$configure_input,;t t
     7334s,@srcdir@,$ac_srcdir,;t t
     7335s,@abs_srcdir@,$ac_abs_srcdir,;t t
     7336s,@top_srcdir@,$ac_top_srcdir,;t t
     7337s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     7338s,@builddir@,$ac_builddir,;t t
     7339s,@abs_builddir@,$ac_abs_builddir,;t t
     7340s,@top_builddir@,$ac_top_builddir,;t t
     7341s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
     7342s,@INSTALL@,$ac_INSTALL,;t t
     7343" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     7344  rm -f $tmp/stdin
     7345  if test x"$ac_file" != x-; then
     7346    mv $tmp/out $ac_file
    28717347  else
    2872     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     7348    cat $tmp/out
     7349    rm -f $tmp/out
    28737350  fi
    2874   if test ! -s conftest.s$ac_file; then
    2875     ac_more_lines=false
    2876     rm -f conftest.s$ac_file
    2877   else
    2878     if test -z "$ac_sed_cmds"; then
    2879       ac_sed_cmds="sed -f conftest.s$ac_file"
    2880     else
    2881       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    2882     fi
    2883     ac_file=`expr $ac_file + 1`
    2884     ac_beg=$ac_end
    2885     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    2886   fi
     7351
    28877352done
    2888 if test -z "$ac_sed_cmds"; then
    2889   ac_sed_cmds=cat
    2890 fi
    2891 EOF
    2892 
    2893 cat >> $CONFIG_STATUS <<EOF
    2894 
    2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile
    2896           src/scripts/Makefile lib/Makefile "}
    2897 EOF
    2898 cat >> $CONFIG_STATUS <<\EOF
    2899 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    2900   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2901   case "$ac_file" in
    2902   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2903        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2904   *) ac_file_in="${ac_file}.in" ;;
    2905   esac
    2906 
    2907   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    2908 
    2909   # Remove last slash and all that follows it.  Not all systems have dirname.
    2910   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    2911   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    2912     # The file is in a subdirectory.
    2913     test ! -d "$ac_dir" && mkdir "$ac_dir"
    2914     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    2915     # A "../" for each directory in $ac_dir_suffix.
    2916     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    2917   else
    2918     ac_dir_suffix= ac_dots=
    2919   fi
    2920 
    2921   case "$ac_given_srcdir" in
    2922   .)  srcdir=.
    2923       if test -z "$ac_dots"; then top_srcdir=.
    2924       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2925   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    2926   *) # Relative path.
    2927     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    2928     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    2929   esac
    2930 
    2931   case "$ac_given_INSTALL" in
    2932   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    2933   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    2934   esac
    2935 
    2936   echo creating "$ac_file"
    2937   rm -f "$ac_file"
    2938   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    2939   case "$ac_file" in
    2940   *Makefile*) ac_comsub="1i\\
    2941 # $configure_input" ;;
    2942   *) ac_comsub= ;;
    2943   esac
    2944 
    2945   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2946   sed -e "$ac_comsub
    2947 s%@configure_input@%$configure_input%g
    2948 s%@srcdir@%$srcdir%g
    2949 s%@top_srcdir@%$top_srcdir%g
    2950 s%@INSTALL@%$INSTALL%g
    2951 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    2952 fi; done
    2953 rm -f conftest.s*
     7353_ACEOF
     7354cat >>$CONFIG_STATUS <<\_ACEOF
     7355
     7356#
     7357# CONFIG_HEADER section.
     7358#
    29547359
    29557360# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    29577362#
    29587363# ac_d sets the value in "#define NAME VALUE" lines.
    2959 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    2960 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
    2961 ac_dC='\3'
    2962 ac_dD='%g'
    2963 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    2964 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    2965 ac_uB='\([  ]\)%\1#\2define\3'
     7364ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
     7365ac_dB='[     ].*$,\1#\2'
     7366ac_dC=' '
     7367ac_dD=',;t'
     7368# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     7369ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     7370ac_uB='$,\1#\2define\3'
    29667371ac_uC=' '
    2967 ac_uD='\4%g'
    2968 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    2969 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    2970 ac_eB='$%\1#\2define\3'
    2971 ac_eC=' '
    2972 ac_eD='%g'
    2973 
    2974 if test "${CONFIG_HEADERS+set}" != set; then
    2975 EOF
    2976 cat >> $CONFIG_STATUS <<EOF
    2977   CONFIG_HEADERS="config.h"
    2978 EOF
    2979 cat >> $CONFIG_STATUS <<\EOF
    2980 fi
    2981 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     7372ac_uD=',;t'
     7373
     7374for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    29827375  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2983   case "$ac_file" in
    2984   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2985        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2986   *) ac_file_in="${ac_file}.in" ;;
     7376  case $ac_file in
     7377  - | *:- | *:-:* ) # input from stdin
     7378    cat >$tmp/stdin
     7379    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7380    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7381  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7382    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     7383  * )   ac_file_in=$ac_file.in ;;
    29877384  esac
    29887385
    2989   echo creating $ac_file
    2990 
    2991   rm -f conftest.frag conftest.in conftest.out
    2992   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2993   cat $ac_file_inputs > conftest.in
    2994 
    2995 EOF
    2996 
    2997 # Transform confdefs.h into a sed script conftest.vals that substitutes
    2998 # the proper values into config.h.in to produce config.h.  And first:
    2999 # Protect against being on the right side of a sed subst in config.status.
    3000 # Protect against being in an unquoted here document in config.status.
    3001 rm -f conftest.vals
    3002 cat > conftest.hdr <<\EOF
    3003 s/[\\&%]/\\&/g
    3004 s%[\\$`]%\\&%g
    3005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    3006 s%ac_d%ac_u%gp
    3007 s%ac_u%ac_e%gp
    3008 EOF
    3009 sed -n -f conftest.hdr confdefs.h > conftest.vals
    3010 rm -f conftest.hdr
     7386  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     7387echo "$as_me: creating $ac_file" >&6;}
     7388
     7389  # First look for the input files in the build tree, otherwise in the
     7390  # src tree.
     7391  ac_file_inputs=`IFS=:
     7392    for f in $ac_file_in; do
     7393      case $f in
     7394      -) echo $tmp/stdin ;;
     7395      [\\/$]*)
     7396     # Absolute (can't be DOS-style, as IFS=:)
     7397     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7398echo "$as_me: error: cannot find input file: $f" >&2;}
     7399   { (exit 1); exit 1; }; }
     7400     # Do quote $f, to prevent DOS paths from being IFS'd.
     7401     echo "$f";;
     7402      *) # Relative
     7403     if test -f "$f"; then
     7404       # Build tree
     7405       echo "$f"
     7406     elif test -f "$srcdir/$f"; then
     7407       # Source tree
     7408       echo "$srcdir/$f"
     7409     else
     7410       # /dev/null tree
     7411       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     7412echo "$as_me: error: cannot find input file: $f" >&2;}
     7413   { (exit 1); exit 1; }; }
     7414     fi;;
     7415      esac
     7416    done` || { (exit 1); exit 1; }
     7417  # Remove the trailing spaces.
     7418  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
     7419
     7420_ACEOF
     7421
     7422# Transform confdefs.h into two sed scripts, `conftest.defines' and
     7423# `conftest.undefs', that substitutes the proper values into
     7424# config.h.in to produce config.h.  The first handles `#define'
     7425# templates, and the second `#undef' templates.
     7426# And first: Protect against being on the right side of a sed subst in
     7427# config.status.  Protect against being in an unquoted here document
     7428# in config.status.
     7429rm -f conftest.defines conftest.undefs
     7430# Using a here document instead of a string reduces the quoting nightmare.
     7431# Putting comments in sed scripts is not portable.
     7432#
     7433# `end' is used to avoid that the second main sed command (meant for
     7434# 0-ary CPP macros) applies to n-ary macro definitions.
     7435# See the Autoconf documentation for `clear'.
     7436cat >confdef2sed.sed <<\_ACEOF
     7437s/[\\&,]/\\&/g
     7438s,[\\$`],\\&,g
     7439t clear
     7440: clear
     7441s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     7442t end
     7443s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     7444: end
     7445_ACEOF
     7446# If some macros were called several times there might be several times
     7447# the same #defines, which is useless.  Nevertheless, we may not want to
     7448# sort them, since we want the *last* AC-DEFINE to be honored.
     7449uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     7450sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     7451rm -f confdef2sed.sed
    30117452
    30127453# This sed command replaces #undef with comments.  This is necessary, for
    30137454# example, in the case of _POSIX_SOURCE, which is predefined and required
    30147455# on some systems where configure will not decide to define it.
    3015 cat >> conftest.vals <<\EOF
    3016 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    3017 EOF
    3018 
    3019 # Break up conftest.vals because some shells have a limit on
    3020 # the size of here documents, and old seds have small limits too.
    3021 
     7456cat >>conftest.undefs <<\_ACEOF
     7457s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     7458_ACEOF
     7459
     7460# Break up conftest.defines because some shells have a limit on the size
     7461# of here documents, and old seds have small limits too (100 cmds).
     7462echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     7463echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     7464echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     7465echo '  :' >>$CONFIG_STATUS
    30227466rm -f conftest.tail
    3023 while :
     7467while grep . conftest.defines >/dev/null
    30247468do
    3025   ac_lines=`grep -c . conftest.vals`
    3026   # grep -c gives empty output for an empty file on some AIX systems.
    3027   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    3028   # Write a limited-size here document to conftest.frag.
    3029   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    3030   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     7469  # Write a limited-size here document to $tmp/defines.sed.
     7470  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     7471  # Speed up: don't consider the non `#define' lines.
     7472  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
     7473  # Work around the forget-to-reset-the-flag bug.
     7474  echo 't clr' >>$CONFIG_STATUS
     7475  echo ': clr' >>$CONFIG_STATUS
     7476  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    30317477  echo 'CEOF
    3032   sed -f conftest.frag conftest.in > conftest.out
    3033   rm -f conftest.in
    3034   mv conftest.out conftest.in
    3035 ' >> $CONFIG_STATUS
    3036   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    3037   rm -f conftest.vals
    3038   mv conftest.tail conftest.vals
     7478  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     7479  rm -f $tmp/in
     7480  mv $tmp/out $tmp/in
     7481' >>$CONFIG_STATUS
     7482  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     7483  rm -f conftest.defines
     7484  mv conftest.tail conftest.defines
    30397485done
    3040 rm -f conftest.vals
    3041 
    3042 cat >> $CONFIG_STATUS <<\EOF
    3043   rm -f conftest.frag conftest.h
    3044   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    3045   cat conftest.in >> conftest.h
    3046   rm -f conftest.in
    3047   if cmp -s $ac_file conftest.h 2>/dev/null; then
    3048     echo "$ac_file is unchanged"
    3049     rm -f conftest.h
     7486rm -f conftest.defines
     7487echo '  fi # grep' >>$CONFIG_STATUS
     7488echo >>$CONFIG_STATUS
     7489
     7490# Break up conftest.undefs because some shells have a limit on the size
     7491# of here documents, and old seds have small limits too (100 cmds).
     7492echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     7493rm -f conftest.tail
     7494while grep . conftest.undefs >/dev/null
     7495do
     7496  # Write a limited-size here document to $tmp/undefs.sed.
     7497  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     7498  # Speed up: don't consider the non `#undef'
     7499  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     7500  # Work around the forget-to-reset-the-flag bug.
     7501  echo 't clr' >>$CONFIG_STATUS
     7502  echo ': clr' >>$CONFIG_STATUS
     7503  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     7504  echo 'CEOF
     7505  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     7506  rm -f $tmp/in
     7507  mv $tmp/out $tmp/in
     7508' >>$CONFIG_STATUS
     7509  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     7510  rm -f conftest.undefs
     7511  mv conftest.tail conftest.undefs
     7512done
     7513rm -f conftest.undefs
     7514
     7515cat >>$CONFIG_STATUS <<\_ACEOF
     7516  # Let's still pretend it is `configure' which instantiates (i.e., don't
     7517  # use $as_me), people would be surprised to read:
     7518  #    /* config.h.  Generated by config.status.  */
     7519  if test x"$ac_file" = x-; then
     7520    echo "/* Generated by configure.  */" >$tmp/config.h
    30507521  else
    3051     # Remove last slash and all that follows it.  Not all systems have dirname.
    3052       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    3053       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    3054       # The file is in a subdirectory.
    3055       test ! -d "$ac_dir" && mkdir "$ac_dir"
     7522    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     7523  fi
     7524  cat $tmp/in >>$tmp/config.h
     7525  rm -f $tmp/in
     7526  if test x"$ac_file" != x-; then
     7527    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     7528      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     7529echo "$as_me: $ac_file is unchanged" >&6;}
     7530    else
     7531      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7533     X"$ac_file" : 'X\(//\)[^/]' \| \
     7534     X"$ac_file" : 'X\(//\)$' \| \
     7535     X"$ac_file" : 'X\(/\)' \| \
     7536     .     : '\(.\)' 2>/dev/null ||
     7537echo X"$ac_file" |
     7538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7539      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7540      /^X\(\/\/\)$/{ s//\1/; q; }
     7541      /^X\(\/\).*/{ s//\1/; q; }
     7542      s/.*/./; q'`
     7543      { if $as_mkdir_p; then
     7544    mkdir -p "$ac_dir"
     7545  else
     7546    as_dir="$ac_dir"
     7547    as_dirs=
     7548    while test ! -d "$as_dir"; do
     7549      as_dirs="$as_dir $as_dirs"
     7550      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7552     X"$as_dir" : 'X\(//\)[^/]' \| \
     7553     X"$as_dir" : 'X\(//\)$' \| \
     7554     X"$as_dir" : 'X\(/\)' \| \
     7555     .     : '\(.\)' 2>/dev/null ||
     7556echo X"$as_dir" |
     7557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7558      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7559      /^X\(\/\/\)$/{ s//\1/; q; }
     7560      /^X\(\/\).*/{ s//\1/; q; }
     7561      s/.*/./; q'`
     7562    done
     7563    test ! -n "$as_dirs" || mkdir $as_dirs
     7564  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7565echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7566   { (exit 1); exit 1; }; }; }
     7567
     7568      rm -f $ac_file
     7569      mv $tmp/config.h $ac_file
    30567570    fi
    3057     rm -f $ac_file
    3058     mv conftest.h $ac_file
     7571  else
     7572    cat $tmp/config.h
     7573    rm -f $tmp/config.h
    30597574  fi
    3060 fi; done
    3061 
    3062 EOF
    3063 cat >> $CONFIG_STATUS <<EOF
    3064 
    3065 EOF
    3066 cat >> $CONFIG_STATUS <<\EOF
    3067 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    3068 exit 0
    3069 EOF
     7575done
     7576_ACEOF
     7577cat >>$CONFIG_STATUS <<\_ACEOF
     7578
     7579#
     7580# CONFIG_COMMANDS section.
     7581#
     7582for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
     7583  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
     7584  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
     7585  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
     7586$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7587     X"$ac_dest" : 'X\(//\)[^/]' \| \
     7588     X"$ac_dest" : 'X\(//\)$' \| \
     7589     X"$ac_dest" : 'X\(/\)' \| \
     7590     .     : '\(.\)' 2>/dev/null ||
     7591echo X"$ac_dest" |
     7592    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7593      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7594      /^X\(\/\/\)$/{ s//\1/; q; }
     7595      /^X\(\/\).*/{ s//\1/; q; }
     7596      s/.*/./; q'`
     7597  { if $as_mkdir_p; then
     7598    mkdir -p "$ac_dir"
     7599  else
     7600    as_dir="$ac_dir"
     7601    as_dirs=
     7602    while test ! -d "$as_dir"; do
     7603      as_dirs="$as_dir $as_dirs"
     7604      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7606     X"$as_dir" : 'X\(//\)[^/]' \| \
     7607     X"$as_dir" : 'X\(//\)$' \| \
     7608     X"$as_dir" : 'X\(/\)' \| \
     7609     .     : '\(.\)' 2>/dev/null ||
     7610echo X"$as_dir" |
     7611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7612      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7613      /^X\(\/\/\)$/{ s//\1/; q; }
     7614      /^X\(\/\).*/{ s//\1/; q; }
     7615      s/.*/./; q'`
     7616    done
     7617    test ! -n "$as_dirs" || mkdir $as_dirs
     7618  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7619echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7620   { (exit 1); exit 1; }; }; }
     7621
     7622  ac_builddir=.
     7623
     7624if test "$ac_dir" != .; then
     7625  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     7626  # A "../" for each directory in $ac_dir_suffix.
     7627  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     7628else
     7629  ac_dir_suffix= ac_top_builddir=
     7630fi
     7631
     7632case $srcdir in
     7633  .)  # No --srcdir option.  We are building in place.
     7634    ac_srcdir=.
     7635    if test -z "$ac_top_builddir"; then
     7636       ac_top_srcdir=.
     7637    else
     7638       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     7639    fi ;;
     7640  [\\/]* | ?:[\\/]* )  # Absolute path.
     7641    ac_srcdir=$srcdir$ac_dir_suffix;
     7642    ac_top_srcdir=$srcdir ;;
     7643  *) # Relative path.
     7644    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     7645    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7646esac
     7647
     7648# Do not use `cd foo && pwd` to compute absolute paths, because
     7649# the directories may not exist.
     7650case `pwd` in
     7651.) ac_abs_builddir="$ac_dir";;
     7652*)
     7653  case "$ac_dir" in
     7654  .) ac_abs_builddir=`pwd`;;
     7655  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     7656  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     7657  esac;;
     7658esac
     7659case $ac_abs_builddir in
     7660.) ac_abs_top_builddir=${ac_top_builddir}.;;
     7661*)
     7662  case ${ac_top_builddir}. in
     7663  .) ac_abs_top_builddir=$ac_abs_builddir;;
     7664  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     7665  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     7666  esac;;
     7667esac
     7668case $ac_abs_builddir in
     7669.) ac_abs_srcdir=$ac_srcdir;;
     7670*)
     7671  case $ac_srcdir in
     7672  .) ac_abs_srcdir=$ac_abs_builddir;;
     7673  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     7674  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     7675  esac;;
     7676esac
     7677case $ac_abs_builddir in
     7678.) ac_abs_top_srcdir=$ac_top_srcdir;;
     7679*)
     7680  case $ac_top_srcdir in
     7681  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     7682  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     7683  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     7684  esac;;
     7685esac
     7686
     7687
     7688  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
     7689echo "$as_me: executing $ac_dest commands" >&6;}
     7690  case $ac_dest in
     7691    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     7692  esac
     7693done
     7694_ACEOF
     7695
     7696cat >>$CONFIG_STATUS <<\_ACEOF
     7697
     7698{ (exit 0); exit 0; }
     7699_ACEOF
    30707700chmod +x $CONFIG_STATUS
    3071 rm -fr confdefs* $ac_clean_files
    3072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    3073 
     7701ac_clean_files=$ac_clean_files_save
     7702
     7703
     7704# configure is writing to config.log, and then calls config.status.
     7705# config.status does its own redirection, appending to config.log.
     7706# Unfortunately, on DOS this fails, as config.log is still kept open
     7707# by configure, so config.status won't be able to write to it; its
     7708# output is simply discarded.  So we exec the FD to /dev/null,
     7709# effectively closing config.log, so it can be properly (re)opened and
     7710# appended to by config.status.  When coming back to configure, we
     7711# need to make the FD available again.
     7712if test "$no_create" != yes; then
     7713  ac_cs_success=:
     7714  ac_config_status_args=
     7715  test "$silent" = yes &&
     7716    ac_config_status_args="$ac_config_status_args --quiet"
     7717  exec 5>/dev/null
     7718  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
     7719  exec 5>>config.log
     7720  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     7721  # would make configure fail if this is the last instruction.
     7722  $ac_cs_success || { (exit 1); exit 1; }
     7723fi
     7724
  • trunk/gsdl/packages/mg/configure.in

    r3762 r10852  
    7575if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7676  AC_MSG_RESULT(yes)
    77   LIBOBJS="$LIBOBJS gmalloc.o"
     77  AC_LIBOBJ(gmalloc)
    7878  AC_DEFINE(HAVE_VALLOC)
    7979else
     
    8585fp_WITH_REGEX
    8686
     87AC_C_BIGENDIAN
     88
    8789# ---------------------------------------------------------------------------
    8890if test "$ac_cv_func_alloca" = 'no'; then
    8991dnl    support functions for alloca.c
    90   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     92  AC_LIBOBJ(xmalloc)
     93  AC_LIBOBJ(error)
    9194fi
    9295
Note: See TracChangeset for help on using the changeset viewer.