Changeset 3762


Ignore:
Timestamp:
2003-02-24T13:53:58+13:00 (21 years ago)
Author:
jrm21
Message:

undid previous changes, which broke mg for gsdl-2

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

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/mg/Makefile.in

    r3739 r3762  
    4646#infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
    4747
    48 SUBDIRS = lib src/text src/images src/scripts jni java/org/greenstone/mg
    49 #SUBDIRS = lib src/text
     48#SUBDIRS = lib src/text src/images src/scripts
     49SUBDIRS = lib src/text
    5050
    5151
    5252.SUFFIXES:
    5353
    54 all install uninstall execinstall execuninstall maninstall manuninstall: config.h
     54all install uninstall execinstall execuninstall maninstall manuninstall: ../../config.h
    5555    for subdir in $(SUBDIRS); do \
    5656      echo making $@ in $$subdir; \
  • trunk/gsdl/packages/mg/configure

    r3739 r3762  
    11#! /bin/sh
     2
    23# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.50.
     4# Generated automatically using autoconf version 2.12
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    46#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Be Bourne compatible
    11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    12   emulate sh
    13   NULLCMD=:
    14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    15   set -o posix
    16 fi
    17 
    18 # Name of the executable.
    19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    20 
    21 if expr a : '\(a\)' >/dev/null 2>&1; then
    22   as_expr=expr
    23 else
    24   as_expr=false
    25 fi
    26 
    27 rm -f conf$$ conf$$.exe conf$$.file
    28 echo >conf$$.file
    29 if ln -s conf$$.file conf$$ 2>/dev/null; then
    30   # We could just check for DJGPP; but this test a) works b) is more generic
    31   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    32   if test -f conf$$.exe; then
    33     # Don't use ln at all; we don't have any links
    34     as_ln_s='cp -p'
    35   else
    36     as_ln_s='ln -s'
    37   fi
    38 elif ln conf$$.file conf$$ 2>/dev/null; then
    39   as_ln_s=ln
    40 else
    41   as_ln_s='cp -p'
    42 fi
    43 rm -f conf$$ conf$$.exe conf$$.file
    44 
    45 as_executable_p="test -f"
    46 
    47 # Support unset when possible.
    48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    49   as_unset=unset
    50 else
    51   as_unset=false
    52 fi
    53 
    54 # NLS nuisances.
    55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
    63 
    64 # IFS
    65 # We need space, tab and new line, in precisely that order.
    66 as_nl='
    67 '
    68 IFS="   $as_nl"
    69 
    70 # CDPATH.
    71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
    72 
    73 # Name of the host.
    74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    75 # so uname gets run too.
    76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    77 
    78 exec 6>&1
    79 
    80 #
    81 # Initializations.
    82 #
     10# Defaults:
     11ac_help=
    8312ac_default_prefix=/usr/local
    84 cross_compiling=no
    85 subdirs=
    86 MFLAGS= MAKEFLAGS=
    87 SHELL=${CONFIG_SHELL-/bin/sh}
    88 
    89 # Maximum number of lines to put in a shell here document.
    90 # This variable seems obsolete.  It should probably be removed, and
    91 # only ac_max_sed_lines should be used.
    92 : ${ac_max_here_lines=38}
    93 
    94 # Avoid depending upon Character Ranges.
    95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
    96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    97 ac_cr_09='0123456789'
    98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
    99 
    100 # Sed expression to map a string onto a valid sh and CPP variable names.
    101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
    102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
    103 
    104 ac_unique_file="src/text/mgquery.c"
    105 # Factoring default headers for most tests.
    106 ac_includes_default="\
    107 #include <stdio.h>
    108 #include <sys/types.h>
    109 #include <sys/stat.h>
    110 #if STDC_HEADERS
    111 # include <stdlib.h>
    112 # include <stddef.h>
    113 #else
    114 # if HAVE_STDLIB_H
    115 #  include <stdlib.h>
    116 # endif
    117 #endif
    118 #if HAVE_STRING_H
    119 # if !STDC_HEADERS && HAVE_MEMORY_H
    120 #  include <memory.h>
    121 # endif
    122 # include <string.h>
    123 #else
    124 # if HAVE_STRINGS_H
    125 #  include <strings.h>
    126 # endif
    127 #endif
    128 #if HAVE_INTTYPES_H
    129 # include <inttypes.h>
    130 #endif
    131 #if HAVE_UNISTD_H
    132 # include <unistd.h>
    133 #endif"
     13# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-dmalloc          use dmalloc, as in
     16                          ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
     17ac_help="$ac_help
     18  --with-regex            use older regex in lieu of GNU rx for matching"
    13419
    13520# Initialize some variables set by options.
    136 ac_init_help=
    137 ac_init_version=false
    13821# The variables have the same names as the options, with
    13922# dashes changed to underlines.
    140 cache_file=/dev/null
     23build=NONE
     24cache_file=./config.cache
    14125exec_prefix=NONE
     26host=NONE
    14227no_create=
     28nonopt=NONE
    14329no_recursion=
    14430prefix=NONE
     
    14935site=
    15036srcdir=
     37target=NONE
    15138verbose=
    15239x_includes=NONE
    15340x_libraries=NONE
    154 
    155 # Installation directory options.
    156 # These are left unexpanded so users can "make install exec_prefix=/foo"
    157 # and all the variables that are supposed to be based on exec_prefix
    158 # by default will actually change.
    159 # Use braces instead of parens because sh, perl, etc. also accept them.
    16041bindir='${exec_prefix}/bin'
    16142sbindir='${exec_prefix}/sbin'
     
    17152mandir='${prefix}/man'
    17253
    173 # Identity of this package.
    174 PACKAGE_NAME=
    175 PACKAGE_TARNAME=
    176 PACKAGE_VERSION=
    177 PACKAGE_STRING=
    178 PACKAGE_BUGREPORT=
     54# Initialize some other variables.
     55subdirs=
     56MFLAGS= MAKEFLAGS=
     57# Maximum number of lines to put in a shell here document.
     58ac_max_here_lines=12
    17959
    18060ac_prev=
    18161for ac_option
    18262do
     63
    18364  # If the previous option needs an argument, assign it.
    18465  if test -n "$ac_prev"; then
     
    18869  fi
    18970
    190   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     71  case "$ac_option" in
     72  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     73  *) ac_optarg= ;;
     74  esac
    19175
    19276  # Accept the important Cygnus configure options, so we can diagnose typos.
    19377
    194   case $ac_option in
     78  case "$ac_option" in
    19579
    19680  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    19781    ac_prev=bindir ;;
    19882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    199     bindir=$ac_optarg ;;
     83    bindir="$ac_optarg" ;;
    20084
    20185  -build | --build | --buil | --bui | --bu)
    202     ac_prev=build_alias ;;
     86    ac_prev=build ;;
    20387  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    204     build_alias=$ac_optarg ;;
     88    build="$ac_optarg" ;;
    20589
    20690  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    20993  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    21094  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    211     cache_file=$ac_optarg ;;
    212 
    213   --config-cache | -C)
    214     cache_file=config.cache ;;
     95    cache_file="$ac_optarg" ;;
    21596
    21697  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    21899  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    219100  | --da=*)
    220     datadir=$ac_optarg ;;
     101    datadir="$ac_optarg" ;;
    221102
    222103  -disable-* | --disable-*)
    223     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     104    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    224105    # Reject names that are not valid shell variable names.
    225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
    226       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    227    { (exit 1); exit 1; }; }
    228     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    229     eval "enable_$ac_feature=no" ;;
     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" ;;
    230111
    231112  -enable-* | --enable-*)
    232     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     113    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    233114    # Reject names that are not valid shell variable names.
    234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
    235       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    236    { (exit 1); exit 1; }; }
    237     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    238     case $ac_option in
    239       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     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      *=*) ;;
    240121      *) ac_optarg=yes ;;
    241122    esac
    242     eval "enable_$ac_feature='$ac_optarg'" ;;
     123    eval "enable_${ac_feature}='$ac_optarg'" ;;
    243124
    244125  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    249130  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    250131  | --exec=* | --exe=* | --ex=*)
    251     exec_prefix=$ac_optarg ;;
     132    exec_prefix="$ac_optarg" ;;
    252133
    253134  -gas | --gas | --ga | --g)
     
    255136    with_gas=yes ;;
    256137
    257   -help | --help | --hel | --he | -h)
    258     ac_init_help=long ;;
    259   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    260     ac_init_help=recursive ;;
    261   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    262     ac_init_help=short ;;
     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
     142Usage: configure [options] [host]
     143Options: [defaults in brackets after descriptions]
     144Configuration:
     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
     150Directory 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
     174EOF
     175    cat << EOF
     176Host 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]
     180Features 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
     187EOF
     188    if test -n "$ac_help"; then
     189      echo "--enable and --with options recognized:$ac_help"
     190    fi
     191    exit 0 ;;
    263192
    264193  -host | --host | --hos | --ho)
    265     ac_prev=host_alias ;;
     194    ac_prev=host ;;
    266195  -host=* | --host=* | --hos=* | --ho=*)
    267     host_alias=$ac_optarg ;;
     196    host="$ac_optarg" ;;
    268197
    269198  -includedir | --includedir | --includedi | --included | --include \
     
    272201  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    273202  | --includ=* | --inclu=* | --incl=* | --inc=*)
    274     includedir=$ac_optarg ;;
     203    includedir="$ac_optarg" ;;
    275204
    276205  -infodir | --infodir | --infodi | --infod | --info | --inf)
    277206    ac_prev=infodir ;;
    278207  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    279     infodir=$ac_optarg ;;
     208    infodir="$ac_optarg" ;;
    280209
    281210  -libdir | --libdir | --libdi | --libd)
    282211    ac_prev=libdir ;;
    283212  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    284     libdir=$ac_optarg ;;
     213    libdir="$ac_optarg" ;;
    285214
    286215  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    289218  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    290219  | --libexe=* | --libex=* | --libe=*)
    291     libexecdir=$ac_optarg ;;
     220    libexecdir="$ac_optarg" ;;
    292221
    293222  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    298227  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    299228  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    300     localstatedir=$ac_optarg ;;
     229    localstatedir="$ac_optarg" ;;
    301230
    302231  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    303232    ac_prev=mandir ;;
    304233  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    305     mandir=$ac_optarg ;;
     234    mandir="$ac_optarg" ;;
    306235
    307236  -nfp | --nfp | --nf)
     
    324253  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    325254  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    326     oldincludedir=$ac_optarg ;;
     255    oldincludedir="$ac_optarg" ;;
    327256
    328257  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    329258    ac_prev=prefix ;;
    330259  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    331     prefix=$ac_optarg ;;
     260    prefix="$ac_optarg" ;;
    332261
    333262  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    336265  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    337266  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    338     program_prefix=$ac_optarg ;;
     267    program_prefix="$ac_optarg" ;;
    339268
    340269  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    343272  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    344273  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    345     program_suffix=$ac_optarg ;;
     274    program_suffix="$ac_optarg" ;;
    346275
    347276  -program-transform-name | --program-transform-name \
     
    360289  | --program-trans=* | --program-tran=* \
    361290  | --progr-tra=* | --program-tr=* | --program-t=*)
    362     program_transform_name=$ac_optarg ;;
     291    program_transform_name="$ac_optarg" ;;
    363292
    364293  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    370299  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    371300  | --sbi=* | --sb=*)
    372     sbindir=$ac_optarg ;;
     301    sbindir="$ac_optarg" ;;
    373302
    374303  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    381310  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    382311  | --sha=* | --sh=*)
    383     sharedstatedir=$ac_optarg ;;
     312    sharedstatedir="$ac_optarg" ;;
    384313
    385314  -site | --site | --sit)
    386315    ac_prev=site ;;
    387316  -site=* | --site=* | --sit=*)
    388     site=$ac_optarg ;;
     317    site="$ac_optarg" ;;
    389318
    390319  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    391320    ac_prev=srcdir ;;
    392321  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    393     srcdir=$ac_optarg ;;
     322    srcdir="$ac_optarg" ;;
    394323
    395324  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    398327  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    399328  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    400     sysconfdir=$ac_optarg ;;
     329    sysconfdir="$ac_optarg" ;;
    401330
    402331  -target | --target | --targe | --targ | --tar | --ta | --t)
    403     ac_prev=target_alias ;;
     332    ac_prev=target ;;
    404333  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    405     target_alias=$ac_optarg ;;
     334    target="$ac_optarg" ;;
    406335
    407336  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    408337    verbose=yes ;;
    409338
    410   -version | --version | --versio | --versi | --vers | -V)
    411     ac_init_version=: ;;
     339  -version | --version | --versio | --versi | --vers)
     340    echo "configure generated by autoconf version 2.12"
     341    exit 0 ;;
    412342
    413343  -with-* | --with-*)
    414     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     344    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    415345    # Reject names that are not valid shell variable names.
    416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
    417       { echo "$as_me: error: invalid package name: $ac_package" >&2
    418    { (exit 1); exit 1; }; }
     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
    419349    ac_package=`echo $ac_package| sed 's/-/_/g'`
    420     case $ac_option in
    421       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     350    case "$ac_option" in
     351      *=*) ;;
    422352      *) ac_optarg=yes ;;
    423353    esac
    424     eval "with_$ac_package='$ac_optarg'" ;;
     354    eval "with_${ac_package}='$ac_optarg'" ;;
    425355
    426356  -without-* | --without-*)
    427     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     357    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    428358    # Reject names that are not valid shell variable names.
    429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
    430       { echo "$as_me: error: invalid package name: $ac_package" >&2
    431    { (exit 1); exit 1; }; }
    432     ac_package=`echo $ac_package | sed 's/-/_/g'`
    433     eval "with_$ac_package=no" ;;
     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" ;;
    434364
    435365  --x)
     
    442372  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    443373  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    444     x_includes=$ac_optarg ;;
     374    x_includes="$ac_optarg" ;;
    445375
    446376  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    449379  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    450380  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    451     x_libraries=$ac_optarg ;;
    452 
    453   -*) { echo "$as_me: error: unrecognized option: $ac_option
    454 Try \`$0 --help' for more information." >&2
    455    { (exit 1); exit 1; }; }
     381    x_libraries="$ac_optarg" ;;
     382
     383  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    456384    ;;
    457385
    458   *=*)
    459     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    460     # Reject names that are not valid shell variable names.
    461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
    462       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    463    { (exit 1); exit 1; }; }
    464     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    465     eval "$ac_envvar='$ac_optarg'"
    466     export $ac_envvar ;;
    467 
    468386  *)
    469     # FIXME: should be removed in autoconf 3.0.
    470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
    472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     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"
    474394    ;;
    475395
     
    478398
    479399if test -n "$ac_prev"; then
    480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    481   { echo "$as_me: error: missing argument to $ac_option" >&2
    482    { (exit 1); exit 1; }; }
    483 fi
    484 
    485 # Be sure to have absolute paths.
    486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    487               localstatedir libdir includedir oldincludedir infodir mandir \
    488               exec_prefix prefix
     400  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     401fi
     402
     403trap '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
     413if test "$silent" = yes; then
     414  exec 6>/dev/null
     415else
     416  exec 6>&1
     417fi
     418exec 5>./config.log
     419
     420echo "\
     421This file contains any messages produced by compilers while
     422running 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.
     427ac_configure_args=
     428for ac_arg
    489429do
    490   eval ac_val=$`echo $ac_var`
    491   case $ac_val in
    492     [\\/$]* | ?:[\\/]* ) ;;
    493     NONE ) ;;
    494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    495    { (exit 1); exit 1; }; };;
     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" ;;
    496438  esac
    497439done
    498440
    499 # There might be people who depend on the old broken behavior: `$host'
    500 # used to hold the argument of --host etc.
    501 build=$build_alias
    502 host=$host_alias
    503 target=$target_alias
    504 
    505 # FIXME: should be removed in autoconf 3.0.
    506 if test "x$host_alias" != x; then
    507   if test "x$build_alias" = x; then
    508     cross_compiling=maybe
    509     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    510     If a cross compiler is detected then cross compile mode will be used." >&2
    511   elif test "x$build_alias" != "x$host_alias"; then
    512     cross_compiling=yes
    513   fi
    514 fi
    515 
    516 ac_tool_prefix=
    517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    518 
    519 test "$silent" = yes && exec 6>/dev/null
     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.
     446if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     447if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     448if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     449if 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.
     452rm -rf conftest* confdefs.h
     453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     454echo > 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.
     458ac_unique_file=src/text/mgquery.c
    520459
    521460# Find the source files, if location was not specified.
     
    524463  # Try the directory containing this script, then its parent.
    525464  ac_prog=$0
    526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
     465  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    527466  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    528467  srcdir=$ac_confdir
     
    535474if test ! -r $srcdir/$ac_unique_file; then
    536475  if test "$ac_srcdir_defaulted" = yes; then
    537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    538    { (exit 1); exit 1; }; }
     476    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    539477  else
    540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    541    { (exit 1); exit 1; }; }
     478    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    542479  fi
    543480fi
    544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    545 ac_env_build_alias_set=${build_alias+set}
    546 ac_env_build_alias_value=$build_alias
    547 ac_cv_env_build_alias_set=${build_alias+set}
    548 ac_cv_env_build_alias_value=$build_alias
    549 ac_env_host_alias_set=${host_alias+set}
    550 ac_env_host_alias_value=$host_alias
    551 ac_cv_env_host_alias_set=${host_alias+set}
    552 ac_cv_env_host_alias_value=$host_alias
    553 ac_env_target_alias_set=${target_alias+set}
    554 ac_env_target_alias_value=$target_alias
    555 ac_cv_env_target_alias_set=${target_alias+set}
    556 ac_cv_env_target_alias_value=$target_alias
    557 ac_env_CXX_set=${CXX+set}
    558 ac_env_CXX_value=$CXX
    559 ac_cv_env_CXX_set=${CXX+set}
    560 ac_cv_env_CXX_value=$CXX
    561 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    562 ac_env_CXXFLAGS_value=$CXXFLAGS
    563 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    564 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    565 ac_env_LDFLAGS_set=${LDFLAGS+set}
    566 ac_env_LDFLAGS_value=$LDFLAGS
    567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    568 ac_cv_env_LDFLAGS_value=$LDFLAGS
    569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    570 ac_env_CPPFLAGS_value=$CPPFLAGS
    571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    573 ac_env_CC_set=${CC+set}
    574 ac_env_CC_value=$CC
    575 ac_cv_env_CC_set=${CC+set}
    576 ac_cv_env_CC_value=$CC
    577 ac_env_CFLAGS_set=${CFLAGS+set}
    578 ac_env_CFLAGS_value=$CFLAGS
    579 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    580 ac_cv_env_CFLAGS_value=$CFLAGS
    581 ac_env_CPP_set=${CPP+set}
    582 ac_env_CPP_value=$CPP
    583 ac_cv_env_CPP_set=${CPP+set}
    584 ac_cv_env_CPP_value=$CPP
    585 
    586 #
    587 # Report the --help message.
    588 #
    589 if test "$ac_init_help" = "long"; then
    590   # Omit some internal or obsolete options to make the list less imposing.
    591   # This message is too long to be a string in the A/UX 3.1 sh.
    592   cat <<EOF
    593 \`configure' configures this package to adapt to many kinds of systems.
    594 
    595 Usage: $0 [OPTION]... [VAR=VALUE]...
    596 
    597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    598 VAR=VALUE.  See below for descriptions of some of the useful variables.
    599 
    600 Defaults for the options are specified in brackets.
    601 
    602 Configuration:
    603   -h, --help              display this help and exit
    604       --help=short        display options specific to this package
    605       --help=recursive    display the short help of all the included packages
    606   -V, --version           display version information and exit
    607   -q, --quiet, --silent   do not print \`checking...' messages
    608       --cache-file=FILE   cache test results in FILE [disabled]
    609   -C, --config-cache      alias for \`--cache-file=config.cache'
    610   -n, --no-create         do not create output files
    611       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    612 
    613 EOF
    614 
    615   cat <<EOF
    616 Installation directories:
    617   --prefix=PREFIX         install architecture-independent files in PREFIX
    618                           [$ac_default_prefix]
    619   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    620                           [PREFIX]
    621 
    622 By default, \`make install' will install all the files in
    623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    624 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    625 for instance \`--prefix=\$HOME'.
    626 
    627 For better control, use the options below.
    628 
    629 Fine tuning of the installation directories:
    630   --bindir=DIR           user executables [EPREFIX/bin]
    631   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    632   --libexecdir=DIR       program executables [EPREFIX/libexec]
    633   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    634   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    635   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    636   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    637   --libdir=DIR           object code libraries [EPREFIX/lib]
    638   --includedir=DIR       C header files [PREFIX/include]
    639   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    640   --infodir=DIR          info documentation [PREFIX/info]
    641   --mandir=DIR           man documentation [PREFIX/man]
    642 EOF
    643 
    644   cat <<\EOF
    645 
    646 Program names:
    647   --program-prefix=PREFIX            prepend PREFIX to installed program names
    648   --program-suffix=SUFFIX            append SUFFIX to installed program names
    649   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    650 EOF
    651 fi
    652 
    653 if test -n "$ac_init_help"; then
    654 
    655   cat <<\EOF
    656 
    657 Optional Packages:
    658   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    659   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    660   --with-dmalloc          use dmalloc, as in
    661                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
    662   --with-regex            use older regex in lieu of GNU rx for matching
    663 
    664 Some influential environment variables:
    665   CXX         C++ compiler command
    666   CXXFLAGS    C++ compiler flags
    667   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    668               nonstandard directory <lib dir>
    669   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    670               headers in a nonstandard directory <include dir>
    671   CC          C compiler command
    672   CFLAGS      C compiler flags
    673   CPP         C preprocessor
    674 
    675 Use these variables to override the choices made by `configure' or to help
    676 it to find libraries and programs with nonstandard names/locations.
    677 
    678 EOF
    679 fi
    680 
    681 if test "$ac_init_help" = "recursive"; then
    682   # If there are subdirs, report their specific --help.
    683   ac_popdir=`pwd`
    684   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    685     cd $ac_subdir
    686     # A "../" for each directory in /$ac_subdir.
    687     ac_dots=`echo $ac_subdir |
    688              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    689 
    690     case $srcdir in
    691     .) # No --srcdir option.  We are building in place.
    692       ac_sub_srcdir=$srcdir ;;
    693     [\\/]* | ?:[\\/]* ) # Absolute path.
    694       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    695     *) # Relative path.
    696       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    697     esac
    698 
    699     # Check for guested configure; otherwise get Cygnus style configure.
    700     if test -f $ac_sub_srcdir/configure.gnu; then
    701       echo
    702       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    703     elif test -f $ac_sub_srcdir/configure; then
    704       echo
    705       $SHELL $ac_sub_srcdir/configure  --help=recursive
    706     elif test -f $ac_sub_srcdir/configure.ac ||
    707            test -f $ac_sub_srcdir/configure.in; then
    708       echo
    709       $ac_configure --help
    710     else
    711       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    712     fi
    713     cd $ac_popdir
    714   done
    715 fi
    716 
    717 test -n "$ac_init_help" && exit 0
    718 if $ac_init_version; then
    719   cat <<\EOF
    720 
    721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    722 Free Software Foundation, Inc.
    723 This configure script is free software; the Free Software Foundation
    724 gives unlimited permission to copy, distribute and modify it.
    725 EOF
    726   exit 0
    727 fi
    728 exec 5>config.log
    729 cat >&5 <<EOF
    730 This file contains any messages produced by compilers while
    731 running configure, to aid debugging if configure makes a mistake.
    732 
    733 It was created by $as_me, which was
    734 generated by GNU Autoconf 2.50.  Invocation command line was
    735 
    736   $ $0 $@
    737 
    738 EOF
    739 {
    740 cat <<_ASUNAME
    741 ## ---------- ##
    742 ## Platform.  ##
    743 ## ---------- ##
    744 
    745 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    746 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    747 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    748 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    749 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    750 
    751 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    752 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    753 
    754 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    755 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    756 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    757 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    758 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    759 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    760 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    761 
    762 PATH = $PATH
    763 
    764 _ASUNAME
    765 } >&5
    766 
    767 cat >&5 <<EOF
    768 ## ------------ ##
    769 ## Core tests.  ##
    770 ## ------------ ##
    771 
    772 EOF
    773 
    774 # Keep a trace of the command line.
    775 # Strip out --no-create and --no-recursion so they do not pile up.
    776 # Also quote any args containing shell meta-characters.
    777 ac_configure_args=
    778 ac_sep=
    779 for ac_arg
    780 do
    781   case $ac_arg in
    782   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    783   | --no-cr | --no-c) ;;
    784   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    785   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    786   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    787     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    788     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    789     ac_sep=" " ;;
    790   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    791      ac_sep=" " ;;
    792   esac
    793   # Get rid of the leading space.
    794 done
    795 
    796 # When interrupted or exit'd, cleanup temporary files, and complete
    797 # config.log.  We remove comments because anyway the quotes in there
    798 # would cause problems or look ugly.
    799 trap 'exit_status=$?
    800   # Save into config.log some information that might help in debugging.
    801   echo >&5
    802   echo "## ----------------- ##" >&5
    803   echo "## Cache variables.  ##" >&5
    804   echo "## ----------------- ##" >&5
    805   echo >&5
    806   # The following way of writing the cache mishandles newlines in values,
    807 {
    808   (set) 2>&1 |
    809     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    810     *ac_space=\ *)
    811       sed -n \
    812         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    813           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    814       ;;
    815     *)
    816       sed -n \
    817         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    818       ;;
    819     esac;
    820 } >&5
    821   sed "/^$/d" confdefs.h >conftest.log
    822   if test -s conftest.log; then
    823     echo >&5
    824     echo "## ------------ ##" >&5
    825     echo "## confdefs.h.  ##" >&5
    826     echo "## ------------ ##" >&5
    827     echo >&5
    828     cat conftest.log >&5
    829   fi
    830   (echo; echo) >&5
    831   test "$ac_signal" != 0 &&
    832     echo "$as_me: caught signal $ac_signal" >&5
    833   echo "$as_me: exit $exit_status" >&5
    834   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    835     exit $exit_status
    836      ' 0
    837 for ac_signal in 1 2 13 15; do
    838   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
    839 done
    840 ac_signal=0
    841 
    842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    843 rm -rf conftest* confdefs.h
    844 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    845 echo >confdefs.h
    846 
    847 # Let the site file select an alternate cache file if it wants to.
     481srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     482
    848483# Prefer explicitly selected file to automatically selected ones.
    849484if test -z "$CONFIG_SITE"; then
     
    856491for ac_site_file in $CONFIG_SITE; do
    857492  if test -r "$ac_site_file"; then
    858     { echo "$as_me:858: loading site script $ac_site_file" >&5
    859 echo "$as_me: loading site script $ac_site_file" >&6;}
    860     cat "$ac_site_file" >&5
     493    echo "loading site script $ac_site_file"
    861494    . "$ac_site_file"
    862495  fi
     
    864497
    865498if test -r "$cache_file"; then
    866   # Some versions of bash will fail to source /dev/null (special
    867   # files actually), so we avoid doing that.
    868   if test -f "$cache_file"; then
    869     { echo "$as_me:869: loading cache $cache_file" >&5
    870 echo "$as_me: loading cache $cache_file" >&6;}
    871     case $cache_file in
    872       [\\/]* | ?:[\\/]* ) . $cache_file;;
    873       *)                      . ./$cache_file;;
    874     esac
     499  echo "loading cache $cache_file"
     500  . $cache_file
     501else
     502  echo "creating cache $cache_file"
     503  > $cache_file
     504fi
     505
     506ac_ext=c
     507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     508ac_cpp='$CPP $CPPFLAGS'
     509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     510ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     511cross_compiling=$ac_cv_prog_cc_cross
     512
     513if (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=
    875520  fi
    876521else
    877   { echo "$as_me:877: creating cache $cache_file" >&5
    878 echo "$as_me: creating cache $cache_file" >&6;}
    879   >$cache_file
    880 fi
    881 
    882 # Check that the precious variables saved in the cache have kept the same
    883 # value.
    884 ac_suggest_removing_cache=false
    885 for ac_var in `(set) 2>&1 |
    886                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    887   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    888   eval ac_new_set=\$ac_env_${ac_var}_set
    889   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    890   eval ac_new_val="\$ac_env_${ac_var}_value"
    891   case $ac_old_set,$ac_new_set in
    892     set,)
    893       { echo "$as_me:893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    895       ac_suggest_removing_cache=: ;;
    896     ,set)
    897       { echo "$as_me:897: WARNING: \`$ac_var' was not set in the previous run" >&5
    898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
    899       ac_suggest_removing_cache=: ;;
    900     ,);;
    901     *)
    902       if test "x$ac_old_val" != "x$ac_new_val"; then
    903         { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5
    904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
    905         { echo "$as_me:905: WARNING:   former value:  $ac_old_val" >&5
    906 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
    907         { echo "$as_me:907: WARNING:   current value: $ac_new_val" >&5
    908 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
    909         ac_suggest_removing_cache=:
    910       fi;;
    911   esac
    912 done
    913 if $ac_suggest_removing_cache; then
    914   { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5
    915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
    916   { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5
    917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    918 fi
    919 
    920 ac_ext=c
    921 ac_cpp='$CPP $CPPFLAGS'
    922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    925 
    926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    927   *c*,-n*) ECHO_N= ECHO_C='
    928 ' ECHO_T='  ' ;;
    929   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    930   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    931 esac
    932 echo "#! $SHELL" >conftest.sh
    933 echo  "exit 0"   >>conftest.sh
    934 chmod +x conftest.sh
    935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5
    936   (PATH=".;."; conftest.sh) 2>&5
    937   ac_status=$?
    938   echo "$as_me:938: \$? = $ac_status" >&5
    939   (exit $ac_status); }; then
    940   ac_path_separator=';'
    941 else
    942   ac_path_separator=:
    943 fi
    944 PATH_SEPARATOR="$ac_path_separator"
    945 rm -f conftest.sh
    946 
    947 ac_config_headers="$ac_config_headers config.h"
     522  ac_n= ac_c='\c' ac_t=
     523fi
     524
     525
    948526
    949527if test "$program_transform_name" = s,x,x,; then
     
    951529else
    952530  # Double any \ or $.  echo might interpret backslashes.
    953   cat <<\EOF >conftest.sed
     531  cat <<\EOF_SED > conftestsed
    954532s,\\,\\\\,g; s,\$,$$,g
    955 EOF
    956   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    957   rm -f conftest.sed
     533EOF_SED
     534  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     535  rm -f conftestsed
    958536fi
    959537test "$program_prefix" != NONE &&
    960   program_transform_name="s,^,${program_prefix},;$program_transform_name"
     538  program_transform_name="s,^,${program_prefix},; $program_transform_name"
    961539# Use a double $ so make ignores it.
    962540test "$program_suffix" != NONE &&
    963   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
     541  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
    964542
    965543# sed with no file args requires a program.
    966 test -z "$program_transform_name" && program_transform_name="s,x,x,"
     544test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     545
    967546
    968547PACKAGE=mg
    969 VERSION=1.2
    970 
    971 cat >>confdefs.h <<EOF
     548VERSION=1.3e
     549
     550cat >> confdefs.h <<EOF
    972551#define PACKAGE "$PACKAGE"
    973552EOF
    974553
    975 cat >>confdefs.h <<EOF
     554cat >> confdefs.h <<EOF
    976555#define VERSION "$VERSION"
    977556EOF
    978557
    979 ac_ext=cc
    980 ac_cpp='$CXXCPP $CPPFLAGS'
    981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    984 if test -n "$ac_tool_prefix"; then
    985   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
    986   do
    987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    989 echo "$as_me:989: checking for $ac_word" >&5
    990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    991 if test "${ac_cv_prog_CXX+set}" = set; then
    992   echo $ECHO_N "(cached) $ECHO_C" >&6
     558
     559
     560
     561for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     562do
     563# Extract the first word of "$ac_prog", so it can be a program name with args.
     564set dummy $ac_prog; ac_word=$2
     565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     566echo "configure:567: checking for $ac_word" >&5
     567if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
     568  echo $ac_n "(cached) $ac_c" 1>&6
    993569else
    994570  if test -n "$CXX"; then
    995571  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    996572else
    997   ac_save_IFS=$IFS; IFS=$ac_path_separator
    998 ac_dummy="$PATH"
    999 for ac_dir in $ac_dummy; do
    1000   IFS=$ac_save_IFS
    1001   test -z "$ac_dir" && ac_dir=.
    1002   $as_executable_p "$ac_dir/$ac_word" || continue
    1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5
    1005 break
     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
     579    fi
     580  done
     581  IFS="$ac_save_ifs"
     582fi
     583fi
     584CXX="$ac_cv_prog_CXX"
     585if test -n "$CXX"; then
     586  echo "$ac_t""$CXX" 1>&6
     587else
     588  echo "$ac_t""no" 1>&6
     589fi
     590
     591test -n "$CXX" && break
    1006592done
    1007 
    1008 fi
    1009 fi
    1010 CXX=$ac_cv_prog_CXX
    1011 if test -n "$CXX"; then
    1012   echo "$as_me:1012: result: $CXX" >&5
    1013 echo "${ECHO_T}$CXX" >&6
    1014 else
    1015   echo "$as_me:1015: result: no" >&5
    1016 echo "${ECHO_T}no" >&6
    1017 fi
    1018 
    1019     test -n "$CXX" && break
    1020   done
    1021 fi
    1022 if test -z "$CXX"; then
    1023   ac_ct_CXX=$CXX
    1024   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
    1025 do
    1026   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1027 set dummy $ac_prog; ac_word=$2
    1028 echo "$as_me:1028: checking for $ac_word" >&5
    1029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1030 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1031   echo $ECHO_N "(cached) $ECHO_C" >&6
    1032 else
    1033   if test -n "$ac_ct_CXX"; then
    1034   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    1035 else
    1036   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1037 ac_dummy="$PATH"
    1038 for ac_dir in $ac_dummy; do
    1039   IFS=$ac_save_IFS
    1040   test -z "$ac_dir" && ac_dir=.
    1041   $as_executable_p "$ac_dir/$ac_word" || continue
    1042 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5
    1044 break
    1045 done
    1046 
    1047 fi
    1048 fi
    1049 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1050 if test -n "$ac_ct_CXX"; then
    1051   echo "$as_me:1051: result: $ac_ct_CXX" >&5
    1052 echo "${ECHO_T}$ac_ct_CXX" >&6
    1053 else
    1054   echo "$as_me:1054: result: no" >&5
    1055 echo "${ECHO_T}no" >&6
    1056 fi
    1057 
    1058   test -n "$ac_ct_CXX" && break
    1059 done
    1060 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1061 
    1062   CXX=$ac_ct_CXX
    1063 fi
    1064 
    1065 cat >conftest.$ac_ext <<_ACEOF
    1066 #line 1066 "configure"
    1067 #include "confdefs.h"
    1068 
    1069 int
    1070 main ()
    1071 {
    1072 
    1073   ;
    1074   return 0;
    1075 }
    1076 _ACEOF
    1077 ac_clean_files_save=$ac_clean_files
    1078 ac_clean_files="$ac_clean_files a.out a.exe"
    1079 # Try to create an executable without -o first, disregard a.out.
    1080 # It will help us diagnose broken compiler, and finding out an intuition
    1081 # of exeext.
    1082 echo "$as_me:1082: checking for C++ compiler default output" >&5
    1083 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
    1084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1085 if { (eval echo "$as_me:1085: \"$ac_link_default\"") >&5
    1086   (eval $ac_link_default) 2>&5
    1087   ac_status=$?
    1088   echo "$as_me:1088: \$? = $ac_status" >&5
    1089   (exit $ac_status); }; then
    1090   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
    1091   case $ac_file in
    1092     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1093     a.out ) # We found the default executable, but exeext='' is most
    1094             # certainly right.
    1095             break;;
    1096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1097           export ac_cv_exeext
    1098           break;;
    1099     * ) break;;
    1100   esac
    1101 done
    1102 else
    1103   echo "$as_me: failed program was:" >&5
    1104 cat conftest.$ac_ext >&5
    1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5
    1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
    1107    { (exit 77); exit 77; }; }
    1108 fi
    1109 
    1110 ac_exeext=$ac_cv_exeext
    1111 echo "$as_me:1111: result: $ac_file" >&5
    1112 echo "${ECHO_T}$ac_file" >&6
    1113 
    1114 # Check the compiler produces executables we can run.  If not, either
    1115 # the compiler is broken, or we cross compile.
    1116 echo "$as_me:1116: checking whether the C++ compiler works" >&5
    1117 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    1118 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1119 # If not cross compiling, check that we can run a simple program.
    1120 if test "$cross_compiling" != yes; then
    1121   if { ac_try='./$ac_file'
    1122   { (eval echo "$as_me:1122: \"$ac_try\"") >&5
    1123   (eval $ac_try) 2>&5
    1124   ac_status=$?
    1125   echo "$as_me:1125: \$? = $ac_status" >&5
    1126   (exit $ac_status); }; }; then
    1127     cross_compiling=no
     593test -n "$CXX" || CXX="gcc"
     594
     595
     596echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     597echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     598
     599ac_ext=C
     600# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     601ac_cpp='$CXXCPP $CPPFLAGS'
     602ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     603ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     604cross_compiling=$ac_cv_prog_cxx_cross
     605
     606cat > conftest.$ac_ext <<EOF
     607#line 608 "configure"
     608#include "confdefs.h"
     609main(){return(0);}
     610EOF
     611if { (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
    1128616  else
    1129     if test "$cross_compiling" = maybe; then
    1130     cross_compiling=yes
    1131     else
    1132     { { echo "$as_me:1132: error: cannot run C++ compiled programs.
    1133 If you meant to cross compile, use \`--host'." >&5
    1134 echo "$as_me: error: cannot run C++ compiled programs.
    1135 If you meant to cross compile, use \`--host'." >&2;}
    1136    { (exit 1); exit 1; }; }
    1137     fi
     617    ac_cv_prog_cxx_cross=yes
    1138618  fi
    1139 fi
    1140 echo "$as_me:1140: result: yes" >&5
    1141 echo "${ECHO_T}yes" >&6
    1142 
    1143 rm -f a.out a.exe conftest$ac_cv_exeext
    1144 ac_clean_files=$ac_clean_files_save
    1145 # Check the compiler produces executables we can run.  If not, either
    1146 # the compiler is broken, or we cross compile.
    1147 echo "$as_me:1147: checking whether we are cross compiling" >&5
    1148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1149 echo "$as_me:1149: result: $cross_compiling" >&5
    1150 echo "${ECHO_T}$cross_compiling" >&6
    1151 
    1152 echo "$as_me:1152: checking for executable suffix" >&5
    1153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1154 if { (eval echo "$as_me:1154: \"$ac_link\"") >&5
    1155   (eval $ac_link) 2>&5
    1156   ac_status=$?
    1157   echo "$as_me:1157: \$? = $ac_status" >&5
    1158   (exit $ac_status); }; then
    1159   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    1160 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    1161 # work properly (i.e., refer to `conftest.exe'), while it won't with
    1162 # `rm'.
    1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
    1164   case $ac_file in
    1165     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1166     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1167           export ac_cv_exeext
    1168           break;;
    1169     * ) break;;
    1170   esac
    1171 done
    1172 else
    1173   { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5
    1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
    1175    { (exit 1); exit 1; }; }
    1176 fi
    1177 
    1178 rm -f conftest$ac_cv_exeext
    1179 echo "$as_me:1179: result: $ac_cv_exeext" >&5
    1180 echo "${ECHO_T}$ac_cv_exeext" >&6
    1181 
    1182 rm -f conftest.$ac_ext
    1183 EXEEXT=$ac_cv_exeext
    1184 ac_exeext=$EXEEXT
    1185 echo "$as_me:1185: checking for object suffix" >&5
    1186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
    1187 if test "${ac_cv_objext+set}" = set; then
    1188   echo $ECHO_N "(cached) $ECHO_C" >&6
    1189 else
    1190   cat >conftest.$ac_ext <<_ACEOF
    1191 #line 1191 "configure"
    1192 #include "confdefs.h"
    1193 
    1194 int
    1195 main ()
    1196 {
    1197 
    1198   ;
    1199   return 0;
    1200 }
    1201 _ACEOF
    1202 rm -f conftest.o conftest.obj
    1203 if { (eval echo "$as_me:1203: \"$ac_compile\"") >&5
    1204   (eval $ac_compile) 2>&5
    1205   ac_status=$?
    1206   echo "$as_me:1206: \$? = $ac_status" >&5
    1207   (exit $ac_status); }; then
    1208   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    1209   case $ac_file in
    1210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    1211     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    1212        break;;
    1213   esac
    1214 done
    1215 else
    1216   echo "$as_me: failed program was:" >&5
    1217 cat conftest.$ac_ext >&5
    1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5
    1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
    1220    { (exit 1); exit 1; }; }
    1221 fi
    1222 
    1223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    1224 fi
    1225 echo "$as_me:1225: result: $ac_cv_objext" >&5
    1226 echo "${ECHO_T}$ac_cv_objext" >&6
    1227 OBJEXT=$ac_cv_objext
    1228 ac_objext=$OBJEXT
    1229 echo "$as_me:1229: checking whether we are using the GNU C++ compiler" >&5
    1230 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1231 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1232   echo $ECHO_N "(cached) $ECHO_C" >&6
    1233 else
    1234   cat >conftest.$ac_ext <<_ACEOF
    1235 #line 1235 "configure"
    1236 #include "confdefs.h"
    1237 
    1238 int
    1239 main ()
    1240 {
    1241 #ifndef __GNUC__
    1242        choke me
     619else
     620  echo "configure: failed program was:" >&5
     621  cat conftest.$ac_ext >&5
     622  ac_cv_prog_cxx_works=no
     623fi
     624rm -fr conftest*
     625ac_ext=c
     626# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     627ac_cpp='$CPP $CPPFLAGS'
     628ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     629ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     630cross_compiling=$ac_cv_prog_cc_cross
     631
     632echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     633if 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; }
     635fi
     636echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     637echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     638echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     639cross_compiling=$ac_cv_prog_cxx_cross
     640
     641echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     642echo "configure:643: checking whether we are using GNU C++" >&5
     643if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     644  echo $ac_n "(cached) $ac_c" 1>&6
     645else
     646  cat > conftest.C <<EOF
     647#ifdef __GNUC__
     648  yes;
    1243649#endif
    1244 
    1245   ;
    1246   return 0;
    1247 }
    1248 _ACEOF
    1249 rm -f conftest.$ac_objext
    1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5
    1251   (eval $ac_compile) 2>&5
    1252   ac_status=$?
    1253   echo "$as_me:1253: \$? = $ac_status" >&5
    1254   (exit $ac_status); } &&
    1255          { ac_try='test -s conftest.$ac_objext'
    1256   { (eval echo "$as_me:1256: \"$ac_try\"") >&5
    1257   (eval $ac_try) 2>&5
    1258   ac_status=$?
    1259   echo "$as_me:1259: \$? = $ac_status" >&5
    1260   (exit $ac_status); }; }; then
    1261   ac_compiler_gnu=yes
    1262 else
    1263   echo "$as_me: failed program was:" >&5
    1264 cat conftest.$ac_ext >&5
    1265 ac_compiler_gnu=no
    1266 fi
    1267 rm -f conftest.$ac_objext conftest.$ac_ext
    1268 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    1269 
    1270 fi
    1271 echo "$as_me:1271: result: $ac_cv_cxx_compiler_gnu" >&5
    1272 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1273 GXX=`test $ac_compiler_gnu = yes && echo yes`
    1274 ac_test_CXXFLAGS=${CXXFLAGS+set}
    1275 ac_save_CXXFLAGS=$CXXFLAGS
    1276 CXXFLAGS="-g"
    1277 echo "$as_me:1277: checking whether $CXX accepts -g" >&5
    1278 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1279 if test "${ac_cv_prog_cxx_g+set}" = set; then
    1280   echo $ECHO_N "(cached) $ECHO_C" >&6
    1281 else
    1282   cat >conftest.$ac_ext <<_ACEOF
    1283 #line 1283 "configure"
    1284 #include "confdefs.h"
    1285 
    1286 int
    1287 main ()
    1288 {
    1289 
    1290   ;
    1291   return 0;
    1292 }
    1293 _ACEOF
    1294 rm -f conftest.$ac_objext
    1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5
    1296   (eval $ac_compile) 2>&5
    1297   ac_status=$?
    1298   echo "$as_me:1298: \$? = $ac_status" >&5
    1299   (exit $ac_status); } &&
    1300          { ac_try='test -s conftest.$ac_objext'
    1301   { (eval echo "$as_me:1301: \"$ac_try\"") >&5
    1302   (eval $ac_try) 2>&5
    1303   ac_status=$?
    1304   echo "$as_me:1304: \$? = $ac_status" >&5
    1305   (exit $ac_status); }; }; then
     650EOF
     651if { 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
     653else
     654  ac_cv_prog_gxx=no
     655fi
     656fi
     657
     658echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     659
     660if 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
     666echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5
     667if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     668  echo $ac_n "(cached) $ac_c" 1>&6
     669else
     670  echo 'void f(){}' > conftest.cc
     671if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    1306672  ac_cv_prog_cxx_g=yes
    1307673else
    1308   echo "$as_me: failed program was:" >&5
    1309 cat conftest.$ac_ext >&5
    1310 ac_cv_prog_cxx_g=no
    1311 fi
    1312 rm -f conftest.$ac_objext conftest.$ac_ext
    1313 fi
    1314 echo "$as_me:1314: result: $ac_cv_prog_cxx_g" >&5
    1315 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    1316 if test "$ac_test_CXXFLAGS" = set; then
    1317   CXXFLAGS=$ac_save_CXXFLAGS
    1318 elif test $ac_cv_prog_cxx_g = yes; then
    1319   if test "$GXX" = yes; then
     674  ac_cv_prog_cxx_g=no
     675fi
     676rm -f conftest*
     677
     678fi
     679
     680echo "$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
    1320684    CXXFLAGS="-g -O2"
    1321685  else
    1322     CXXFLAGS="-g"
     686    CXXFLAGS="-O2"
    1323687  fi
    1324688else
    1325   if test "$GXX" = yes; then
    1326     CXXFLAGS="-O2"
    1327   else
    1328     CXXFLAGS=
    1329   fi
    1330 fi
    1331 for ac_declaration in \
    1332    ''\
    1333    '#include <stdlib.h>' \
    1334    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1335    'extern "C" void std::exit (int); using std::exit;' \
    1336    'extern "C" void exit (int) throw ();' \
    1337    'extern "C" void exit (int);' \
    1338    'void exit (int);'
    1339 do
    1340   cat >conftest.$ac_ext <<_ACEOF
    1341 #line 1341 "configure"
    1342 #include "confdefs.h"
    1343 #include <stdlib.h>
    1344 $ac_declaration
    1345 int
    1346 main ()
    1347 {
    1348 exit (42);
    1349   ;
    1350   return 0;
    1351 }
    1352 _ACEOF
    1353 rm -f conftest.$ac_objext
    1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5
    1355   (eval $ac_compile) 2>&5
    1356   ac_status=$?
    1357   echo "$as_me:1357: \$? = $ac_status" >&5
    1358   (exit $ac_status); } &&
    1359          { ac_try='test -s conftest.$ac_objext'
    1360   { (eval echo "$as_me:1360: \"$ac_try\"") >&5
    1361   (eval $ac_try) 2>&5
    1362   ac_status=$?
    1363   echo "$as_me:1363: \$? = $ac_status" >&5
    1364   (exit $ac_status); }; }; then
    1365   :
    1366 else
    1367   echo "$as_me: failed program was:" >&5
    1368 cat conftest.$ac_ext >&5
    1369 continue
    1370 fi
    1371 rm -f conftest.$ac_objext conftest.$ac_ext
    1372   cat >conftest.$ac_ext <<_ACEOF
    1373 #line 1373 "configure"
    1374 #include "confdefs.h"
    1375 $ac_declaration
    1376 int
    1377 main ()
    1378 {
    1379 exit (42);
    1380   ;
    1381   return 0;
    1382 }
    1383 _ACEOF
    1384 rm -f conftest.$ac_objext
    1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5
    1386   (eval $ac_compile) 2>&5
    1387   ac_status=$?
    1388   echo "$as_me:1388: \$? = $ac_status" >&5
    1389   (exit $ac_status); } &&
    1390          { ac_try='test -s conftest.$ac_objext'
    1391   { (eval echo "$as_me:1391: \"$ac_try\"") >&5
    1392   (eval $ac_try) 2>&5
    1393   ac_status=$?
    1394   echo "$as_me:1394: \$? = $ac_status" >&5
    1395   (exit $ac_status); }; }; then
    1396   break
    1397 else
    1398   echo "$as_me: failed program was:" >&5
    1399 cat conftest.$ac_ext >&5
    1400 fi
    1401 rm -f conftest.$ac_objext conftest.$ac_ext
    1402 done
    1403 echo '#ifdef __cplusplus' >>confdefs.h
    1404 echo $ac_declaration      >>confdefs.h
    1405 echo '#endif'             >>confdefs.h
    1406 
    1407 ac_ext=c
    1408 ac_cpp='$CPP $CPPFLAGS'
    1409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
     689  GXX=
     690  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
     691fi
    1412692
    1413693for ac_prog in mawk gawk nawk awk
    1414694do
    1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
     695# Extract the first word of "$ac_prog", so it can be a program name with args.
    1416696set dummy $ac_prog; ac_word=$2
    1417 echo "$as_me:1417: checking for $ac_word" >&5
    1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1419 if test "${ac_cv_prog_AWK+set}" = set; then
    1420   echo $ECHO_N "(cached) $ECHO_C" >&6
     697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     698echo "configure:699: checking for $ac_word" >&5
     699if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     700  echo $ac_n "(cached) $ac_c" 1>&6
    1421701else
    1422702  if test -n "$AWK"; then
    1423703  ac_cv_prog_AWK="$AWK" # Let the user override the test.
    1424704else
    1425   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1426 ac_dummy="$PATH"
    1427 for ac_dir in $ac_dummy; do
    1428   IFS=$ac_save_IFS
    1429   test -z "$ac_dir" && ac_dir=.
    1430   $as_executable_p "$ac_dir/$ac_word" || continue
    1431 ac_cv_prog_AWK="$ac_prog"
    1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
    1433 break
    1434 done
    1435 
    1436 fi
    1437 fi
    1438 AWK=$ac_cv_prog_AWK
     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"
     714fi
     715fi
     716AWK="$ac_cv_prog_AWK"
    1439717if test -n "$AWK"; then
    1440   echo "$as_me:1440: result: $AWK" >&5
    1441 echo "${ECHO_T}$AWK" >&6
    1442 else
    1443   echo "$as_me:1443: result: no" >&5
    1444 echo "${ECHO_T}no" >&6
    1445 fi
    1446 
    1447   test -n "$AWK" && break
     718  echo "$ac_t""$AWK" 1>&6
     719else
     720  echo "$ac_t""no" 1>&6
     721fi
     722
     723test -n "$AWK" && break
    1448724done
    1449725
    1450726for ac_prog in 'bison -y' byacc
    1451727do
    1452   # Extract the first word of "$ac_prog", so it can be a program name with args.
     728# Extract the first word of "$ac_prog", so it can be a program name with args.
    1453729set dummy $ac_prog; ac_word=$2
    1454 echo "$as_me:1454: checking for $ac_word" >&5
    1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1456 if test "${ac_cv_prog_YACC+set}" = set; then
    1457   echo $ECHO_N "(cached) $ECHO_C" >&6
     730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     731echo "configure:732: checking for $ac_word" >&5
     732if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
     733  echo $ac_n "(cached) $ac_c" 1>&6
    1458734else
    1459735  if test -n "$YACC"; then
    1460736  ac_cv_prog_YACC="$YACC" # Let the user override the test.
    1461737else
    1462   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1463 ac_dummy="$PATH"
    1464 for ac_dir in $ac_dummy; do
    1465   IFS=$ac_save_IFS
    1466   test -z "$ac_dir" && ac_dir=.
    1467   $as_executable_p "$ac_dir/$ac_word" || continue
    1468 ac_cv_prog_YACC="$ac_prog"
    1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
    1470 break
    1471 done
    1472 
    1473 fi
    1474 fi
    1475 YACC=$ac_cv_prog_YACC
     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"
     747fi
     748fi
     749YACC="$ac_cv_prog_YACC"
    1476750if test -n "$YACC"; then
    1477   echo "$as_me:1477: result: $YACC" >&5
    1478 echo "${ECHO_T}$YACC" >&6
    1479 else
    1480   echo "$as_me:1480: result: no" >&5
    1481 echo "${ECHO_T}no" >&6
    1482 fi
    1483 
    1484   test -n "$YACC" && break
     751  echo "$ac_t""$YACC" 1>&6
     752else
     753  echo "$ac_t""no" 1>&6
     754fi
     755
     756test -n "$YACC" && break
    1485757done
    1486758test -n "$YACC" || YACC="yacc"
    1487759
    1488 ac_ext=c
    1489 ac_cpp='$CPP $CPPFLAGS'
    1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1493 if test -n "$ac_tool_prefix"; then
    1494   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1496 echo "$as_me:1496: checking for $ac_word" >&5
    1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1498 if test "${ac_cv_prog_CC+set}" = set; then
    1499   echo $ECHO_N "(cached) $ECHO_C" >&6
     760# Extract the first word of "gcc", so it can be a program name with args.
     761set dummy gcc; ac_word=$2
     762echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     763echo "configure:764: checking for $ac_word" >&5
     764if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     765  echo $ac_n "(cached) $ac_c" 1>&6
    1500766else
    1501767  if test -n "$CC"; then
    1502768  ac_cv_prog_CC="$CC" # Let the user override the test.
    1503769else
    1504   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1505 ac_dummy="$PATH"
    1506 for ac_dir in $ac_dummy; do
    1507   IFS=$ac_save_IFS
    1508   test -z "$ac_dir" && ac_dir=.
    1509   $as_executable_p "$ac_dir/$ac_word" || continue
    1510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5
    1512 break
    1513 done
    1514 
    1515 fi
    1516 fi
    1517 CC=$ac_cv_prog_CC
     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"
     779fi
     780fi
     781CC="$ac_cv_prog_CC"
    1518782if test -n "$CC"; then
    1519   echo "$as_me:1519: result: $CC" >&5
    1520 echo "${ECHO_T}$CC" >&6
    1521 else
    1522   echo "$as_me:1522: result: no" >&5
    1523 echo "${ECHO_T}no" >&6
    1524 fi
    1525 
    1526 fi
    1527 if test -z "$ac_cv_prog_CC"; then
    1528   ac_ct_CC=$CC
    1529   # Extract the first word of "gcc", so it can be a program name with args.
    1530 set dummy gcc; ac_word=$2
    1531 echo "$as_me:1531: checking for $ac_word" >&5
    1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1534   echo $ECHO_N "(cached) $ECHO_C" >&6
    1535 else
    1536   if test -n "$ac_ct_CC"; then
    1537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1538 else
    1539   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1540 ac_dummy="$PATH"
    1541 for ac_dir in $ac_dummy; do
    1542   IFS=$ac_save_IFS
    1543   test -z "$ac_dir" && ac_dir=.
    1544   $as_executable_p "$ac_dir/$ac_word" || continue
    1545 ac_cv_prog_ac_ct_CC="gcc"
    1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5
    1547 break
    1548 done
    1549 
    1550 fi
    1551 fi
    1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1553 if test -n "$ac_ct_CC"; then
    1554   echo "$as_me:1554: result: $ac_ct_CC" >&5
    1555 echo "${ECHO_T}$ac_ct_CC" >&6
    1556 else
    1557   echo "$as_me:1557: result: no" >&5
    1558 echo "${ECHO_T}no" >&6
    1559 fi
    1560 
    1561   CC=$ac_ct_CC
    1562 else
    1563   CC="$ac_cv_prog_CC"
    1564 fi
    1565 
    1566 if test -z "$CC"; then
    1567   if test -n "$ac_tool_prefix"; then
    1568   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1570 echo "$as_me:1570: checking for $ac_word" >&5
    1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1572 if test "${ac_cv_prog_CC+set}" = set; then
    1573   echo $ECHO_N "(cached) $ECHO_C" >&6
    1574 else
    1575   if test -n "$CC"; then
    1576   ac_cv_prog_CC="$CC" # Let the user override the test.
    1577 else
    1578   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1579 ac_dummy="$PATH"
    1580 for ac_dir in $ac_dummy; do
    1581   IFS=$ac_save_IFS
    1582   test -z "$ac_dir" && ac_dir=.
    1583   $as_executable_p "$ac_dir/$ac_word" || continue
    1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
    1586 break
    1587 done
    1588 
    1589 fi
    1590 fi
    1591 CC=$ac_cv_prog_CC
    1592 if test -n "$CC"; then
    1593   echo "$as_me:1593: result: $CC" >&5
    1594 echo "${ECHO_T}$CC" >&6
    1595 else
    1596   echo "$as_me:1596: result: no" >&5
    1597 echo "${ECHO_T}no" >&6
    1598 fi
    1599 
    1600 fi
    1601 if test -z "$ac_cv_prog_CC"; then
    1602   ac_ct_CC=$CC
    1603   # Extract the first word of "cc", so it can be a program name with args.
    1604 set dummy cc; ac_word=$2
    1605 echo "$as_me:1605: checking for $ac_word" >&5
    1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1608   echo $ECHO_N "(cached) $ECHO_C" >&6
    1609 else
    1610   if test -n "$ac_ct_CC"; then
    1611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1612 else
    1613   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1614 ac_dummy="$PATH"
    1615 for ac_dir in $ac_dummy; do
    1616   IFS=$ac_save_IFS
    1617   test -z "$ac_dir" && ac_dir=.
    1618   $as_executable_p "$ac_dir/$ac_word" || continue
    1619 ac_cv_prog_ac_ct_CC="cc"
    1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
    1621 break
    1622 done
    1623 
    1624 fi
    1625 fi
    1626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1627 if test -n "$ac_ct_CC"; then
    1628   echo "$as_me:1628: result: $ac_ct_CC" >&5
    1629 echo "${ECHO_T}$ac_ct_CC" >&6
    1630 else
    1631   echo "$as_me:1631: result: no" >&5
    1632 echo "${ECHO_T}no" >&6
    1633 fi
    1634 
    1635   CC=$ac_ct_CC
    1636 else
    1637   CC="$ac_cv_prog_CC"
    1638 fi
    1639 
    1640 fi
     783  echo "$ac_t""$CC" 1>&6
     784else
     785  echo "$ac_t""no" 1>&6
     786fi
     787
    1641788if test -z "$CC"; then
    1642789  # Extract the first word of "cc", so it can be a program name with args.
    1643790set dummy cc; ac_word=$2
    1644 echo "$as_me:1644: checking for $ac_word" >&5
    1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1646 if test "${ac_cv_prog_CC+set}" = set; then
    1647   echo $ECHO_N "(cached) $ECHO_C" >&6
     791echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     792echo "configure:793: checking for $ac_word" >&5
     793if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     794  echo $ac_n "(cached) $ac_c" 1>&6
    1648795else
    1649796  if test -n "$CC"; then
    1650797  ac_cv_prog_CC="$CC" # Let the user override the test.
    1651798else
     799  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    1652800  ac_prog_rejected=no
    1653   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1654 ac_dummy="$PATH"
    1655 for ac_dir in $ac_dummy; do
    1656   IFS=$ac_save_IFS
    1657   test -z "$ac_dir" && ac_dir=.
    1658   $as_executable_p "$ac_dir/$ac_word" || continue
    1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    1660   ac_prog_rejected=yes
    1661   continue
    1662 fi
    1663 ac_cv_prog_CC="cc"
    1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5
    1665 break
    1666 done
    1667 
     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"
    1668813if test $ac_prog_rejected = yes; then
    1669814  # We found a bogon in the path, so make sure we never use it.
    1670815  set dummy $ac_cv_prog_CC
    1671816  shift
    1672   if test $# != 0; then
     817  if test $# -gt 0; then
    1673818    # We chose a different compiler from the bogus one.
    1674819    # However, it has the same basename, so the bogon will be chosen
    1675820    # first if we set CC to just the basename; use the full file name.
    1676821    shift
    1677     set dummy "$ac_dir/$ac_word" ${1+"$@"}
     822    set dummy "$ac_dir/$ac_word" "$@"
    1678823    shift
    1679824    ac_cv_prog_CC="$@"
     
    1682827fi
    1683828fi
    1684 CC=$ac_cv_prog_CC
     829CC="$ac_cv_prog_CC"
    1685830if test -n "$CC"; then
    1686   echo "$as_me:1686: result: $CC" >&5
    1687 echo "${ECHO_T}$CC" >&6
    1688 else
    1689   echo "$as_me:1689: result: no" >&5
    1690 echo "${ECHO_T}no" >&6
    1691 fi
    1692 
    1693 fi
    1694 if test -z "$CC"; then
    1695   if test -n "$ac_tool_prefix"; then
    1696   for ac_prog in cl
    1697   do
    1698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1700 echo "$as_me:1700: checking for $ac_word" >&5
    1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1702 if test "${ac_cv_prog_CC+set}" = set; then
    1703   echo $ECHO_N "(cached) $ECHO_C" >&6
    1704 else
    1705   if test -n "$CC"; then
    1706   ac_cv_prog_CC="$CC" # Let the user override the test.
    1707 else
    1708   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1709 ac_dummy="$PATH"
    1710 for ac_dir in $ac_dummy; do
    1711   IFS=$ac_save_IFS
    1712   test -z "$ac_dir" && ac_dir=.
    1713   $as_executable_p "$ac_dir/$ac_word" || continue
    1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5
    1716 break
    1717 done
    1718 
    1719 fi
    1720 fi
    1721 CC=$ac_cv_prog_CC
    1722 if test -n "$CC"; then
    1723   echo "$as_me:1723: result: $CC" >&5
    1724 echo "${ECHO_T}$CC" >&6
    1725 else
    1726   echo "$as_me:1726: result: no" >&5
    1727 echo "${ECHO_T}no" >&6
    1728 fi
    1729 
    1730     test -n "$CC" && break
    1731   done
    1732 fi
    1733 if test -z "$CC"; then
    1734   ac_ct_CC=$CC
    1735   for ac_prog in cl
    1736 do
    1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1738 set dummy $ac_prog; ac_word=$2
    1739 echo "$as_me:1739: checking for $ac_word" >&5
    1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1742   echo $ECHO_N "(cached) $ECHO_C" >&6
    1743 else
    1744   if test -n "$ac_ct_CC"; then
    1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1746 else
    1747   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1748 ac_dummy="$PATH"
    1749 for ac_dir in $ac_dummy; do
    1750   IFS=$ac_save_IFS
    1751   test -z "$ac_dir" && ac_dir=.
    1752   $as_executable_p "$ac_dir/$ac_word" || continue
    1753 ac_cv_prog_ac_ct_CC="$ac_prog"
    1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5
    1755 break
    1756 done
    1757 
    1758 fi
    1759 fi
    1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1761 if test -n "$ac_ct_CC"; then
    1762   echo "$as_me:1762: result: $ac_ct_CC" >&5
    1763 echo "${ECHO_T}$ac_ct_CC" >&6
    1764 else
    1765   echo "$as_me:1765: result: no" >&5
    1766 echo "${ECHO_T}no" >&6
    1767 fi
    1768 
    1769   test -n "$ac_ct_CC" && break
    1770 done
    1771 
    1772   CC=$ac_ct_CC
    1773 fi
    1774 
    1775 fi
    1776 
    1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5
    1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
    1779    { (exit 1); exit 1; }; }
    1780 
    1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5
    1782 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    1783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    1784   echo $ECHO_N "(cached) $ECHO_C" >&6
    1785 else
    1786   cat >conftest.$ac_ext <<_ACEOF
    1787 #line 1787 "configure"
    1788 #include "confdefs.h"
    1789 
    1790 int
    1791 main ()
    1792 {
    1793 #ifndef __GNUC__
    1794        choke me
     831  echo "$ac_t""$CC" 1>&6
     832else
     833  echo "$ac_t""no" 1>&6
     834fi
     835
     836  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     837fi
     838
     839echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     840echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     841
     842ac_ext=c
     843# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     844ac_cpp='$CPP $CPPFLAGS'
     845ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     846ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     847cross_compiling=$ac_cv_prog_cc_cross
     848
     849cat > conftest.$ac_ext <<EOF
     850#line 851 "configure"
     851#include "confdefs.h"
     852main(){return(0);}
     853EOF
     854if { (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
     861  fi
     862else
     863  echo "configure: failed program was:" >&5
     864  cat conftest.$ac_ext >&5
     865  ac_cv_prog_cc_works=no
     866fi
     867rm -fr conftest*
     868
     869echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     870if 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; }
     872fi
     873echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     874echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     875echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     876cross_compiling=$ac_cv_prog_cc_cross
     877
     878echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     879echo "configure:880: checking whether we are using GNU C" >&5
     880if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     881  echo $ac_n "(cached) $ac_c" 1>&6
     882else
     883  cat > conftest.c <<EOF
     884#ifdef __GNUC__
     885  yes;
    1795886#endif
    1796 
    1797   ;
    1798   return 0;
    1799 }
    1800 _ACEOF
    1801 rm -f conftest.$ac_objext
    1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
    1803   (eval $ac_compile) 2>&5
    1804   ac_status=$?
    1805   echo "$as_me:1805: \$? = $ac_status" >&5
    1806   (exit $ac_status); } &&
    1807          { ac_try='test -s conftest.$ac_objext'
    1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
    1809   (eval $ac_try) 2>&5
    1810   ac_status=$?
    1811   echo "$as_me:1811: \$? = $ac_status" >&5
    1812   (exit $ac_status); }; }; then
    1813   ac_compiler_gnu=yes
    1814 else
    1815   echo "$as_me: failed program was:" >&5
    1816 cat conftest.$ac_ext >&5
    1817 ac_compiler_gnu=no
    1818 fi
    1819 rm -f conftest.$ac_objext conftest.$ac_ext
    1820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    1821 
    1822 fi
    1823 echo "$as_me:1823: result: $ac_cv_c_compiler_gnu" >&5
    1824 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    1825 GCC=`test $ac_compiler_gnu = yes && echo yes`
    1826 ac_test_CFLAGS=${CFLAGS+set}
    1827 ac_save_CFLAGS=$CFLAGS
    1828 CFLAGS="-g"
    1829 echo "$as_me:1829: checking whether $CC accepts -g" >&5
    1830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    1831 if test "${ac_cv_prog_cc_g+set}" = set; then
    1832   echo $ECHO_N "(cached) $ECHO_C" >&6
    1833 else
    1834   cat >conftest.$ac_ext <<_ACEOF
    1835 #line 1835 "configure"
    1836 #include "confdefs.h"
    1837 
    1838 int
    1839 main ()
    1840 {
    1841 
    1842   ;
    1843   return 0;
    1844 }
    1845 _ACEOF
    1846 rm -f conftest.$ac_objext
    1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
    1848   (eval $ac_compile) 2>&5
    1849   ac_status=$?
    1850   echo "$as_me:1850: \$? = $ac_status" >&5
    1851   (exit $ac_status); } &&
    1852          { ac_try='test -s conftest.$ac_objext'
    1853   { (eval echo "$as_me:1853: \"$ac_try\"") >&5
    1854   (eval $ac_try) 2>&5
    1855   ac_status=$?
    1856   echo "$as_me:1856: \$? = $ac_status" >&5
    1857   (exit $ac_status); }; }; then
     887EOF
     888if { 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
     890else
     891  ac_cv_prog_gcc=no
     892fi
     893fi
     894
     895echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     896
     897if 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
     903echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
     904if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     905  echo $ac_n "(cached) $ac_c" 1>&6
     906else
     907  echo 'void f(){}' > conftest.c
     908if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    1858909  ac_cv_prog_cc_g=yes
    1859910else
    1860   echo "$as_me: failed program was:" >&5
    1861 cat conftest.$ac_ext >&5
    1862 ac_cv_prog_cc_g=no
    1863 fi
    1864 rm -f conftest.$ac_objext conftest.$ac_ext
    1865 fi
    1866 echo "$as_me:1866: result: $ac_cv_prog_cc_g" >&5
    1867 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    1868 if test "$ac_test_CFLAGS" = set; then
    1869   CFLAGS=$ac_save_CFLAGS
    1870 elif test $ac_cv_prog_cc_g = yes; then
    1871   if test "$GCC" = yes; then
     911  ac_cv_prog_cc_g=no
     912fi
     913rm -f conftest*
     914
     915fi
     916
     917echo "$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
    1872921    CFLAGS="-g -O2"
    1873922  else
    1874     CFLAGS="-g"
     923    CFLAGS="-O2"
    1875924  fi
    1876925else
    1877   if test "$GCC" = yes; then
    1878     CFLAGS="-O2"
    1879   else
    1880     CFLAGS=
    1881   fi
    1882 fi
    1883 # Some people use a C++ compiler to compile C.  Since we use `exit',
    1884 # in C++ we need to declare it.  In case someone uses the same compiler
    1885 # for both compiling C and C++ we need to have the C++ compiler decide
    1886 # the declaration of exit, since it's the most demanding environment.
    1887 cat >conftest.$ac_ext <<_ACEOF
    1888 #ifndef __cplusplus
    1889   choke me
    1890 #endif
    1891 _ACEOF
    1892 rm -f conftest.$ac_objext
    1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
    1894   (eval $ac_compile) 2>&5
    1895   ac_status=$?
    1896   echo "$as_me:1896: \$? = $ac_status" >&5
    1897   (exit $ac_status); } &&
    1898          { ac_try='test -s conftest.$ac_objext'
    1899   { (eval echo "$as_me:1899: \"$ac_try\"") >&5
    1900   (eval $ac_try) 2>&5
    1901   ac_status=$?
    1902   echo "$as_me:1902: \$? = $ac_status" >&5
    1903   (exit $ac_status); }; }; then
    1904   for ac_declaration in \
    1905    ''\
    1906    '#include <stdlib.h>' \
    1907    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1908    'extern "C" void std::exit (int); using std::exit;' \
    1909    'extern "C" void exit (int) throw ();' \
    1910    'extern "C" void exit (int);' \
    1911    'void exit (int);'
    1912 do
    1913   cat >conftest.$ac_ext <<_ACEOF
    1914 #line 1914 "configure"
    1915 #include "confdefs.h"
    1916 #include <stdlib.h>
    1917 $ac_declaration
    1918 int
    1919 main ()
    1920 {
    1921 exit (42);
    1922   ;
    1923   return 0;
    1924 }
    1925 _ACEOF
    1926 rm -f conftest.$ac_objext
    1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
    1928   (eval $ac_compile) 2>&5
    1929   ac_status=$?
    1930   echo "$as_me:1930: \$? = $ac_status" >&5
    1931   (exit $ac_status); } &&
    1932          { ac_try='test -s conftest.$ac_objext'
    1933   { (eval echo "$as_me:1933: \"$ac_try\"") >&5
    1934   (eval $ac_try) 2>&5
    1935   ac_status=$?
    1936   echo "$as_me:1936: \$? = $ac_status" >&5
    1937   (exit $ac_status); }; }; then
    1938   :
    1939 else
    1940   echo "$as_me: failed program was:" >&5
    1941 cat conftest.$ac_ext >&5
    1942 continue
    1943 fi
    1944 rm -f conftest.$ac_objext conftest.$ac_ext
    1945   cat >conftest.$ac_ext <<_ACEOF
    1946 #line 1946 "configure"
    1947 #include "confdefs.h"
    1948 $ac_declaration
    1949 int
    1950 main ()
    1951 {
    1952 exit (42);
    1953   ;
    1954   return 0;
    1955 }
    1956 _ACEOF
    1957 rm -f conftest.$ac_objext
    1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
    1959   (eval $ac_compile) 2>&5
    1960   ac_status=$?
    1961   echo "$as_me:1961: \$? = $ac_status" >&5
    1962   (exit $ac_status); } &&
    1963          { ac_try='test -s conftest.$ac_objext'
    1964   { (eval echo "$as_me:1964: \"$ac_try\"") >&5
    1965   (eval $ac_try) 2>&5
    1966   ac_status=$?
    1967   echo "$as_me:1967: \$? = $ac_status" >&5
    1968   (exit $ac_status); }; }; then
    1969   break
    1970 else
    1971   echo "$as_me: failed program was:" >&5
    1972 cat conftest.$ac_ext >&5
    1973 fi
    1974 rm -f conftest.$ac_objext conftest.$ac_ext
    1975 done
    1976 echo '#ifdef __cplusplus' >>confdefs.h
    1977 echo $ac_declaration      >>confdefs.h
    1978 echo '#endif'             >>confdefs.h
    1979 
    1980 else
    1981   echo "$as_me: failed program was:" >&5
    1982 cat conftest.$ac_ext >&5
    1983 fi
    1984 rm -f conftest.$ac_objext conftest.$ac_ext
    1985 ac_ext=c
    1986 ac_cpp='$CPP $CPPFLAGS'
    1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
     926  GCC=
     927  test "${CFLAGS+set}" = set || CFLAGS="-g"
     928fi
    1990929
    1991930ac_aux_dir=
     
    1999938    ac_install_sh="$ac_aux_dir/install.sh -c"
    2000939    break
    2001   elif test -f $ac_dir/shtool; then
    2002     ac_aux_dir=$ac_dir
    2003     ac_install_sh="$ac_aux_dir/shtool install -c"
    2004     break
    2005940  fi
    2006941done
    2007942if test -z "$ac_aux_dir"; then
    2008   { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2010    { (exit 1); exit 1; }; }
    2011 fi
    2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     943  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
     944fi
     945ac_config_guess=$ac_aux_dir/config.guess
     946ac_config_sub=$ac_aux_dir/config.sub
     947ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    2015948
    2016949# Find a good install program.  We prefer a C program (faster),
     
    2021954# IRIX /sbin/install
    2022955# AIX /bin/install
    2023 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2025956# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2026957# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2027958# ./install, which can be erroneously created by make from ./install.sh.
    2028 echo "$as_me:2028: checking for a BSD compatible install" >&5
    2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
     959echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     960echo "configure:961: checking for a BSD compatible install" >&5
    2030961if test -z "$INSTALL"; then
    2031 if test "${ac_cv_path_install+set}" = set; then
    2032   echo $ECHO_N "(cached) $ECHO_C" >&6
    2033 else
    2034     ac_save_IFS=$IFS; IFS=$ac_path_separator
     962if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     963  echo $ac_n "(cached) $ac_c" 1>&6
     964else
     965    IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
    2035966  for ac_dir in $PATH; do
    2036     IFS=$ac_save_IFS
    2037967    # Account for people who put trailing slashes in PATH elements.
    2038     case $ac_dir/ in
    2039     / | ./ | .// | /cC/* \
    2040     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    2041     | /usr/ucb/* ) ;;
     968    case "$ac_dir/" in
     969    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    2042970    *)
    2043971      # OSF1 and SCO ODT 3.0 have their own names for install.
    2044       # Don't use installbsd from OSF since it installs stuff as root
    2045       # by default.
    2046       for ac_prog in ginstall scoinst install; do
    2047         if $as_executable_p "$ac_dir/$ac_prog"; then
     972      for ac_prog in ginstall installbsd scoinst install; do
     973        if test -f $ac_dir/$ac_prog; then
    2048974      if test $ac_prog = install &&
    2049             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     975            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    2050976        # AIX install.  It has an incompatible calling convention.
    2051         :
    2052       elif test $ac_prog = install &&
    2053         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    2054         # program-specific install script used by HP pwplus--don't use.
     977        # OSF/1 installbsd also uses dspmsg, but is usable.
    2055978        :
    2056979      else
     
    2063986    esac
    2064987  done
     988  IFS="$ac_save_IFS"
    2065989
    2066990fi
    2067991  if test "${ac_cv_path_install+set}" = set; then
    2068     INSTALL=$ac_cv_path_install
     992    INSTALL="$ac_cv_path_install"
    2069993  else
    2070994    # As a last resort, use the slow shell script.  We don't cache a
     
    2072996    # break other packages using the cache if that directory is
    2073997    # removed, or if the path is relative.
    2074     INSTALL=$ac_install_sh
     998    INSTALL="$ac_install_sh"
    2075999  fi
    20761000fi
    2077 echo "$as_me:2077: result: $INSTALL" >&5
    2078 echo "${ECHO_T}$INSTALL" >&6
     1001echo "$ac_t""$INSTALL" 1>&6
    20791002
    20801003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    20821005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    20831006
    2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2085 
    20861007test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    20871008
    2088 echo "$as_me:2088: checking whether ln -s works" >&5
    2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2090 LN_S=$as_ln_s
    2091 if test "$LN_S" = "ln -s"; then
    2092   echo "$as_me:2092: result: yes" >&5
    2093 echo "${ECHO_T}yes" >&6
    2094 else
    2095   echo "$as_me:2095: result: no, using $LN_S" >&5
    2096 echo "${ECHO_T}no, using $LN_S" >&6
    2097 fi
    2098 
    2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5
    2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2103   echo $ECHO_N "(cached) $ECHO_C" >&6
    2104 else
    2105   cat >conftest.make <<\EOF
     1009echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1010echo "configure:1011: checking whether ln -s works" >&5
     1011if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1012  echo $ac_n "(cached) $ac_c" 1>&6
     1013else
     1014  rm -f conftestdata
     1015if ln -s X conftestdata 2>/dev/null
     1016then
     1017  rm -f conftestdata
     1018  ac_cv_prog_LN_S="ln -s"
     1019else
     1020  ac_cv_prog_LN_S=ln
     1021fi
     1022fi
     1023LN_S="$ac_cv_prog_LN_S"
     1024if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1025  echo "$ac_t""yes" 1>&6
     1026else
     1027  echo "$ac_t""no" 1>&6
     1028fi
     1029
     1030echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     1031echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     1033if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     1034  echo $ac_n "(cached) $ac_c" 1>&6
     1035else
     1036  cat > conftestmake <<\EOF
    21061037all:
    21071038    @echo 'ac_maketemp="${MAKE}"'
    21081039EOF
    21091040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     1041eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    21111042if test -n "$ac_maketemp"; then
    21121043  eval ac_cv_prog_make_${ac_make}_set=yes
     
    21141045  eval ac_cv_prog_make_${ac_make}_set=no
    21151046fi
    2116 rm -f conftest.make
     1047rm -f conftestmake
    21171048fi
    21181049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2119   echo "$as_me:2119: result: yes" >&5
    2120 echo "${ECHO_T}yes" >&6
     1050  echo "$ac_t""yes" 1>&6
    21211051  SET_MAKE=
    21221052else
    2123   echo "$as_me:2123: result: no" >&5
    2124 echo "${ECHO_T}no" >&6
     1053  echo "$ac_t""no" 1>&6
    21251054  SET_MAKE="MAKE=${MAKE-make}"
    21261055fi
    21271056
    2128 if test -n "$ac_tool_prefix"; then
    2129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2131 echo "$as_me:2131: checking for $ac_word" >&5
    2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2133 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2134   echo $ECHO_N "(cached) $ECHO_C" >&6
     1057# Extract the first word of "ranlib", so it can be a program name with args.
     1058set dummy ranlib; ac_word=$2
     1059echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1060echo "configure:1061: checking for $ac_word" >&5
     1061if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1062  echo $ac_n "(cached) $ac_c" 1>&6
    21351063else
    21361064  if test -n "$RANLIB"; then
    21371065  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    21381066else
    2139   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2140 ac_dummy="$PATH"
    2141 for ac_dir in $ac_dummy; do
    2142   IFS=$ac_save_IFS
    2143   test -z "$ac_dir" && ac_dir=.
    2144   $as_executable_p "$ac_dir/$ac_word" || continue
    2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5
    2147 break
    2148 done
    2149 
    2150 fi
    2151 fi
    2152 RANLIB=$ac_cv_prog_RANLIB
     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=":"
     1077fi
     1078fi
     1079RANLIB="$ac_cv_prog_RANLIB"
    21531080if test -n "$RANLIB"; then
    2154   echo "$as_me:2154: result: $RANLIB" >&5
    2155 echo "${ECHO_T}$RANLIB" >&6
    2156 else
    2157   echo "$as_me:2157: result: no" >&5
    2158 echo "${ECHO_T}no" >&6
    2159 fi
    2160 
    2161 fi
    2162 if test -z "$ac_cv_prog_RANLIB"; then
    2163   ac_ct_RANLIB=$RANLIB
    2164   # Extract the first word of "ranlib", so it can be a program name with args.
    2165 set dummy ranlib; ac_word=$2
    2166 echo "$as_me:2166: checking for $ac_word" >&5
    2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2169   echo $ECHO_N "(cached) $ECHO_C" >&6
    2170 else
    2171   if test -n "$ac_ct_RANLIB"; then
    2172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2173 else
    2174   ac_save_IFS=$IFS; IFS=$ac_path_separator
    2175 ac_dummy="$PATH"
    2176 for ac_dir in $ac_dummy; do
    2177   IFS=$ac_save_IFS
    2178   test -z "$ac_dir" && ac_dir=.
    2179   $as_executable_p "$ac_dir/$ac_word" || continue
    2180 ac_cv_prog_ac_ct_RANLIB="ranlib"
    2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5
    2182 break
    2183 done
    2184 
    2185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    2186 fi
    2187 fi
    2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2189 if test -n "$ac_ct_RANLIB"; then
    2190   echo "$as_me:2190: result: $ac_ct_RANLIB" >&5
    2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2192 else
    2193   echo "$as_me:2193: result: no" >&5
    2194 echo "${ECHO_T}no" >&6
    2195 fi
    2196 
    2197   RANLIB=$ac_ct_RANLIB
    2198 else
    2199   RANLIB="$ac_cv_prog_RANLIB"
    2200 fi
    2201 
    2202 ac_ext=c
    2203 ac_cpp='$CPP $CPPFLAGS'
    2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5
    2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     1081  echo "$ac_t""$RANLIB" 1>&6
     1082else
     1083  echo "$ac_t""no" 1>&6
     1084fi
     1085
     1086
     1087echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     1088echo "configure:1089: checking how to run the C preprocessor" >&5
    22091089# On Suns, sometimes $CPP names a directory.
    22101090if test -n "$CPP" && test -d "$CPP"; then
     
    22121092fi
    22131093if test -z "$CPP"; then
    2214   if test "${ac_cv_prog_CPP+set}" = set; then
    2215   echo $ECHO_N "(cached) $ECHO_C" >&6
    2216 else
    2217       # Double quotes because CPP needs to be expanded
    2218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2219     do
    2220       # break 2 since there is a loop in there.
    2221       ac_preproc_ok=false
    2222 for ac_c_preproc_warn_flag in '' yes
    2223 do
    2224   # Use a header file that comes with gcc, so configuring glibc
    2225   # with a fresh cross-compiler works.
     1094if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
     1095  echo $ac_n "(cached) $ac_c" 1>&6
     1096else
     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"
    22261100  # On the NeXT, cc -E runs the code through the compiler's parser,
    2227   # not just through cpp. "Syntax error" is here to catch this case.
    2228   cat >conftest.$ac_ext <<_ACEOF
    2229 #line 2229 "configure"
     1101  # not just through cpp.
     1102  cat > conftest.$ac_ext <<EOF
     1103#line 1104 "configure"
    22301104#include "confdefs.h"
    22311105#include <assert.h>
    2232                      Syntax error
    2233 _ACEOF
    2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5
    2235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2236   ac_status=$?
    2237   egrep -v '^ *\+' conftest.er1 >conftest.err
    2238   rm -f conftest.er1
    2239   cat conftest.err >&5
    2240   echo "$as_me:2240: \$? = $ac_status" >&5
    2241   (exit $ac_status); } >/dev/null; then
    2242   if test -s conftest.err; then
    2243     ac_cpp_err=$ac_c_preproc_warn_flag
    2244   else
    2245     ac_cpp_err=
    2246   fi
    2247 else
    2248   ac_cpp_err=yes
    2249 fi
    2250 if test -z "$ac_cpp_err"; then
     1106Syntax Error
     1107EOF
     1108ac_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; }
     1110ac_err=`grep -v '^ *+' conftest.out`
     1111if test -z "$ac_err"; then
    22511112  :
    22521113else
    2253   echo "$as_me: failed program was:" >&5
     1114  echo "$ac_err" >&5
     1115  echo "configure: failed program was:" >&5
    22541116  cat conftest.$ac_ext >&5
    2255   # Broken: fails on valid input.
    2256 continue
    2257 fi
    2258 rm -f conftest.err conftest.$ac_ext
    2259 
    2260   # OK, works on sane cases.  Now check whether non-existent headers
    2261   # can be detected and how.
    2262   cat >conftest.$ac_ext <<_ACEOF
    2263 #line 2263 "configure"
    2264 #include "confdefs.h"
    2265 #include <ac_nonexistent.h>
    2266 _ACEOF
    2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5
    2268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2269   ac_status=$?
    2270   egrep -v '^ *\+' conftest.er1 >conftest.err
    2271   rm -f conftest.er1
    2272   cat conftest.err >&5
    2273   echo "$as_me:2273: \$? = $ac_status" >&5
    2274   (exit $ac_status); } >/dev/null; then
    2275   if test -s conftest.err; then
    2276     ac_cpp_err=$ac_c_preproc_warn_flag
    2277   else
    2278     ac_cpp_err=
    2279   fi
    2280 else
    2281   ac_cpp_err=yes
    2282 fi
    2283 if test -z "$ac_cpp_err"; then
    2284   # Broken: success on invalid input.
    2285 continue
    2286 else
    2287   echo "$as_me: failed program was:" >&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>
     1123Syntax Error
     1124EOF
     1125ac_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; }
     1127ac_err=`grep -v '^ *+' conftest.out`
     1128if test -z "$ac_err"; then
     1129  :
     1130else
     1131  echo "$ac_err" >&5
     1132  echo "configure: failed program was:" >&5
    22881133  cat conftest.$ac_ext >&5
    2289   # Passes both tests.
    2290 ac_preproc_ok=:
    2291 break
    2292 fi
    2293 rm -f conftest.err conftest.$ac_ext
    2294 
    2295 done
    2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2297 rm -f conftest.err conftest.$ac_ext
    2298 if $ac_preproc_ok; then
    2299   break 2
    2300 fi
    2301 
    2302     done
    2303     ac_cv_prog_CPP=$CPP
    2304 
    2305 fi
    2306   CPP=$ac_cv_prog_CPP
    2307 else
    2308   ac_cv_prog_CPP=$CPP
    2309 fi
    2310 echo "$as_me:2310: result: $CPP" >&5
    2311 echo "${ECHO_T}$CPP" >&6
    2312 ac_preproc_ok=false
    2313 for ac_c_preproc_warn_flag in '' yes
    2314 do
    2315   # Use a header file that comes with gcc, so configuring glibc
    2316   # with a fresh cross-compiler works.
    2317   # On the NeXT, cc -E runs the code through the compiler's parser,
    2318   # not just through cpp. "Syntax error" is here to catch this case.
    2319   cat >conftest.$ac_ext <<_ACEOF
    2320 #line 2320 "configure"
    2321 #include "confdefs.h"
    2322 #include <assert.h>
    2323                      Syntax error
    2324 _ACEOF
    2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5
    2326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2327   ac_status=$?
    2328   egrep -v '^ *\+' conftest.er1 >conftest.err
    2329   rm -f conftest.er1
    2330   cat conftest.err >&5
    2331   echo "$as_me:2331: \$? = $ac_status" >&5
    2332   (exit $ac_status); } >/dev/null; then
    2333   if test -s conftest.err; then
    2334     ac_cpp_err=$ac_c_preproc_warn_flag
    2335   else
    2336     ac_cpp_err=
    2337   fi
    2338 else
    2339   ac_cpp_err=yes
    2340 fi
    2341 if test -z "$ac_cpp_err"; then
    2342   :
    2343 else
    2344   echo "$as_me: failed program was:" >&5
    2345   cat conftest.$ac_ext >&5
    2346   # Broken: fails on valid input.
    2347 continue
    2348 fi
    2349 rm -f conftest.err conftest.$ac_ext
    2350 
    2351   # OK, works on sane cases.  Now check whether non-existent headers
    2352   # can be detected and how.
    2353   cat >conftest.$ac_ext <<_ACEOF
    2354 #line 2354 "configure"
    2355 #include "confdefs.h"
    2356 #include <ac_nonexistent.h>
    2357 _ACEOF
    2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
    2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2360   ac_status=$?
    2361   egrep -v '^ *\+' conftest.er1 >conftest.err
    2362   rm -f conftest.er1
    2363   cat conftest.err >&5
    2364   echo "$as_me:2364: \$? = $ac_status" >&5
    2365   (exit $ac_status); } >/dev/null; then
    2366   if test -s conftest.err; then
    2367     ac_cpp_err=$ac_c_preproc_warn_flag
    2368   else
    2369     ac_cpp_err=
    2370   fi
    2371 else
    2372   ac_cpp_err=yes
    2373 fi
    2374 if test -z "$ac_cpp_err"; then
    2375   # Broken: success on invalid input.
    2376 continue
    2377 else
    2378   echo "$as_me: failed program was:" >&5
    2379   cat conftest.$ac_ext >&5
    2380   # Passes both tests.
    2381 ac_preproc_ok=:
    2382 break
    2383 fi
    2384 rm -f conftest.err conftest.$ac_ext
    2385 
    2386 done
    2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2388 rm -f conftest.err conftest.$ac_ext
    2389 if $ac_preproc_ok; then
    2390   :
    2391 else
    2392   { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5
    2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    2394    { (exit 1); exit 1; }; }
    2395 fi
    2396 
    2397 ac_ext=c
    2398 ac_cpp='$CPP $CPPFLAGS'
    2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2402 
    2403 echo "$as_me:2403: checking for AIX" >&5
    2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2405 cat >conftest.$ac_ext <<_ACEOF
    2406 #line 2406 "configure"
     1134  rm -rf conftest*
     1135  CPP=/lib/cpp
     1136fi
     1137rm -f conftest*
     1138fi
     1139rm -f conftest*
     1140  ac_cv_prog_CPP="$CPP"
     1141fi
     1142  CPP="$ac_cv_prog_CPP"
     1143else
     1144  ac_cv_prog_CPP="$CPP"
     1145fi
     1146echo "$ac_t""$CPP" 1>&6
     1147
     1148echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1149echo "configure:1150: checking for AIX" >&5
     1150cat > conftest.$ac_ext <<EOF
     1151#line 1152 "configure"
    24071152#include "confdefs.h"
    24081153#ifdef _AIX
     
    24101155#endif
    24111156
    2412 _ACEOF
     1157EOF
    24131158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    24141159  egrep "yes" >/dev/null 2>&1; then
    2415   echo "$as_me:2415: result: yes" >&5
    2416 echo "${ECHO_T}yes" >&6
    2417 cat >>confdefs.h <<\EOF
     1160  rm -rf conftest*
     1161  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    24181162#define _ALL_SOURCE 1
    24191163EOF
    24201164
    24211165else
    2422   echo "$as_me:2422: result: no" >&5
    2423 echo "${ECHO_T}no" >&6
    2424 fi
    2425 rm -f conftest*
    2426 
    2427 echo "$as_me:2427: checking for POSIXized ISC" >&5
    2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
     1166  rm -rf conftest*
     1167  echo "$ac_t""no" 1>&6
     1168fi
     1169rm -f conftest*
     1170
     1171
     1172echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
     1173echo "configure:1174: checking for POSIXized ISC" >&5
    24291174if test -d /etc/conf/kconfig.d &&
    2430    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     1175  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
    24311176then
    2432   echo "$as_me:2432: result: yes" >&5
    2433 echo "${ECHO_T}yes" >&6
     1177  echo "$ac_t""yes" 1>&6
    24341178  ISC=yes # If later tests want to check for ISC.
    2435 
    2436 cat >>confdefs.h <<\EOF
     1179  cat >> confdefs.h <<\EOF
    24371180#define _POSIX_SOURCE 1
    24381181EOF
     
    24441187  fi
    24451188else
    2446   echo "$as_me:2446: result: no" >&5
    2447 echo "${ECHO_T}no" >&6
     1189  echo "$ac_t""no" 1>&6
    24481190  ISC=
    24491191fi
    24501192
    2451 echo "$as_me:2451: checking for minix/config.h" >&5
    2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    2453 if test "${ac_cv_header_minix_config_h+set}" = set; then
    2454   echo $ECHO_N "(cached) $ECHO_C" >&6
    2455 else
    2456   cat >conftest.$ac_ext <<_ACEOF
    2457 #line 2457 "configure"
     1193ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
     1194echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
     1195echo "configure:1196: checking for minix/config.h" >&5
     1196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1197  echo $ac_n "(cached) $ac_c" 1>&6
     1198else
     1199  cat > conftest.$ac_ext <<EOF
     1200#line 1201 "configure"
    24581201#include "confdefs.h"
    24591202#include <minix/config.h>
    2460 _ACEOF
    2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5
    2462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2463   ac_status=$?
    2464   egrep -v '^ *\+' conftest.er1 >conftest.err
    2465   rm -f conftest.er1
    2466   cat conftest.err >&5
    2467   echo "$as_me:2467: \$? = $ac_status" >&5
    2468   (exit $ac_status); } >/dev/null; then
    2469   if test -s conftest.err; then
    2470     ac_cpp_err=$ac_c_preproc_warn_flag
    2471   else
    2472     ac_cpp_err=
    2473   fi
    2474 else
    2475   ac_cpp_err=yes
    2476 fi
    2477 if test -z "$ac_cpp_err"; then
    2478   ac_cv_header_minix_config_h=yes
    2479 else
    2480   echo "$as_me: failed program was:" >&5
     1203EOF
     1204ac_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; }
     1206ac_err=`grep -v '^ *+' conftest.out`
     1207if test -z "$ac_err"; then
     1208  rm -rf conftest*
     1209  eval "ac_cv_header_$ac_safe=yes"
     1210else
     1211  echo "$ac_err" >&5
     1212  echo "configure: failed program was:" >&5
    24811213  cat conftest.$ac_ext >&5
    2482   ac_cv_header_minix_config_h=no
    2483 fi
    2484 rm -f conftest.err conftest.$ac_ext
    2485 fi
    2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5
    2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    2488 if test $ac_cv_header_minix_config_h = yes; then
     1214  rm -rf conftest*
     1215  eval "ac_cv_header_$ac_safe=no"
     1216fi
     1217rm -f conftest*
     1218fi
     1219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     1220  echo "$ac_t""yes" 1>&6
    24891221  MINIX=yes
    24901222else
    2491   MINIX=
     1223  echo "$ac_t""no" 1>&6
     1224MINIX=
    24921225fi
    24931226
    24941227if test "$MINIX" = yes; then
    2495 
    2496 cat >>confdefs.h <<\EOF
     1228  cat >> confdefs.h <<\EOF
    24971229#define _POSIX_SOURCE 1
    24981230EOF
    24991231
    2500 cat >>confdefs.h <<\EOF
     1232  cat >> confdefs.h <<\EOF
    25011233#define _POSIX_1_SOURCE 2
    25021234EOF
    25031235
    2504 cat >>confdefs.h <<\EOF
     1236  cat >> confdefs.h <<\EOF
    25051237#define _MINIX 1
    25061238EOF
     
    25081240fi
    25091241
    2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5
    2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2513   echo $ECHO_N "(cached) $ECHO_C" >&6
     1242echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
     1243echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&5
     1244if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
     1245  echo $ac_n "(cached) $ac_c" 1>&6
    25141246else
    25151247  ac_cv_prog_cc_stdc=no
     
    25241256do
    25251257  CFLAGS="$ac_save_CFLAGS $ac_arg"
    2526   cat >conftest.$ac_ext <<_ACEOF
    2527 #line 2527 "configure"
     1258  cat > conftest.$ac_ext <<EOF
     1259#line 1260 "configure"
    25281260#include "confdefs.h"
    25291261#if !defined(__STDC__) || __STDC__ != 1
    25301262choke me
    2531 #endif
    2532 
    2533 int
    2534 main ()
    2535 {
     1263#endif 
     1264
     1265int main() {
    25361266int test (int i, double x);
    25371267struct s1 {int (*f) (int a);};
    25381268struct s2 {int (*f) (double a);};
    2539   ;
    2540   return 0;
    2541 }
    2542 _ACEOF
    2543 rm -f conftest.$ac_objext
    2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5
    2545   (eval $ac_compile) 2>&5
    2546   ac_status=$?
    2547   echo "$as_me:2547: \$? = $ac_status" >&5
    2548   (exit $ac_status); } &&
    2549          { ac_try='test -s conftest.$ac_objext'
    2550   { (eval echo "$as_me:2550: \"$ac_try\"") >&5
    2551   (eval $ac_try) 2>&5
    2552   ac_status=$?
    2553   echo "$as_me:2553: \$? = $ac_status" >&5
    2554   (exit $ac_status); }; }; then
     1269; return 0; }
     1270EOF
     1271if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1272  rm -rf conftest*
    25551273  ac_cv_prog_cc_stdc="$ac_arg"; break
    25561274else
    2557   echo "$as_me: failed program was:" >&5
    2558 cat conftest.$ac_ext >&5
    2559 fi
    2560 rm -f conftest.$ac_objext conftest.$ac_ext
     1275  echo "configure: failed program was:" >&5
     1276  cat conftest.$ac_ext >&5
     1277fi
     1278rm -f conftest*
    25611279done
    25621280CFLAGS="$ac_save_CFLAGS"
     
    25641282fi
    25651283
    2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5
    2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     1284echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
    25681285case "x$ac_cv_prog_cc_stdc" in
    25691286  x|xno) ;;
     
    25711288esac
    25721289
    2573 echo "$as_me:2573: checking for function prototypes" >&5
    2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     1290
     1291echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
     1292echo "configure:1293: checking for function prototypes" >&5
    25751293if test "$ac_cv_prog_cc_stdc" != no; then
    2576   echo "$as_me:2576: result: yes" >&5
    2577 echo "${ECHO_T}yes" >&6
    2578   cat >>confdefs.h <<\EOF
     1294  echo "$ac_t""yes" 1>&6
     1295  cat >> confdefs.h <<\EOF
    25791296#define PROTOTYPES 1
    25801297EOF
     
    25821299  U= ANSI2KNR=
    25831300else
    2584   echo "$as_me:2584: result: no" >&5
    2585 echo "${ECHO_T}no" >&6
     1301  echo "$ac_t""no" 1>&6
    25861302  U=_ ANSI2KNR=ansi2knr
    25871303fi
    25881304
    2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5
    2590 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2591 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2592   echo $ECHO_N "(cached) $ECHO_C" >&6
    2593 else
    2594   ac_cv_prog_cc_stdc=no
    2595 ac_save_CC=$CC
    2596 cat >conftest.$ac_ext <<_ACEOF
    2597 #line 2597 "configure"
    2598 #include "confdefs.h"
    2599 #include <stdarg.h>
    2600 #include <stdio.h>
    2601 #include <sys/types.h>
    2602 #include <sys/stat.h>
    2603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2604 struct buf { int x; };
    2605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2606 static char *e (p, i)
    2607      char **p;
    2608      int i;
    2609 {
    2610   return p[i];
     1305echo $ac_n "checking for working const""... $ac_c" 1>&6
     1306echo "configure:1307: checking for working const" >&5
     1307if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
     1308  echo $ac_n "(cached) $ac_c" 1>&6
     1309else
     1310  cat > conftest.$ac_ext <<EOF
     1311#line 1312 "configure"
     1312#include "confdefs.h"
     1313
     1314int main() {
     1315
     1316/* Ultrix mips cc rejects this.  */
     1317typedef int charset[2]; const charset x;
     1318/* SunOS 4.1.1 cc rejects this.  */
     1319char const *const *ccp;
     1320char **p;
     1321/* NEC SVR4.0.2 mips cc rejects this.  */
     1322struct point {int x, y;};
     1323static 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 */
     1327const char *g = "string";
     1328ccp = &g + (g ? g-g : 0);
     1329/* HPUX 7.0 cc rejects these. */
     1330++ccp;
     1331p = (char**) ccp;
     1332ccp = (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;
    26111338}
    2612 static char *f (char * (*g) (char **, int), char **p, ...)
    2613 {
    2614   char *s;
    2615   va_list v;
    2616   va_start (v,p);
    2617   s = g (p, va_arg (v,int));
    2618   va_end (v);
    2619   return s;
     1339{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     1340  int x[] = {25, 17};
     1341  const int *foo = &x[0];
     1342  ++foo;
    26201343}
    2621 int test (int i, double x);
    2622 struct s1 {int (*f) (int a);};
    2623 struct s2 {int (*f) (double a);};
    2624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2625 int argc;
    2626 char **argv;
    2627 int
    2628 main ()
    2629 {
    2630 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2631   ;
    2632   return 0;
     1344{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     1345  typedef const int *iptr;
     1346  iptr p = 0;
     1347  ++p;
    26331348}
    2634 _ACEOF
    2635 # Don't try gcc -ansi; that turns off useful extensions and
    2636 # breaks some systems' header files.
    2637 # AIX           -qlanglvl=ansi
    2638 # Ultrix and OSF/1  -std1
    2639 # HP-UX 10.20 and later -Ae
    2640 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2641 # SVR4          -Xc -D__EXTENSIONS__
    2642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2643 do
    2644   CC="$ac_save_CC $ac_arg"
    2645   rm -f conftest.$ac_objext
    2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
    2647   (eval $ac_compile) 2>&5
    2648   ac_status=$?
    2649   echo "$as_me:2649: \$? = $ac_status" >&5
    2650   (exit $ac_status); } &&
    2651          { ac_try='test -s conftest.$ac_objext'
    2652   { (eval echo "$as_me:2652: \"$ac_try\"") >&5
    2653   (eval $ac_try) 2>&5
    2654   ac_status=$?
    2655   echo "$as_me:2655: \$? = $ac_status" >&5
    2656   (exit $ac_status); }; }; then
    2657   ac_cv_prog_cc_stdc=$ac_arg
    2658 break
    2659 else
    2660   echo "$as_me: failed program was:" >&5
    2661 cat conftest.$ac_ext >&5
    2662 fi
    2663 rm -f conftest.$ac_objext
    2664 done
    2665 rm -f conftest.$ac_ext conftest.$ac_objext
    2666 CC=$ac_save_CC
    2667 
    2668 fi
    2669 
    2670 case "x$ac_cv_prog_cc_stdc" in
    2671   x|xno)
    2672     echo "$as_me:2672: result: none needed" >&5
    2673 echo "${ECHO_T}none needed" >&6 ;;
    2674   *)
    2675     echo "$as_me:2675: result: $ac_cv_prog_cc_stdc" >&5
    2676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2677     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2678 esac
    2679 
    2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5
    2681 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    2682 if test "${ac_cv_c_const+set}" = set; then
    2683   echo $ECHO_N "(cached) $ECHO_C" >&6
    2684 else
    2685   cat >conftest.$ac_ext <<_ACEOF
    2686 #line 2686 "configure"
    2687 #include "confdefs.h"
    2688 
    2689 int
    2690 main ()
    2691 {
    2692 /* FIXME: Include the comments suggested by Paul. */
    2693 #ifndef __cplusplus
    2694   /* Ultrix mips cc rejects this.  */
    2695   typedef int charset[2];
    2696   const charset x;
    2697   /* SunOS 4.1.1 cc rejects this.  */
    2698   char const *const *ccp;
    2699   char **p;
    2700   /* NEC SVR4.0.2 mips cc rejects this.  */
    2701   struct point {int x, y;};
    2702   static struct point const zero = {0,0};
    2703   /* AIX XL C 1.02.0.0 rejects this.
    2704      It does not let you subtract one const X* pointer from another in
    2705      an arm of an if-expression whose if-part is not a constant
    2706      expression */
    2707   const char *g = "string";
    2708   ccp = &g + (g ? g-g : 0);
    2709   /* HPUX 7.0 cc rejects these. */
    2710   ++ccp;
    2711   p = (char**) ccp;
    2712   ccp = (char const *const *) p;
    2713   { /* SCO 3.2v4 cc rejects this.  */
    2714     char *t;
    2715     char const *s = 0 ? (char *) 0 : (char const *) 0;
    2716 
    2717     *t++ = 0;
    2718   }
    2719   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    2720     int x[] = {25, 17};
    2721     const int *foo = &x[0];
    2722     ++foo;
    2723   }
    2724   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    2725     typedef const int *iptr;
    2726     iptr p = 0;
    2727     ++p;
    2728   }
    2729   { /* AIX XL C 1.02.0.0 rejects this saying
    2730        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    2731     struct s { int j; const int *ap[3]; };
    2732     struct s *b; b->j = 5;
    2733   }
    2734   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    2735     const int foo = 10;
    2736   }
    2737 #endif
    2738 
    2739   ;
    2740   return 0;
     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;
    27411353}
    2742 _ACEOF
    2743 rm -f conftest.$ac_objext
    2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
    2745   (eval $ac_compile) 2>&5
    2746   ac_status=$?
    2747   echo "$as_me:2747: \$? = $ac_status" >&5
    2748   (exit $ac_status); } &&
    2749          { ac_try='test -s conftest.$ac_objext'
    2750   { (eval echo "$as_me:2750: \"$ac_try\"") >&5
    2751   (eval $ac_try) 2>&5
    2752   ac_status=$?
    2753   echo "$as_me:2753: \$? = $ac_status" >&5
    2754   (exit $ac_status); }; }; then
     1354{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     1355  const int foo = 10;
     1356}
     1357
     1358; return 0; }
     1359EOF
     1360if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1361  rm -rf conftest*
    27551362  ac_cv_c_const=yes
    27561363else
    2757   echo "$as_me: failed program was:" >&5
    2758 cat conftest.$ac_ext >&5
    2759 ac_cv_c_const=no
    2760 fi
    2761 rm -f conftest.$ac_objext conftest.$ac_ext
    2762 fi
    2763 echo "$as_me:2763: result: $ac_cv_c_const" >&5
    2764 echo "${ECHO_T}$ac_cv_c_const" >&6
     1364  echo "configure: failed program was:" >&5
     1365  cat conftest.$ac_ext >&5
     1366  rm -rf conftest*
     1367  ac_cv_c_const=no
     1368fi
     1369rm -f conftest*
     1370fi
     1371
     1372echo "$ac_t""$ac_cv_c_const" 1>&6
    27651373if test $ac_cv_c_const = no; then
    2766 
    2767 cat >>confdefs.h <<\EOF
    2768 #define const
    2769 EOF
    2770 
    2771 fi
    2772 
    2773 echo "$as_me:2773: checking for ANSI C header files" >&5
    2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2775 if test "${ac_cv_header_stdc+set}" = set; then
    2776   echo $ECHO_N "(cached) $ECHO_C" >&6
    2777 else
    2778   cat >conftest.$ac_ext <<_ACEOF
    2779 #line 2779 "configure"
     1374  cat >> confdefs.h <<\EOF
     1375#define const
     1376EOF
     1377
     1378fi
     1379
     1380echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1381echo "configure:1382: checking for ANSI C header files" >&5
     1382if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1383  echo $ac_n "(cached) $ac_c" 1>&6
     1384else
     1385  cat > conftest.$ac_ext <<EOF
     1386#line 1387 "configure"
    27801387#include "confdefs.h"
    27811388#include <stdlib.h>
     
    27831390#include <string.h>
    27841391#include <float.h>
    2785 
    2786 _ACEOF
    2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5
    2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2789   ac_status=$?
    2790   egrep -v '^ *\+' conftest.er1 >conftest.err
    2791   rm -f conftest.er1
    2792   cat conftest.err >&5
    2793   echo "$as_me:2793: \$? = $ac_status" >&5
    2794   (exit $ac_status); } >/dev/null; then
    2795   if test -s conftest.err; then
    2796     ac_cpp_err=$ac_c_preproc_warn_flag
    2797   else
    2798     ac_cpp_err=
    2799   fi
    2800 else
    2801   ac_cpp_err=yes
    2802 fi
    2803 if test -z "$ac_cpp_err"; then
     1392EOF
     1393ac_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; }
     1395ac_err=`grep -v '^ *+' conftest.out`
     1396if test -z "$ac_err"; then
     1397  rm -rf conftest*
    28041398  ac_cv_header_stdc=yes
    28051399else
    2806   echo "$as_me: failed program was:" >&5
     1400  echo "$ac_err" >&5
     1401  echo "configure: failed program was:" >&5
    28071402  cat conftest.$ac_ext >&5
     1403  rm -rf conftest*
    28081404  ac_cv_header_stdc=no
    28091405fi
    2810 rm -f conftest.err conftest.$ac_ext
     1406rm -f conftest*
    28111407
    28121408if test $ac_cv_header_stdc = yes; then
    28131409  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2814   cat >conftest.$ac_ext <<_ACEOF
    2815 #line 2815 "configure"
     1410cat > conftest.$ac_ext <<EOF
     1411#line 1412 "configure"
    28161412#include "confdefs.h"
    28171413#include <string.h>
    2818 
    2819 _ACEOF
     1414EOF
    28201415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    28211416  egrep "memchr" >/dev/null 2>&1; then
    28221417  :
    28231418else
     1419  rm -rf conftest*
    28241420  ac_cv_header_stdc=no
    28251421fi
     
    28301426if test $ac_cv_header_stdc = yes; then
    28311427  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2832   cat >conftest.$ac_ext <<_ACEOF
    2833 #line 2833 "configure"
     1428cat > conftest.$ac_ext <<EOF
     1429#line 1430 "configure"
    28341430#include "confdefs.h"
    28351431#include <stdlib.h>
    2836 
    2837 _ACEOF
     1432EOF
    28381433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    28391434  egrep "free" >/dev/null 2>&1; then
    28401435  :
    28411436else
     1437  rm -rf conftest*
    28421438  ac_cv_header_stdc=no
    28431439fi
     
    28481444if test $ac_cv_header_stdc = yes; then
    28491445  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2850   if test "$cross_compiling" = yes; then
     1446if test "$cross_compiling" = yes; then
    28511447  :
    28521448else
    2853   cat >conftest.$ac_ext <<_ACEOF
    2854 #line 2854 "configure"
     1449  cat > conftest.$ac_ext <<EOF
     1450#line 1451 "configure"
    28551451#include "confdefs.h"
    28561452#include <ctype.h>
    2857 #if ((' ' & 0x0FF) == 0x020)
    2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2860 #else
    2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    2862                      || ('j' <= (c) && (c) <= 'r') \
    2863                      || ('s' <= (c) && (c) <= 'z'))
    2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     1453#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1454#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1456int main () { int i; for (i = 0; i < 256; i++)
     1457if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1458exit (0); }
     1459
     1460EOF
     1461if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1462then
     1463  :
     1464else
     1465  echo "configure: failed program was:" >&5
     1466  cat conftest.$ac_ext >&5
     1467  rm -fr conftest*
     1468  ac_cv_header_stdc=no
     1469fi
     1470rm -fr conftest*
     1471fi
     1472
     1473fi
     1474fi
     1475
     1476echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1477if test $ac_cv_header_stdc = yes; then
     1478  cat >> confdefs.h <<\EOF
     1479#define STDC_HEADERS 1
     1480EOF
     1481
     1482fi
     1483
     1484echo $ac_n "checking for off_t""... $ac_c" 1>&6
     1485echo "configure:1486: checking for off_t" >&5
     1486if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
     1487  echo $ac_n "(cached) $ac_c" 1>&6
     1488else
     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>
    28651496#endif
    2866 
    2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2868 int
    2869 main ()
    2870 {
    2871   int i;
    2872   for (i = 0; i < 256; i++)
    2873     if (XOR (islower (i), ISLOWER (i))
    2874         || toupper (i) != TOUPPER (i))
    2875       exit(2);
    2876   exit (0);
    2877 }
    2878 _ACEOF
    2879 rm -f conftest$ac_exeext
    2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
    2881   (eval $ac_link) 2>&5
    2882   ac_status=$?
    2883   echo "$as_me:2883: \$? = $ac_status" >&5
    2884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2885   { (eval echo "$as_me:2885: \"$ac_try\"") >&5
    2886   (eval $ac_try) 2>&5
    2887   ac_status=$?
    2888   echo "$as_me:2888: \$? = $ac_status" >&5
    2889   (exit $ac_status); }; }; then
    2890   :
    2891 else
    2892   echo "$as_me: program exited with status $ac_status" >&5
    2893 echo "$as_me: failed program was:" >&5
    2894 cat conftest.$ac_ext >&5
    2895 ac_cv_header_stdc=no
    2896 fi
    2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    2898 fi
    2899 fi
    2900 fi
    2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5
    2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2903 if test $ac_cv_header_stdc = yes; then
    2904 
    2905 cat >>confdefs.h <<\EOF
    2906 #define STDC_HEADERS 1
    2907 EOF
    2908 
    2909 fi
    2910 
    2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
    2912 do
    2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    2914 echo "$as_me:2914: checking for $ac_header" >&5
    2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    2917   echo $ECHO_N "(cached) $ECHO_C" >&6
    2918 else
    2919   cat >conftest.$ac_ext <<_ACEOF
    2920 #line 2920 "configure"
    2921 #include "confdefs.h"
    2922 #include <$ac_header>
    2923 _ACEOF
    2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5
    2925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2926   ac_status=$?
    2927   egrep -v '^ *\+' conftest.er1 >conftest.err
    2928   rm -f conftest.er1
    2929   cat conftest.err >&5
    2930   echo "$as_me:2930: \$? = $ac_status" >&5
    2931   (exit $ac_status); } >/dev/null; then
    2932   if test -s conftest.err; then
    2933     ac_cpp_err=$ac_c_preproc_warn_flag
    2934   else
    2935     ac_cpp_err=
    2936   fi
    2937 else
    2938   ac_cpp_err=yes
    2939 fi
    2940 if test -z "$ac_cpp_err"; then
    2941   eval "$ac_ac_Header=yes"
    2942 else
    2943   echo "$as_me: failed program was:" >&5
    2944   cat conftest.$ac_ext >&5
    2945   eval "$ac_ac_Header=no"
    2946 fi
    2947 rm -f conftest.err conftest.$ac_ext
    2948 fi
    2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    2952   cat >>confdefs.h <<EOF
    2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    2954 EOF
    2955 
    2956 fi
    2957 done
    2958 
    2959 echo "$as_me:2959: checking for off_t" >&5
    2960 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    2961 if test "${ac_cv_type_off_t+set}" = set; then
    2962   echo $ECHO_N "(cached) $ECHO_C" >&6
    2963 else
    2964   cat >conftest.$ac_ext <<_ACEOF
    2965 #line 2965 "configure"
    2966 #include "confdefs.h"
    2967 $ac_includes_default
    2968 int
    2969 main ()
    2970 {
    2971 if ((off_t *) 0)
    2972   return 0;
    2973 if (sizeof (off_t))
    2974   return 0;
    2975   ;
    2976   return 0;
    2977 }
    2978 _ACEOF
    2979 rm -f conftest.$ac_objext
    2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
    2981   (eval $ac_compile) 2>&5
    2982   ac_status=$?
    2983   echo "$as_me:2983: \$? = $ac_status" >&5
    2984   (exit $ac_status); } &&
    2985          { ac_try='test -s conftest.$ac_objext'
    2986   { (eval echo "$as_me:2986: \"$ac_try\"") >&5
    2987   (eval $ac_try) 2>&5
    2988   ac_status=$?
    2989   echo "$as_me:2989: \$? = $ac_status" >&5
    2990   (exit $ac_status); }; }; then
     1497EOF
     1498if (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*
    29911501  ac_cv_type_off_t=yes
    29921502else
    2993   echo "$as_me: failed program was:" >&5
    2994 cat conftest.$ac_ext >&5
    2995 ac_cv_type_off_t=no
    2996 fi
    2997 rm -f conftest.$ac_objext conftest.$ac_ext
    2998 fi
    2999 echo "$as_me:2999: result: $ac_cv_type_off_t" >&5
    3000 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    3001 if test $ac_cv_type_off_t = yes; then
    3002   :
    3003 else
    3004 
    3005 cat >>confdefs.h <<EOF
     1503  rm -rf conftest*
     1504  ac_cv_type_off_t=no
     1505fi
     1506rm -f conftest*
     1507
     1508fi
     1509echo "$ac_t""$ac_cv_type_off_t" 1>&6
     1510if test $ac_cv_type_off_t = no; then
     1511  cat >> confdefs.h <<\EOF
    30061512#define off_t long
    30071513EOF
     
    30091515fi
    30101516
    3011 echo "$as_me:3011: checking for size_t" >&5
    3012 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    3013 if test "${ac_cv_type_size_t+set}" = set; then
    3014   echo $ECHO_N "(cached) $ECHO_C" >&6
    3015 else
    3016   cat >conftest.$ac_ext <<_ACEOF
    3017 #line 3017 "configure"
    3018 #include "confdefs.h"
    3019 $ac_includes_default
    3020 int
    3021 main ()
    3022 {
    3023 if ((size_t *) 0)
    3024   return 0;
    3025 if (sizeof (size_t))
    3026   return 0;
    3027   ;
    3028   return 0;
    3029 }
    3030 _ACEOF
    3031 rm -f conftest.$ac_objext
    3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5
    3033   (eval $ac_compile) 2>&5
    3034   ac_status=$?
    3035   echo "$as_me:3035: \$? = $ac_status" >&5
    3036   (exit $ac_status); } &&
    3037          { ac_try='test -s conftest.$ac_objext'
    3038   { (eval echo "$as_me:3038: \"$ac_try\"") >&5
    3039   (eval $ac_try) 2>&5
    3040   ac_status=$?
    3041   echo "$as_me:3041: \$? = $ac_status" >&5
    3042   (exit $ac_status); }; }; then
     1517echo $ac_n "checking for size_t""... $ac_c" 1>&6
     1518echo "configure:1519: checking for size_t" >&5
     1519if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
     1520  echo $ac_n "(cached) $ac_c" 1>&6
     1521else
     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
     1530EOF
     1531if (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*
    30431534  ac_cv_type_size_t=yes
    30441535else
    3045   echo "$as_me: failed program was:" >&5
    3046 cat conftest.$ac_ext >&5
    3047 ac_cv_type_size_t=no
    3048 fi
    3049 rm -f conftest.$ac_objext conftest.$ac_ext
    3050 fi
    3051 echo "$as_me:3051: result: $ac_cv_type_size_t" >&5
    3052 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    3053 if test $ac_cv_type_size_t = yes; then
    3054   :
    3055 else
    3056 
    3057 cat >>confdefs.h <<EOF
     1536  rm -rf conftest*
     1537  ac_cv_type_size_t=no
     1538fi
     1539rm -f conftest*
     1540
     1541fi
     1542echo "$ac_t""$ac_cv_type_size_t" 1>&6
     1543if test $ac_cv_type_size_t = no; then
     1544  cat >> confdefs.h <<\EOF
    30581545#define size_t unsigned
    30591546EOF
     
    30611548fi
    30621549
    3063 echo "$as_me:3063: checking whether time.h and sys/time.h may both be included" >&5
    3064 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    3065 if test "${ac_cv_header_time+set}" = set; then
    3066   echo $ECHO_N "(cached) $ECHO_C" >&6
    3067 else
    3068   cat >conftest.$ac_ext <<_ACEOF
    3069 #line 3069 "configure"
     1550echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
     1551echo "configure:1552: checking whether time.h and sys/time.h may both be included" >&5
     1552if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
     1553  echo $ac_n "(cached) $ac_c" 1>&6
     1554else
     1555  cat > conftest.$ac_ext <<EOF
     1556#line 1557 "configure"
    30701557#include "confdefs.h"
    30711558#include <sys/types.h>
    30721559#include <sys/time.h>
    30731560#include <time.h>
    3074 
    3075 int
    3076 main ()
    3077 {
     1561int main() {
    30781562struct tm *tp;
    3079   ;
    3080   return 0;
    3081 }
    3082 _ACEOF
    3083 rm -f conftest.$ac_objext
    3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
    3085   (eval $ac_compile) 2>&5
    3086   ac_status=$?
    3087   echo "$as_me:3087: \$? = $ac_status" >&5
    3088   (exit $ac_status); } &&
    3089          { ac_try='test -s conftest.$ac_objext'
    3090   { (eval echo "$as_me:3090: \"$ac_try\"") >&5
    3091   (eval $ac_try) 2>&5
    3092   ac_status=$?
    3093   echo "$as_me:3093: \$? = $ac_status" >&5
    3094   (exit $ac_status); }; }; then
     1563; return 0; }
     1564EOF
     1565if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1566  rm -rf conftest*
    30951567  ac_cv_header_time=yes
    30961568else
    3097   echo "$as_me: failed program was:" >&5
    3098 cat conftest.$ac_ext >&5
    3099 ac_cv_header_time=no
    3100 fi
    3101 rm -f conftest.$ac_objext conftest.$ac_ext
    3102 fi
    3103 echo "$as_me:3103: result: $ac_cv_header_time" >&5
    3104 echo "${ECHO_T}$ac_cv_header_time" >&6
     1569  echo "configure: failed program was:" >&5
     1570  cat conftest.$ac_ext >&5
     1571  rm -rf conftest*
     1572  ac_cv_header_time=no
     1573fi
     1574rm -f conftest*
     1575fi
     1576
     1577echo "$ac_t""$ac_cv_header_time" 1>&6
    31051578if test $ac_cv_header_time = yes; then
    3106 
    3107 cat >>confdefs.h <<\EOF
     1579  cat >> confdefs.h <<\EOF
    31081580#define TIME_WITH_SYS_TIME 1
    31091581EOF
     
    31111583fi
    31121584
    3113 echo "$as_me:3113: checking whether struct tm is in sys/time.h or time.h" >&5
    3114 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    3115 if test "${ac_cv_struct_tm+set}" = set; then
    3116   echo $ECHO_N "(cached) $ECHO_C" >&6
    3117 else
    3118   cat >conftest.$ac_ext <<_ACEOF
    3119 #line 3119 "configure"
     1585echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     1586echo "configure:1587: checking whether struct tm is in sys/time.h or time.h" >&5
     1587if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
     1588  echo $ac_n "(cached) $ac_c" 1>&6
     1589else
     1590  cat > conftest.$ac_ext <<EOF
     1591#line 1592 "configure"
    31201592#include "confdefs.h"
    31211593#include <sys/types.h>
    31221594#include <time.h>
    3123 
    3124 int
    3125 main ()
    3126 {
     1595int main() {
    31271596struct tm *tp; tp->tm_sec;
    3128   ;
    3129   return 0;
    3130 }
    3131 _ACEOF
    3132 rm -f conftest.$ac_objext
    3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
    3134   (eval $ac_compile) 2>&5
    3135   ac_status=$?
    3136   echo "$as_me:3136: \$? = $ac_status" >&5
    3137   (exit $ac_status); } &&
    3138          { ac_try='test -s conftest.$ac_objext'
    3139   { (eval echo "$as_me:3139: \"$ac_try\"") >&5
    3140   (eval $ac_try) 2>&5
    3141   ac_status=$?
    3142   echo "$as_me:3142: \$? = $ac_status" >&5
    3143   (exit $ac_status); }; }; then
     1597; return 0; }
     1598EOF
     1599if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1600  rm -rf conftest*
    31441601  ac_cv_struct_tm=time.h
    31451602else
    3146   echo "$as_me: failed program was:" >&5
    3147 cat conftest.$ac_ext >&5
    3148 ac_cv_struct_tm=sys/time.h
    3149 fi
    3150 rm -f conftest.$ac_objext conftest.$ac_ext
    3151 fi
    3152 echo "$as_me:3152: result: $ac_cv_struct_tm" >&5
    3153 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     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
     1607fi
     1608rm -f conftest*
     1609fi
     1610
     1611echo "$ac_t""$ac_cv_struct_tm" 1>&6
    31541612if test $ac_cv_struct_tm = sys/time.h; then
    3155 
    3156 cat >>confdefs.h <<\EOF
     1613  cat >> confdefs.h <<\EOF
    31571614#define TM_IN_SYS_TIME 1
    31581615EOF
     
    31601617fi
    31611618
     1619
    31621620if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    3163 cat >conftest.$ac_ext <<_ACEOF
    3164 #line 3164 "configure"
     1621cat > conftest.$ac_ext <<EOF
     1622#line 1623 "configure"
    31651623#include "confdefs.h"
    31661624#include <stdio.h>
    31671625
    3168 int
    3169 main ()
    3170 {
    3171  FILE *rubbish = popen("yes", "r");
    3172   ;
    3173   return 0;
    3174 }
    3175 _ACEOF
    3176 rm -f conftest.$ac_objext
    3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5
    3178   (eval $ac_compile) 2>&5
    3179   ac_status=$?
    3180   echo "$as_me:3180: \$? = $ac_status" >&5
    3181   (exit $ac_status); } &&
    3182          { ac_try='test -s conftest.$ac_objext'
    3183   { (eval echo "$as_me:3183: \"$ac_try\"") >&5
    3184   (eval $ac_try) 2>&5
    3185   ac_status=$?
    3186   echo "$as_me:3186: \$? = $ac_status" >&5
    3187   (exit $ac_status); }; }; then
     1626int main() {
     1627 FILE *rubbish = popen("yes", "r");
     1628; return 0; }
     1629EOF
     1630if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31881631  :
    31891632else
    3190   echo "$as_me: failed program was:" >&5
    3191 cat conftest.$ac_ext >&5
    3192 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    3193 fi
    3194 rm -f conftest.$ac_objext conftest.$ac_ext
    3195 fi
    3196 
    3197 echo "$as_me:3197: checking for main in -lm" >&5
    3198 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    3199 if test "${ac_cv_lib_m_main+set}" = set; then
    3200   echo $ECHO_N "(cached) $ECHO_C" >&6
    3201 else
    3202   ac_check_lib_save_LIBS=$LIBS
     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'
     1637fi
     1638rm -f conftest*
     1639fi
     1640
     1641
     1642echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
     1643echo "configure:1644: checking for main in -lm" >&5
     1644ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
     1645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1646  echo $ac_n "(cached) $ac_c" 1>&6
     1647else
     1648  ac_save_LIBS="$LIBS"
    32031649LIBS="-lm  $LIBS"
    3204 cat >conftest.$ac_ext <<_ACEOF
    3205 #line 3205 "configure"
    3206 #include "confdefs.h"
    3207 
    3208 int
    3209 main ()
    3210 {
    3211 main ();
    3212   ;
    3213   return 0;
    3214 }
    3215 _ACEOF
    3216 rm -f conftest.$ac_objext conftest$ac_exeext
    3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5
    3218   (eval $ac_link) 2>&5
    3219   ac_status=$?
    3220   echo "$as_me:3220: \$? = $ac_status" >&5
    3221   (exit $ac_status); } &&
    3222          { ac_try='test -s conftest$ac_exeext'
    3223   { (eval echo "$as_me:3223: \"$ac_try\"") >&5
    3224   (eval $ac_try) 2>&5
    3225   ac_status=$?
    3226   echo "$as_me:3226: \$? = $ac_status" >&5
    3227   (exit $ac_status); }; }; then
    3228   ac_cv_lib_m_main=yes
    3229 else
    3230   echo "$as_me: failed program was:" >&5
    3231 cat conftest.$ac_ext >&5
    3232 ac_cv_lib_m_main=no
    3233 fi
    3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3235 LIBS=$ac_check_lib_save_LIBS
    3236 fi
    3237 echo "$as_me:3237: result: $ac_cv_lib_m_main" >&5
    3238 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    3239 if test $ac_cv_lib_m_main = yes; then
    3240   cat >>confdefs.h <<EOF
    3241 #define HAVE_LIBM 1
     1650cat > conftest.$ac_ext <<EOF
     1651#line 1652 "configure"
     1652#include "confdefs.h"
     1653
     1654int main() {
     1655main()
     1656; return 0; }
     1657EOF
     1658if { (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"
     1661else
     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"
     1666fi
     1667rm -f conftest*
     1668LIBS="$ac_save_LIBS"
     1669
     1670fi
     1671if 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
    32421677EOF
    32431678
    32441679  LIBS="-lm $LIBS"
    32451680
    3246 fi
     1681else
     1682  echo "$ac_t""no" 1>&6
     1683fi
     1684
    32471685
    32481686ac_header_dirent=no
    3249 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    3250   ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
    3251 echo "$as_me:3251: checking for $ac_hdr that defines DIR" >&5
    3252 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    3253 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3254   echo $ECHO_N "(cached) $ECHO_C" >&6
    3255 else
    3256   cat >conftest.$ac_ext <<_ACEOF
    3257 #line 3257 "configure"
     1687for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
     1688do
     1689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     1690echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
     1691echo "configure:1692: checking for $ac_hdr that defines DIR" >&5
     1692if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
     1693  echo $ac_n "(cached) $ac_c" 1>&6
     1694else
     1695  cat > conftest.$ac_ext <<EOF
     1696#line 1697 "configure"
    32581697#include "confdefs.h"
    32591698#include <sys/types.h>
    32601699#include <$ac_hdr>
    3261 
    3262 int
    3263 main ()
    3264 {
     1700int main() {
    32651701DIR *dirp = 0;
    3266   ;
    3267   return 0;
    3268 }
    3269 _ACEOF
    3270 rm -f conftest.$ac_objext
    3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
    3272   (eval $ac_compile) 2>&5
    3273   ac_status=$?
    3274   echo "$as_me:3274: \$? = $ac_status" >&5
    3275   (exit $ac_status); } &&
    3276          { ac_try='test -s conftest.$ac_objext'
    3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
    3278   (eval $ac_try) 2>&5
    3279   ac_status=$?
    3280   echo "$as_me:3280: \$? = $ac_status" >&5
    3281   (exit $ac_status); }; }; then
    3282   eval "$ac_ac_Header=yes"
    3283 else
    3284   echo "$as_me: failed program was:" >&5
    3285 cat conftest.$ac_ext >&5
    3286 eval "$ac_ac_Header=no"
    3287 fi
    3288 rm -f conftest.$ac_objext conftest.$ac_ext
    3289 fi
    3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3293   cat >>confdefs.h <<EOF
    3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
    3295 EOF
    3296 
    3297 ac_header_dirent=$ac_hdr; break
    3298 fi
    3299 
     1702; return 0; }
     1703EOF
     1704if { (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"
     1707else
     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"
     1712fi
     1713rm -f conftest*
     1714fi
     1715if 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
     1720EOF
     1721 ac_header_dirent=$ac_hdr; break
     1722else
     1723  echo "$ac_t""no" 1>&6
     1724fi
    33001725done
    33011726# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    33021727if test $ac_header_dirent = dirent.h; then
    3303   echo "$as_me:3303: checking for opendir in -ldir" >&5
    3304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    3305 if test "${ac_cv_lib_dir_opendir+set}" = set; then
    3306   echo $ECHO_N "(cached) $ECHO_C" >&6
    3307 else
    3308   ac_check_lib_save_LIBS=$LIBS
     1728echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
     1729echo "configure:1730: checking for opendir in -ldir" >&5
     1730ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
     1731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1732  echo $ac_n "(cached) $ac_c" 1>&6
     1733else
     1734  ac_save_LIBS="$LIBS"
    33091735LIBS="-ldir  $LIBS"
    3310 cat >conftest.$ac_ext <<_ACEOF
    3311 #line 3311 "configure"
    3312 #include "confdefs.h"
    3313 
     1736cat > conftest.$ac_ext <<EOF
     1737#line 1738 "configure"
     1738#include "confdefs.h"
    33141739/* Override any gcc2 internal prototype to avoid an error.  */
    3315 #ifdef __cplusplus
    3316 extern "C"
    3317 #endif
    33181740/* We use char because int might match the return type of a gcc2
    3319    builtin and then its argument prototype would still apply.  */
    3320 char opendir ();
    3321 int
    3322 main ()
    3323 {
    3324 opendir ();
    3325   ;
    3326   return 0;
    3327 }
    3328 _ACEOF
    3329 rm -f conftest.$ac_objext conftest$ac_exeext
    3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
    3331   (eval $ac_link) 2>&5
    3332   ac_status=$?
    3333   echo "$as_me:3333: \$? = $ac_status" >&5
    3334   (exit $ac_status); } &&
    3335          { ac_try='test -s conftest$ac_exeext'
    3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
    3337   (eval $ac_try) 2>&5
    3338   ac_status=$?
    3339   echo "$as_me:3339: \$? = $ac_status" >&5
    3340   (exit $ac_status); }; }; then
    3341   ac_cv_lib_dir_opendir=yes
    3342 else
    3343   echo "$as_me: failed program was:" >&5
    3344 cat conftest.$ac_ext >&5
    3345 ac_cv_lib_dir_opendir=no
    3346 fi
    3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3348 LIBS=$ac_check_lib_save_LIBS
    3349 fi
    3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5
    3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    3352 if test $ac_cv_lib_dir_opendir = yes; then
     1741    builtin and then its argument prototype would still apply.  */
     1742char opendir();
     1743
     1744int main() {
     1745opendir()
     1746; return 0; }
     1747EOF
     1748if { (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"
     1751else
     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"
     1756fi
     1757rm -f conftest*
     1758LIBS="$ac_save_LIBS"
     1759
     1760fi
     1761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1762  echo "$ac_t""yes" 1>&6
    33531763  LIBS="$LIBS -ldir"
    3354 fi
    3355 
    3356 else
    3357   echo "$as_me:3357: checking for opendir in -lx" >&5
    3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    3359 if test "${ac_cv_lib_x_opendir+set}" = set; then
    3360   echo $ECHO_N "(cached) $ECHO_C" >&6
    3361 else
    3362   ac_check_lib_save_LIBS=$LIBS
     1764else
     1765  echo "$ac_t""no" 1>&6
     1766fi
     1767
     1768else
     1769echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
     1770echo "configure:1771: checking for opendir in -lx" >&5
     1771ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
     1772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1773  echo $ac_n "(cached) $ac_c" 1>&6
     1774else
     1775  ac_save_LIBS="$LIBS"
    33631776LIBS="-lx  $LIBS"
    3364 cat >conftest.$ac_ext <<_ACEOF
    3365 #line 3365 "configure"
    3366 #include "confdefs.h"
    3367 
     1777cat > conftest.$ac_ext <<EOF
     1778#line 1779 "configure"
     1779#include "confdefs.h"
    33681780/* Override any gcc2 internal prototype to avoid an error.  */
    3369 #ifdef __cplusplus
    3370 extern "C"
    3371 #endif
    33721781/* We use char because int might match the return type of a gcc2
    3373    builtin and then its argument prototype would still apply.  */
    3374 char opendir ();
    3375 int
    3376 main ()
    3377 {
    3378 opendir ();
    3379   ;
    3380   return 0;
    3381 }
    3382 _ACEOF
    3383 rm -f conftest.$ac_objext conftest$ac_exeext
    3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5
    3385   (eval $ac_link) 2>&5
    3386   ac_status=$?
    3387   echo "$as_me:3387: \$? = $ac_status" >&5
    3388   (exit $ac_status); } &&
    3389          { ac_try='test -s conftest$ac_exeext'
    3390   { (eval echo "$as_me:3390: \"$ac_try\"") >&5
    3391   (eval $ac_try) 2>&5
    3392   ac_status=$?
    3393   echo "$as_me:3393: \$? = $ac_status" >&5
    3394   (exit $ac_status); }; }; then
    3395   ac_cv_lib_x_opendir=yes
    3396 else
    3397   echo "$as_me: failed program was:" >&5
    3398 cat conftest.$ac_ext >&5
    3399 ac_cv_lib_x_opendir=no
    3400 fi
    3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3402 LIBS=$ac_check_lib_save_LIBS
    3403 fi
    3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5
    3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    3406 if test $ac_cv_lib_x_opendir = yes; then
     1782    builtin and then its argument prototype would still apply.  */
     1783char opendir();
     1784
     1785int main() {
     1786opendir()
     1787; return 0; }
     1788EOF
     1789if { (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"
     1792else
     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"
     1797fi
     1798rm -f conftest*
     1799LIBS="$ac_save_LIBS"
     1800
     1801fi
     1802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1803  echo "$ac_t""yes" 1>&6
    34071804  LIBS="$LIBS -lx"
    3408 fi
    3409 
    3410 fi
    3411 
    3412 echo "$as_me:3412: checking for ANSI C header files" >&5
    3413 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3414 if test "${ac_cv_header_stdc+set}" = set; then
    3415   echo $ECHO_N "(cached) $ECHO_C" >&6
    3416 else
    3417   cat >conftest.$ac_ext <<_ACEOF
    3418 #line 3418 "configure"
     1805else
     1806  echo "$ac_t""no" 1>&6
     1807fi
     1808
     1809fi
     1810
     1811echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1812echo "configure:1813: checking for ANSI C header files" >&5
     1813if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1814  echo $ac_n "(cached) $ac_c" 1>&6
     1815else
     1816  cat > conftest.$ac_ext <<EOF
     1817#line 1818 "configure"
    34191818#include "confdefs.h"
    34201819#include <stdlib.h>
     
    34221821#include <string.h>
    34231822#include <float.h>
    3424 
    3425 _ACEOF
    3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
    3427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3428   ac_status=$?
    3429   egrep -v '^ *\+' conftest.er1 >conftest.err
    3430   rm -f conftest.er1
    3431   cat conftest.err >&5
    3432   echo "$as_me:3432: \$? = $ac_status" >&5
    3433   (exit $ac_status); } >/dev/null; then
    3434   if test -s conftest.err; then
    3435     ac_cpp_err=$ac_c_preproc_warn_flag
    3436   else
    3437     ac_cpp_err=
    3438   fi
    3439 else
    3440   ac_cpp_err=yes
    3441 fi
    3442 if test -z "$ac_cpp_err"; then
     1823EOF
     1824ac_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; }
     1826ac_err=`grep -v '^ *+' conftest.out`
     1827if test -z "$ac_err"; then
     1828  rm -rf conftest*
    34431829  ac_cv_header_stdc=yes
    34441830else
    3445   echo "$as_me: failed program was:" >&5
     1831  echo "$ac_err" >&5
     1832  echo "configure: failed program was:" >&5
    34461833  cat conftest.$ac_ext >&5
     1834  rm -rf conftest*
    34471835  ac_cv_header_stdc=no
    34481836fi
    3449 rm -f conftest.err conftest.$ac_ext
     1837rm -f conftest*
    34501838
    34511839if test $ac_cv_header_stdc = yes; then
    34521840  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3453   cat >conftest.$ac_ext <<_ACEOF
    3454 #line 3454 "configure"
     1841cat > conftest.$ac_ext <<EOF
     1842#line 1843 "configure"
    34551843#include "confdefs.h"
    34561844#include <string.h>
    3457 
    3458 _ACEOF
     1845EOF
    34591846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    34601847  egrep "memchr" >/dev/null 2>&1; then
    34611848  :
    34621849else
     1850  rm -rf conftest*
    34631851  ac_cv_header_stdc=no
    34641852fi
     
    34691857if test $ac_cv_header_stdc = yes; then
    34701858  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3471   cat >conftest.$ac_ext <<_ACEOF
    3472 #line 3472 "configure"
     1859cat > conftest.$ac_ext <<EOF
     1860#line 1861 "configure"
    34731861#include "confdefs.h"
    34741862#include <stdlib.h>
    3475 
    3476 _ACEOF
     1863EOF
    34771864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    34781865  egrep "free" >/dev/null 2>&1; then
    34791866  :
    34801867else
     1868  rm -rf conftest*
    34811869  ac_cv_header_stdc=no
    34821870fi
     
    34871875if test $ac_cv_header_stdc = yes; then
    34881876  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3489   if test "$cross_compiling" = yes; then
     1877if test "$cross_compiling" = yes; then
    34901878  :
    34911879else
    3492   cat >conftest.$ac_ext <<_ACEOF
    3493 #line 3493 "configure"
     1880  cat > conftest.$ac_ext <<EOF
     1881#line 1882 "configure"
    34941882#include "confdefs.h"
    34951883#include <ctype.h>
    3496 #if ((' ' & 0x0FF) == 0x020)
    3497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3499 #else
    3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3501                      || ('j' <= (c) && (c) <= 'r') \
    3502                      || ('s' <= (c) && (c) <= 'z'))
    3503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3504 #endif
    3505 
     1884#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1885#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    35061886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3507 int
    3508 main ()
    3509 {
    3510   int i;
    3511   for (i = 0; i < 256; i++)
    3512     if (XOR (islower (i), ISLOWER (i))
    3513         || toupper (i) != TOUPPER (i))
    3514       exit(2);
    3515   exit (0);
    3516 }
    3517 _ACEOF
    3518 rm -f conftest$ac_exeext
    3519 if { (eval echo "$as_me:3519: \"$ac_link\"") >&5
    3520   (eval $ac_link) 2>&5
    3521   ac_status=$?
    3522   echo "$as_me:3522: \$? = $ac_status" >&5
    3523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3524   { (eval echo "$as_me:3524: \"$ac_try\"") >&5
    3525   (eval $ac_try) 2>&5
    3526   ac_status=$?
    3527   echo "$as_me:3527: \$? = $ac_status" >&5
    3528   (exit $ac_status); }; }; then
     1887int main () { int i; for (i = 0; i < 256; i++)
     1888if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1889exit (0); }
     1890
     1891EOF
     1892if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1893then
    35291894  :
    35301895else
    3531   echo "$as_me: program exited with status $ac_status" >&5
    3532 echo "$as_me: failed program was:" >&5
    3533 cat conftest.$ac_ext >&5
    3534 ac_cv_header_stdc=no
    3535 fi
    3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3537 fi
    3538 fi
    3539 fi
    3540 echo "$as_me:3540: result: $ac_cv_header_stdc" >&5
    3541 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     1896  echo "configure: failed program was:" >&5
     1897  cat conftest.$ac_ext >&5
     1898  rm -fr conftest*
     1899  ac_cv_header_stdc=no
     1900fi
     1901rm -fr conftest*
     1902fi
     1903
     1904fi
     1905fi
     1906
     1907echo "$ac_t""$ac_cv_header_stdc" 1>&6
    35421908if test $ac_cv_header_stdc = yes; then
    3543 
    3544 cat >>confdefs.h <<\EOF
     1909  cat >> confdefs.h <<\EOF
    35451910#define STDC_HEADERS 1
    35461911EOF
     
    35481913fi
    35491914
    3550 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     1915for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    35511916do
    3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
    3553 echo "$as_me:3553: checking for $ac_header" >&5
    3554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3555 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
    3556   echo $ECHO_N "(cached) $ECHO_C" >&6
    3557 else
    3558   cat >conftest.$ac_ext <<_ACEOF
    3559 #line 3559 "configure"
    3560 #include "confdefs.h"
    3561 #include <$ac_header>
    3562 _ACEOF
    3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5
    3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3565   ac_status=$?
    3566   egrep -v '^ *\+' conftest.er1 >conftest.err
    3567   rm -f conftest.er1
    3568   cat conftest.err >&5
    3569   echo "$as_me:3569: \$? = $ac_status" >&5
    3570   (exit $ac_status); } >/dev/null; then
    3571   if test -s conftest.err; then
    3572     ac_cpp_err=$ac_c_preproc_warn_flag
    3573   else
    3574     ac_cpp_err=
    3575   fi
    3576 else
    3577   ac_cpp_err=yes
    3578 fi
    3579 if test -z "$ac_cpp_err"; then
    3580   eval "$ac_ac_Header=yes"
    3581 else
    3582   echo "$as_me: failed program was:" >&5
     1917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     1918echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1919echo "configure:1920: checking for $ac_hdr" >&5
     1920if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     1921  echo $ac_n "(cached) $ac_c" 1>&6
     1922else
     1923  cat > conftest.$ac_ext <<EOF
     1924#line 1925 "configure"
     1925#include "confdefs.h"
     1926#include <$ac_hdr>
     1927EOF
     1928ac_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; }
     1930ac_err=`grep -v '^ *+' conftest.out`
     1931if test -z "$ac_err"; then
     1932  rm -rf conftest*
     1933  eval "ac_cv_header_$ac_safe=yes"
     1934else
     1935  echo "$ac_err" >&5
     1936  echo "configure: failed program was:" >&5
    35831937  cat conftest.$ac_ext >&5
    3584   eval "$ac_ac_Header=no"
    3585 fi
    3586 rm -f conftest.err conftest.$ac_ext
    3587 fi
    3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5
    3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
    3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
    3591   cat >>confdefs.h <<EOF
    3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    3593 EOF
    3594 
     1938  rm -rf conftest*
     1939  eval "ac_cv_header_$ac_safe=no"
     1940fi
     1941rm -f conftest*
     1942fi
     1943if 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
     1948EOF
     1949 
     1950else
     1951  echo "$ac_t""no" 1>&6
    35951952fi
    35961953done
    35971954
    3598 cat >conftest.$ac_ext <<_ACEOF
    3599 #line 3599 "configure"
     1955cat > conftest.$ac_ext <<EOF
     1956#line 1957 "configure"
    36001957#include "confdefs.h"
    36011958#include <stdio.h>
    3602 
    3603 _ACEOF
     1959EOF
    36041960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36051961  egrep "fread" >/dev/null 2>&1; then
    3606   cat >>confdefs.h <<\EOF
     1962  rm -rf conftest*
     1963  cat >> confdefs.h <<\EOF
    36071964#define HAVE_FREAD_DECL 1
    36081965EOF
     
    36111968rm -f conftest*
    36121969
    3613 cat >conftest.$ac_ext <<_ACEOF
    3614 #line 3614 "configure"
     1970cat > conftest.$ac_ext <<EOF
     1971#line 1972 "configure"
    36151972#include "confdefs.h"
    36161973#include <stdio.h>
    3617 
    3618 _ACEOF
     1974EOF
    36191975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36201976  egrep "fgetc" >/dev/null 2>&1; then
    3621   cat >>confdefs.h <<\EOF
     1977  rm -rf conftest*
     1978  cat >> confdefs.h <<\EOF
    36221979#define HAVE_FGETC_DECL 1
    36231980EOF
     
    36261983rm -f conftest*
    36271984
    3628 cat >conftest.$ac_ext <<_ACEOF
    3629 #line 3629 "configure"
     1985cat > conftest.$ac_ext <<EOF
     1986#line 1987 "configure"
    36301987#include "confdefs.h"
    36311988#include <sys/procfs.h>
    3632 
    3633 _ACEOF
     1989EOF
    36341990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    36351991  egrep "pr_brksize" >/dev/null 2>&1; then
    3636   cat >>confdefs.h <<\EOF
     1992  rm -rf conftest*
     1993  cat >> confdefs.h <<\EOF
    36371994#define HAVE_PR_BRKSIZE 1
    36381995EOF
     
    36401997fi
    36411998rm -f conftest*
     1999
    36422000
    36432001# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    36442002# for constant arguments.  Useless!
    3645 echo "$as_me:3645: checking for working alloca.h" >&5
    3646 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    3647 if test "${ac_cv_working_alloca_h+set}" = set; then
    3648   echo $ECHO_N "(cached) $ECHO_C" >&6
    3649 else
    3650   cat >conftest.$ac_ext <<_ACEOF
    3651 #line 3651 "configure"
     2003echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2004echo "configure:2005: checking for working alloca.h" >&5
     2005if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2006  echo $ac_n "(cached) $ac_c" 1>&6
     2007else
     2008  cat > conftest.$ac_ext <<EOF
     2009#line 2010 "configure"
    36522010#include "confdefs.h"
    36532011#include <alloca.h>
    3654 int
    3655 main ()
    3656 {
    3657 char *p = (char *) alloca (2 * sizeof (int));
    3658   ;
    3659   return 0;
    3660 }
    3661 _ACEOF
    3662 rm -f conftest.$ac_objext conftest$ac_exeext
    3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
    3664   (eval $ac_link) 2>&5
    3665   ac_status=$?
    3666   echo "$as_me:3666: \$? = $ac_status" >&5
    3667   (exit $ac_status); } &&
    3668          { ac_try='test -s conftest$ac_exeext'
    3669   { (eval echo "$as_me:3669: \"$ac_try\"") >&5
    3670   (eval $ac_try) 2>&5
    3671   ac_status=$?
    3672   echo "$as_me:3672: \$? = $ac_status" >&5
    3673   (exit $ac_status); }; }; then
    3674   ac_cv_working_alloca_h=yes
    3675 else
    3676   echo "$as_me: failed program was:" >&5
    3677 cat conftest.$ac_ext >&5
    3678 ac_cv_working_alloca_h=no
    3679 fi
    3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3681 fi
    3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5
    3683 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    3684 if test $ac_cv_working_alloca_h = yes; then
    3685 
    3686 cat >>confdefs.h <<\EOF
     2012int main() {
     2013char *p = alloca(2 * sizeof(int));
     2014; return 0; }
     2015EOF
     2016if { (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
     2019else
     2020  echo "configure: failed program was:" >&5
     2021  cat conftest.$ac_ext >&5
     2022  rm -rf conftest*
     2023  ac_cv_header_alloca_h=no
     2024fi
     2025rm -f conftest*
     2026fi
     2027
     2028echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
     2029if test $ac_cv_header_alloca_h = yes; then
     2030  cat >> confdefs.h <<\EOF
    36872031#define HAVE_ALLOCA_H 1
    36882032EOF
     
    36902034fi
    36912035
    3692 echo "$as_me:3692: checking for alloca" >&5
    3693 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    3694 if test "${ac_cv_func_alloca_works+set}" = set; then
    3695   echo $ECHO_N "(cached) $ECHO_C" >&6
    3696 else
    3697   cat >conftest.$ac_ext <<_ACEOF
    3698 #line 3698 "configure"
    3699 #include "confdefs.h"
     2036echo $ac_n "checking for alloca""... $ac_c" 1>&6
     2037echo "configure:2038: checking for alloca" >&5
     2038if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
     2039  echo $ac_n "(cached) $ac_c" 1>&6
     2040else
     2041  cat > conftest.$ac_ext <<EOF
     2042#line 2043 "configure"
     2043#include "confdefs.h"
     2044
    37002045#ifdef __GNUC__
    37012046# define alloca __builtin_alloca
    37022047#else
    3703 # ifdef _MSC_VER
    3704 #  include <malloc.h>
    3705 #  define alloca _alloca
     2048# if HAVE_ALLOCA_H
     2049#  include <alloca.h>
    37062050# else
    3707 #  if HAVE_ALLOCA_H
    3708 #   include <alloca.h>
     2051#  ifdef _AIX
     2052 #pragma alloca
    37092053#  else
    3710 #   ifdef _AIX
    3711  #pragma alloca
    3712 #   else
    3713 #    ifndef alloca /* predefined by HP cc +Olibcalls */
     2054#   ifndef alloca /* predefined by HP cc +Olibcalls */
    37142055char *alloca ();
    3715 #    endif
    37162056#   endif
    37172057#  endif
     
    37192059#endif
    37202060
    3721 int
    3722 main ()
    3723 {
    3724 char *p = (char *) alloca (1);
    3725   ;
    3726   return 0;
    3727 }
    3728 _ACEOF
    3729 rm -f conftest.$ac_objext conftest$ac_exeext
    3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5
    3731   (eval $ac_link) 2>&5
    3732   ac_status=$?
    3733   echo "$as_me:3733: \$? = $ac_status" >&5
    3734   (exit $ac_status); } &&
    3735          { ac_try='test -s conftest$ac_exeext'
    3736   { (eval echo "$as_me:3736: \"$ac_try\"") >&5
    3737   (eval $ac_try) 2>&5
    3738   ac_status=$?
    3739   echo "$as_me:3739: \$? = $ac_status" >&5
    3740   (exit $ac_status); }; }; then
     2061int main() {
     2062char *p = (char *) alloca(1);
     2063; return 0; }
     2064EOF
     2065if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2066  rm -rf conftest*
    37412067  ac_cv_func_alloca_works=yes
    37422068else
    3743   echo "$as_me: failed program was:" >&5
    3744 cat conftest.$ac_ext >&5
    3745 ac_cv_func_alloca_works=no
    3746 fi
    3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3748 fi
    3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5
    3750 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    3751 
     2069  echo "configure: failed program was:" >&5
     2070  cat conftest.$ac_ext >&5
     2071  rm -rf conftest*
     2072  ac_cv_func_alloca_works=no
     2073fi
     2074rm -f conftest*
     2075fi
     2076
     2077echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
    37522078if test $ac_cv_func_alloca_works = yes; then
    3753 
    3754 cat >>confdefs.h <<\EOF
     2079  cat >> confdefs.h <<\EOF
    37552080#define HAVE_ALLOCA 1
    37562081EOF
    37572082
    3758 else
     2083fi
     2084
     2085if test $ac_cv_func_alloca_works = no; then
    37592086  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    3760 # that cause trouble.  Some versions do not even contain alloca or
    3761 # contain a buggy version.  If you still want to use their alloca,
    3762 # use ar to extract alloca.o from them instead of compiling alloca.c.
    3763 
    3764 ALLOCA=alloca.$ac_objext
    3765 
    3766 cat >>confdefs.h <<\EOF
     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
    37672092#define C_ALLOCA 1
    37682093EOF
    37692094
    3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5
    3771 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    3772 if test "${ac_cv_os_cray+set}" = set; then
    3773   echo $ECHO_N "(cached) $ECHO_C" >&6
    3774 else
    3775   cat >conftest.$ac_ext <<_ACEOF
    3776 #line 3776 "configure"
     2095
     2096echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2097echo "configure:2098: checking whether alloca needs Cray hooks" >&5
     2098if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
     2099  echo $ac_n "(cached) $ac_c" 1>&6
     2100else
     2101  cat > conftest.$ac_ext <<EOF
     2102#line 2103 "configure"
    37772103#include "confdefs.h"
    37782104#if defined(CRAY) && ! defined(CRAY2)
     
    37822108#endif
    37832109
    3784 _ACEOF
     2110EOF
    37852111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    37862112  egrep "webecray" >/dev/null 2>&1; then
     2113  rm -rf conftest*
    37872114  ac_cv_os_cray=yes
    37882115else
     2116  rm -rf conftest*
    37892117  ac_cv_os_cray=no
    37902118fi
     
    37922120
    37932121fi
    3794 echo "$as_me:3794: result: $ac_cv_os_cray" >&5
    3795 echo "${ECHO_T}$ac_cv_os_cray" >&6
     2122
     2123echo "$ac_t""$ac_cv_os_cray" 1>&6
    37962124if test $ac_cv_os_cray = yes; then
    3797   for ac_func in _getb67 GETB67 getb67; do
    3798     ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    3799 echo "$as_me:3799: checking for $ac_func" >&5
    3800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3801 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    3802   echo $ECHO_N "(cached) $ECHO_C" >&6
    3803 else
    3804   cat >conftest.$ac_ext <<_ACEOF
    3805 #line 3805 "configure"
     2125for ac_func in _getb67 GETB67 getb67; do
     2126  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2127echo "configure:2128: checking for $ac_func" >&5
     2128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2129  echo $ac_n "(cached) $ac_c" 1>&6
     2130else
     2131  cat > conftest.$ac_ext <<EOF
     2132#line 2133 "configure"
    38062133#include "confdefs.h"
    38072134/* System header to define __stub macros and hopefully few prototypes,
    3808     which can conflict with char $ac_func (); below.  */
     2135    which can conflict with char $ac_func(); below.  */
    38092136#include <assert.h>
    38102137/* Override any gcc2 internal prototype to avoid an error.  */
    3811 #ifdef __cplusplus
    3812 extern "C"
    3813 #endif
    38142138/* We use char because int might match the return type of a gcc2
    3815    builtin and then its argument prototype would still apply.  */
    3816 char $ac_func ();
    3817 char (*f) ();
    3818 
    3819 int
    3820 main ()
    3821 {
     2139    builtin and then its argument prototype would still apply.  */
     2140char $ac_func();
     2141
     2142int main() {
     2143
    38222144/* The GNU C library defines this for functions which it implements
    38232145    to always fail with ENOSYS.  Some functions are actually named
     
    38262148choke me
    38272149#else
    3828 f = $ac_func;
     2150$ac_func();
    38292151#endif
    38302152
    3831   ;
    3832   return 0;
    3833 }
    3834 _ACEOF
    3835 rm -f conftest.$ac_objext conftest$ac_exeext
    3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
    3837   (eval $ac_link) 2>&5
    3838   ac_status=$?
    3839   echo "$as_me:3839: \$? = $ac_status" >&5
    3840   (exit $ac_status); } &&
    3841          { ac_try='test -s conftest$ac_exeext'
    3842   { (eval echo "$as_me:3842: \"$ac_try\"") >&5
    3843   (eval $ac_try) 2>&5
    3844   ac_status=$?
    3845   echo "$as_me:3845: \$? = $ac_status" >&5
    3846   (exit $ac_status); }; }; then
    3847   eval "$ac_ac_var=yes"
    3848 else
    3849   echo "$as_me: failed program was:" >&5
    3850 cat conftest.$ac_ext >&5
    3851 eval "$ac_ac_var=no"
    3852 fi
    3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3854 fi
    3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5
    3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    3858 
    3859 cat >>confdefs.h <<EOF
     2153; return 0; }
     2154EOF
     2155if { (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"
     2158else
     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"
     2163fi
     2164rm -f conftest*
     2165fi
     2166
     2167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2168  echo "$ac_t""yes" 1>&6
     2169  cat >> confdefs.h <<EOF
    38602170#define CRAY_STACKSEG_END $ac_func
    38612171EOF
    38622172
    3863     break
    3864 fi
    3865 
    3866   done
    3867 fi
    3868 
    3869 echo "$as_me:3869: checking stack direction for C alloca" >&5
    3870 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    3871 if test "${ac_cv_c_stack_direction+set}" = set; then
    3872   echo $ECHO_N "(cached) $ECHO_C" >&6
     2173  break
     2174else
     2175  echo "$ac_t""no" 1>&6
     2176fi
     2177
     2178done
     2179fi
     2180
     2181echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2182echo "configure:2183: checking stack direction for C alloca" >&5
     2183if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
     2184  echo $ac_n "(cached) $ac_c" 1>&6
    38732185else
    38742186  if test "$cross_compiling" = yes; then
    38752187  ac_cv_c_stack_direction=0
    38762188else
    3877   cat >conftest.$ac_ext <<_ACEOF
    3878 #line 3878 "configure"
    3879 #include "confdefs.h"
    3880 int
     2189  cat > conftest.$ac_ext <<EOF
     2190#line 2191 "configure"
     2191#include "confdefs.h"
    38812192find_stack_direction ()
    38822193{
     
    38912202    return (&dummy > addr) ? 1 : -1;
    38922203}
    3893 
    3894 int
    38952204main ()
    38962205{
    3897   exit (find_stack_direction () < 0);
     2206  exit (find_stack_direction() < 0);
    38982207}
    3899 _ACEOF
    3900 rm -f conftest$ac_exeext
    3901 if { (eval echo "$as_me:3901: \"$ac_link\"") >&5
    3902   (eval $ac_link) 2>&5
    3903   ac_status=$?
    3904   echo "$as_me:3904: \$? = $ac_status" >&5
    3905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3906   { (eval echo "$as_me:3906: \"$ac_try\"") >&5
    3907   (eval $ac_try) 2>&5
    3908   ac_status=$?
    3909   echo "$as_me:3909: \$? = $ac_status" >&5
    3910   (exit $ac_status); }; }; then
     2208EOF
     2209if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2210then
    39112211  ac_cv_c_stack_direction=1
    39122212else
    3913   echo "$as_me: program exited with status $ac_status" >&5
    3914 echo "$as_me: failed program was:" >&5
    3915 cat conftest.$ac_ext >&5
    3916 ac_cv_c_stack_direction=-1
    3917 fi
    3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
    3919 fi
    3920 fi
    3921 echo "$as_me:3921: result: $ac_cv_c_stack_direction" >&5
    3922 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    3923 
    3924 cat >>confdefs.h <<EOF
     2213  echo "configure: failed program was:" >&5
     2214  cat conftest.$ac_ext >&5
     2215  rm -fr conftest*
     2216  ac_cv_c_stack_direction=-1
     2217fi
     2218rm -fr conftest*
     2219fi
     2220
     2221fi
     2222
     2223echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
     2224cat >> confdefs.h <<EOF
    39252225#define STACK_DIRECTION $ac_cv_c_stack_direction
    39262226EOF
     
    39282228fi
    39292229
    3930 if test $ac_cv_c_compiler_gnu = yes; then
    3931     echo "$as_me:3931: checking whether $CC needs -traditional" >&5
    3932 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    3933 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    3934   echo $ECHO_N "(cached) $ECHO_C" >&6
     2230if test $ac_cv_prog_gcc = yes; then
     2231    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2232echo "configure:2233: checking whether ${CC-cc} needs -traditional" >&5
     2233if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
     2234  echo $ac_n "(cached) $ac_c" 1>&6
    39352235else
    39362236    ac_pattern="Autoconf.*'x'"
    3937   cat >conftest.$ac_ext <<_ACEOF
    3938 #line 3938 "configure"
     2237  cat > conftest.$ac_ext <<EOF
     2238#line 2239 "configure"
    39392239#include "confdefs.h"
    39402240#include <sgtty.h>
    39412241Autoconf TIOCGETP
    3942 _ACEOF
     2242EOF
    39432243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39442244  egrep "$ac_pattern" >/dev/null 2>&1; then
     2245  rm -rf conftest*
    39452246  ac_cv_prog_gcc_traditional=yes
    39462247else
     2248  rm -rf conftest*
    39472249  ac_cv_prog_gcc_traditional=no
    39482250fi
    39492251rm -f conftest*
    39502252
     2253
    39512254  if test $ac_cv_prog_gcc_traditional = no; then
    3952     cat >conftest.$ac_ext <<_ACEOF
    3953 #line 3953 "configure"
     2255    cat > conftest.$ac_ext <<EOF
     2256#line 2257 "configure"
    39542257#include "confdefs.h"
    39552258#include <termio.h>
    39562259Autoconf TCGETA
    3957 _ACEOF
     2260EOF
    39582261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    39592262  egrep "$ac_pattern" >/dev/null 2>&1; then
     2263  rm -rf conftest*
    39602264  ac_cv_prog_gcc_traditional=yes
    39612265fi
     
    39642268  fi
    39652269fi
    3966 echo "$as_me:3966: result: $ac_cv_prog_gcc_traditional" >&5
    3967 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     2270
     2271echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    39682272  if test $ac_cv_prog_gcc_traditional = yes; then
    39692273    CC="$CC -traditional"
     
    39712275fi
    39722276
    3973 echo "$as_me:3973: checking return type of signal handlers" >&5
    3974 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    3975 if test "${ac_cv_type_signal+set}" = set; then
    3976   echo $ECHO_N "(cached) $ECHO_C" >&6
    3977 else
    3978   cat >conftest.$ac_ext <<_ACEOF
    3979 #line 3979 "configure"
     2277echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     2278echo "configure:2279: checking return type of signal handlers" >&5
     2279if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
     2280  echo $ac_n "(cached) $ac_c" 1>&6
     2281else
     2282  cat > conftest.$ac_ext <<EOF
     2283#line 2284 "configure"
    39802284#include "confdefs.h"
    39812285#include <sys/types.h>
    39822286#include <signal.h>
    39832287#ifdef signal
    3984 # undef signal
     2288#undef signal
    39852289#endif
    39862290#ifdef __cplusplus
     
    39902294#endif
    39912295
    3992 int
    3993 main ()
    3994 {
     2296int main() {
    39952297int i;
    3996   ;
    3997   return 0;
    3998 }
    3999 _ACEOF
    4000 rm -f conftest.$ac_objext
    4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5
    4002   (eval $ac_compile) 2>&5
    4003   ac_status=$?
    4004   echo "$as_me:4004: \$? = $ac_status" >&5
    4005   (exit $ac_status); } &&
    4006          { ac_try='test -s conftest.$ac_objext'
    4007   { (eval echo "$as_me:4007: \"$ac_try\"") >&5
    4008   (eval $ac_try) 2>&5
    4009   ac_status=$?
    4010   echo "$as_me:4010: \$? = $ac_status" >&5
    4011   (exit $ac_status); }; }; then
     2298; return 0; }
     2299EOF
     2300if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2301  rm -rf conftest*
    40122302  ac_cv_type_signal=void
    40132303else
    4014   echo "$as_me: failed program was:" >&5
    4015 cat conftest.$ac_ext >&5
    4016 ac_cv_type_signal=int
    4017 fi
    4018 rm -f conftest.$ac_objext conftest.$ac_ext
    4019 fi
    4020 echo "$as_me:4020: result: $ac_cv_type_signal" >&5
    4021 echo "${ECHO_T}$ac_cv_type_signal" >&6
    4022 
    4023 cat >>confdefs.h <<EOF
     2304  echo "configure: failed program was:" >&5
     2305  cat conftest.$ac_ext >&5
     2306  rm -rf conftest*
     2307  ac_cv_type_signal=int
     2308fi
     2309rm -f conftest*
     2310fi
     2311
     2312echo "$ac_t""$ac_cv_type_signal" 1>&6
     2313cat >> confdefs.h <<EOF
    40242314#define RETSIGTYPE $ac_cv_type_signal
    40252315EOF
    40262316
    4027 for ac_func in vprintf
    4028 do
    4029 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4030 echo "$as_me:4030: checking for $ac_func" >&5
    4031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4032 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4033   echo $ECHO_N "(cached) $ECHO_C" >&6
    4034 else
    4035   cat >conftest.$ac_ext <<_ACEOF
    4036 #line 4036 "configure"
     2317
     2318echo $ac_n "checking for vprintf""... $ac_c" 1>&6
     2319echo "configure:2320: checking for vprintf" >&5
     2320if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
     2321  echo $ac_n "(cached) $ac_c" 1>&6
     2322else
     2323  cat > conftest.$ac_ext <<EOF
     2324#line 2325 "configure"
    40372325#include "confdefs.h"
    40382326/* System header to define __stub macros and hopefully few prototypes,
    4039     which can conflict with char $ac_func (); below.  */
     2327    which can conflict with char vprintf(); below.  */
    40402328#include <assert.h>
    40412329/* Override any gcc2 internal prototype to avoid an error.  */
    4042 #ifdef __cplusplus
    4043 extern "C"
     2330/* We use char because int might match the return type of a gcc2
     2331    builtin and then its argument prototype would still apply.  */
     2332char vprintf();
     2333
     2334int main() {
     2335
     2336/* The GNU C library defines this for functions which it implements
     2337    to always fail with ENOSYS.  Some functions are actually named
     2338    something starting with __ and the normal name is an alias.  */
     2339#if defined (__stub_vprintf) || defined (__stub___vprintf)
     2340choke me
     2341#else
     2342vprintf();
    40442343#endif
     2344
     2345; return 0; }
     2346EOF
     2347if { (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"
     2350else
     2351  echo "configure: failed program was:" >&5
     2352  cat conftest.$ac_ext >&5
     2353  rm -rf conftest*
     2354  eval "ac_cv_func_vprintf=no"
     2355fi
     2356rm -f conftest*
     2357fi
     2358
     2359if 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
     2363EOF
     2364
     2365else
     2366  echo "$ac_t""no" 1>&6
     2367fi
     2368
     2369if test "$ac_cv_func_vprintf" != yes; then
     2370echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
     2371echo "configure:2372: checking for _doprnt" >&5
     2372if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
     2373  echo $ac_n "(cached) $ac_c" 1>&6
     2374else
     2375  cat > conftest.$ac_ext <<EOF
     2376#line 2377 "configure"
     2377#include "confdefs.h"
     2378/* System header to define __stub macros and hopefully few prototypes,
     2379    which can conflict with char _doprnt(); below.  */
     2380#include <assert.h>
     2381/* Override any gcc2 internal prototype to avoid an error.  */
    40452382/* We use char because int might match the return type of a gcc2
    4046    builtin and then its argument prototype would still apply.  */
    4047 char $ac_func ();
    4048 char (*f) ();
    4049 
    4050 int
    4051 main ()
    4052 {
     2383    builtin and then its argument prototype would still apply.  */
     2384char _doprnt();
     2385
     2386int main() {
     2387
     2388/* The GNU C library defines this for functions which it implements
     2389    to always fail with ENOSYS.  Some functions are actually named
     2390    something starting with __ and the normal name is an alias.  */
     2391#if defined (__stub__doprnt) || defined (__stub____doprnt)
     2392choke me
     2393#else
     2394_doprnt();
     2395#endif
     2396
     2397; return 0; }
     2398EOF
     2399if { (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"
     2402else
     2403  echo "configure: failed program was:" >&5
     2404  cat conftest.$ac_ext >&5
     2405  rm -rf conftest*
     2406  eval "ac_cv_func__doprnt=no"
     2407fi
     2408rm -f conftest*
     2409fi
     2410
     2411if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
     2412  echo "$ac_t""yes" 1>&6
     2413  cat >> confdefs.h <<\EOF
     2414#define HAVE_DOPRNT 1
     2415EOF
     2416
     2417else
     2418  echo "$ac_t""no" 1>&6
     2419fi
     2420
     2421fi
     2422
     2423for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
     2424do
     2425echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2426echo "configure:2427: checking for $ac_func" >&5
     2427if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2428  echo $ac_n "(cached) $ac_c" 1>&6
     2429else
     2430  cat > conftest.$ac_ext <<EOF
     2431#line 2432 "configure"
     2432#include "confdefs.h"
     2433/* System header to define __stub macros and hopefully few prototypes,
     2434    which can conflict with char $ac_func(); below.  */
     2435#include <assert.h>
     2436/* Override any gcc2 internal prototype to avoid an error.  */
     2437/* We use char because int might match the return type of a gcc2
     2438    builtin and then its argument prototype would still apply.  */
     2439char $ac_func();
     2440
     2441int main() {
     2442
    40532443/* The GNU C library defines this for functions which it implements
    40542444    to always fail with ENOSYS.  Some functions are actually named
     
    40572447choke me
    40582448#else
    4059 f = $ac_func;
     2449$ac_func();
    40602450#endif
    40612451
    4062   ;
    4063   return 0;
    4064 }
    4065 _ACEOF
    4066 rm -f conftest.$ac_objext conftest$ac_exeext
    4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5
    4068   (eval $ac_link) 2>&5
    4069   ac_status=$?
    4070   echo "$as_me:4070: \$? = $ac_status" >&5
    4071   (exit $ac_status); } &&
    4072          { ac_try='test -s conftest$ac_exeext'
    4073   { (eval echo "$as_me:4073: \"$ac_try\"") >&5
    4074   (eval $ac_try) 2>&5
    4075   ac_status=$?
    4076   echo "$as_me:4076: \$? = $ac_status" >&5
    4077   (exit $ac_status); }; }; then
    4078   eval "$ac_ac_var=yes"
    4079 else
    4080   echo "$as_me: failed program was:" >&5
    4081 cat conftest.$ac_ext >&5
    4082 eval "$ac_ac_var=no"
    4083 fi
    4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4085 fi
    4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4089   cat >>confdefs.h <<EOF
    4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4091 EOF
    4092 
    4093 echo "$as_me:4093: checking for _doprnt" >&5
    4094 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    4095 if test "${ac_cv_func__doprnt+set}" = set; then
    4096   echo $ECHO_N "(cached) $ECHO_C" >&6
    4097 else
    4098   cat >conftest.$ac_ext <<_ACEOF
    4099 #line 4099 "configure"
     2452; return 0; }
     2453EOF
     2454if { (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"
     2457else
     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"
     2462fi
     2463rm -f conftest*
     2464fi
     2465
     2466if 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
     2471EOF
     2472 
     2473else
     2474  echo "$ac_t""no" 1>&6
     2475fi
     2476done
     2477
     2478for ac_func in ftruncate strstr strcasecmp
     2479do
     2480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2481echo "configure:2482: checking for $ac_func" >&5
     2482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2483  echo $ac_n "(cached) $ac_c" 1>&6
     2484else
     2485  cat > conftest.$ac_ext <<EOF
     2486#line 2487 "configure"
    41002487#include "confdefs.h"
    41012488/* System header to define __stub macros and hopefully few prototypes,
    4102     which can conflict with char _doprnt (); below.  */
     2489    which can conflict with char $ac_func(); below.  */
    41032490#include <assert.h>
    41042491/* Override any gcc2 internal prototype to avoid an error.  */
    4105 #ifdef __cplusplus
    4106 extern "C"
    4107 #endif
    41082492/* We use char because int might match the return type of a gcc2
    4109    builtin and then its argument prototype would still apply.  */
    4110 char _doprnt ();
    4111 char (*f) ();
    4112 
    4113 int
    4114 main ()
    4115 {
    4116 /* The GNU C library defines this for functions which it implements
    4117     to always fail with ENOSYS.  Some functions are actually named
    4118     something starting with __ and the normal name is an alias.  */
    4119 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    4120 choke me
    4121 #else
    4122 f = _doprnt;
    4123 #endif
    4124 
    4125   ;
    4126   return 0;
    4127 }
    4128 _ACEOF
    4129 rm -f conftest.$ac_objext conftest$ac_exeext
    4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5
    4131   (eval $ac_link) 2>&5
    4132   ac_status=$?
    4133   echo "$as_me:4133: \$? = $ac_status" >&5
    4134   (exit $ac_status); } &&
    4135          { ac_try='test -s conftest$ac_exeext'
    4136   { (eval echo "$as_me:4136: \"$ac_try\"") >&5
    4137   (eval $ac_try) 2>&5
    4138   ac_status=$?
    4139   echo "$as_me:4139: \$? = $ac_status" >&5
    4140   (exit $ac_status); }; }; then
    4141   ac_cv_func__doprnt=yes
    4142 else
    4143   echo "$as_me: failed program was:" >&5
    4144 cat conftest.$ac_ext >&5
    4145 ac_cv_func__doprnt=no
    4146 fi
    4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4148 fi
    4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5
    4150 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    4151 if test $ac_cv_func__doprnt = yes; then
    4152 
    4153 cat >>confdefs.h <<\EOF
    4154 #define HAVE_DOPRNT 1
    4155 EOF
    4156 
    4157 fi
    4158 
    4159 fi
    4160 done
    4161 
    4162 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    4163 do
    4164 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4165 echo "$as_me:4165: checking for $ac_func" >&5
    4166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4167 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4168   echo $ECHO_N "(cached) $ECHO_C" >&6
    4169 else
    4170   cat >conftest.$ac_ext <<_ACEOF
    4171 #line 4171 "configure"
    4172 #include "confdefs.h"
    4173 /* System header to define __stub macros and hopefully few prototypes,
    4174     which can conflict with char $ac_func (); below.  */
    4175 #include <assert.h>
    4176 /* Override any gcc2 internal prototype to avoid an error.  */
    4177 #ifdef __cplusplus
    4178 extern "C"
    4179 #endif
    4180 /* We use char because int might match the return type of a gcc2
    4181    builtin and then its argument prototype would still apply.  */
    4182 char $ac_func ();
    4183 char (*f) ();
    4184 
    4185 int
    4186 main ()
    4187 {
     2493    builtin and then its argument prototype would still apply.  */
     2494char $ac_func();
     2495
     2496int main() {
     2497
    41882498/* The GNU C library defines this for functions which it implements
    41892499    to always fail with ENOSYS.  Some functions are actually named
     
    41922502choke me
    41932503#else
    4194 f = $ac_func;
     2504$ac_func();
    41952505#endif
    41962506
    4197   ;
    4198   return 0;
    4199 }
    4200 _ACEOF
    4201 rm -f conftest.$ac_objext conftest$ac_exeext
    4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
    4203   (eval $ac_link) 2>&5
    4204   ac_status=$?
    4205   echo "$as_me:4205: \$? = $ac_status" >&5
    4206   (exit $ac_status); } &&
    4207          { ac_try='test -s conftest$ac_exeext'
    4208   { (eval echo "$as_me:4208: \"$ac_try\"") >&5
    4209   (eval $ac_try) 2>&5
    4210   ac_status=$?
    4211   echo "$as_me:4211: \$? = $ac_status" >&5
    4212   (exit $ac_status); }; }; then
    4213   eval "$ac_ac_var=yes"
    4214 else
    4215   echo "$as_me: failed program was:" >&5
    4216 cat conftest.$ac_ext >&5
    4217 eval "$ac_ac_var=no"
    4218 fi
    4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4220 fi
    4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4224   cat >>confdefs.h <<EOF
    4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4226 EOF
    4227 
     2507; return 0; }
     2508EOF
     2509if { (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"
     2512else
     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"
     2517fi
     2518rm -f conftest*
     2519fi
     2520
     2521if 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
     2526EOF
     2527 
     2528else
     2529  echo "$ac_t""no" 1>&6
     2530LIBOBJS="$LIBOBJS ${ac_func}.o"
    42282531fi
    42292532done
    42302533
    4231 for ac_func in ftruncate strstr strcasecmp
     2534
     2535
     2536
     2537# *** Custom checking (based on GNU tar configure.in) ***
     2538# ---------------------------------------------------------------------------
     2539echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
     2540echo "configure:2541: checking for HP-UX needing gmalloc" >&5
     2541if 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
     2545#define HAVE_VALLOC 1
     2546EOF
     2547
     2548else
     2549  echo "$ac_t""no" 1>&6
     2550  for ac_func in valloc
    42322551do
    4233 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4234 echo "$as_me:4234: checking for $ac_func" >&5
    4235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4236 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4237   echo $ECHO_N "(cached) $ECHO_C" >&6
    4238 else
    4239   cat >conftest.$ac_ext <<_ACEOF
    4240 #line 4240 "configure"
     2552echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2553echo "configure:2554: checking for $ac_func" >&5
     2554if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2555  echo $ac_n "(cached) $ac_c" 1>&6
     2556else
     2557  cat > conftest.$ac_ext <<EOF
     2558#line 2559 "configure"
    42412559#include "confdefs.h"
    42422560/* System header to define __stub macros and hopefully few prototypes,
    4243     which can conflict with char $ac_func (); below.  */
     2561    which can conflict with char $ac_func(); below.  */
    42442562#include <assert.h>
    42452563/* Override any gcc2 internal prototype to avoid an error.  */
    4246 #ifdef __cplusplus
    4247 extern "C"
    4248 #endif
    42492564/* We use char because int might match the return type of a gcc2
    4250    builtin and then its argument prototype would still apply.  */
    4251 char $ac_func ();
    4252 char (*f) ();
    4253 
    4254 int
    4255 main ()
    4256 {
     2565    builtin and then its argument prototype would still apply.  */
     2566char $ac_func();
     2567
     2568int main() {
     2569
    42572570/* The GNU C library defines this for functions which it implements
    42582571    to always fail with ENOSYS.  Some functions are actually named
     
    42612574choke me
    42622575#else
    4263 f = $ac_func;
     2576$ac_func();
    42642577#endif
    42652578
    4266   ;
    4267   return 0;
    4268 }
    4269 _ACEOF
    4270 rm -f conftest.$ac_objext conftest$ac_exeext
    4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5
    4272   (eval $ac_link) 2>&5
    4273   ac_status=$?
    4274   echo "$as_me:4274: \$? = $ac_status" >&5
    4275   (exit $ac_status); } &&
    4276          { ac_try='test -s conftest$ac_exeext'
    4277   { (eval echo "$as_me:4277: \"$ac_try\"") >&5
    4278   (eval $ac_try) 2>&5
    4279   ac_status=$?
    4280   echo "$as_me:4280: \$? = $ac_status" >&5
    4281   (exit $ac_status); }; }; then
    4282   eval "$ac_ac_var=yes"
    4283 else
    4284   echo "$as_me: failed program was:" >&5
    4285 cat conftest.$ac_ext >&5
    4286 eval "$ac_ac_var=no"
    4287 fi
    4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4289 fi
    4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4293   cat >>confdefs.h <<EOF
    4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4295 EOF
    4296 
    4297 else
    4298   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     2579; return 0; }
     2580EOF
     2581if { (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"
     2584else
     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"
     2589fi
     2590rm -f conftest*
     2591fi
     2592
     2593if 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
     2598EOF
     2599 
     2600else
     2601  echo "$ac_t""no" 1>&6
    42992602fi
    43002603done
    43012604
    4302 # *** Custom checking (based on GNU tar configure.in) ***
    4303 # ---------------------------------------------------------------------------
    4304 echo "$as_me:4304: checking for HP-UX needing gmalloc" >&5
    4305 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
    4306 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    4307   echo "$as_me:4307: result: yes" >&5
    4308 echo "${ECHO_T}yes" >&6
    4309   LIBOBJS="$LIBOBJS gmalloc.o"
    4310   cat >>confdefs.h <<\EOF
    4311 #define HAVE_VALLOC 1
    4312 EOF
    4313 
    4314 else
    4315   echo "$as_me:4315: result: no" >&5
    4316 echo "${ECHO_T}no" >&6
    4317 
    4318 for ac_func in valloc
    4319 do
    4320 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
    4321 echo "$as_me:4321: checking for $ac_func" >&5
    4322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4323 if eval "test \"\${$ac_ac_var+set}\" = set"; then
    4324   echo $ECHO_N "(cached) $ECHO_C" >&6
    4325 else
    4326   cat >conftest.$ac_ext <<_ACEOF
    4327 #line 4327 "configure"
    4328 #include "confdefs.h"
    4329 /* System header to define __stub macros and hopefully few prototypes,
    4330     which can conflict with char $ac_func (); below.  */
    4331 #include <assert.h>
    4332 /* Override any gcc2 internal prototype to avoid an error.  */
    4333 #ifdef __cplusplus
    4334 extern "C"
    4335 #endif
    4336 /* We use char because int might match the return type of a gcc2
    4337    builtin and then its argument prototype would still apply.  */
    4338 char $ac_func ();
    4339 char (*f) ();
    4340 
    4341 int
    4342 main ()
    4343 {
    4344 /* The GNU C library defines this for functions which it implements
    4345     to always fail with ENOSYS.  Some functions are actually named
    4346     something starting with __ and the normal name is an alias.  */
    4347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    4348 choke me
    4349 #else
    4350 f = $ac_func;
    4351 #endif
    4352 
    4353   ;
    4354   return 0;
    4355 }
    4356 _ACEOF
    4357 rm -f conftest.$ac_objext conftest$ac_exeext
    4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5
    4359   (eval $ac_link) 2>&5
    4360   ac_status=$?
    4361   echo "$as_me:4361: \$? = $ac_status" >&5
    4362   (exit $ac_status); } &&
    4363          { ac_try='test -s conftest$ac_exeext'
    4364   { (eval echo "$as_me:4364: \"$ac_try\"") >&5
    4365   (eval $ac_try) 2>&5
    4366   ac_status=$?
    4367   echo "$as_me:4367: \$? = $ac_status" >&5
    4368   (exit $ac_status); }; }; then
    4369   eval "$ac_ac_var=yes"
    4370 else
    4371   echo "$as_me: failed program was:" >&5
    4372 cat conftest.$ac_ext >&5
    4373 eval "$ac_ac_var=no"
    4374 fi
    4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4376 fi
    4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5
    4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
    4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then
    4380   cat >>confdefs.h <<EOF
    4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
    4382 EOF
    4383 
    4384 fi
    4385 done
    4386 
    4387 fi
    4388 
    4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5
    4390 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    4391 
     2605fi
     2606
     2607echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
     2608echo "configure:2609: checking if malloc debugging is wanted" >&5
    43922609# Check whether --with-dmalloc or --without-dmalloc was given.
    43932610if test "${with_dmalloc+set}" = set; then
    43942611  withval="$with_dmalloc"
    43952612  if test "$withval" = yes; then
    4396   echo "$as_me:4396: result: yes" >&5
    4397 echo "${ECHO_T}yes" >&6
    4398   cat >>confdefs.h <<\EOF
     2613  echo "$ac_t""yes" 1>&6
     2614  cat >> confdefs.h <<\EOF
    43992615#define WITH_DMALLOC 1
    44002616EOF
     
    44032619  LDFLAGS="$LDFLAGS -g"
    44042620else
    4405   echo "$as_me:4405: result: no" >&5
    4406 echo "${ECHO_T}no" >&6
    4407 fi
    4408 else
    4409   echo "$as_me:4409: result: no" >&5
    4410 echo "${ECHO_T}no" >&6
    4411 fi;
    4412 
    4413 echo "$as_me:4413: checking which of rx or regex is wanted" >&5
    4414 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    4415 
     2621  echo "$ac_t""no" 1>&6
     2622fi
     2623else
     2624  echo "$ac_t""no" 1>&6
     2625fi
     2626
     2627
     2628echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
     2629echo "configure:2630: checking which of rx or regex is wanted" >&5
    44162630# Check whether --with-regex or --without-regex was given.
    44172631if test "${with_regex+set}" = set; then
     
    44192633  if test "$withval" = yes; then
    44202634  ac_with_regex=1
    4421   echo "$as_me:4421: result: regex" >&5
    4422 echo "${ECHO_T}regex" >&6
    4423   cat >>confdefs.h <<\EOF
     2635  echo "$ac_t""regex" 1>&6
     2636  cat >> confdefs.h <<\EOF
    44242637#define WITH_REGEX 1
    44252638EOF
     
    44272640  LIBOBJS="$LIBOBJS regex.o"
    44282641fi
    4429 fi;
     2642fi
     2643
    44302644if test -z "$ac_with_regex"; then
    4431   echo "$as_me:4431: result: rx" >&5
    4432 echo "${ECHO_T}rx" >&6
    4433   echo "$as_me:4433: checking for re_rx_search" >&5
    4434 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    4435 if test "${ac_cv_func_re_rx_search+set}" = set; then
    4436   echo $ECHO_N "(cached) $ECHO_C" >&6
    4437 else
    4438   cat >conftest.$ac_ext <<_ACEOF
    4439 #line 4439 "configure"
     2645  echo "$ac_t""rx" 1>&6
     2646  echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
     2647echo "configure:2648: checking for re_rx_search" >&5
     2648if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
     2649  echo $ac_n "(cached) $ac_c" 1>&6
     2650else
     2651  cat > conftest.$ac_ext <<EOF
     2652#line 2653 "configure"
    44402653#include "confdefs.h"
    44412654/* System header to define __stub macros and hopefully few prototypes,
    4442     which can conflict with char re_rx_search (); below.  */
     2655    which can conflict with char re_rx_search(); below.  */
    44432656#include <assert.h>
    44442657/* Override any gcc2 internal prototype to avoid an error.  */
    4445 #ifdef __cplusplus
    4446 extern "C"
    4447 #endif
    44482658/* We use char because int might match the return type of a gcc2
    4449    builtin and then its argument prototype would still apply.  */
    4450 char re_rx_search ();
    4451 char (*f) ();
    4452 
    4453 int
    4454 main ()
    4455 {
     2659    builtin and then its argument prototype would still apply.  */
     2660char re_rx_search();
     2661
     2662int main() {
     2663
    44562664/* The GNU C library defines this for functions which it implements
    44572665    to always fail with ENOSYS.  Some functions are actually named
     
    44602668choke me
    44612669#else
    4462 f = re_rx_search;
     2670re_rx_search();
    44632671#endif
    44642672
    4465   ;
    4466   return 0;
    4467 }
    4468 _ACEOF
    4469 rm -f conftest.$ac_objext conftest$ac_exeext
    4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5
    4471   (eval $ac_link) 2>&5
    4472   ac_status=$?
    4473   echo "$as_me:4473: \$? = $ac_status" >&5
    4474   (exit $ac_status); } &&
    4475          { ac_try='test -s conftest$ac_exeext'
    4476   { (eval echo "$as_me:4476: \"$ac_try\"") >&5
    4477   (eval $ac_try) 2>&5
    4478   ac_status=$?
    4479   echo "$as_me:4479: \$? = $ac_status" >&5
    4480   (exit $ac_status); }; }; then
    4481   ac_cv_func_re_rx_search=yes
    4482 else
    4483   echo "$as_me: failed program was:" >&5
    4484 cat conftest.$ac_ext >&5
    4485 ac_cv_func_re_rx_search=no
    4486 fi
    4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4488 fi
    4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5
    4490 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    4491 if test $ac_cv_func_re_rx_search = yes; then
     2673; return 0; }
     2674EOF
     2675if { (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"
     2678else
     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"
     2683fi
     2684rm -f conftest*
     2685fi
     2686
     2687if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
     2688  echo "$ac_t""yes" 1>&6
    44922689  :
    44932690else
    4494   LIBOBJS="$LIBOBJS rx.o"
    4495 fi
    4496 
    4497 fi
     2691  echo "$ac_t""no" 1>&6
     2692LIBOBJS="$LIBOBJS rx.o"
     2693fi
     2694
     2695fi
     2696
    44982697
    44992698# ---------------------------------------------------------------------------
     
    45022701fi
    45032702
     2703
    45042704# ---------------------------------------------------------------------------
    45052705
    4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
    4507 ac_config_commands="$ac_config_commands default"
    4508 cat >confcache <<\_ACEOF
     2706trap '' 1 2 15
     2707cat > confcache <<\EOF
    45092708# This file is a shell script that caches the results of configure
    45102709# tests run on this system so they can be shared between configure
    4511 # scripts and configure runs, see configure's option --config-cache.
    4512 # It is not useful on other systems.  If it contains results you don't
    4513 # want to keep, you may remove or edit it.
     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.
    45142712#
    4515 # config.status only pays attention to the cache file if you give it
    4516 # the --recheck option to rerun configure.
     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.
    45172721#
    4518 # `ac_cv_env_foo' variables (set or unset) will be overriden when
    4519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
    4520 # following values.
    4521 
    4522 _ACEOF
    4523 
     2722EOF
    45242723# The following way of writing the cache mishandles newlines in values,
    45252724# but we know of no workaround that is simple, portable, and efficient.
     
    45272726# Ultrix sh set writes to stderr and can't be redirected directly,
    45282727# and sets the high bit in the cache file unless we assign to the vars.
    4529 {
    4530   (set) 2>&1 |
    4531     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    4532     *ac_space=\ *)
    4533       # `set' does not quote correctly, so add quotes (double-quote
    4534       # substitution turns \\\\ into \\, and sed turns \\ into \).
    4535       sed -n \
    4536         "s/'/'\\\\''/g;
    4537           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    4538       ;;
    4539     *)
    4540       # `set' quotes correctly as required by POSIX, so do not add quotes.
    4541       sed -n \
    4542         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    4543       ;;
    4544     esac;
    4545 } |
    4546   sed '
    4547      t clear
    4548      : clear
    4549      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    4550      t end
    4551      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    4552      : end' >>confcache
    4553 if cmp -s $cache_file confcache; then :; else
     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
     2742if cmp -s $cache_file confcache; then
     2743  :
     2744else
    45542745  if test -w $cache_file; then
    4555     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    4556     cat confcache >$cache_file
     2746    echo "updating cache $cache_file"
     2747    cat confcache > $cache_file
    45572748  else
    45582749    echo "not updating unwritable cache $cache_file"
     
    45612752rm -f confcache
    45622753
     2754trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     2755
    45632756test "x$prefix" = xNONE && prefix=$ac_default_prefix
    45642757# Let make expand exec_prefix.
    45652758test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    45662759
    4567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    4568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    4569 # trailing colons and then remove the whole line if VPATH becomes empty
    4570 # (actually we leave an empty line to preserve line numbers).
     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.
    45712763if test "x$srcdir" = x.; then
    4572   ac_vpsub='/^[     ]*VPATH[    ]*=/{
    4573 s/:*\$(srcdir):*/:/;
    4574 s/:*\${srcdir}:*/:/;
    4575 s/:*@srcdir@:*/:/;
    4576 s/^\([^=]*=[    ]*\):*/\1/;
    4577 s/:*$//;
    4578 s/^[^=]*=[  ]*$//;
    4579 }'
    4580 fi
     2764  ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
     2765fi
     2766
     2767trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    45812768
    45822769DEFS=-DHAVE_CONFIG_H
    45832770
     2771# Without the "./", some shells look in PATH for config.status.
    45842772: ${CONFIG_STATUS=./config.status}
    4585 ac_clean_files_save=$ac_clean_files
    4586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    4587 { echo "$as_me:4587: creating $CONFIG_STATUS" >&5
    4588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    4589 cat >$CONFIG_STATUS <<_ACEOF
    4590 #! $SHELL
     2773
     2774echo creating $CONFIG_STATUS
     2775rm -f $CONFIG_STATUS
     2776cat > $CONFIG_STATUS <<EOF
     2777#! /bin/sh
    45912778# Generated automatically by configure.
    45922779# 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#
    45932785# Compiler output produced by configure, useful for debugging
    4594 # configure, is in config.log if it exists.
    4595 
    4596 debug=false
    4597 SHELL=\${CONFIG_SHELL-$SHELL}
    4598 ac_cs_invocation="\$0 \$@"
    4599 
    4600 _ACEOF
    4601 
    4602 cat >>$CONFIG_STATUS <<\_ACEOF
    4603 # Be Bourne compatible
    4604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    4605   emulate sh
    4606   NULLCMD=:
    4607 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    4608   set -o posix
    4609 fi
    4610 
    4611 # Name of the executable.
    4612 as_me=`echo "$0" |sed 's,.*[\\/],,'`
    4613 
    4614 if expr a : '\(a\)' >/dev/null 2>&1; then
    4615   as_expr=expr
    4616 else
    4617   as_expr=false
    4618 fi
    4619 
    4620 rm -f conf$$ conf$$.exe conf$$.file
    4621 echo >conf$$.file
    4622 if ln -s conf$$.file conf$$ 2>/dev/null; then
    4623   # We could just check for DJGPP; but this test a) works b) is more generic
    4624   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    4625   if test -f conf$$.exe; then
    4626     # Don't use ln at all; we don't have any links
    4627     as_ln_s='cp -p'
     2786# configure, is in ./config.log if it exists.
     2787
     2788ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     2789for ac_option
     2790do
     2791  case "\$ac_option" in
     2792  -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 ;;
     2801  esac
     2802done
     2803
     2804ac_given_srcdir=$srcdir
     2805ac_given_INSTALL="$INSTALL"
     2806
     2807trap '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
     2809EOF
     2810cat >> $CONFIG_STATUS <<EOF
     2811
     2812# Protect against being on the right side of a sed subst in config.status.
     2813sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     2814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     2815$ac_vpsub
     2816$extrasub
     2817s%@CFLAGS@%$CFLAGS%g
     2818s%@CPPFLAGS@%$CPPFLAGS%g
     2819s%@CXXFLAGS@%$CXXFLAGS%g
     2820s%@DEFS@%$DEFS%g
     2821s%@LDFLAGS@%$LDFLAGS%g
     2822s%@LIBS@%$LIBS%g
     2823s%@exec_prefix@%$exec_prefix%g
     2824s%@prefix@%$prefix%g
     2825s%@program_transform_name@%$program_transform_name%g
     2826s%@bindir@%$bindir%g
     2827s%@sbindir@%$sbindir%g
     2828s%@libexecdir@%$libexecdir%g
     2829s%@datadir@%$datadir%g
     2830s%@sysconfdir@%$sysconfdir%g
     2831s%@sharedstatedir@%$sharedstatedir%g
     2832s%@localstatedir@%$localstatedir%g
     2833s%@libdir@%$libdir%g
     2834s%@includedir@%$includedir%g
     2835s%@oldincludedir@%$oldincludedir%g
     2836s%@infodir@%$infodir%g
     2837s%@mandir@%$mandir%g
     2838s%@PACKAGE@%$PACKAGE%g
     2839s%@VERSION@%$VERSION%g
     2840s%@CXX@%$CXX%g
     2841s%@AWK@%$AWK%g
     2842s%@YACC@%$YACC%g
     2843s%@CC@%$CC%g
     2844s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     2845s%@INSTALL_DATA@%$INSTALL_DATA%g
     2846s%@LN_S@%$LN_S%g
     2847s%@SET_MAKE@%$SET_MAKE%g
     2848s%@RANLIB@%$RANLIB%g
     2849s%@CPP@%$CPP%g
     2850s%@U@%$U%g
     2851s%@ANSI2KNR@%$ANSI2KNR%g
     2852s%@ALLOCA@%$ALLOCA%g
     2853s%@LIBOBJS@%$LIBOBJS%g
     2854
     2855CEOF
     2856EOF
     2857
     2858cat >> $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.
     2862ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     2863ac_file=1 # Number of current file.
     2864ac_beg=1 # First line for current file.
     2865ac_end=$ac_max_sed_cmds # Line after last line for current file.
     2866ac_more_lines=:
     2867ac_sed_cmds=""
     2868while $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
    46282871  else
    4629     as_ln_s='ln -s'
     2872    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    46302873  fi
    4631 elif ln conf$$.file conf$$ 2>/dev/null; then
    4632   as_ln_s=ln
    4633 else
    4634   as_ln_s='cp -p'
    4635 fi
    4636 rm -f conf$$ conf$$.exe conf$$.file
    4637 
    4638 as_executable_p="test -f"
    4639 
    4640 # Support unset when possible.
    4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    4642   as_unset=unset
    4643 else
    4644   as_unset=false
    4645 fi
    4646 
    4647 # NLS nuisances.
    4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
    4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
    4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
    4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
    4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
    4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
    4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
    4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
    4656 
    4657 # IFS
    4658 # We need space, tab and new line, in precisely that order.
    4659 as_nl='
    4660 '
    4661 IFS="   $as_nl"
    4662 
    4663 # CDPATH.
    4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
    4665 
    4666 exec 6>&1
    4667 
    4668 _ACEOF
    4669 
    4670 # Files that config.status was made for.
    4671 if test -n "$ac_config_files"; then
    4672   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    4673 fi
    4674 
    4675 if test -n "$ac_config_headers"; then
    4676   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    4677 fi
    4678 
    4679 if test -n "$ac_config_links"; then
    4680   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    4681 fi
    4682 
    4683 if test -n "$ac_config_commands"; then
    4684   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    4685 fi
    4686 
    4687 cat >>$CONFIG_STATUS <<\EOF
    4688 
    4689 ac_cs_usage="\
    4690 \`$as_me' instantiates files from templates according to the
    4691 current configuration.
    4692 
    4693 Usage: $0 [OPTIONS] [FILE]...
    4694 
    4695   -h, --help       print this help, then exit
    4696   -V, --version    print version number, then exit
    4697   -d, --debug      don't remove temporary files
    4698       --recheck    update $as_me by reconfiguring in the same conditions
    4699   --file=FILE[:TEMPLATE]
    4700                    instantiate the configuration file FILE
    4701   --header=FILE[:TEMPLATE]
    4702                    instantiate the configuration header FILE
    4703 
    4704 Configuration files:
    4705 $config_files
    4706 
    4707 Configuration headers:
    4708 $config_headers
    4709 
    4710 Configuration commands:
    4711 $config_commands
    4712 
    4713 Report bugs to <[email protected]>."
    4714 EOF
    4715 
    4716 cat >>$CONFIG_STATUS <<EOF
    4717 ac_cs_version="\\
    4718 config.status
    4719 configured by $0, generated by GNU Autoconf 2.50,
    4720   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    4721 
    4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    4723 Free Software Foundation, Inc.
    4724 This config.status script is free software; the Free Software Foundation
    4725 gives unlimited permission to copy, distribute and modify it."
    4726 srcdir=$srcdir
    4727 INSTALL="$INSTALL"
    4728 EOF
    4729 
    4730 cat >>$CONFIG_STATUS <<\EOF
    4731 # If no file are specified by the user, then we need to provide default
    4732 # value.  By we need to know if files were specified by the user.
    4733 ac_need_defaults=:
    4734 while test $# != 0
    4735 do
    4736   case $1 in
    4737   --*=*)
    4738     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    4739     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    4740     shift
    4741     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
    4742     shift
    4743     ;;
    4744   -*);;
    4745   *) # This is not an option, so the user has probably given explicit
    4746      # arguments.
    4747      ac_need_defaults=false;;
     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
     2887done
     2888if test -z "$ac_sed_cmds"; then
     2889  ac_sed_cmds=cat
     2890fi
     2891EOF
     2892
     2893cat >> $CONFIG_STATUS <<EOF
     2894
     2895CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile
     2896          src/scripts/Makefile lib/Makefile "}
     2897EOF
     2898cat >> $CONFIG_STATUS <<\EOF
     2899for 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" ;;
    47482905  esac
    47492906
    4750   case $1 in
    4751   # Handling of the options.
    4752 EOF
    4753 cat >>$CONFIG_STATUS <<EOF
    4754   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    4755     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    4756     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
    4757 EOF
    4758 cat >>$CONFIG_STATUS <<\EOF
    4759   --version | --vers* | -V )
    4760     echo "$ac_cs_version"; exit 0 ;;
    4761   --he | --h)
    4762     # Conflict between --help and --header
    4763     { { echo "$as_me:4763: error: ambiguous option: $1
    4764 Try \`$0 --help' for more information." >&5
    4765 echo "$as_me: error: ambiguous option: $1
    4766 Try \`$0 --help' for more information." >&2;}
    4767    { (exit 1); exit 1; }; };;
    4768   --help | --hel | -h )
    4769     echo "$ac_cs_usage"; exit 0 ;;
    4770   --debug | --d* | -d )
    4771     debug=: ;;
    4772   --file | --fil | --fi | --f )
    4773     shift
    4774     CONFIG_FILES="$CONFIG_FILES $1"
    4775     ac_need_defaults=false;;
    4776   --header | --heade | --head | --hea )
    4777     shift
    4778     CONFIG_HEADERS="$CONFIG_HEADERS $1"
    4779     ac_need_defaults=false;;
    4780 
    4781   # Handling of arguments.
    4782   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    4783   'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
    4784   'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
    4785   'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
    4786   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    4787   'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    4788   'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
    4789   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    4790   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    4791 
    4792   # This is an error.
    4793   -*) { { echo "$as_me:4793: error: unrecognized option: $1
    4794 Try \`$0 --help' for more information." >&5
    4795 echo "$as_me: error: unrecognized option: $1
    4796 Try \`$0 --help' for more information." >&2;}
    4797    { (exit 1); exit 1; }; } ;;
    4798   *) { { echo "$as_me:4798: error: invalid argument: $1" >&5
    4799 echo "$as_me: error: invalid argument: $1" >&2;}
    4800    { (exit 1); exit 1; }; };;
    4801   esac
    4802   shift
    4803 done
    4804 
    4805 exec 5>>config.log
    4806 cat >&5 << _ACEOF
    4807 
    4808 ## ----------------------- ##
    4809 ## Running config.status.  ##
    4810 ## ----------------------- ##
    4811 
    4812 This file was extended by $as_me 2.50, executed with
    4813   > $ac_cs_invocation
    4814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
    4815 
    4816 _ACEOF
    4817 EOF
    4818 
    4819 cat >>$CONFIG_STATUS <<\EOF
    4820 # If the user did not use the arguments to specify the items to instantiate,
    4821 # then the envvar interface is used.  Set only those that are not.
    4822 # We use the long form for the default assignment because of an extremely
    4823 # bizarre bug on SunOS 4.1.3.
    4824 if $ac_need_defaults; then
    4825   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    4826   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    4827   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    4828 fi
    4829 
    4830 # Create a temporary directory, and hook for its removal unless debugging.
    4831 $debug ||
    4832 {
    4833   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    4834   trap '{ (exit $?); exit $?; }' 1 2 13 15
    4835 }
    4836 
    4837 # Create a (secure) tmp directory for tmp files.
    4838 : ${TMPDIR=/tmp}
    4839 {
    4840   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
    4841   test -n "$tmp" && test -d "$tmp"
    4842 }  ||
    4843 {
    4844   tmp=$TMPDIR/cs$$-$RANDOM
    4845   (umask 077 && mkdir $tmp)
    4846 } ||
    4847 {
    4848    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
    4849    { (exit 1); exit 1; }
    4850 }
    4851 
    4852 EOF
    4853 
    4854 cat >>$CONFIG_STATUS <<EOF
    4855 
    4856 #
    4857 # CONFIG_FILES section.
    4858 #
    4859 
    4860 # No need to generate the scripts if there are no CONFIG_FILES.
    4861 # This happens for instance when ./config.status config.h
    4862 if test -n "\$CONFIG_FILES"; then
    4863   # Protect against being on the right side of a sed subst in config.status.
    4864   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    4865    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    4866 s,@SHELL@,$SHELL,;t t
    4867 s,@exec_prefix@,$exec_prefix,;t t
    4868 s,@prefix@,$prefix,;t t
    4869 s,@program_transform_name@,$program_transform_name,;t t
    4870 s,@bindir@,$bindir,;t t
    4871 s,@sbindir@,$sbindir,;t t
    4872 s,@libexecdir@,$libexecdir,;t t
    4873 s,@datadir@,$datadir,;t t
    4874 s,@sysconfdir@,$sysconfdir,;t t
    4875 s,@sharedstatedir@,$sharedstatedir,;t t
    4876 s,@localstatedir@,$localstatedir,;t t
    4877 s,@libdir@,$libdir,;t t
    4878 s,@includedir@,$includedir,;t t
    4879 s,@oldincludedir@,$oldincludedir,;t t
    4880 s,@infodir@,$infodir,;t t
    4881 s,@mandir@,$mandir,;t t
    4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    4887 s,@ECHO_C@,$ECHO_C,;t t
    4888 s,@ECHO_N@,$ECHO_N,;t t
    4889 s,@ECHO_T@,$ECHO_T,;t t
    4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    4891 s,@DEFS@,$DEFS,;t t
    4892 s,@LIBS@,$LIBS,;t t
    4893 s,@PACKAGE@,$PACKAGE,;t t
    4894 s,@VERSION@,$VERSION,;t t
    4895 s,@CXX@,$CXX,;t t
    4896 s,@CXXFLAGS@,$CXXFLAGS,;t t
    4897 s,@LDFLAGS@,$LDFLAGS,;t t
    4898 s,@CPPFLAGS@,$CPPFLAGS,;t t
    4899 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    4900 s,@EXEEXT@,$EXEEXT,;t t
    4901 s,@OBJEXT@,$OBJEXT,;t t
    4902 s,@AWK@,$AWK,;t t
    4903 s,@YACC@,$YACC,;t t
    4904 s,@CC@,$CC,;t t
    4905 s,@CFLAGS@,$CFLAGS,;t t
    4906 s,@ac_ct_CC@,$ac_ct_CC,;t t
    4907 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    4908 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    4909 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    4910 s,@LN_S@,$LN_S,;t t
    4911 s,@SET_MAKE@,$SET_MAKE,;t t
    4912 s,@RANLIB@,$RANLIB,;t t
    4913 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    4914 s,@CPP@,$CPP,;t t
    4915 s,@U@,$U,;t t
    4916 s,@ANSI2KNR@,$ANSI2KNR,;t t
    4917 s,@ALLOCA@,$ALLOCA,;t t
    4918 s,@LIBOBJS@,$LIBOBJS,;t t
    4919 CEOF
    4920 
    4921 EOF
    4922 
    4923   cat >>$CONFIG_STATUS <<\EOF
    4924   # Split the substitutions into bite-sized pieces for seds with
    4925   # small command number limits, like on Digital OSF/1 and HP-UX.
    4926   ac_max_sed_lines=48
    4927   ac_sed_frag=1 # Number of current file.
    4928   ac_beg=1 # First line for current file.
    4929   ac_end=$ac_max_sed_lines # Line after last line for current file.
    4930   ac_more_lines=:
    4931   ac_sed_cmds=
    4932   while $ac_more_lines; do
    4933     if test $ac_beg -gt 1; then
    4934       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    4935     else
    4936       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    4937     fi
    4938     if test ! -s $tmp/subs.frag; then
    4939       ac_more_lines=false
    4940     else
    4941       # The purpose of the label and of the branching condition is to
    4942       # speed up the sed processing (if there are no `@' at all, there
    4943       # is no need to browse any of the substitutions).
    4944       # These are the two extra sed commands mentioned above.
    4945       (echo ':t
    4946   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    4947       if test -z "$ac_sed_cmds"; then
    4948     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    4949       else
    4950     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    4951       fi
    4952       ac_sed_frag=`expr $ac_sed_frag + 1`
    4953       ac_beg=$ac_end
    4954       ac_end=`expr $ac_end + $ac_max_sed_lines`
    4955     fi
    4956   done
    4957   if test -z "$ac_sed_cmds"; then
    4958     ac_sed_cmds=cat
    4959   fi
    4960 fi # test -n "$CONFIG_FILES"
    4961 
    4962 EOF
    4963 cat >>$CONFIG_STATUS <<\EOF
    4964 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    4965   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    4966   case $ac_file in
    4967   - | *:- | *:-:* ) # input from stdin
    4968         cat >$tmp/stdin
    4969         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4970         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    4971   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    4972         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    4973   * )   ac_file_in=$ac_file.in ;;
    4974   esac
    4975 
    4976   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    4977   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    4978          X"$ac_file" : 'X\(//\)[^/]' \| \
    4979          X"$ac_file" : 'X\(//\)$' \| \
    4980          X"$ac_file" : 'X\(/\)' \| \
    4981          .     : '\(.\)' 2>/dev/null ||
    4982 echo X"$ac_file" |
    4983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    4984       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    4985       /^X\(\/\/\)$/{ s//\1/; q; }
    4986       /^X\(\/\).*/{ s//\1/; q; }
    4987       s/.*/./; q'`
     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%/[^/][^/]*$%%'`
    49882911  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    4989     { case "$ac_dir" in
    4990   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    4991   *)                      as_incr_dir=.;;
    4992 esac
    4993 as_dummy="$ac_dir"
    4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    4995   case $as_mkdir_dir in
    4996     # Skip DOS drivespec
    4997     ?:) as_incr_dir=$as_mkdir_dir ;;
    4998     *)
    4999       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5000       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5001     ;;
    5002   esac
    5003 done; }
    5004 
    5005     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
     2912    # The file is in a subdirectory.
     2913    test ! -d "$ac_dir" && mkdir "$ac_dir"
     2914    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    50062915    # A "../" for each directory in $ac_dir_suffix.
    5007     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
     2916    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    50082917  else
    50092918    ac_dir_suffix= ac_dots=
    50102919  fi
    50112920
    5012   case $srcdir in
    5013   .)  ac_srcdir=.
    5014       if test -z "$ac_dots"; then
    5015          ac_top_srcdir=.
    5016       else
    5017          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
    5018       fi ;;
    5019   [\\/]* | ?:[\\/]* )
    5020       ac_srcdir=$srcdir$ac_dir_suffix;
    5021       ac_top_srcdir=$srcdir ;;
     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" ;;
    50222926  *) # Relative path.
    5023     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    5024     ac_top_srcdir=$ac_dots$srcdir ;;
     2927    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     2928    top_srcdir="$ac_dots$ac_given_srcdir" ;;
    50252929  esac
    50262930
    5027   case $INSTALL in
    5028   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5029   *) ac_INSTALL=$ac_dots$INSTALL ;;
     2931  case "$ac_given_INSTALL" in
     2932  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2933  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    50302934  esac
    50312935
    5032   if test x"$ac_file" != x-; then
    5033     { echo "$as_me:5033: creating $ac_file" >&5
    5034 echo "$as_me: creating $ac_file" >&6;}
    5035     rm -f "$ac_file"
    5036   fi
    5037   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5038   # use $as_me), people would be surprised to read:
    5039   #    /* config.h.  Generated automatically by config.status.  */
    5040   configure_input="Generated automatically from `echo $ac_file_in |
    5041                                                  sed 's,.*/,,'` by configure."
    5042 
    5043   # First look for the input files in the build tree, otherwise in the
    5044   # src tree.
    5045   ac_file_inputs=`IFS=:
    5046     for f in $ac_file_in; do
    5047       case $f in
    5048       -) echo $tmp/stdin ;;
    5049       [\\/$]*)
    5050          # Absolute (can't be DOS-style, as IFS=:)
    5051          test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&5
    5052 echo "$as_me: error: cannot find input file: $f" >&2;}
    5053    { (exit 1); exit 1; }; }
    5054          echo $f;;
    5055       *) # Relative
    5056          if test -f "$f"; then
    5057            # Build tree
    5058            echo $f
    5059          elif test -f "$srcdir/$f"; then
    5060            # Source tree
    5061            echo $srcdir/$f
    5062          else
    5063            # /dev/null tree
    5064            { { echo "$as_me:5064: error: cannot find input file: $f" >&5
    5065 echo "$as_me: error: cannot find input file: $f" >&2;}
    5066    { (exit 1); exit 1; }; }
    5067          fi;;
    5068       esac
    5069     done` || { (exit 1); exit 1; }
    5070 EOF
    5071 cat >>$CONFIG_STATUS <<EOF
    5072   sed "$ac_vpsub
    5073 $extrasub
    5074 EOF
    5075 cat >>$CONFIG_STATUS <<\EOF
    5076 :t
    5077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    5078 s,@configure_input@,$configure_input,;t t
    5079 s,@srcdir@,$ac_srcdir,;t t
    5080 s,@top_srcdir@,$ac_top_srcdir,;t t
    5081 s,@INSTALL@,$ac_INSTALL,;t t
    5082 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    5083   rm -f $tmp/stdin
    5084   if test x"$ac_file" != x-; then
    5085     mv $tmp/out $ac_file
    5086   else
    5087     cat $tmp/out
    5088     rm -f $tmp/out
    5089   fi
    5090 
    5091 done
    5092 EOF
    5093 cat >>$CONFIG_STATUS <<\EOF
    5094 
    5095 #
    5096 # CONFIG_HEADER section.
    5097 #
     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
     2947s%@configure_input@%$configure_input%g
     2948s%@srcdir@%$srcdir%g
     2949s%@top_srcdir@%$top_srcdir%g
     2950s%@INSTALL@%$INSTALL%g
     2951" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     2952fi; done
     2953rm -f conftest.s*
    50982954
    50992955# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    51012957#
    51022958# ac_d sets the value in "#define NAME VALUE" lines.
    5103 ac_dA='s,^\([   ]*\)#\([    ]*define[   ][  ]*\)'
    5104 ac_dB='[    ].*$,\1#\2'
    5105 ac_dC=' '
    5106 ac_dD=',;t'
    5107 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5108 ac_uA='s,^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    5109 ac_uB='$,\1#\2define\3'
     2959ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     2960ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
     2961ac_dC='\3'
     2962ac_dD='%g'
     2963# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     2964ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     2965ac_uB='\([  ]\)%\1#\2define\3'
    51102966ac_uC=' '
    5111 ac_uD=',;t'
    5112 
    5113 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     2967ac_uD='\4%g'
     2968# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     2969ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     2970ac_eB='$%\1#\2define\3'
     2971ac_eC=' '
     2972ac_eD='%g'
     2973
     2974if test "${CONFIG_HEADERS+set}" != set; then
     2975EOF
     2976cat >> $CONFIG_STATUS <<EOF
     2977  CONFIG_HEADERS="config.h"
     2978EOF
     2979cat >> $CONFIG_STATUS <<\EOF
     2980fi
     2981for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    51142982  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5115   case $ac_file in
    5116   - | *:- | *:-:* ) # input from stdin
    5117         cat >$tmp/stdin
    5118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5120   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5122   * )   ac_file_in=$ac_file.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" ;;
    51232987  esac
    51242988
    5125   test x"$ac_file" != x- && { echo "$as_me:5125: creating $ac_file" >&5
    5126 echo "$as_me: creating $ac_file" >&6;}
    5127 
    5128   # First look for the input files in the build tree, otherwise in the
    5129   # src tree.
    5130   ac_file_inputs=`IFS=:
    5131     for f in $ac_file_in; do
    5132       case $f in
    5133       -) echo $tmp/stdin ;;
    5134       [\\/$]*)
    5135          # Absolute (can't be DOS-style, as IFS=:)
    5136          test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&5
    5137 echo "$as_me: error: cannot find input file: $f" >&2;}
    5138    { (exit 1); exit 1; }; }
    5139          echo $f;;
    5140       *) # Relative
    5141          if test -f "$f"; then
    5142            # Build tree
    5143            echo $f
    5144          elif test -f "$srcdir/$f"; then
    5145            # Source tree
    5146            echo $srcdir/$f
    5147          else
    5148            # /dev/null tree
    5149            { { echo "$as_me:5149: error: cannot find input file: $f" >&5
    5150 echo "$as_me: error: cannot find input file: $f" >&2;}
    5151    { (exit 1); exit 1; }; }
    5152          fi;;
    5153       esac
    5154     done` || { (exit 1); exit 1; }
    5155   # Remove the trailing spaces.
    5156   sed 's/[  ]*$//' $ac_file_inputs >$tmp/in
    5157 
    5158 EOF
    5159 
    5160 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    5161 # `conftest.undefs', that substitutes the proper values into
    5162 # config.h.in to produce config.h.  The first handles `#define'
    5163 # templates, and the second `#undef' templates.
    5164 # And first: Protect against being on the right side of a sed subst in
    5165 # config.status.  Protect against being in an unquoted here document
    5166 # in config.status.
    5167 rm -f conftest.defines conftest.undefs
    5168 # Using a here document instead of a string reduces the quoting nightmare.
    5169 # Putting comments in sed scripts is not portable.
    5170 #
    5171 # `end' is used to avoid that the second main sed command (meant for
    5172 # 0-ary CPP macros) applies to n-ary macro definitions.
    5173 # See the Autoconf documentation for `clear'.
    5174 cat >confdef2sed.sed <<\EOF
    5175 s/[\\&,]/\\&/g
    5176 s,[\\$`],\\&,g
    5177 t clear
    5178 : clear
    5179 s,^[    ]*#[    ]*define[   ][  ]*\(\([^    (][^    (]*\)([^)]*)\)[     ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
    5180 t end
    5181 s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    5182 : end
    5183 EOF
    5184 # If some macros were called several times there might be several times
    5185 # the same #defines, which is useless.  Nevertheless, we may not want to
    5186 # sort them, since we want the *last* AC-DEFINE to be honored.
    5187 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    5188 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    5189 rm -f confdef2sed.sed
     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
     2995EOF
     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.
     3001rm -f conftest.vals
     3002cat > conftest.hdr <<\EOF
     3003s/[\\&%]/\\&/g
     3004s%[\\$`]%\\&%g
     3005s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     3006s%ac_d%ac_u%gp
     3007s%ac_u%ac_e%gp
     3008EOF
     3009sed -n -f conftest.hdr confdefs.h > conftest.vals
     3010rm -f conftest.hdr
    51903011
    51913012# This sed command replaces #undef with comments.  This is necessary, for
    51923013# example, in the case of _POSIX_SOURCE, which is predefined and required
    51933014# on some systems where configure will not decide to define it.
    5194 cat >>conftest.undefs <<\EOF
    5195 s,^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5196 EOF
    5197 
    5198 # Break up conftest.defines because some shells have a limit on the size
    5199 # of here documents, and old seds have small limits too (100 cmds).
    5200 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5201 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    5202 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    5203 echo '  :' >>$CONFIG_STATUS
     3015cat >> conftest.vals <<\EOF
     3016s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     3017EOF
     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
    52043022rm -f conftest.tail
    5205 while grep . conftest.defines >/dev/null
     3023while :
    52063024do
    5207   # Write a limited-size here document to $tmp/defines.sed.
    5208   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    5209   # Speed up: don't consider the non `#define' lines.
    5210   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    5211   # Work around the forget-to-reset-the-flag bug.
    5212   echo 't clr' >>$CONFIG_STATUS
    5213   echo ': clr' >>$CONFIG_STATUS
    5214   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     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
    52153031  echo 'CEOF
    5216   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    5217   rm -f $tmp/in
    5218   mv $tmp/out $tmp/in
    5219 ' >>$CONFIG_STATUS
    5220   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    5221   rm -f conftest.defines
    5222   mv conftest.tail conftest.defines
     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
    52233039done
    5224 rm -f conftest.defines
    5225 echo '  fi # egrep' >>$CONFIG_STATUS
    5226 echo >>$CONFIG_STATUS
    5227 
    5228 # Break up conftest.undefs because some shells have a limit on the size
    5229 # of here documents, and old seds have small limits too (100 cmds).
    5230 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    5231 rm -f conftest.tail
    5232 while grep . conftest.undefs >/dev/null
    5233 do
    5234   # Write a limited-size here document to $tmp/undefs.sed.
    5235   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    5236   # Speed up: don't consider the non `#undef'
    5237   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    5238   # Work around the forget-to-reset-the-flag bug.
    5239   echo 't clr' >>$CONFIG_STATUS
    5240   echo ': clr' >>$CONFIG_STATUS
    5241   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    5242   echo 'CEOF
    5243   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    5244   rm -f $tmp/in
    5245   mv $tmp/out $tmp/in
    5246 ' >>$CONFIG_STATUS
    5247   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    5248   rm -f conftest.undefs
    5249   mv conftest.tail conftest.undefs
    5250 done
    5251 rm -f conftest.undefs
    5252 
    5253 cat >>$CONFIG_STATUS <<\EOF
    5254   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5255   # use $as_me), people would be surprised to read:
    5256   #    /* config.h.  Generated automatically by config.status.  */
    5257   if test x"$ac_file" = x-; then
    5258     echo "/* Generated automatically by configure.  */" >$tmp/config.h
     3040rm -f conftest.vals
     3041
     3042cat >> $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
    52593050  else
    5260     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     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"
     3056    fi
     3057    rm -f $ac_file
     3058    mv conftest.h $ac_file
    52613059  fi
    5262   cat $tmp/in >>$tmp/config.h
    5263   rm -f $tmp/in
    5264   if test x"$ac_file" != x-; then
    5265     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    5266       { echo "$as_me:5266: $ac_file is unchanged" >&5
    5267 echo "$as_me: $ac_file is unchanged" >&6;}
    5268     else
    5269       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5270          X"$ac_file" : 'X\(//\)[^/]' \| \
    5271          X"$ac_file" : 'X\(//\)$' \| \
    5272          X"$ac_file" : 'X\(/\)' \| \
    5273          .     : '\(.\)' 2>/dev/null ||
    5274 echo X"$ac_file" |
    5275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5276       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5277       /^X\(\/\/\)$/{ s//\1/; q; }
    5278       /^X\(\/\).*/{ s//\1/; q; }
    5279       s/.*/./; q'`
    5280       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    5281         { case "$ac_dir" in
    5282   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
    5283   *)                      as_incr_dir=.;;
    5284 esac
    5285 as_dummy="$ac_dir"
    5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
    5287   case $as_mkdir_dir in
    5288     # Skip DOS drivespec
    5289     ?:) as_incr_dir=$as_mkdir_dir ;;
    5290     *)
    5291       as_incr_dir=$as_incr_dir/$as_mkdir_dir
    5292       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    5293     ;;
    5294   esac
    5295 done; }
    5296 
    5297       fi
    5298       rm -f $ac_file
    5299       mv $tmp/config.h $ac_file
    5300     fi
    5301   else
    5302     cat $tmp/config.h
    5303     rm -f $tmp/config.h
    5304   fi
    5305 done
    5306 EOF
    5307 cat >>$CONFIG_STATUS <<\EOF
    5308 
    5309 #
    5310 # CONFIG_COMMANDS section.
    5311 #
    5312 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    5313   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    5314   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5315 
    5316   case $ac_dest in
    5317     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
    5318   esac
    5319 done
    5320 EOF
    5321 
    5322 cat >>$CONFIG_STATUS <<\EOF
    5323 
    5324 { (exit 0); exit 0; }
     3060fi; done
     3061
     3062EOF
     3063cat >> $CONFIG_STATUS <<EOF
     3064
     3065EOF
     3066cat >> $CONFIG_STATUS <<\EOF
     3067test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
     3068exit 0
    53253069EOF
    53263070chmod +x $CONFIG_STATUS
    5327 ac_clean_files=$ac_clean_files_save
    5328 
    5329 # configure is writing to config.log, and then calls config.status.
    5330 # config.status does its own redirection, appending to config.log.
    5331 # Unfortunately, on DOS this fails, as config.log is still kept open
    5332 # by configure, so config.status won't be able to write to it; its
    5333 # output is simply discarded.  So we exec the FD to /dev/null,
    5334 # effectively closing config.log, so it can be properly (re)opened and
    5335 # appended to by config.status.  When coming back to configure, we
    5336 # need to make the FD available again.
    5337 if test "$no_create" != yes; then
    5338   ac_cs_success=:
    5339   exec 5>/dev/null
    5340   $SHELL $CONFIG_STATUS || ac_cs_success=false
    5341   exec 5>>config.log
    5342   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    5343   # would make configure fail if this is the last instruction.
    5344   $ac_cs_success || { (exit 1); exit 1; }
    5345 fi
    5346 
     3071rm -fr confdefs* $ac_clean_files
     3072test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     3073
  • trunk/gsdl/packages/mg/configure.in

    r3739 r3762  
    9595
    9696AC_OUTPUT([Makefile src/text/Makefile src/images/Makefile
    97           src/scripts/Makefile lib/Makefile
    98       jni/Makefile java/org/greenstone/mg/Makefile ],
     97          src/scripts/Makefile lib/Makefile ],
    9998[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
  • trunk/gsdl/packages/mg/lib/Makefile.in

    r3739 r3762  
    132132    $(RANLIB) libmg.a
    133133
    134 $(OBJECTS): ../config.h
     134$(OBJECTS): ../../../config.h
    135135
    136136gsdllibmg.a: $(LIB_OBJECTS)
  • trunk/gsdl/packages/mg/src/images/Makefile.in

    r3739 r3762  
    4646TOUCH = echo timestamp >
    4747 
    48 bindir = ../../../../bin
     48bindir = ../../../../bin/$(GSDLOS)
    4949datadir = $(prefix)/share
    5050libexecdir = $(exec_prefix)/libexec
  • trunk/gsdl/packages/mg/src/scripts/Makefile.in

    r3739 r3762  
    4141TOUCH = echo timestamp >
    4242 
    43 bindir = ../../../../bin
     43bindir = ../../../../bin/$(GSDLOS)
    4444datadir = $(prefix)/share
    4545libexecdir = $(exec_prefix)/libexec
  • trunk/gsdl/packages/mg/src/text/Makefile.in

    r3739 r3762  
    5858
    5959 
    60 bindir = ../../../../bin
     60bindir = ../../../../bin/$(GSDLOS)
    6161datadir = $(prefix)/share
    6262libexecdir = $(exec_prefix)/libexec
     
    345345    read_line$o mg_errors$o backend$o invf_get$o \
    346346    term_lists$o bool_tree$o bool_parser$o bool_optimiser$o \
    347     bool_query$o words$o
     347    bool_query$o
    348348
    349349libtextin.a: $(LIB_OBJS)
Note: See TracChangeset for help on using the changeset viewer.