Changeset 3173


Ignore:
Timestamp:
2002-06-24T11:32:19+12:00 (22 years ago)
Author:
jrm21
Message:

Removed un-used (and non-GPL compatible) CCL parser source code.

Location:
trunk/gsdl/packages/yaz
Files:
1 deleted
4 edited

Legend:

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

    r1865 r3173  
    5959have_sgml2txt = @have_sgml2txt@
    6060
    61 DIST_SUBDIRS = util odr z39.50 asn ill zutil comstack ccl tab retrieval server lib include client ztest doc
     61DIST_SUBDIRS = util odr z39.50 asn ill zutil comstack tab retrieval server lib include client ztest doc
    6262
    6363SUBDIRS = @SUBDIRS_VAR@
  • trunk/gsdl/packages/yaz/configure

    r1713 r3173  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by Autoconf 2.50.
    64#
     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 # Defaults:
    11 ac_help=
     10# Be Bourne compatible
     11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     12  emulate sh
     13  NULLCMD=:
     14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     15  set -o posix
     16fi
     17
     18# Name of the executable.
     19as_me=`echo "$0" |sed 's,.*[\\/],,'`
     20
     21if expr a : '\(a\)' >/dev/null 2>&1; then
     22  as_expr=expr
     23else
     24  as_expr=false
     25fi
     26
     27rm -f conf$$ conf$$.exe conf$$.file
     28echo >conf$$.file
     29if 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
     38elif ln conf$$.file conf$$ 2>/dev/null; then
     39  as_ln_s=ln
     40else
     41  as_ln_s='cp -p'
     42fi
     43rm -f conf$$ conf$$.exe conf$$.file
     44
     45as_executable_p="test -f"
     46
     47# Support unset when possible.
     48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     49  as_unset=unset
     50else
     51  as_unset=false
     52fi
     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.
     66as_nl='
     67'
     68IFS="   $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.
     76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     77
     78exec 6>&1
     79
     80#
     81# Initializations.
     82#
    1283ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --disable-comp          use old encoders, i.e. disable the YAZ ASN.1 Compiler"
    16 ac_help="$ac_help
    17   --enable-tcpd           enable TCP wrapper for server if available"
    18 ac_help="$ac_help
    19   --enable-threads        enable threads if available"
     84cross_compiling=no
     85subdirs=
     86MFLAGS= MAKEFLAGS=
     87SHELL=${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.
     95ac_cr_az='abcdefghijklmnopqrstuvwxyz'
     96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     97ac_cr_09='0123456789'
     98ac_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.
     101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
     102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
     103
     104ac_unique_file="include/yaz/yaz-version.h"
    20105
    21106# Initialize some variables set by options.
     107ac_init_help=
     108ac_init_version=false
    22109# The variables have the same names as the options, with
    23110# dashes changed to underlines.
    24 build=NONE
    25 cache_file=./config.cache
     111cache_file=/dev/null
    26112exec_prefix=NONE
    27 host=NONE
    28113no_create=
    29 nonopt=NONE
    30114no_recursion=
    31115prefix=NONE
     
    36120site=
    37121srcdir=
    38 target=NONE
    39122verbose=
    40123x_includes=NONE
    41124x_libraries=NONE
     125
     126# Installation directory options.
     127# These are left unexpanded so users can "make install exec_prefix=/foo"
     128# and all the variables that are supposed to be based on exec_prefix
     129# by default will actually change.
     130# Use braces instead of parens because sh, perl, etc. also accept them.
    42131bindir='${exec_prefix}/bin'
    43132sbindir='${exec_prefix}/sbin'
     
    53142mandir='${prefix}/man'
    54143
    55 # Initialize some other variables.
    56 subdirs=
    57 MFLAGS= MAKEFLAGS=
    58 SHELL=${CONFIG_SHELL-/bin/sh}
    59 # Maximum number of lines to put in a shell here document.
    60 ac_max_here_lines=12
     144# Identity of this package.
     145PACKAGE_NAME=
     146PACKAGE_TARNAME=
     147PACKAGE_VERSION=
     148PACKAGE_STRING=
     149PACKAGE_BUGREPORT=
    61150
    62151ac_prev=
    63152for ac_option
    64153do
    65 
    66154  # If the previous option needs an argument, assign it.
    67155  if test -n "$ac_prev"; then
     
    71159  fi
    72160
    73   case "$ac_option" in
    74   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    75   *) ac_optarg= ;;
    76   esac
     161  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    77162
    78163  # Accept the important Cygnus configure options, so we can diagnose typos.
    79164
    80   case "$ac_option" in
     165  case $ac_option in
    81166
    82167  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    83168    ac_prev=bindir ;;
    84169  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    85     bindir="$ac_optarg" ;;
     170    bindir=$ac_optarg ;;
    86171
    87172  -build | --build | --buil | --bui | --bu)
    88     ac_prev=build ;;
     173    ac_prev=build_alias ;;
    89174  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    90     build="$ac_optarg" ;;
     175    build_alias=$ac_optarg ;;
    91176
    92177  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    95180  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    96181  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    97     cache_file="$ac_optarg" ;;
     182    cache_file=$ac_optarg ;;
     183
     184  --config-cache | -C)
     185    cache_file=config.cache ;;
    98186
    99187  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    101189  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    102190  | --da=*)
    103     datadir="$ac_optarg" ;;
     191    datadir=$ac_optarg ;;
    104192
    105193  -disable-* | --disable-*)
    106     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     194    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    107195    # Reject names that are not valid shell variable names.
    108     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    109       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    110     fi
    111     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    112     eval "enable_${ac_feature}=no" ;;
     196    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     197      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     198   { (exit 1); exit 1; }; }
     199    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     200    eval "enable_$ac_feature=no" ;;
    113201
    114202  -enable-* | --enable-*)
    115     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     203    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    116204    # Reject names that are not valid shell variable names.
    117     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    118       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    119     fi
    120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    121     case "$ac_option" in
    122       *=*) ;;
     205    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     206      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     207   { (exit 1); exit 1; }; }
     208    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     209    case $ac_option in
     210      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    123211      *) ac_optarg=yes ;;
    124212    esac
    125     eval "enable_${ac_feature}='$ac_optarg'" ;;
     213    eval "enable_$ac_feature='$ac_optarg'" ;;
    126214
    127215  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    132220  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    133221  | --exec=* | --exe=* | --ex=*)
    134     exec_prefix="$ac_optarg" ;;
     222    exec_prefix=$ac_optarg ;;
    135223
    136224  -gas | --gas | --ga | --g)
     
    138226    with_gas=yes ;;
    139227
    140   -help | --help | --hel | --he)
    141     # Omit some internal or obsolete options to make the list less imposing.
    142     # This message is too long to be a string in the A/UX 3.1 sh.
    143     cat << EOF
    144 Usage: configure [options] [host]
    145 Options: [defaults in brackets after descriptions]
    146 Configuration:
    147   --cache-file=FILE       cache test results in FILE
    148   --help                  print this message
    149   --no-create             do not create output files
    150   --quiet, --silent       do not print \`checking...' messages
    151   --version               print the version of autoconf that created configure
    152 Directory and file names:
    153   --prefix=PREFIX         install architecture-independent files in PREFIX
    154                           [$ac_default_prefix]
    155   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    156                           [same as prefix]
    157   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    158   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    159   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    160   --datadir=DIR           read-only architecture-independent data in DIR
    161                           [PREFIX/share]
    162   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    163   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    164                           [PREFIX/com]
    165   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    166   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    167   --includedir=DIR        C header files in DIR [PREFIX/include]
    168   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    169   --infodir=DIR           info documentation in DIR [PREFIX/info]
    170   --mandir=DIR            man documentation in DIR [PREFIX/man]
    171   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    172   --program-prefix=PREFIX prepend PREFIX to installed program names
    173   --program-suffix=SUFFIX append SUFFIX to installed program names
    174   --program-transform-name=PROGRAM
    175                           run sed PROGRAM on installed program names
    176 EOF
    177     cat << EOF
    178 Host type:
    179   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    180   --host=HOST             configure for HOST [guessed]
    181   --target=TARGET         configure for TARGET [TARGET=HOST]
    182 Features and packages:
    183   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    184   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    185   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    186   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    187   --x-includes=DIR        X include files are in DIR
    188   --x-libraries=DIR       X library files are in DIR
    189 EOF
    190     if test -n "$ac_help"; then
    191       echo "--enable and --with options recognized:$ac_help"
    192     fi
    193     exit 0 ;;
     228  -help | --help | --hel | --he | -h)
     229    ac_init_help=long ;;
     230  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     231    ac_init_help=recursive ;;
     232  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     233    ac_init_help=short ;;
    194234
    195235  -host | --host | --hos | --ho)
    196     ac_prev=host ;;
     236    ac_prev=host_alias ;;
    197237  -host=* | --host=* | --hos=* | --ho=*)
    198     host="$ac_optarg" ;;
     238    host_alias=$ac_optarg ;;
    199239
    200240  -includedir | --includedir | --includedi | --included | --include \
     
    203243  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    204244  | --includ=* | --inclu=* | --incl=* | --inc=*)
    205     includedir="$ac_optarg" ;;
     245    includedir=$ac_optarg ;;
    206246
    207247  -infodir | --infodir | --infodi | --infod | --info | --inf)
    208248    ac_prev=infodir ;;
    209249  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    210     infodir="$ac_optarg" ;;
     250    infodir=$ac_optarg ;;
    211251
    212252  -libdir | --libdir | --libdi | --libd)
    213253    ac_prev=libdir ;;
    214254  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    215     libdir="$ac_optarg" ;;
     255    libdir=$ac_optarg ;;
    216256
    217257  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    220260  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    221261  | --libexe=* | --libex=* | --libe=*)
    222     libexecdir="$ac_optarg" ;;
     262    libexecdir=$ac_optarg ;;
    223263
    224264  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    229269  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    230270  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    231     localstatedir="$ac_optarg" ;;
     271    localstatedir=$ac_optarg ;;
    232272
    233273  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    234274    ac_prev=mandir ;;
    235275  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    236     mandir="$ac_optarg" ;;
     276    mandir=$ac_optarg ;;
    237277
    238278  -nfp | --nfp | --nf)
     
    255295  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    256296  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    257     oldincludedir="$ac_optarg" ;;
     297    oldincludedir=$ac_optarg ;;
    258298
    259299  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    260300    ac_prev=prefix ;;
    261301  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    262     prefix="$ac_optarg" ;;
     302    prefix=$ac_optarg ;;
    263303
    264304  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    267307  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    268308  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    269     program_prefix="$ac_optarg" ;;
     309    program_prefix=$ac_optarg ;;
    270310
    271311  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    274314  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    275315  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    276     program_suffix="$ac_optarg" ;;
     316    program_suffix=$ac_optarg ;;
    277317
    278318  -program-transform-name | --program-transform-name \
     
    291331  | --program-trans=* | --program-tran=* \
    292332  | --progr-tra=* | --program-tr=* | --program-t=*)
    293     program_transform_name="$ac_optarg" ;;
     333    program_transform_name=$ac_optarg ;;
    294334
    295335  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    301341  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    302342  | --sbi=* | --sb=*)
    303     sbindir="$ac_optarg" ;;
     343    sbindir=$ac_optarg ;;
    304344
    305345  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    312352  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    313353  | --sha=* | --sh=*)
    314     sharedstatedir="$ac_optarg" ;;
     354    sharedstatedir=$ac_optarg ;;
    315355
    316356  -site | --site | --sit)
    317357    ac_prev=site ;;
    318358  -site=* | --site=* | --sit=*)
    319     site="$ac_optarg" ;;
     359    site=$ac_optarg ;;
    320360
    321361  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    322362    ac_prev=srcdir ;;
    323363  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    324     srcdir="$ac_optarg" ;;
     364    srcdir=$ac_optarg ;;
    325365
    326366  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    329369  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    330370  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    331     sysconfdir="$ac_optarg" ;;
     371    sysconfdir=$ac_optarg ;;
    332372
    333373  -target | --target | --targe | --targ | --tar | --ta | --t)
    334     ac_prev=target ;;
     374    ac_prev=target_alias ;;
    335375  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    336     target="$ac_optarg" ;;
     376    target_alias=$ac_optarg ;;
    337377
    338378  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    339379    verbose=yes ;;
    340380
    341   -version | --version | --versio | --versi | --vers)
    342     echo "configure generated by autoconf version 2.13"
    343     exit 0 ;;
     381  -version | --version | --versio | --versi | --vers | -V)
     382    ac_init_version=: ;;
    344383
    345384  -with-* | --with-*)
    346     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     385    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    347386    # Reject names that are not valid shell variable names.
    348     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    349       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    350     fi
     387    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     388      { echo "$as_me: error: invalid package name: $ac_package" >&2
     389   { (exit 1); exit 1; }; }
    351390    ac_package=`echo $ac_package| sed 's/-/_/g'`
    352     case "$ac_option" in
    353       *=*) ;;
     391    case $ac_option in
     392      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    354393      *) ac_optarg=yes ;;
    355394    esac
    356     eval "with_${ac_package}='$ac_optarg'" ;;
     395    eval "with_$ac_package='$ac_optarg'" ;;
    357396
    358397  -without-* | --without-*)
    359     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     398    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    360399    # Reject names that are not valid shell variable names.
    361     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    362       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    363     fi
    364     ac_package=`echo $ac_package| sed 's/-/_/g'`
    365     eval "with_${ac_package}=no" ;;
     400    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
     401      { echo "$as_me: error: invalid package name: $ac_package" >&2
     402   { (exit 1); exit 1; }; }
     403    ac_package=`echo $ac_package | sed 's/-/_/g'`
     404    eval "with_$ac_package=no" ;;
    366405
    367406  --x)
     
    374413  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    375414  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    376     x_includes="$ac_optarg" ;;
     415    x_includes=$ac_optarg ;;
    377416
    378417  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    381420  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    382421  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    383     x_libraries="$ac_optarg" ;;
    384 
    385   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     422    x_libraries=$ac_optarg ;;
     423
     424  -*) { echo "$as_me: error: unrecognized option: $ac_option
     425Try \`$0 --help' for more information." >&2
     426   { (exit 1); exit 1; }; }
    386427    ;;
    387428
     429  *=*)
     430    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     431    # Reject names that are not valid shell variable names.
     432    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
     433      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     434   { (exit 1); exit 1; }; }
     435    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     436    eval "$ac_envvar='$ac_optarg'"
     437    export $ac_envvar ;;
     438
    388439  *)
    389     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    390       echo "configure: warning: $ac_option: invalid host type" 1>&2
    391     fi
    392     if test "x$nonopt" != xNONE; then
    393       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    394     fi
    395     nonopt="$ac_option"
     440    # FIXME: should be removed in autoconf 3.0.
     441    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     442    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
     443      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     444    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    396445    ;;
    397446
     
    400449
    401450if test -n "$ac_prev"; then
    402   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    403 fi
    404 
    405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    406 
    407 # File descriptor usage:
    408 # 0 standard input
    409 # 1 file creation
    410 # 2 errors and warnings
    411 # 3 some systems may open it to /dev/tty
    412 # 4 used on the Kubota Titan
    413 # 6 checking for... messages and results
    414 # 5 compiler messages saved in config.log
    415 if test "$silent" = yes; then
    416   exec 6>/dev/null
    417 else
    418   exec 6>&1
    419 fi
    420 exec 5>./config.log
    421 
    422 echo "\
    423 This file contains any messages produced by compilers while
    424 running configure, to aid debugging if configure makes a mistake.
    425 " 1>&5
    426 
    427 # Strip out --no-create and --no-recursion so they do not pile up.
    428 # Also quote any args containing shell metacharacters.
    429 ac_configure_args=
    430 for ac_arg
     451  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     452  { echo "$as_me: error: missing argument to $ac_option" >&2
     453   { (exit 1); exit 1; }; }
     454fi
     455
     456# Be sure to have absolute paths.
     457for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     458              localstatedir libdir includedir oldincludedir infodir mandir \
     459              exec_prefix prefix
    431460do
    432   case "$ac_arg" in
    433   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    434   | --no-cr | --no-c) ;;
    435   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    436   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    437   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    438   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    439   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     461  eval ac_val=$`echo $ac_var`
     462  case $ac_val in
     463    [\\/$]* | ?:[\\/]* ) ;;
     464    NONE ) ;;
     465    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     466   { (exit 1); exit 1; }; };;
    440467  esac
    441468done
    442469
    443 # NLS nuisances.
    444 # Only set these to C if already set.  These must not be set unconditionally
    445 # because not all systems understand e.g. LANG=C (notably SCO).
    446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    447 # Non-C LC_CTYPE values break the ctype check.
    448 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    451 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    452 
    453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    454 rm -rf conftest* confdefs.h
    455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    456 echo > confdefs.h
    457 
    458 # A filename unique to this package, relative to the directory that
    459 # configure is in, which we can look for to find out if srcdir is correct.
    460 ac_unique_file=include/yaz/yaz-version.h
     470# There might be people who depend on the old broken behavior: `$host'
     471# used to hold the argument of --host etc.
     472build=$build_alias
     473host=$host_alias
     474target=$target_alias
     475
     476# FIXME: should be removed in autoconf 3.0.
     477if test "x$host_alias" != x; then
     478  if test "x$build_alias" = x; then
     479    cross_compiling=maybe
     480    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     481    If a cross compiler is detected then cross compile mode will be used." >&2
     482  elif test "x$build_alias" != "x$host_alias"; then
     483    cross_compiling=yes
     484  fi
     485fi
     486
     487ac_tool_prefix=
     488test -n "$host_alias" && ac_tool_prefix=$host_alias-
     489
     490test "$silent" = yes && exec 6>/dev/null
    461491
    462492# Find the source files, if location was not specified.
     
    465495  # Try the directory containing this script, then its parent.
    466496  ac_prog=$0
    467   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     497  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    468498  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    469499  srcdir=$ac_confdir
     
    476506if test ! -r $srcdir/$ac_unique_file; then
    477507  if test "$ac_srcdir_defaulted" = yes; then
    478     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     508    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     509   { (exit 1); exit 1; }; }
    479510  else
    480     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     511    { echo "$as_me: error: cannot find sources in $srcdir" >&2
     512   { (exit 1); exit 1; }; }
    481513  fi
    482514fi
    483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    484 
     515srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     516ac_env_build_alias_set=${build_alias+set}
     517ac_env_build_alias_value=$build_alias
     518ac_cv_env_build_alias_set=${build_alias+set}
     519ac_cv_env_build_alias_value=$build_alias
     520ac_env_host_alias_set=${host_alias+set}
     521ac_env_host_alias_value=$host_alias
     522ac_cv_env_host_alias_set=${host_alias+set}
     523ac_cv_env_host_alias_value=$host_alias
     524ac_env_target_alias_set=${target_alias+set}
     525ac_env_target_alias_value=$target_alias
     526ac_cv_env_target_alias_set=${target_alias+set}
     527ac_cv_env_target_alias_value=$target_alias
     528ac_env_CC_set=${CC+set}
     529ac_env_CC_value=$CC
     530ac_cv_env_CC_set=${CC+set}
     531ac_cv_env_CC_value=$CC
     532ac_env_CFLAGS_set=${CFLAGS+set}
     533ac_env_CFLAGS_value=$CFLAGS
     534ac_cv_env_CFLAGS_set=${CFLAGS+set}
     535ac_cv_env_CFLAGS_value=$CFLAGS
     536ac_env_LDFLAGS_set=${LDFLAGS+set}
     537ac_env_LDFLAGS_value=$LDFLAGS
     538ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     539ac_cv_env_LDFLAGS_value=$LDFLAGS
     540ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     541ac_env_CPPFLAGS_value=$CPPFLAGS
     542ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     543ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     544ac_env_CPP_set=${CPP+set}
     545ac_env_CPP_value=$CPP
     546ac_cv_env_CPP_set=${CPP+set}
     547ac_cv_env_CPP_value=$CPP
     548
     549#
     550# Report the --help message.
     551#
     552if test "$ac_init_help" = "long"; then
     553  # Omit some internal or obsolete options to make the list less imposing.
     554  # This message is too long to be a string in the A/UX 3.1 sh.
     555  cat <<EOF
     556\`configure' configures this package to adapt to many kinds of systems.
     557
     558Usage: $0 [OPTION]... [VAR=VALUE]...
     559
     560To assign environment variables (e.g., CC, CFLAGS...), specify them as
     561VAR=VALUE.  See below for descriptions of some of the useful variables.
     562
     563Defaults for the options are specified in brackets.
     564
     565Configuration:
     566  -h, --help              display this help and exit
     567      --help=short        display options specific to this package
     568      --help=recursive    display the short help of all the included packages
     569  -V, --version           display version information and exit
     570  -q, --quiet, --silent   do not print \`checking...' messages
     571      --cache-file=FILE   cache test results in FILE [disabled]
     572  -C, --config-cache      alias for \`--cache-file=config.cache'
     573  -n, --no-create         do not create output files
     574      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     575
     576EOF
     577
     578  cat <<EOF
     579Installation directories:
     580  --prefix=PREFIX         install architecture-independent files in PREFIX
     581                          [$ac_default_prefix]
     582  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     583                          [PREFIX]
     584
     585By default, \`make install' will install all the files in
     586\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     587an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     588for instance \`--prefix=\$HOME'.
     589
     590For better control, use the options below.
     591
     592Fine tuning of the installation directories:
     593  --bindir=DIR           user executables [EPREFIX/bin]
     594  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     595  --libexecdir=DIR       program executables [EPREFIX/libexec]
     596  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     597  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     598  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     599  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     600  --libdir=DIR           object code libraries [EPREFIX/lib]
     601  --includedir=DIR       C header files [PREFIX/include]
     602  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     603  --infodir=DIR          info documentation [PREFIX/info]
     604  --mandir=DIR           man documentation [PREFIX/man]
     605EOF
     606
     607  cat <<\EOF
     608EOF
     609fi
     610
     611if test -n "$ac_init_help"; then
     612
     613  cat <<\EOF
     614
     615Optional Features:
     616  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     617  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     618  --disable-comp          use old encoders, i.e. disable the YAZ ASN.1 Compiler
     619  --enable-tcpd           enable TCP wrapper for server if available
     620  --enable-threads        enable threads if available
     621
     622Some influential environment variables:
     623  CC          C compiler command
     624  CFLAGS      C compiler flags
     625  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     626              nonstandard directory <lib dir>
     627  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     628              headers in a nonstandard directory <include dir>
     629  CPP         C preprocessor
     630
     631Use these variables to override the choices made by `configure' or to help
     632it to find libraries and programs with nonstandard names/locations.
     633
     634EOF
     635fi
     636
     637if test "$ac_init_help" = "recursive"; then
     638  # If there are subdirs, report their specific --help.
     639  ac_popdir=`pwd`
     640  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     641    cd $ac_subdir
     642    # A "../" for each directory in /$ac_subdir.
     643    ac_dots=`echo $ac_subdir |
     644             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     645
     646    case $srcdir in
     647    .) # No --srcdir option.  We are building in place.
     648      ac_sub_srcdir=$srcdir ;;
     649    [\\/]* | ?:[\\/]* ) # Absolute path.
     650      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     651    *) # Relative path.
     652      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     653    esac
     654
     655    # Check for guested configure; otherwise get Cygnus style configure.
     656    if test -f $ac_sub_srcdir/configure.gnu; then
     657      echo
     658      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     659    elif test -f $ac_sub_srcdir/configure; then
     660      echo
     661      $SHELL $ac_sub_srcdir/configure  --help=recursive
     662    elif test -f $ac_sub_srcdir/configure.ac ||
     663           test -f $ac_sub_srcdir/configure.in; then
     664      echo
     665      $ac_configure --help
     666    else
     667      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     668    fi
     669    cd $ac_popdir
     670  done
     671fi
     672
     673test -n "$ac_init_help" && exit 0
     674if $ac_init_version; then
     675  cat <<\EOF
     676
     677Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     678Free Software Foundation, Inc.
     679This configure script is free software; the Free Software Foundation
     680gives unlimited permission to copy, distribute and modify it.
     681EOF
     682  exit 0
     683fi
     684exec 5>config.log
     685cat >&5 <<EOF
     686This file contains any messages produced by compilers while
     687running configure, to aid debugging if configure makes a mistake.
     688
     689It was created by $as_me, which was
     690generated by GNU Autoconf 2.50.  Invocation command line was
     691
     692  $ $0 $@
     693
     694EOF
     695{
     696cat <<_ASUNAME
     697## ---------- ##
     698## Platform.  ##
     699## ---------- ##
     700
     701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     702uname -m = `(uname -m) 2>/dev/null || echo unknown`
     703uname -r = `(uname -r) 2>/dev/null || echo unknown`
     704uname -s = `(uname -s) 2>/dev/null || echo unknown`
     705uname -v = `(uname -v) 2>/dev/null || echo unknown`
     706
     707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     708/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     709
     710/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     711/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     713hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     714/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     715/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     716/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     717
     718PATH = $PATH
     719
     720_ASUNAME
     721} >&5
     722
     723cat >&5 <<EOF
     724## ------------ ##
     725## Core tests.  ##
     726## ------------ ##
     727
     728EOF
     729
     730# Keep a trace of the command line.
     731# Strip out --no-create and --no-recursion so they do not pile up.
     732# Also quote any args containing shell meta-characters.
     733ac_configure_args=
     734ac_sep=
     735for ac_arg
     736do
     737  case $ac_arg in
     738  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     739  | --no-cr | --no-c) ;;
     740  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     741  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     742  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     743    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     744    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     745    ac_sep=" " ;;
     746  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     747     ac_sep=" " ;;
     748  esac
     749  # Get rid of the leading space.
     750done
     751
     752# When interrupted or exit'd, cleanup temporary files, and complete
     753# config.log.  We remove comments because anyway the quotes in there
     754# would cause problems or look ugly.
     755trap 'exit_status=$?
     756  # Save into config.log some information that might help in debugging.
     757  echo >&5
     758  echo "## ----------------- ##" >&5
     759  echo "## Cache variables.  ##" >&5
     760  echo "## ----------------- ##" >&5
     761  echo >&5
     762  # The following way of writing the cache mishandles newlines in values,
     763{
     764  (set) 2>&1 |
     765    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     766    *ac_space=\ *)
     767      sed -n \
     768        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     769          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     770      ;;
     771    *)
     772      sed -n \
     773        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     774      ;;
     775    esac;
     776} >&5
     777  sed "/^$/d" confdefs.h >conftest.log
     778  if test -s conftest.log; then
     779    echo >&5
     780    echo "## ------------ ##" >&5
     781    echo "## confdefs.h.  ##" >&5
     782    echo "## ------------ ##" >&5
     783    echo >&5
     784    cat conftest.log >&5
     785  fi
     786  (echo; echo) >&5
     787  test "$ac_signal" != 0 &&
     788    echo "$as_me: caught signal $ac_signal" >&5
     789  echo "$as_me: exit $exit_status" >&5
     790  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     791    exit $exit_status
     792     ' 0
     793for ac_signal in 1 2 13 15; do
     794  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
     795done
     796ac_signal=0
     797
     798# confdefs.h avoids OS command line length limits that DEFS can exceed.
     799rm -rf conftest* confdefs.h
     800# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     801echo >confdefs.h
     802
     803# Let the site file select an alternate cache file if it wants to.
    485804# Prefer explicitly selected file to automatically selected ones.
    486805if test -z "$CONFIG_SITE"; then
     
    493812for ac_site_file in $CONFIG_SITE; do
    494813  if test -r "$ac_site_file"; then
    495     echo "loading site script $ac_site_file"
     814    { echo "$as_me:814: loading site script $ac_site_file" >&5
     815echo "$as_me: loading site script $ac_site_file" >&6;}
     816    cat "$ac_site_file" >&5
    496817    . "$ac_site_file"
    497818  fi
     
    499820
    500821if test -r "$cache_file"; then
    501   echo "loading cache $cache_file"
    502   . $cache_file
    503 else
    504   echo "creating cache $cache_file"
    505   > $cache_file
     822  # Some versions of bash will fail to source /dev/null (special
     823  # files actually), so we avoid doing that.
     824  if test -f "$cache_file"; then
     825    { echo "$as_me:825: loading cache $cache_file" >&5
     826echo "$as_me: loading cache $cache_file" >&6;}
     827    case $cache_file in
     828      [\\/]* | ?:[\\/]* ) . $cache_file;;
     829      *)                      . ./$cache_file;;
     830    esac
     831  fi
     832else
     833  { echo "$as_me:833: creating cache $cache_file" >&5
     834echo "$as_me: creating cache $cache_file" >&6;}
     835  >$cache_file
     836fi
     837
     838# Check that the precious variables saved in the cache have kept the same
     839# value.
     840ac_suggest_removing_cache=false
     841for ac_var in `(set) 2>&1 |
     842               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     843  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     844  eval ac_new_set=\$ac_env_${ac_var}_set
     845  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     846  eval ac_new_val="\$ac_env_${ac_var}_value"
     847  case $ac_old_set,$ac_new_set in
     848    set,)
     849      { echo "$as_me:849: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     850echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     851      ac_suggest_removing_cache=: ;;
     852    ,set)
     853      { echo "$as_me:853: WARNING: \`$ac_var' was not set in the previous run" >&5
     854echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
     855      ac_suggest_removing_cache=: ;;
     856    ,);;
     857    *)
     858      if test "x$ac_old_val" != "x$ac_new_val"; then
     859        { echo "$as_me:859: WARNING: \`$ac_var' has changed since the previous run:" >&5
     860echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
     861        { echo "$as_me:861: WARNING:   former value:  $ac_old_val" >&5
     862echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
     863        { echo "$as_me:863: WARNING:   current value: $ac_new_val" >&5
     864echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
     865        ac_suggest_removing_cache=:
     866      fi;;
     867  esac
     868done
     869if $ac_suggest_removing_cache; then
     870  { echo "$as_me:870: WARNING: changes in the environment can compromise the build" >&5
     871echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
     872  { echo "$as_me:872: WARNING: consider removing $cache_file and starting over" >&5
     873echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
    506874fi
    507875
    508876ac_ext=c
    509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    510877ac_cpp='$CPP $CPPFLAGS'
    511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    513 cross_compiling=$ac_cv_prog_cc_cross
    514 
    515 ac_exeext=
    516 ac_objext=o
    517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    518   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
    519   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    520     ac_n= ac_c='
    521 ' ac_t='    '
    522   else
    523     ac_n=-n ac_c= ac_t=
    524   fi
    525 else
    526   ac_n= ac_c='\c' ac_t=
    527 fi
    528 
    529 
    530 # Extract the first word of "gcc", so it can be a program name with args.
    531 set dummy gcc; ac_word=$2
    532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    533 echo "configure:534: checking for $ac_word" >&5
    534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    535   echo $ac_n "(cached) $ac_c" 1>&6
     878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     880ac_compiler_gnu=$ac_cv_c_compiler_gnu
     881
     882case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     883  *c*,-n*) ECHO_N= ECHO_C='
     884' ECHO_T='  ' ;;
     885  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     886  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     887esac
     888echo "#! $SHELL" >conftest.sh
     889echo  "exit 0"   >>conftest.sh
     890chmod +x conftest.sh
     891if { (echo "$as_me:891: PATH=\".;.\"; conftest.sh") >&5
     892  (PATH=".;."; conftest.sh) 2>&5
     893  ac_status=$?
     894  echo "$as_me:894: \$? = $ac_status" >&5
     895  (exit $ac_status); }; then
     896  ac_path_separator=';'
     897else
     898  ac_path_separator=:
     899fi
     900PATH_SEPARATOR="$ac_path_separator"
     901rm -f conftest.sh
     902
     903ac_ext=c
     904ac_cpp='$CPP $CPPFLAGS'
     905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     907ac_compiler_gnu=$ac_cv_c_compiler_gnu
     908if test -n "$ac_tool_prefix"; then
     909  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     910set dummy ${ac_tool_prefix}gcc; ac_word=$2
     911echo "$as_me:911: checking for $ac_word" >&5
     912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     913if test "${ac_cv_prog_CC+set}" = set; then
     914  echo $ECHO_N "(cached) $ECHO_C" >&6
    536915else
    537916  if test -n "$CC"; then
    538917  ac_cv_prog_CC="$CC" # Let the user override the test.
    539918else
    540   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    541   ac_dummy="$PATH"
    542   for ac_dir in $ac_dummy; do
    543     test -z "$ac_dir" && ac_dir=.
    544     if test -f $ac_dir/$ac_word; then
    545       ac_cv_prog_CC="gcc"
    546       break
    547     fi
    548   done
    549   IFS="$ac_save_ifs"
    550 fi
    551 fi
    552 CC="$ac_cv_prog_CC"
     919  ac_save_IFS=$IFS; IFS=$ac_path_separator
     920ac_dummy="$PATH"
     921for ac_dir in $ac_dummy; do
     922  IFS=$ac_save_IFS
     923  test -z "$ac_dir" && ac_dir=.
     924  $as_executable_p "$ac_dir/$ac_word" || continue
     925ac_cv_prog_CC="${ac_tool_prefix}gcc"
     926echo "$as_me:926: found $ac_dir/$ac_word" >&5
     927break
     928done
     929
     930fi
     931fi
     932CC=$ac_cv_prog_CC
    553933if test -n "$CC"; then
    554   echo "$ac_t""$CC" 1>&6
    555 else
    556   echo "$ac_t""no" 1>&6
    557 fi
    558 
     934  echo "$as_me:934: result: $CC" >&5
     935echo "${ECHO_T}$CC" >&6
     936else
     937  echo "$as_me:937: result: no" >&5
     938echo "${ECHO_T}no" >&6
     939fi
     940
     941fi
     942if test -z "$ac_cv_prog_CC"; then
     943  ac_ct_CC=$CC
     944  # Extract the first word of "gcc", so it can be a program name with args.
     945set dummy gcc; ac_word=$2
     946echo "$as_me:946: checking for $ac_word" >&5
     947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     949  echo $ECHO_N "(cached) $ECHO_C" >&6
     950else
     951  if test -n "$ac_ct_CC"; then
     952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     953else
     954  ac_save_IFS=$IFS; IFS=$ac_path_separator
     955ac_dummy="$PATH"
     956for ac_dir in $ac_dummy; do
     957  IFS=$ac_save_IFS
     958  test -z "$ac_dir" && ac_dir=.
     959  $as_executable_p "$ac_dir/$ac_word" || continue
     960ac_cv_prog_ac_ct_CC="gcc"
     961echo "$as_me:961: found $ac_dir/$ac_word" >&5
     962break
     963done
     964
     965fi
     966fi
     967ac_ct_CC=$ac_cv_prog_ac_ct_CC
     968if test -n "$ac_ct_CC"; then
     969  echo "$as_me:969: result: $ac_ct_CC" >&5
     970echo "${ECHO_T}$ac_ct_CC" >&6
     971else
     972  echo "$as_me:972: result: no" >&5
     973echo "${ECHO_T}no" >&6
     974fi
     975
     976  CC=$ac_ct_CC
     977else
     978  CC="$ac_cv_prog_CC"
     979fi
     980
     981if test -z "$CC"; then
     982  if test -n "$ac_tool_prefix"; then
     983  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     984set dummy ${ac_tool_prefix}cc; ac_word=$2
     985echo "$as_me:985: checking for $ac_word" >&5
     986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     987if test "${ac_cv_prog_CC+set}" = set; then
     988  echo $ECHO_N "(cached) $ECHO_C" >&6
     989else
     990  if test -n "$CC"; then
     991  ac_cv_prog_CC="$CC" # Let the user override the test.
     992else
     993  ac_save_IFS=$IFS; IFS=$ac_path_separator
     994ac_dummy="$PATH"
     995for ac_dir in $ac_dummy; do
     996  IFS=$ac_save_IFS
     997  test -z "$ac_dir" && ac_dir=.
     998  $as_executable_p "$ac_dir/$ac_word" || continue
     999ac_cv_prog_CC="${ac_tool_prefix}cc"
     1000echo "$as_me:1000: found $ac_dir/$ac_word" >&5
     1001break
     1002done
     1003
     1004fi
     1005fi
     1006CC=$ac_cv_prog_CC
     1007if test -n "$CC"; then
     1008  echo "$as_me:1008: result: $CC" >&5
     1009echo "${ECHO_T}$CC" >&6
     1010else
     1011  echo "$as_me:1011: result: no" >&5
     1012echo "${ECHO_T}no" >&6
     1013fi
     1014
     1015fi
     1016if test -z "$ac_cv_prog_CC"; then
     1017  ac_ct_CC=$CC
     1018  # Extract the first word of "cc", so it can be a program name with args.
     1019set dummy cc; ac_word=$2
     1020echo "$as_me:1020: checking for $ac_word" >&5
     1021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1023  echo $ECHO_N "(cached) $ECHO_C" >&6
     1024else
     1025  if test -n "$ac_ct_CC"; then
     1026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1027else
     1028  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1029ac_dummy="$PATH"
     1030for ac_dir in $ac_dummy; do
     1031  IFS=$ac_save_IFS
     1032  test -z "$ac_dir" && ac_dir=.
     1033  $as_executable_p "$ac_dir/$ac_word" || continue
     1034ac_cv_prog_ac_ct_CC="cc"
     1035echo "$as_me:1035: found $ac_dir/$ac_word" >&5
     1036break
     1037done
     1038
     1039fi
     1040fi
     1041ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1042if test -n "$ac_ct_CC"; then
     1043  echo "$as_me:1043: result: $ac_ct_CC" >&5
     1044echo "${ECHO_T}$ac_ct_CC" >&6
     1045else
     1046  echo "$as_me:1046: result: no" >&5
     1047echo "${ECHO_T}no" >&6
     1048fi
     1049
     1050  CC=$ac_ct_CC
     1051else
     1052  CC="$ac_cv_prog_CC"
     1053fi
     1054
     1055fi
    5591056if test -z "$CC"; then
    5601057  # Extract the first word of "cc", so it can be a program name with args.
    5611058set dummy cc; ac_word=$2
    562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    563 echo "configure:564: checking for $ac_word" >&5
    564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    565   echo $ac_n "(cached) $ac_c" 1>&6
     1059echo "$as_me:1059: checking for $ac_word" >&5
     1060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1061if test "${ac_cv_prog_CC+set}" = set; then
     1062  echo $ECHO_N "(cached) $ECHO_C" >&6
    5661063else
    5671064  if test -n "$CC"; then
    5681065  ac_cv_prog_CC="$CC" # Let the user override the test.
    5691066else
    570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    5711067  ac_prog_rejected=no
    572   ac_dummy="$PATH"
    573   for ac_dir in $ac_dummy; do
    574     test -z "$ac_dir" && ac_dir=.
    575     if test -f $ac_dir/$ac_word; then
    576       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    577         ac_prog_rejected=yes
    578     continue
    579       fi
    580       ac_cv_prog_CC="cc"
    581       break
    582     fi
    583   done
    584   IFS="$ac_save_ifs"
     1068  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1069ac_dummy="$PATH"
     1070for ac_dir in $ac_dummy; do
     1071  IFS=$ac_save_IFS
     1072  test -z "$ac_dir" && ac_dir=.
     1073  $as_executable_p "$ac_dir/$ac_word" || continue
     1074if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1075  ac_prog_rejected=yes
     1076  continue
     1077fi
     1078ac_cv_prog_CC="cc"
     1079echo "$as_me:1079: found $ac_dir/$ac_word" >&5
     1080break
     1081done
     1082
    5851083if test $ac_prog_rejected = yes; then
    5861084  # We found a bogon in the path, so make sure we never use it.
    5871085  set dummy $ac_cv_prog_CC
    5881086  shift
    589   if test $# -gt 0; then
     1087  if test $# != 0; then
    5901088    # We chose a different compiler from the bogus one.
    5911089    # However, it has the same basename, so the bogon will be chosen
    5921090    # first if we set CC to just the basename; use the full file name.
    5931091    shift
    594     set dummy "$ac_dir/$ac_word" "$@"
     1092    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    5951093    shift
    5961094    ac_cv_prog_CC="$@"
     
    5991097fi
    6001098fi
    601 CC="$ac_cv_prog_CC"
     1099CC=$ac_cv_prog_CC
    6021100if test -n "$CC"; then
    603   echo "$ac_t""$CC" 1>&6
    604 else
    605   echo "$ac_t""no" 1>&6
    606 fi
    607 
    608   if test -z "$CC"; then
    609     case "`uname -s`" in
    610     *win32* | *WIN32*)
    611       # Extract the first word of "cl", so it can be a program name with args.
    612 set dummy cl; ac_word=$2
    613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    614 echo "configure:615: checking for $ac_word" >&5
    615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    616   echo $ac_n "(cached) $ac_c" 1>&6
     1101  echo "$as_me:1101: result: $CC" >&5
     1102echo "${ECHO_T}$CC" >&6
     1103else
     1104  echo "$as_me:1104: result: no" >&5
     1105echo "${ECHO_T}no" >&6
     1106fi
     1107
     1108fi
     1109if test -z "$CC"; then
     1110  if test -n "$ac_tool_prefix"; then
     1111  for ac_prog in cl
     1112  do
     1113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1115echo "$as_me:1115: checking for $ac_word" >&5
     1116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1117if test "${ac_cv_prog_CC+set}" = set; then
     1118  echo $ECHO_N "(cached) $ECHO_C" >&6
    6171119else
    6181120  if test -n "$CC"; then
    6191121  ac_cv_prog_CC="$CC" # Let the user override the test.
    6201122else
    621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    622   ac_dummy="$PATH"
    623   for ac_dir in $ac_dummy; do
    624     test -z "$ac_dir" && ac_dir=.
    625     if test -f $ac_dir/$ac_word; then
    626       ac_cv_prog_CC="cl"
    627       break
     1123  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1124ac_dummy="$PATH"
     1125for ac_dir in $ac_dummy; do
     1126  IFS=$ac_save_IFS
     1127  test -z "$ac_dir" && ac_dir=.
     1128  $as_executable_p "$ac_dir/$ac_word" || continue
     1129ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1130echo "$as_me:1130: found $ac_dir/$ac_word" >&5
     1131break
     1132done
     1133
     1134fi
     1135fi
     1136CC=$ac_cv_prog_CC
     1137if test -n "$CC"; then
     1138  echo "$as_me:1138: result: $CC" >&5
     1139echo "${ECHO_T}$CC" >&6
     1140else
     1141  echo "$as_me:1141: result: no" >&5
     1142echo "${ECHO_T}no" >&6
     1143fi
     1144
     1145    test -n "$CC" && break
     1146  done
     1147fi
     1148if test -z "$CC"; then
     1149  ac_ct_CC=$CC
     1150  for ac_prog in cl
     1151do
     1152  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1153set dummy $ac_prog; ac_word=$2
     1154echo "$as_me:1154: checking for $ac_word" >&5
     1155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1157  echo $ECHO_N "(cached) $ECHO_C" >&6
     1158else
     1159  if test -n "$ac_ct_CC"; then
     1160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1161else
     1162  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1163ac_dummy="$PATH"
     1164for ac_dir in $ac_dummy; do
     1165  IFS=$ac_save_IFS
     1166  test -z "$ac_dir" && ac_dir=.
     1167  $as_executable_p "$ac_dir/$ac_word" || continue
     1168ac_cv_prog_ac_ct_CC="$ac_prog"
     1169echo "$as_me:1169: found $ac_dir/$ac_word" >&5
     1170break
     1171done
     1172
     1173fi
     1174fi
     1175ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1176if test -n "$ac_ct_CC"; then
     1177  echo "$as_me:1177: result: $ac_ct_CC" >&5
     1178echo "${ECHO_T}$ac_ct_CC" >&6
     1179else
     1180  echo "$as_me:1180: result: no" >&5
     1181echo "${ECHO_T}no" >&6
     1182fi
     1183
     1184  test -n "$ac_ct_CC" && break
     1185done
     1186
     1187  CC=$ac_ct_CC
     1188fi
     1189
     1190fi
     1191
     1192test -z "$CC" && { { echo "$as_me:1192: error: no acceptable cc found in \$PATH" >&5
     1193echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1194   { (exit 1); exit 1; }; }
     1195
     1196cat >conftest.$ac_ext <<_ACEOF
     1197#line 1197 "configure"
     1198#include "confdefs.h"
     1199
     1200int
     1201main ()
     1202{
     1203
     1204  ;
     1205  return 0;
     1206}
     1207_ACEOF
     1208ac_clean_files_save=$ac_clean_files
     1209ac_clean_files="$ac_clean_files a.out a.exe"
     1210# Try to create an executable without -o first, disregard a.out.
     1211# It will help us diagnose broken compiler, and finding out an intuition
     1212# of exeext.
     1213echo "$as_me:1213: checking for C compiler default output" >&5
     1214echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
     1215ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1216if { (eval echo "$as_me:1216: \"$ac_link_default\"") >&5
     1217  (eval $ac_link_default) 2>&5
     1218  ac_status=$?
     1219  echo "$as_me:1219: \$? = $ac_status" >&5
     1220  (exit $ac_status); }; then
     1221  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
     1222  case $ac_file in
     1223    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1224    a.out ) # We found the default executable, but exeext='' is most
     1225            # certainly right.
     1226            break;;
     1227    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1228          export ac_cv_exeext
     1229          break;;
     1230    * ) break;;
     1231  esac
     1232done
     1233else
     1234  echo "$as_me: failed program was:" >&5
     1235cat conftest.$ac_ext >&5
     1236{ { echo "$as_me:1236: error: C compiler cannot create executables" >&5
     1237echo "$as_me: error: C compiler cannot create executables" >&2;}
     1238   { (exit 77); exit 77; }; }
     1239fi
     1240
     1241ac_exeext=$ac_cv_exeext
     1242echo "$as_me:1242: result: $ac_file" >&5
     1243echo "${ECHO_T}$ac_file" >&6
     1244
     1245# Check the compiler produces executables we can run.  If not, either
     1246# the compiler is broken, or we cross compile.
     1247echo "$as_me:1247: checking whether the C compiler works" >&5
     1248echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1249# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1250# If not cross compiling, check that we can run a simple program.
     1251if test "$cross_compiling" != yes; then
     1252  if { ac_try='./$ac_file'
     1253  { (eval echo "$as_me:1253: \"$ac_try\"") >&5
     1254  (eval $ac_try) 2>&5
     1255  ac_status=$?
     1256  echo "$as_me:1256: \$? = $ac_status" >&5
     1257  (exit $ac_status); }; }; then
     1258    cross_compiling=no
     1259  else
     1260    if test "$cross_compiling" = maybe; then
     1261    cross_compiling=yes
     1262    else
     1263    { { echo "$as_me:1263: error: cannot run C compiled programs.
     1264If you meant to cross compile, use \`--host'." >&5
     1265echo "$as_me: error: cannot run C compiled programs.
     1266If you meant to cross compile, use \`--host'." >&2;}
     1267   { (exit 1); exit 1; }; }
    6281268    fi
    629   done
    630   IFS="$ac_save_ifs"
    631 fi
    632 fi
    633 CC="$ac_cv_prog_CC"
    634 if test -n "$CC"; then
    635   echo "$ac_t""$CC" 1>&6
    636 else
    637   echo "$ac_t""no" 1>&6
    638 fi
    639  ;;
    640     esac
    6411269  fi
    642   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    643 fi
    644 
    645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    646 echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    647 
    648 ac_ext=c
    649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    650 ac_cpp='$CPP $CPPFLAGS'
    651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    653 cross_compiling=$ac_cv_prog_cc_cross
    654 
    655 cat > conftest.$ac_ext << EOF
    656 
    657 #line 658 "configure"
     1270fi
     1271echo "$as_me:1271: result: yes" >&5
     1272echo "${ECHO_T}yes" >&6
     1273
     1274rm -f a.out a.exe conftest$ac_cv_exeext
     1275ac_clean_files=$ac_clean_files_save
     1276# Check the compiler produces executables we can run.  If not, either
     1277# the compiler is broken, or we cross compile.
     1278echo "$as_me:1278: checking whether we are cross compiling" >&5
     1279echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1280echo "$as_me:1280: result: $cross_compiling" >&5
     1281echo "${ECHO_T}$cross_compiling" >&6
     1282
     1283echo "$as_me:1283: checking for executable suffix" >&5
     1284echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1285if { (eval echo "$as_me:1285: \"$ac_link\"") >&5
     1286  (eval $ac_link) 2>&5
     1287  ac_status=$?
     1288  echo "$as_me:1288: \$? = $ac_status" >&5
     1289  (exit $ac_status); }; then
     1290  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1291# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1292# work properly (i.e., refer to `conftest.exe'), while it won't with
     1293# `rm'.
     1294for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1295  case $ac_file in
     1296    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1297    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1298          export ac_cv_exeext
     1299          break;;
     1300    * ) break;;
     1301  esac
     1302done
     1303else
     1304  { { echo "$as_me:1304: error: cannot compute EXEEXT: cannot compile and link" >&5
     1305echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1306   { (exit 1); exit 1; }; }
     1307fi
     1308
     1309rm -f conftest$ac_cv_exeext
     1310echo "$as_me:1310: result: $ac_cv_exeext" >&5
     1311echo "${ECHO_T}$ac_cv_exeext" >&6
     1312
     1313rm -f conftest.$ac_ext
     1314EXEEXT=$ac_cv_exeext
     1315ac_exeext=$EXEEXT
     1316echo "$as_me:1316: checking for object suffix" >&5
     1317echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1318if test "${ac_cv_objext+set}" = set; then
     1319  echo $ECHO_N "(cached) $ECHO_C" >&6
     1320else
     1321  cat >conftest.$ac_ext <<_ACEOF
     1322#line 1322 "configure"
    6581323#include "confdefs.h"
    6591324
    660 main(){return(0);}
    661 EOF
    662 if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    663   ac_cv_prog_cc_works=yes
    664   # If we can't run a trivial program, we are probably using a cross compiler.
    665   if (./conftest; exit) 2>/dev/null; then
    666     ac_cv_prog_cc_cross=no
    667   else
    668     ac_cv_prog_cc_cross=yes
    669   fi
    670 else
    671   echo "configure: failed program was:" >&5
    672   cat conftest.$ac_ext >&5
    673   ac_cv_prog_cc_works=no
    674 fi
    675 rm -fr conftest*
    676 ac_ext=c
    677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    678 ac_cpp='$CPP $CPPFLAGS'
    679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    681 cross_compiling=$ac_cv_prog_cc_cross
    682 
    683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    684 if test $ac_cv_prog_cc_works = no; then
    685   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    686 fi
    687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    690 cross_compiling=$ac_cv_prog_cc_cross
    691 
    692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    693 echo "configure:694: checking whether we are using GNU C" >&5
    694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    695   echo $ac_n "(cached) $ac_c" 1>&6
    696 else
    697   cat > conftest.c <<EOF
    698 #ifdef __GNUC__
    699   yes;
     1325int
     1326main ()
     1327{
     1328
     1329  ;
     1330  return 0;
     1331}
     1332_ACEOF
     1333rm -f conftest.o conftest.obj
     1334if { (eval echo "$as_me:1334: \"$ac_compile\"") >&5
     1335  (eval $ac_compile) 2>&5
     1336  ac_status=$?
     1337  echo "$as_me:1337: \$? = $ac_status" >&5
     1338  (exit $ac_status); }; then
     1339  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1340  case $ac_file in
     1341    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1342    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1343       break;;
     1344  esac
     1345done
     1346else
     1347  echo "$as_me: failed program was:" >&5
     1348cat conftest.$ac_ext >&5
     1349{ { echo "$as_me:1349: error: cannot compute OBJEXT: cannot compile" >&5
     1350echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1351   { (exit 1); exit 1; }; }
     1352fi
     1353
     1354rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1355fi
     1356echo "$as_me:1356: result: $ac_cv_objext" >&5
     1357echo "${ECHO_T}$ac_cv_objext" >&6
     1358OBJEXT=$ac_cv_objext
     1359ac_objext=$OBJEXT
     1360echo "$as_me:1360: checking whether we are using the GNU C compiler" >&5
     1361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1362if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1363  echo $ECHO_N "(cached) $ECHO_C" >&6
     1364else
     1365  cat >conftest.$ac_ext <<_ACEOF
     1366#line 1366 "configure"
     1367#include "confdefs.h"
     1368
     1369int
     1370main ()
     1371{
     1372#ifndef __GNUC__
     1373       choke me
    7001374#endif
    701 EOF
    702 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    703   ac_cv_prog_gcc=yes
    704 else
    705   ac_cv_prog_gcc=no
    706 fi
    707 fi
    708 
    709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    710 
    711 if test $ac_cv_prog_gcc = yes; then
    712   GCC=yes
    713 else
    714   GCC=
    715 fi
    716 
    717 ac_test_CFLAGS="${CFLAGS+set}"
    718 ac_save_CFLAGS="$CFLAGS"
    719 CFLAGS=
    720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
    722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    723   echo $ac_n "(cached) $ac_c" 1>&6
    724 else
    725   echo 'void f(){}' > conftest.c
    726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1375
     1376  ;
     1377  return 0;
     1378}
     1379_ACEOF
     1380rm -f conftest.$ac_objext
     1381if { (eval echo "$as_me:1381: \"$ac_compile\"") >&5
     1382  (eval $ac_compile) 2>&5
     1383  ac_status=$?
     1384  echo "$as_me:1384: \$? = $ac_status" >&5
     1385  (exit $ac_status); } &&
     1386         { ac_try='test -s conftest.$ac_objext'
     1387  { (eval echo "$as_me:1387: \"$ac_try\"") >&5
     1388  (eval $ac_try) 2>&5
     1389  ac_status=$?
     1390  echo "$as_me:1390: \$? = $ac_status" >&5
     1391  (exit $ac_status); }; }; then
     1392  ac_compiler_gnu=yes
     1393else
     1394  echo "$as_me: failed program was:" >&5
     1395cat conftest.$ac_ext >&5
     1396ac_compiler_gnu=no
     1397fi
     1398rm -f conftest.$ac_objext conftest.$ac_ext
     1399ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1400
     1401fi
     1402echo "$as_me:1402: result: $ac_cv_c_compiler_gnu" >&5
     1403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1404GCC=`test $ac_compiler_gnu = yes && echo yes`
     1405ac_test_CFLAGS=${CFLAGS+set}
     1406ac_save_CFLAGS=$CFLAGS
     1407CFLAGS="-g"
     1408echo "$as_me:1408: checking whether $CC accepts -g" >&5
     1409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1410if test "${ac_cv_prog_cc_g+set}" = set; then
     1411  echo $ECHO_N "(cached) $ECHO_C" >&6
     1412else
     1413  cat >conftest.$ac_ext <<_ACEOF
     1414#line 1414 "configure"
     1415#include "confdefs.h"
     1416
     1417int
     1418main ()
     1419{
     1420
     1421  ;
     1422  return 0;
     1423}
     1424_ACEOF
     1425rm -f conftest.$ac_objext
     1426if { (eval echo "$as_me:1426: \"$ac_compile\"") >&5
     1427  (eval $ac_compile) 2>&5
     1428  ac_status=$?
     1429  echo "$as_me:1429: \$? = $ac_status" >&5
     1430  (exit $ac_status); } &&
     1431         { ac_try='test -s conftest.$ac_objext'
     1432  { (eval echo "$as_me:1432: \"$ac_try\"") >&5
     1433  (eval $ac_try) 2>&5
     1434  ac_status=$?
     1435  echo "$as_me:1435: \$? = $ac_status" >&5
     1436  (exit $ac_status); }; }; then
    7271437  ac_cv_prog_cc_g=yes
    7281438else
    729   ac_cv_prog_cc_g=no
    730 fi
    731 rm -f conftest*
    732 
    733 fi
    734 
    735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1439  echo "$as_me: failed program was:" >&5
     1440cat conftest.$ac_ext >&5
     1441ac_cv_prog_cc_g=no
     1442fi
     1443rm -f conftest.$ac_objext conftest.$ac_ext
     1444fi
     1445echo "$as_me:1445: result: $ac_cv_prog_cc_g" >&5
     1446echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    7361447if test "$ac_test_CFLAGS" = set; then
    737   CFLAGS="$ac_save_CFLAGS"
     1448  CFLAGS=$ac_save_CFLAGS
    7381449elif test $ac_cv_prog_cc_g = yes; then
    7391450  if test "$GCC" = yes; then
     
    7491460  fi
    7501461fi
    751 
    752 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    753 echo "configure:754: checking how to run the C preprocessor" >&5
     1462# Some people use a C++ compiler to compile C.  Since we use `exit',
     1463# in C++ we need to declare it.  In case someone uses the same compiler
     1464# for both compiling C and C++ we need to have the C++ compiler decide
     1465# the declaration of exit, since it's the most demanding environment.
     1466cat >conftest.$ac_ext <<_ACEOF
     1467#ifndef __cplusplus
     1468  choke me
     1469#endif
     1470_ACEOF
     1471rm -f conftest.$ac_objext
     1472if { (eval echo "$as_me:1472: \"$ac_compile\"") >&5
     1473  (eval $ac_compile) 2>&5
     1474  ac_status=$?
     1475  echo "$as_me:1475: \$? = $ac_status" >&5
     1476  (exit $ac_status); } &&
     1477         { ac_try='test -s conftest.$ac_objext'
     1478  { (eval echo "$as_me:1478: \"$ac_try\"") >&5
     1479  (eval $ac_try) 2>&5
     1480  ac_status=$?
     1481  echo "$as_me:1481: \$? = $ac_status" >&5
     1482  (exit $ac_status); }; }; then
     1483  for ac_declaration in \
     1484   ''\
     1485   '#include <stdlib.h>' \
     1486   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1487   'extern "C" void std::exit (int); using std::exit;' \
     1488   'extern "C" void exit (int) throw ();' \
     1489   'extern "C" void exit (int);' \
     1490   'void exit (int);'
     1491do
     1492  cat >conftest.$ac_ext <<_ACEOF
     1493#line 1493 "configure"
     1494#include "confdefs.h"
     1495#include <stdlib.h>
     1496$ac_declaration
     1497int
     1498main ()
     1499{
     1500exit (42);
     1501  ;
     1502  return 0;
     1503}
     1504_ACEOF
     1505rm -f conftest.$ac_objext
     1506if { (eval echo "$as_me:1506: \"$ac_compile\"") >&5
     1507  (eval $ac_compile) 2>&5
     1508  ac_status=$?
     1509  echo "$as_me:1509: \$? = $ac_status" >&5
     1510  (exit $ac_status); } &&
     1511         { ac_try='test -s conftest.$ac_objext'
     1512  { (eval echo "$as_me:1512: \"$ac_try\"") >&5
     1513  (eval $ac_try) 2>&5
     1514  ac_status=$?
     1515  echo "$as_me:1515: \$? = $ac_status" >&5
     1516  (exit $ac_status); }; }; then
     1517  :
     1518else
     1519  echo "$as_me: failed program was:" >&5
     1520cat conftest.$ac_ext >&5
     1521continue
     1522fi
     1523rm -f conftest.$ac_objext conftest.$ac_ext
     1524  cat >conftest.$ac_ext <<_ACEOF
     1525#line 1525 "configure"
     1526#include "confdefs.h"
     1527$ac_declaration
     1528int
     1529main ()
     1530{
     1531exit (42);
     1532  ;
     1533  return 0;
     1534}
     1535_ACEOF
     1536rm -f conftest.$ac_objext
     1537if { (eval echo "$as_me:1537: \"$ac_compile\"") >&5
     1538  (eval $ac_compile) 2>&5
     1539  ac_status=$?
     1540  echo "$as_me:1540: \$? = $ac_status" >&5
     1541  (exit $ac_status); } &&
     1542         { ac_try='test -s conftest.$ac_objext'
     1543  { (eval echo "$as_me:1543: \"$ac_try\"") >&5
     1544  (eval $ac_try) 2>&5
     1545  ac_status=$?
     1546  echo "$as_me:1546: \$? = $ac_status" >&5
     1547  (exit $ac_status); }; }; then
     1548  break
     1549else
     1550  echo "$as_me: failed program was:" >&5
     1551cat conftest.$ac_ext >&5
     1552fi
     1553rm -f conftest.$ac_objext conftest.$ac_ext
     1554done
     1555echo '#ifdef __cplusplus' >>confdefs.h
     1556echo $ac_declaration      >>confdefs.h
     1557echo '#endif'             >>confdefs.h
     1558
     1559else
     1560  echo "$as_me: failed program was:" >&5
     1561cat conftest.$ac_ext >&5
     1562fi
     1563rm -f conftest.$ac_objext conftest.$ac_ext
     1564ac_ext=c
     1565ac_cpp='$CPP $CPPFLAGS'
     1566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1568ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1569
     1570ac_ext=c
     1571ac_cpp='$CPP $CPPFLAGS'
     1572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1574ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1575echo "$as_me:1575: checking how to run the C preprocessor" >&5
     1576echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    7541577# On Suns, sometimes $CPP names a directory.
    7551578if test -n "$CPP" && test -d "$CPP"; then
     
    7571580fi
    7581581if test -z "$CPP"; then
    759 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    760   echo $ac_n "(cached) $ac_c" 1>&6
    761 else
    762     # This must be in double quotes, not single quotes, because CPP may get
    763   # substituted into the Makefile and "${CC-cc}" will confuse make.
    764   CPP="${CC-cc} -E"
     1582  if test "${ac_cv_prog_CPP+set}" = set; then
     1583  echo $ECHO_N "(cached) $ECHO_C" >&6
     1584else
     1585      # Double quotes because CPP needs to be expanded
     1586    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     1587    do
     1588      # break 2 since there is a loop in there.
     1589      ac_preproc_ok=false
     1590for ac_c_preproc_warn_flag in '' yes
     1591do
     1592  # Use a header file that comes with gcc, so configuring glibc
     1593  # with a fresh cross-compiler works.
    7651594  # On the NeXT, cc -E runs the code through the compiler's parser,
    766   # not just through cpp.
    767   cat > conftest.$ac_ext <<EOF
    768 #line 769 "configure"
     1595  # not just through cpp. "Syntax error" is here to catch this case.
     1596  cat >conftest.$ac_ext <<_ACEOF
     1597#line 1597 "configure"
    7691598#include "confdefs.h"
    7701599#include <assert.h>
    771 Syntax Error
    772 EOF
    773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    774 { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    776 if test -z "$ac_err"; then
     1600                     Syntax error
     1601_ACEOF
     1602if { (eval echo "$as_me:1602: \"$ac_cpp conftest.$ac_ext\"") >&5
     1603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     1604  ac_status=$?
     1605  egrep -v '^ *\+' conftest.er1 >conftest.err
     1606  rm -f conftest.er1
     1607  cat conftest.err >&5
     1608  echo "$as_me:1608: \$? = $ac_status" >&5
     1609  (exit $ac_status); } >/dev/null; then
     1610  if test -s conftest.err; then
     1611    ac_cpp_err=$ac_c_preproc_warn_flag
     1612  else
     1613    ac_cpp_err=
     1614  fi
     1615else
     1616  ac_cpp_err=yes
     1617fi
     1618if test -z "$ac_cpp_err"; then
    7771619  :
    7781620else
    779   echo "$ac_err" >&5
    780   echo "configure: failed program was:" >&5
     1621  echo "$as_me: failed program was:" >&5
    7811622  cat conftest.$ac_ext >&5
    782   rm -rf conftest*
    783   CPP="${CC-cc} -E -traditional-cpp"
    784   cat > conftest.$ac_ext <<EOF
    785 #line 786 "configure"
     1623  # Broken: fails on valid input.
     1624continue
     1625fi
     1626rm -f conftest.err conftest.$ac_ext
     1627
     1628  # OK, works on sane cases.  Now check whether non-existent headers
     1629  # can be detected and how.
     1630  cat >conftest.$ac_ext <<_ACEOF
     1631#line 1631 "configure"
     1632#include "confdefs.h"
     1633#include <ac_nonexistent.h>
     1634_ACEOF
     1635if { (eval echo "$as_me:1635: \"$ac_cpp conftest.$ac_ext\"") >&5
     1636  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     1637  ac_status=$?
     1638  egrep -v '^ *\+' conftest.er1 >conftest.err
     1639  rm -f conftest.er1
     1640  cat conftest.err >&5
     1641  echo "$as_me:1641: \$? = $ac_status" >&5
     1642  (exit $ac_status); } >/dev/null; then
     1643  if test -s conftest.err; then
     1644    ac_cpp_err=$ac_c_preproc_warn_flag
     1645  else
     1646    ac_cpp_err=
     1647  fi
     1648else
     1649  ac_cpp_err=yes
     1650fi
     1651if test -z "$ac_cpp_err"; then
     1652  # Broken: success on invalid input.
     1653continue
     1654else
     1655  echo "$as_me: failed program was:" >&5
     1656  cat conftest.$ac_ext >&5
     1657  # Passes both tests.
     1658ac_preproc_ok=:
     1659break
     1660fi
     1661rm -f conftest.err conftest.$ac_ext
     1662
     1663done
     1664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     1665rm -f conftest.err conftest.$ac_ext
     1666if $ac_preproc_ok; then
     1667  break 2
     1668fi
     1669
     1670    done
     1671    ac_cv_prog_CPP=$CPP
     1672
     1673fi
     1674  CPP=$ac_cv_prog_CPP
     1675else
     1676  ac_cv_prog_CPP=$CPP
     1677fi
     1678echo "$as_me:1678: result: $CPP" >&5
     1679echo "${ECHO_T}$CPP" >&6
     1680ac_preproc_ok=false
     1681for ac_c_preproc_warn_flag in '' yes
     1682do
     1683  # Use a header file that comes with gcc, so configuring glibc
     1684  # with a fresh cross-compiler works.
     1685  # On the NeXT, cc -E runs the code through the compiler's parser,
     1686  # not just through cpp. "Syntax error" is here to catch this case.
     1687  cat >conftest.$ac_ext <<_ACEOF
     1688#line 1688 "configure"
    7861689#include "confdefs.h"
    7871690#include <assert.h>
    788 Syntax Error
    789 EOF
    790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    791 { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    793 if test -z "$ac_err"; then
     1691                     Syntax error
     1692_ACEOF
     1693if { (eval echo "$as_me:1693: \"$ac_cpp conftest.$ac_ext\"") >&5
     1694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     1695  ac_status=$?
     1696  egrep -v '^ *\+' conftest.er1 >conftest.err
     1697  rm -f conftest.er1
     1698  cat conftest.err >&5
     1699  echo "$as_me:1699: \$? = $ac_status" >&5
     1700  (exit $ac_status); } >/dev/null; then
     1701  if test -s conftest.err; then
     1702    ac_cpp_err=$ac_c_preproc_warn_flag
     1703  else
     1704    ac_cpp_err=
     1705  fi
     1706else
     1707  ac_cpp_err=yes
     1708fi
     1709if test -z "$ac_cpp_err"; then
    7941710  :
    7951711else
    796   echo "$ac_err" >&5
    797   echo "configure: failed program was:" >&5
     1712  echo "$as_me: failed program was:" >&5
    7981713  cat conftest.$ac_ext >&5
    799   rm -rf conftest*
    800   CPP="${CC-cc} -nologo -E"
    801   cat > conftest.$ac_ext <<EOF
    802 #line 803 "configure"
     1714  # Broken: fails on valid input.
     1715continue
     1716fi
     1717rm -f conftest.err conftest.$ac_ext
     1718
     1719  # OK, works on sane cases.  Now check whether non-existent headers
     1720  # can be detected and how.
     1721  cat >conftest.$ac_ext <<_ACEOF
     1722#line 1722 "configure"
    8031723#include "confdefs.h"
    804 #include <assert.h>
    805 Syntax Error
    806 EOF
    807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    808 { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    810 if test -z "$ac_err"; then
     1724#include <ac_nonexistent.h>
     1725_ACEOF
     1726if { (eval echo "$as_me:1726: \"$ac_cpp conftest.$ac_ext\"") >&5
     1727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     1728  ac_status=$?
     1729  egrep -v '^ *\+' conftest.er1 >conftest.err
     1730  rm -f conftest.er1
     1731  cat conftest.err >&5
     1732  echo "$as_me:1732: \$? = $ac_status" >&5
     1733  (exit $ac_status); } >/dev/null; then
     1734  if test -s conftest.err; then
     1735    ac_cpp_err=$ac_c_preproc_warn_flag
     1736  else
     1737    ac_cpp_err=
     1738  fi
     1739else
     1740  ac_cpp_err=yes
     1741fi
     1742if test -z "$ac_cpp_err"; then
     1743  # Broken: success on invalid input.
     1744continue
     1745else
     1746  echo "$as_me: failed program was:" >&5
     1747  cat conftest.$ac_ext >&5
     1748  # Passes both tests.
     1749ac_preproc_ok=:
     1750break
     1751fi
     1752rm -f conftest.err conftest.$ac_ext
     1753
     1754done
     1755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     1756rm -f conftest.err conftest.$ac_ext
     1757if $ac_preproc_ok; then
    8111758  :
    8121759else
    813   echo "$ac_err" >&5
    814   echo "configure: failed program was:" >&5
    815   cat conftest.$ac_ext >&5
    816   rm -rf conftest*
    817   CPP=/lib/cpp
    818 fi
    819 rm -f conftest*
    820 fi
    821 rm -f conftest*
    822 fi
    823 rm -f conftest*
    824   ac_cv_prog_CPP="$CPP"
    825 fi
    826   CPP="$ac_cv_prog_CPP"
    827 else
    828   ac_cv_prog_CPP="$CPP"
    829 fi
    830 echo "$ac_t""$CPP" 1>&6
    831 
    832 # Extract the first word of "ranlib", so it can be a program name with args.
    833 set dummy ranlib; ac_word=$2
    834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    835 echo "configure:836: checking for $ac_word" >&5
    836 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    837   echo $ac_n "(cached) $ac_c" 1>&6
     1760  { { echo "$as_me:1760: error: C preprocessor \"$CPP\" fails sanity check" >&5
     1761echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     1762   { (exit 1); exit 1; }; }
     1763fi
     1764
     1765ac_ext=c
     1766ac_cpp='$CPP $CPPFLAGS'
     1767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1769ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1770
     1771if test -n "$ac_tool_prefix"; then
     1772  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     1773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     1774echo "$as_me:1774: checking for $ac_word" >&5
     1775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1776if test "${ac_cv_prog_RANLIB+set}" = set; then
     1777  echo $ECHO_N "(cached) $ECHO_C" >&6
    8381778else
    8391779  if test -n "$RANLIB"; then
    8401780  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    8411781else
    842   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    843   ac_dummy="$PATH"
    844   for ac_dir in $ac_dummy; do
    845     test -z "$ac_dir" && ac_dir=.
    846     if test -f $ac_dir/$ac_word; then
    847       ac_cv_prog_RANLIB="ranlib"
    848       break
    849     fi
    850   done
    851   IFS="$ac_save_ifs"
    852   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    853 fi
    854 fi
    855 RANLIB="$ac_cv_prog_RANLIB"
     1782  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1783ac_dummy="$PATH"
     1784for ac_dir in $ac_dummy; do
     1785  IFS=$ac_save_IFS
     1786  test -z "$ac_dir" && ac_dir=.
     1787  $as_executable_p "$ac_dir/$ac_word" || continue
     1788ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     1789echo "$as_me:1789: found $ac_dir/$ac_word" >&5
     1790break
     1791done
     1792
     1793fi
     1794fi
     1795RANLIB=$ac_cv_prog_RANLIB
    8561796if test -n "$RANLIB"; then
    857   echo "$ac_t""$RANLIB" 1>&6
    858 else
    859   echo "$ac_t""no" 1>&6
     1797  echo "$as_me:1797: result: $RANLIB" >&5
     1798echo "${ECHO_T}$RANLIB" >&6
     1799else
     1800  echo "$as_me:1800: result: no" >&5
     1801echo "${ECHO_T}no" >&6
     1802fi
     1803
     1804fi
     1805if test -z "$ac_cv_prog_RANLIB"; then
     1806  ac_ct_RANLIB=$RANLIB
     1807  # Extract the first word of "ranlib", so it can be a program name with args.
     1808set dummy ranlib; ac_word=$2
     1809echo "$as_me:1809: checking for $ac_word" >&5
     1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1811if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     1812  echo $ECHO_N "(cached) $ECHO_C" >&6
     1813else
     1814  if test -n "$ac_ct_RANLIB"; then
     1815  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     1816else
     1817  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1818ac_dummy="$PATH"
     1819for ac_dir in $ac_dummy; do
     1820  IFS=$ac_save_IFS
     1821  test -z "$ac_dir" && ac_dir=.
     1822  $as_executable_p "$ac_dir/$ac_word" || continue
     1823ac_cv_prog_ac_ct_RANLIB="ranlib"
     1824echo "$as_me:1824: found $ac_dir/$ac_word" >&5
     1825break
     1826done
     1827
     1828  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     1829fi
     1830fi
     1831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     1832if test -n "$ac_ct_RANLIB"; then
     1833  echo "$as_me:1833: result: $ac_ct_RANLIB" >&5
     1834echo "${ECHO_T}$ac_ct_RANLIB" >&6
     1835else
     1836  echo "$as_me:1836: result: no" >&5
     1837echo "${ECHO_T}no" >&6
     1838fi
     1839
     1840  RANLIB=$ac_ct_RANLIB
     1841else
     1842  RANLIB="$ac_cv_prog_RANLIB"
    8601843fi
    8611844
    8621845for ac_prog in sgml2txt
    8631846do
    864 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1847  # Extract the first word of "$ac_prog", so it can be a program name with args.
    8651848set dummy $ac_prog; ac_word=$2
    866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    867 echo "configure:868: checking for $ac_word" >&5
    868 if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2txt'+set}'`\" = set"; then
    869   echo $ac_n "(cached) $ac_c" 1>&6
     1849echo "$as_me:1849: checking for $ac_word" >&5
     1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1851if test "${ac_cv_prog_have_sgml2txt+set}" = set; then
     1852  echo $ECHO_N "(cached) $ECHO_C" >&6
    8701853else
    8711854  if test -n "$have_sgml2txt"; then
    8721855  ac_cv_prog_have_sgml2txt="$have_sgml2txt" # Let the user override the test.
    8731856else
    874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    875   ac_dummy="$PATH"
    876   for ac_dir in $ac_dummy; do
    877     test -z "$ac_dir" && ac_dir=.
    878     if test -f $ac_dir/$ac_word; then
    879       ac_cv_prog_have_sgml2txt="$ac_prog"
    880       break
    881     fi
    882   done
    883   IFS="$ac_save_ifs"
    884 fi
    885 fi
    886 have_sgml2txt="$ac_cv_prog_have_sgml2txt"
     1857  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1858ac_dummy="$PATH"
     1859for ac_dir in $ac_dummy; do
     1860  IFS=$ac_save_IFS
     1861  test -z "$ac_dir" && ac_dir=.
     1862  $as_executable_p "$ac_dir/$ac_word" || continue
     1863ac_cv_prog_have_sgml2txt="$ac_prog"
     1864echo "$as_me:1864: found $ac_dir/$ac_word" >&5
     1865break
     1866done
     1867
     1868fi
     1869fi
     1870have_sgml2txt=$ac_cv_prog_have_sgml2txt
    8871871if test -n "$have_sgml2txt"; then
    888   echo "$ac_t""$have_sgml2txt" 1>&6
    889 else
    890   echo "$ac_t""no" 1>&6
    891 fi
    892 
    893 test -n "$have_sgml2txt" && break
     1872  echo "$as_me:1872: result: $have_sgml2txt" >&5
     1873echo "${ECHO_T}$have_sgml2txt" >&6
     1874else
     1875  echo "$as_me:1875: result: no" >&5
     1876echo "${ECHO_T}no" >&6
     1877fi
     1878
     1879  test -n "$have_sgml2txt" && break
    8941880done
    8951881test -n "$have_sgml2txt" || have_sgml2txt="no"
     
    8971883for ac_prog in sgml2latex
    8981884do
    899 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
    9001886set dummy $ac_prog; ac_word=$2
    901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    902 echo "configure:903: checking for $ac_word" >&5
    903 if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2latex'+set}'`\" = set"; then
    904   echo $ac_n "(cached) $ac_c" 1>&6
     1887echo "$as_me:1887: checking for $ac_word" >&5
     1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1889if test "${ac_cv_prog_have_sgml2latex+set}" = set; then
     1890  echo $ECHO_N "(cached) $ECHO_C" >&6
    9051891else
    9061892  if test -n "$have_sgml2latex"; then
    9071893  ac_cv_prog_have_sgml2latex="$have_sgml2latex" # Let the user override the test.
    9081894else
    909   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    910   ac_dummy="$PATH"
    911   for ac_dir in $ac_dummy; do
    912     test -z "$ac_dir" && ac_dir=.
    913     if test -f $ac_dir/$ac_word; then
    914       ac_cv_prog_have_sgml2latex="$ac_prog"
    915       break
    916     fi
    917   done
    918   IFS="$ac_save_ifs"
    919 fi
    920 fi
    921 have_sgml2latex="$ac_cv_prog_have_sgml2latex"
     1895  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1896ac_dummy="$PATH"
     1897for ac_dir in $ac_dummy; do
     1898  IFS=$ac_save_IFS
     1899  test -z "$ac_dir" && ac_dir=.
     1900  $as_executable_p "$ac_dir/$ac_word" || continue
     1901ac_cv_prog_have_sgml2latex="$ac_prog"
     1902echo "$as_me:1902: found $ac_dir/$ac_word" >&5
     1903break
     1904done
     1905
     1906fi
     1907fi
     1908have_sgml2latex=$ac_cv_prog_have_sgml2latex
    9221909if test -n "$have_sgml2latex"; then
    923   echo "$ac_t""$have_sgml2latex" 1>&6
    924 else
    925   echo "$ac_t""no" 1>&6
    926 fi
    927 
    928 test -n "$have_sgml2latex" && break
     1910  echo "$as_me:1910: result: $have_sgml2latex" >&5
     1911echo "${ECHO_T}$have_sgml2latex" >&6
     1912else
     1913  echo "$as_me:1913: result: no" >&5
     1914echo "${ECHO_T}no" >&6
     1915fi
     1916
     1917  test -n "$have_sgml2latex" && break
    9291918done
    9301919test -n "$have_sgml2latex" || have_sgml2latex="no"
     
    9321921for ac_prog in sgml2html
    9331922do
    934 # Extract the first word of "$ac_prog", so it can be a program name with args.
     1923  # Extract the first word of "$ac_prog", so it can be a program name with args.
    9351924set dummy $ac_prog; ac_word=$2
    936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    937 echo "configure:938: checking for $ac_word" >&5
    938 if eval "test \"`echo '$''{'ac_cv_prog_have_sgml2html'+set}'`\" = set"; then
    939   echo $ac_n "(cached) $ac_c" 1>&6
     1925echo "$as_me:1925: checking for $ac_word" >&5
     1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1927if test "${ac_cv_prog_have_sgml2html+set}" = set; then
     1928  echo $ECHO_N "(cached) $ECHO_C" >&6
    9401929else
    9411930  if test -n "$have_sgml2html"; then
    9421931  ac_cv_prog_have_sgml2html="$have_sgml2html" # Let the user override the test.
    9431932else
    944   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    945   ac_dummy="$PATH"
    946   for ac_dir in $ac_dummy; do
    947     test -z "$ac_dir" && ac_dir=.
    948     if test -f $ac_dir/$ac_word; then
    949       ac_cv_prog_have_sgml2html="$ac_prog"
    950       break
    951     fi
    952   done
    953   IFS="$ac_save_ifs"
    954 fi
    955 fi
    956 have_sgml2html="$ac_cv_prog_have_sgml2html"
     1933  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1934ac_dummy="$PATH"
     1935for ac_dir in $ac_dummy; do
     1936  IFS=$ac_save_IFS
     1937  test -z "$ac_dir" && ac_dir=.
     1938  $as_executable_p "$ac_dir/$ac_word" || continue
     1939ac_cv_prog_have_sgml2html="$ac_prog"
     1940echo "$as_me:1940: found $ac_dir/$ac_word" >&5
     1941break
     1942done
     1943
     1944fi
     1945fi
     1946have_sgml2html=$ac_cv_prog_have_sgml2html
    9571947if test -n "$have_sgml2html"; then
    958   echo "$ac_t""$have_sgml2html" 1>&6
    959 else
    960   echo "$ac_t""no" 1>&6
    961 fi
    962 
    963 test -n "$have_sgml2html" && break
     1948  echo "$as_me:1948: result: $have_sgml2html" >&5
     1949echo "${ECHO_T}$have_sgml2html" >&6
     1950else
     1951  echo "$as_me:1951: result: no" >&5
     1952echo "${ECHO_T}no" >&6
     1953fi
     1954
     1955  test -n "$have_sgml2html" && break
    9641956done
    9651957test -n "$have_sgml2html" || have_sgml2html="no"
     
    9701962    DOCMODULE="doc"
    9711963fi
    972 
    973 
    9741964
    9751965# Check whether --enable-comp or --disable-comp was given.
    9761966if test "${enable_comp+set}" = set; then
    9771967  enableval="$enable_comp"
    978   :
     1968
    9791969else
    9801970  enable_comp=yes
    981 fi
    982 
     1971fi;
    9831972if test "$enable_comp" = "yes"; then
    9841973    ASNMODULE="z39.50"
     
    9951984fi
    9961985checkBoth=0
    997 echo $ac_n "checking for connect""... $ac_c" 1>&6
    998 echo "configure:999: checking for connect" >&5
    999 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
    1000   echo $ac_n "(cached) $ac_c" 1>&6
    1001 else
    1002   cat > conftest.$ac_ext <<EOF
    1003 #line 1004 "configure"
     1986
     1987echo "$as_me:1987: checking for connect" >&5
     1988echo $ECHO_N "checking for connect... $ECHO_C" >&6
     1989if test "${ac_cv_func_connect+set}" = set; then
     1990  echo $ECHO_N "(cached) $ECHO_C" >&6
     1991else
     1992  cat >conftest.$ac_ext <<_ACEOF
     1993#line 1993 "configure"
    10041994#include "confdefs.h"
    10051995/* System header to define __stub macros and hopefully few prototypes,
    1006     which can conflict with char connect(); below.  */
     1996    which can conflict with char connect (); below.  */
    10071997#include <assert.h>
    10081998/* Override any gcc2 internal prototype to avoid an error.  */
     1999#ifdef __cplusplus
     2000extern "C"
     2001#endif
    10092002/* We use char because int might match the return type of a gcc2
    1010     builtin and then its argument prototype would still apply.  */
    1011 char connect();
    1012 
    1013 int main() {
    1014 
     2003   builtin and then its argument prototype would still apply.  */
     2004char connect ();
     2005char (*f) ();
     2006
     2007int
     2008main ()
     2009{
    10152010/* The GNU C library defines this for functions which it implements
    10162011    to always fail with ENOSYS.  Some functions are actually named
     
    10192014choke me
    10202015#else
    1021 connect();
     2016f = connect;
    10222017#endif
    10232018
    1024 ; return 0; }
    1025 EOF
    1026 if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1027   rm -rf conftest*
    1028   eval "ac_cv_func_connect=yes"
    1029 else
    1030   echo "configure: failed program was:" >&5
    1031   cat conftest.$ac_ext >&5
    1032   rm -rf conftest*
    1033   eval "ac_cv_func_connect=no"
    1034 fi
    1035 rm -f conftest*
    1036 fi
    1037 
    1038 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
    1039   echo "$ac_t""yes" 1>&6
    1040   :
    1041 else
    1042   echo "$ac_t""no" 1>&6
    1043 fi
     2019  ;
     2020  return 0;
     2021}
     2022_ACEOF
     2023rm -f conftest.$ac_objext conftest$ac_exeext
     2024if { (eval echo "$as_me:2024: \"$ac_link\"") >&5
     2025  (eval $ac_link) 2>&5
     2026  ac_status=$?
     2027  echo "$as_me:2027: \$? = $ac_status" >&5
     2028  (exit $ac_status); } &&
     2029         { ac_try='test -s conftest$ac_exeext'
     2030  { (eval echo "$as_me:2030: \"$ac_try\"") >&5
     2031  (eval $ac_try) 2>&5
     2032  ac_status=$?
     2033  echo "$as_me:2033: \$? = $ac_status" >&5
     2034  (exit $ac_status); }; }; then
     2035  ac_cv_func_connect=yes
     2036else
     2037  echo "$as_me: failed program was:" >&5
     2038cat conftest.$ac_ext >&5
     2039ac_cv_func_connect=no
     2040fi
     2041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2042fi
     2043echo "$as_me:2043: result: $ac_cv_func_connect" >&5
     2044echo "${ECHO_T}$ac_cv_func_connect" >&6
    10442045
    10452046if test "$ac_cv_func_connect" = "no"; then
    1046     echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
    1047 echo "configure:1048: checking for main in -lsocket" >&5
    1048 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
    1049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1050   echo $ac_n "(cached) $ac_c" 1>&6
    1051 else
    1052   ac_save_LIBS="$LIBS"
     2047    echo "$as_me:2047: checking for main in -lsocket" >&5
     2048echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
     2049if test "${ac_cv_lib_socket_main+set}" = set; then
     2050  echo $ECHO_N "(cached) $ECHO_C" >&6
     2051else
     2052  ac_check_lib_save_LIBS=$LIBS
    10532053LIBS="-lsocket  $LIBS"
    1054 cat > conftest.$ac_ext <<EOF
    1055 #line 1056 "configure"
     2054cat >conftest.$ac_ext <<_ACEOF
     2055#line 2055 "configure"
    10562056#include "confdefs.h"
    10572057
    1058 int main() {
    1059 main()
    1060 ; return 0; }
    1061 EOF
    1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1063   rm -rf conftest*
    1064   eval "ac_cv_lib_$ac_lib_var=yes"
    1065 else
    1066   echo "configure: failed program was:" >&5
    1067   cat conftest.$ac_ext >&5
    1068   rm -rf conftest*
    1069   eval "ac_cv_lib_$ac_lib_var=no"
    1070 fi
    1071 rm -f conftest*
    1072 LIBS="$ac_save_LIBS"
    1073 
    1074 fi
    1075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1076   echo "$ac_t""yes" 1>&6
     2058int
     2059main ()
     2060{
     2061main ();
     2062  ;
     2063  return 0;
     2064}
     2065_ACEOF
     2066rm -f conftest.$ac_objext conftest$ac_exeext
     2067if { (eval echo "$as_me:2067: \"$ac_link\"") >&5
     2068  (eval $ac_link) 2>&5
     2069  ac_status=$?
     2070  echo "$as_me:2070: \$? = $ac_status" >&5
     2071  (exit $ac_status); } &&
     2072         { ac_try='test -s conftest$ac_exeext'
     2073  { (eval echo "$as_me:2073: \"$ac_try\"") >&5
     2074  (eval $ac_try) 2>&5
     2075  ac_status=$?
     2076  echo "$as_me:2076: \$? = $ac_status" >&5
     2077  (exit $ac_status); }; }; then
     2078  ac_cv_lib_socket_main=yes
     2079else
     2080  echo "$as_me: failed program was:" >&5
     2081cat conftest.$ac_ext >&5
     2082ac_cv_lib_socket_main=no
     2083fi
     2084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2085LIBS=$ac_check_lib_save_LIBS
     2086fi
     2087echo "$as_me:2087: result: $ac_cv_lib_socket_main" >&5
     2088echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
     2089if test $ac_cv_lib_socket_main = yes; then
    10772090  LIBS="$LIBS -lsocket"
    10782091else
    1079   echo "$ac_t""no" 1>&6
    1080 checkBoth=1
     2092  checkBoth=1
    10812093fi
    10822094
     
    10852097    oldLibs=$LIBS
    10862098    LIBS="$LIBS -lsocket -lnsl"
    1087     echo $ac_n "checking for accept""... $ac_c" 1>&6
    1088 echo "configure:1089: checking for accept" >&5
    1089 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
    1090   echo $ac_n "(cached) $ac_c" 1>&6
    1091 else
    1092   cat > conftest.$ac_ext <<EOF
    1093 #line 1094 "configure"
     2099    echo "$as_me:2099: checking for accept" >&5
     2100echo $ECHO_N "checking for accept... $ECHO_C" >&6
     2101if test "${ac_cv_func_accept+set}" = set; then
     2102  echo $ECHO_N "(cached) $ECHO_C" >&6
     2103else
     2104  cat >conftest.$ac_ext <<_ACEOF
     2105#line 2105 "configure"
    10942106#include "confdefs.h"
    10952107/* System header to define __stub macros and hopefully few prototypes,
    1096     which can conflict with char accept(); below.  */
     2108    which can conflict with char accept (); below.  */
    10972109#include <assert.h>
    10982110/* Override any gcc2 internal prototype to avoid an error.  */
     2111#ifdef __cplusplus
     2112extern "C"
     2113#endif
    10992114/* We use char because int might match the return type of a gcc2
    1100     builtin and then its argument prototype would still apply.  */
    1101 char accept();
    1102 
    1103 int main() {
    1104 
     2115   builtin and then its argument prototype would still apply.  */
     2116char accept ();
     2117char (*f) ();
     2118
     2119int
     2120main ()
     2121{
    11052122/* The GNU C library defines this for functions which it implements
    11062123    to always fail with ENOSYS.  Some functions are actually named
     
    11092126choke me
    11102127#else
    1111 accept();
     2128f = accept;
    11122129#endif
    11132130
    1114 ; return 0; }
    1115 EOF
    1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1117   rm -rf conftest*
    1118   eval "ac_cv_func_accept=yes"
    1119 else
    1120   echo "configure: failed program was:" >&5
    1121   cat conftest.$ac_ext >&5
    1122   rm -rf conftest*
    1123   eval "ac_cv_func_accept=no"
    1124 fi
    1125 rm -f conftest*
    1126 fi
    1127 
    1128 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
    1129   echo "$ac_t""yes" 1>&6
     2131  ;
     2132  return 0;
     2133}
     2134_ACEOF
     2135rm -f conftest.$ac_objext conftest$ac_exeext
     2136if { (eval echo "$as_me:2136: \"$ac_link\"") >&5
     2137  (eval $ac_link) 2>&5
     2138  ac_status=$?
     2139  echo "$as_me:2139: \$? = $ac_status" >&5
     2140  (exit $ac_status); } &&
     2141         { ac_try='test -s conftest$ac_exeext'
     2142  { (eval echo "$as_me:2142: \"$ac_try\"") >&5
     2143  (eval $ac_try) 2>&5
     2144  ac_status=$?
     2145  echo "$as_me:2145: \$? = $ac_status" >&5
     2146  (exit $ac_status); }; }; then
     2147  ac_cv_func_accept=yes
     2148else
     2149  echo "$as_me: failed program was:" >&5
     2150cat conftest.$ac_ext >&5
     2151ac_cv_func_accept=no
     2152fi
     2153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2154fi
     2155echo "$as_me:2155: result: $ac_cv_func_accept" >&5
     2156echo "${ECHO_T}$ac_cv_func_accept" >&6
     2157if test $ac_cv_func_accept = yes; then
    11302158  :
    11312159else
    1132   echo "$ac_t""no" 1>&6
    1133 LIBS=$oldLibs
    1134 fi
    1135 
    1136 fi
    1137 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
    1138 echo "configure:1139: checking for gethostbyname" >&5
    1139 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
    1140   echo $ac_n "(cached) $ac_c" 1>&6
    1141 else
    1142   cat > conftest.$ac_ext <<EOF
    1143 #line 1144 "configure"
     2160  LIBS=$oldLibs
     2161fi
     2162
     2163fi
     2164echo "$as_me:2164: checking for gethostbyname" >&5
     2165echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
     2166if test "${ac_cv_func_gethostbyname+set}" = set; then
     2167  echo $ECHO_N "(cached) $ECHO_C" >&6
     2168else
     2169  cat >conftest.$ac_ext <<_ACEOF
     2170#line 2170 "configure"
    11442171#include "confdefs.h"
    11452172/* System header to define __stub macros and hopefully few prototypes,
    1146     which can conflict with char gethostbyname(); below.  */
     2173    which can conflict with char gethostbyname (); below.  */
    11472174#include <assert.h>
    11482175/* Override any gcc2 internal prototype to avoid an error.  */
     2176#ifdef __cplusplus
     2177extern "C"
     2178#endif
    11492179/* We use char because int might match the return type of a gcc2
    1150     builtin and then its argument prototype would still apply.  */
    1151 char gethostbyname();
    1152 
    1153 int main() {
    1154 
     2180   builtin and then its argument prototype would still apply.  */
     2181char gethostbyname ();
     2182char (*f) ();
     2183
     2184int
     2185main ()
     2186{
    11552187/* The GNU C library defines this for functions which it implements
    11562188    to always fail with ENOSYS.  Some functions are actually named
     
    11592191choke me
    11602192#else
    1161 gethostbyname();
     2193f = gethostbyname;
    11622194#endif
    11632195
    1164 ; return 0; }
     2196  ;
     2197  return 0;
     2198}
     2199_ACEOF
     2200rm -f conftest.$ac_objext conftest$ac_exeext
     2201if { (eval echo "$as_me:2201: \"$ac_link\"") >&5
     2202  (eval $ac_link) 2>&5
     2203  ac_status=$?
     2204  echo "$as_me:2204: \$? = $ac_status" >&5
     2205  (exit $ac_status); } &&
     2206         { ac_try='test -s conftest$ac_exeext'
     2207  { (eval echo "$as_me:2207: \"$ac_try\"") >&5
     2208  (eval $ac_try) 2>&5
     2209  ac_status=$?
     2210  echo "$as_me:2210: \$? = $ac_status" >&5
     2211  (exit $ac_status); }; }; then
     2212  ac_cv_func_gethostbyname=yes
     2213else
     2214  echo "$as_me: failed program was:" >&5
     2215cat conftest.$ac_ext >&5
     2216ac_cv_func_gethostbyname=no
     2217fi
     2218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2219fi
     2220echo "$as_me:2220: result: $ac_cv_func_gethostbyname" >&5
     2221echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
     2222if test $ac_cv_func_gethostbyname = yes; then
     2223  :
     2224else
     2225  echo "$as_me:2225: checking for main in -lnsl" >&5
     2226echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
     2227if test "${ac_cv_lib_nsl_main+set}" = set; then
     2228  echo $ECHO_N "(cached) $ECHO_C" >&6
     2229else
     2230  ac_check_lib_save_LIBS=$LIBS
     2231LIBS="-lnsl  $LIBS"
     2232cat >conftest.$ac_ext <<_ACEOF
     2233#line 2233 "configure"
     2234#include "confdefs.h"
     2235
     2236int
     2237main ()
     2238{
     2239main ();
     2240  ;
     2241  return 0;
     2242}
     2243_ACEOF
     2244rm -f conftest.$ac_objext conftest$ac_exeext
     2245if { (eval echo "$as_me:2245: \"$ac_link\"") >&5
     2246  (eval $ac_link) 2>&5
     2247  ac_status=$?
     2248  echo "$as_me:2248: \$? = $ac_status" >&5
     2249  (exit $ac_status); } &&
     2250         { ac_try='test -s conftest$ac_exeext'
     2251  { (eval echo "$as_me:2251: \"$ac_try\"") >&5
     2252  (eval $ac_try) 2>&5
     2253  ac_status=$?
     2254  echo "$as_me:2254: \$? = $ac_status" >&5
     2255  (exit $ac_status); }; }; then
     2256  ac_cv_lib_nsl_main=yes
     2257else
     2258  echo "$as_me: failed program was:" >&5
     2259cat conftest.$ac_ext >&5
     2260ac_cv_lib_nsl_main=no
     2261fi
     2262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2263LIBS=$ac_check_lib_save_LIBS
     2264fi
     2265echo "$as_me:2265: result: $ac_cv_lib_nsl_main" >&5
     2266echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
     2267if test $ac_cv_lib_nsl_main = yes; then
     2268  LIBS="$LIBS -lnsl"
     2269fi
     2270
     2271fi
     2272
     2273echo "$as_me:2273: checking for readline in -lreadline" >&5
     2274echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
     2275if test "${ac_cv_lib_readline_readline+set}" = set; then
     2276  echo $ECHO_N "(cached) $ECHO_C" >&6
     2277else
     2278  ac_check_lib_save_LIBS=$LIBS
     2279LIBS="-lreadline  $LIBS"
     2280cat >conftest.$ac_ext <<_ACEOF
     2281#line 2281 "configure"
     2282#include "confdefs.h"
     2283
     2284/* Override any gcc2 internal prototype to avoid an error.  */
     2285#ifdef __cplusplus
     2286extern "C"
     2287#endif
     2288/* We use char because int might match the return type of a gcc2
     2289   builtin and then its argument prototype would still apply.  */
     2290char readline ();
     2291int
     2292main ()
     2293{
     2294readline ();
     2295  ;
     2296  return 0;
     2297}
     2298_ACEOF
     2299rm -f conftest.$ac_objext conftest$ac_exeext
     2300if { (eval echo "$as_me:2300: \"$ac_link\"") >&5
     2301  (eval $ac_link) 2>&5
     2302  ac_status=$?
     2303  echo "$as_me:2303: \$? = $ac_status" >&5
     2304  (exit $ac_status); } &&
     2305         { ac_try='test -s conftest$ac_exeext'
     2306  { (eval echo "$as_me:2306: \"$ac_try\"") >&5
     2307  (eval $ac_try) 2>&5
     2308  ac_status=$?
     2309  echo "$as_me:2309: \$? = $ac_status" >&5
     2310  (exit $ac_status); }; }; then
     2311  ac_cv_lib_readline_readline=yes
     2312else
     2313  echo "$as_me: failed program was:" >&5
     2314cat conftest.$ac_ext >&5
     2315ac_cv_lib_readline_readline=no
     2316fi
     2317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2318LIBS=$ac_check_lib_save_LIBS
     2319fi
     2320echo "$as_me:2320: result: $ac_cv_lib_readline_readline" >&5
     2321echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
     2322if test $ac_cv_lib_readline_readline = yes; then
     2323  LIBS="$LIBS -lreadline"
     2324fi
     2325
     2326if test "$ac_cv_lib_readline_readline" = "no"; then
     2327    echo "$as_me:2327: checking for readline in -lreadline" >&5
     2328echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
     2329if test "${ac_cv_lib_readline_readline+set}" = set; then
     2330  echo $ECHO_N "(cached) $ECHO_C" >&6
     2331else
     2332  ac_check_lib_save_LIBS=$LIBS
     2333LIBS="-lreadline  $LIBS"
     2334cat >conftest.$ac_ext <<_ACEOF
     2335#line 2335 "configure"
     2336#include "confdefs.h"
     2337
     2338/* Override any gcc2 internal prototype to avoid an error.  */
     2339#ifdef __cplusplus
     2340extern "C"
     2341#endif
     2342/* We use char because int might match the return type of a gcc2
     2343   builtin and then its argument prototype would still apply.  */
     2344char readline ();
     2345int
     2346main ()
     2347{
     2348readline ();
     2349  ;
     2350  return 0;
     2351}
     2352_ACEOF
     2353rm -f conftest.$ac_objext conftest$ac_exeext
     2354if { (eval echo "$as_me:2354: \"$ac_link\"") >&5
     2355  (eval $ac_link) 2>&5
     2356  ac_status=$?
     2357  echo "$as_me:2357: \$? = $ac_status" >&5
     2358  (exit $ac_status); } &&
     2359         { ac_try='test -s conftest$ac_exeext'
     2360  { (eval echo "$as_me:2360: \"$ac_try\"") >&5
     2361  (eval $ac_try) 2>&5
     2362  ac_status=$?
     2363  echo "$as_me:2363: \$? = $ac_status" >&5
     2364  (exit $ac_status); }; }; then
     2365  ac_cv_lib_readline_readline=yes
     2366else
     2367  echo "$as_me: failed program was:" >&5
     2368cat conftest.$ac_ext >&5
     2369ac_cv_lib_readline_readline=no
     2370fi
     2371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2372LIBS=$ac_check_lib_save_LIBS
     2373fi
     2374echo "$as_me:2374: result: $ac_cv_lib_readline_readline" >&5
     2375echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
     2376if test $ac_cv_lib_readline_readline = yes; then
     2377  LIBS="$LIBS -lreadline -ltermcap"
     2378fi
     2379
     2380fi
     2381echo "$as_me:2381: checking for add_history in -lhistory" >&5
     2382echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6
     2383if test "${ac_cv_lib_history_add_history+set}" = set; then
     2384  echo $ECHO_N "(cached) $ECHO_C" >&6
     2385else
     2386  ac_check_lib_save_LIBS=$LIBS
     2387LIBS="-lhistory  $LIBS"
     2388cat >conftest.$ac_ext <<_ACEOF
     2389#line 2389 "configure"
     2390#include "confdefs.h"
     2391
     2392/* Override any gcc2 internal prototype to avoid an error.  */
     2393#ifdef __cplusplus
     2394extern "C"
     2395#endif
     2396/* We use char because int might match the return type of a gcc2
     2397   builtin and then its argument prototype would still apply.  */
     2398char add_history ();
     2399int
     2400main ()
     2401{
     2402add_history ();
     2403  ;
     2404  return 0;
     2405}
     2406_ACEOF
     2407rm -f conftest.$ac_objext conftest$ac_exeext
     2408if { (eval echo "$as_me:2408: \"$ac_link\"") >&5
     2409  (eval $ac_link) 2>&5
     2410  ac_status=$?
     2411  echo "$as_me:2411: \$? = $ac_status" >&5
     2412  (exit $ac_status); } &&
     2413         { ac_try='test -s conftest$ac_exeext'
     2414  { (eval echo "$as_me:2414: \"$ac_try\"") >&5
     2415  (eval $ac_try) 2>&5
     2416  ac_status=$?
     2417  echo "$as_me:2417: \$? = $ac_status" >&5
     2418  (exit $ac_status); }; }; then
     2419  ac_cv_lib_history_add_history=yes
     2420else
     2421  echo "$as_me: failed program was:" >&5
     2422cat conftest.$ac_ext >&5
     2423ac_cv_lib_history_add_history=no
     2424fi
     2425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2426LIBS=$ac_check_lib_save_LIBS
     2427fi
     2428echo "$as_me:2428: result: $ac_cv_lib_history_add_history" >&5
     2429echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6
     2430if test $ac_cv_lib_history_add_history = yes; then
     2431  LIBS="$LIBS -lhistory"
     2432fi
     2433
     2434if test "$ac_cv_lib_readline_readline" = "yes"; then
     2435
     2436for ac_header in readline/readline.h readline/history.h
     2437do
     2438ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     2439echo "$as_me:2439: checking for $ac_header" >&5
     2440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2441if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     2442  echo $ECHO_N "(cached) $ECHO_C" >&6
     2443else
     2444  cat >conftest.$ac_ext <<_ACEOF
     2445#line 2445 "configure"
     2446#include "confdefs.h"
     2447#include <$ac_header>
     2448_ACEOF
     2449if { (eval echo "$as_me:2449: \"$ac_cpp conftest.$ac_ext\"") >&5
     2450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2451  ac_status=$?
     2452  egrep -v '^ *\+' conftest.er1 >conftest.err
     2453  rm -f conftest.er1
     2454  cat conftest.err >&5
     2455  echo "$as_me:2455: \$? = $ac_status" >&5
     2456  (exit $ac_status); } >/dev/null; then
     2457  if test -s conftest.err; then
     2458    ac_cpp_err=$ac_c_preproc_warn_flag
     2459  else
     2460    ac_cpp_err=
     2461  fi
     2462else
     2463  ac_cpp_err=yes
     2464fi
     2465if test -z "$ac_cpp_err"; then
     2466  eval "$ac_ac_Header=yes"
     2467else
     2468  echo "$as_me: failed program was:" >&5
     2469  cat conftest.$ac_ext >&5
     2470  eval "$ac_ac_Header=no"
     2471fi
     2472rm -f conftest.err conftest.$ac_ext
     2473fi
     2474echo "$as_me:2474: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     2475echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     2476if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     2477  cat >>confdefs.h <<EOF
     2478#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    11652479EOF
    1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1167   rm -rf conftest*
    1168   eval "ac_cv_func_gethostbyname=yes"
    1169 else
    1170   echo "configure: failed program was:" >&5
    1171   cat conftest.$ac_ext >&5
    1172   rm -rf conftest*
    1173   eval "ac_cv_func_gethostbyname=no"
    1174 fi
    1175 rm -f conftest*
    1176 fi
    1177 
    1178 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
    1179   echo "$ac_t""yes" 1>&6
    1180   :
    1181 else
    1182   echo "$ac_t""no" 1>&6
    1183 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
    1184 echo "configure:1185: checking for main in -lnsl" >&5
    1185 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
    1186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1187   echo $ac_n "(cached) $ac_c" 1>&6
    1188 else
    1189   ac_save_LIBS="$LIBS"
    1190 LIBS="-lnsl  $LIBS"
    1191 cat > conftest.$ac_ext <<EOF
    1192 #line 1193 "configure"
    1193 #include "confdefs.h"
    1194 
    1195 int main() {
    1196 main()
    1197 ; return 0; }
    1198 EOF
    1199 if { (eval echo configure:1200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1200   rm -rf conftest*
    1201   eval "ac_cv_lib_$ac_lib_var=yes"
    1202 else
    1203   echo "configure: failed program was:" >&5
    1204   cat conftest.$ac_ext >&5
    1205   rm -rf conftest*
    1206   eval "ac_cv_lib_$ac_lib_var=no"
    1207 fi
    1208 rm -f conftest*
    1209 LIBS="$ac_save_LIBS"
    1210 
    1211 fi
    1212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1213   echo "$ac_t""yes" 1>&6
    1214   LIBS="$LIBS -lnsl"
    1215 else
    1216   echo "$ac_t""no" 1>&6
    1217 fi
    1218 
    1219 fi
    1220 
    1221 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
    1222 echo "configure:1223: checking for readline in -lreadline" >&5
    1223 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
    1224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1225   echo $ac_n "(cached) $ac_c" 1>&6
    1226 else
    1227   ac_save_LIBS="$LIBS"
    1228 LIBS="-lreadline  $LIBS"
    1229 cat > conftest.$ac_ext <<EOF
    1230 #line 1231 "configure"
    1231 #include "confdefs.h"
    1232 /* Override any gcc2 internal prototype to avoid an error.  */
    1233 /* We use char because int might match the return type of a gcc2
    1234     builtin and then its argument prototype would still apply.  */
    1235 char readline();
    1236 
    1237 int main() {
    1238 readline()
    1239 ; return 0; }
    1240 EOF
    1241 if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1242   rm -rf conftest*
    1243   eval "ac_cv_lib_$ac_lib_var=yes"
    1244 else
    1245   echo "configure: failed program was:" >&5
    1246   cat conftest.$ac_ext >&5
    1247   rm -rf conftest*
    1248   eval "ac_cv_lib_$ac_lib_var=no"
    1249 fi
    1250 rm -f conftest*
    1251 LIBS="$ac_save_LIBS"
    1252 
    1253 fi
    1254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1255   echo "$ac_t""yes" 1>&6
    1256   LIBS="$LIBS -lreadline"
    1257 else
    1258   echo "$ac_t""no" 1>&6
    1259 fi
    1260 
    1261 if test "$ac_cv_lib_readline_readline" = "no"; then
    1262     echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
    1263 echo "configure:1264: checking for readline in -lreadline" >&5
    1264 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
    1265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1266   echo $ac_n "(cached) $ac_c" 1>&6
    1267 else
    1268   ac_save_LIBS="$LIBS"
    1269 LIBS="-lreadline  $LIBS"
    1270 cat > conftest.$ac_ext <<EOF
    1271 #line 1272 "configure"
    1272 #include "confdefs.h"
    1273 /* Override any gcc2 internal prototype to avoid an error.  */
    1274 /* We use char because int might match the return type of a gcc2
    1275     builtin and then its argument prototype would still apply.  */
    1276 char readline();
    1277 
    1278 int main() {
    1279 readline()
    1280 ; return 0; }
    1281 EOF
    1282 if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1283   rm -rf conftest*
    1284   eval "ac_cv_lib_$ac_lib_var=yes"
    1285 else
    1286   echo "configure: failed program was:" >&5
    1287   cat conftest.$ac_ext >&5
    1288   rm -rf conftest*
    1289   eval "ac_cv_lib_$ac_lib_var=no"
    1290 fi
    1291 rm -f conftest*
    1292 LIBS="$ac_save_LIBS"
    1293 
    1294 fi
    1295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1296   echo "$ac_t""yes" 1>&6
    1297   LIBS="$LIBS -lreadline -ltermcap"
    1298 else
    1299   echo "$ac_t""no" 1>&6
    1300 fi
    1301 
    1302 fi
    1303 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
    1304 echo "configure:1305: checking for add_history in -lhistory" >&5
    1305 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
    1306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1307   echo $ac_n "(cached) $ac_c" 1>&6
    1308 else
    1309   ac_save_LIBS="$LIBS"
    1310 LIBS="-lhistory  $LIBS"
    1311 cat > conftest.$ac_ext <<EOF
    1312 #line 1313 "configure"
    1313 #include "confdefs.h"
    1314 /* Override any gcc2 internal prototype to avoid an error.  */
    1315 /* We use char because int might match the return type of a gcc2
    1316     builtin and then its argument prototype would still apply.  */
    1317 char add_history();
    1318 
    1319 int main() {
    1320 add_history()
    1321 ; return 0; }
    1322 EOF
    1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1324   rm -rf conftest*
    1325   eval "ac_cv_lib_$ac_lib_var=yes"
    1326 else
    1327   echo "configure: failed program was:" >&5
    1328   cat conftest.$ac_ext >&5
    1329   rm -rf conftest*
    1330   eval "ac_cv_lib_$ac_lib_var=no"
    1331 fi
    1332 rm -f conftest*
    1333 LIBS="$ac_save_LIBS"
    1334 
    1335 fi
    1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1337   echo "$ac_t""yes" 1>&6
    1338   LIBS="$LIBS -lhistory"
    1339 else
    1340   echo "$ac_t""no" 1>&6
    1341 fi
    1342 
    1343 if test "$ac_cv_lib_readline_readline" = "yes"; then
    1344     for ac_hdr in readline/readline.h readline/history.h
    1345 do
    1346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1348 echo "configure:1349: checking for $ac_hdr" >&5
    1349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1350   echo $ac_n "(cached) $ac_c" 1>&6
    1351 else
    1352   cat > conftest.$ac_ext <<EOF
    1353 #line 1354 "configure"
    1354 #include "confdefs.h"
    1355 #include <$ac_hdr>
    1356 EOF
    1357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1358 { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1360 if test -z "$ac_err"; then
    1361   rm -rf conftest*
    1362   eval "ac_cv_header_$ac_safe=yes"
    1363 else
    1364   echo "$ac_err" >&5
    1365   echo "configure: failed program was:" >&5
    1366   cat conftest.$ac_ext >&5
    1367   rm -rf conftest*
    1368   eval "ac_cv_header_$ac_safe=no"
    1369 fi
    1370 rm -f conftest*
    1371 fi
    1372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1373   echo "$ac_t""yes" 1>&6
    1374     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1375   cat >> confdefs.h <<EOF
    1376 #define $ac_tr_hdr 1
    1377 EOF
    1378  
    1379 else
    1380   echo "$ac_t""no" 1>&6
     2480
    13812481fi
    13822482done
     
    13862486if test "${enable_tcpd+set}" = set; then
    13872487  enableval="$enable_tcpd"
    1388   :
    1389 fi
    1390 
     2488
     2489fi;
    13912490if test "$enable_tcpd" = "yes"; then
    1392     echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
    1393 echo "configure:1394: checking for working tcpd.h" >&5
     2491    echo "$as_me:2491: checking for working tcpd.h" >&5
     2492echo $ECHO_N "checking for working tcpd.h... $ECHO_C" >&6
    13942493    oldLibs=$LIBS
    13952494    LIBS="$LIBS -lwrap -lnsl"
    1396     cat > conftest.$ac_ext <<EOF
    1397 #line 1398 "configure"
     2495    cat >conftest.$ac_ext <<_ACEOF
     2496#line 2496 "configure"
    13982497#include "confdefs.h"
    13992498#include <syslog.h>
     
    14012500    int allow_severity = LOG_INFO;
    14022501    int deny_severity = LOG_WARNING;
    1403 int main() {
     2502int
     2503main ()
     2504{
    14042505struct request_info request_info; int i;
    14052506    i = hosts_access(&request_info);
    1406 ; return 0; }
    1407 EOF
    1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1409   rm -rf conftest*
     2507  ;
     2508  return 0;
     2509}
     2510_ACEOF
     2511rm -f conftest.$ac_objext conftest$ac_exeext
     2512if { (eval echo "$as_me:2512: \"$ac_link\"") >&5
     2513  (eval $ac_link) 2>&5
     2514  ac_status=$?
     2515  echo "$as_me:2515: \$? = $ac_status" >&5
     2516  (exit $ac_status); } &&
     2517         { ac_try='test -s conftest$ac_exeext'
     2518  { (eval echo "$as_me:2518: \"$ac_try\"") >&5
     2519  (eval $ac_try) 2>&5
     2520  ac_status=$?
     2521  echo "$as_me:2521: \$? = $ac_status" >&5
     2522  (exit $ac_status); }; }; then
    14102523  tcpd_ok=1
    14112524else
    1412   echo "configure: failed program was:" >&5
    1413   cat conftest.$ac_ext >&5
    1414   rm -rf conftest*
    1415   tcpd_ok=0
    1416 fi
    1417 rm -f conftest*
     2525  echo "$as_me: failed program was:" >&5
     2526cat conftest.$ac_ext >&5
     2527tcpd_ok=0
     2528fi
     2529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    14182530    if test "$tcpd_ok" = "0"; then
    1419         echo "$ac_t""no" 1>&6
     2531        echo "$as_me:2531: result: no" >&5
     2532echo "${ECHO_T}no" >&6
    14202533        LIBS=$oldLibs
    14212534    else
    1422         echo "$ac_t""yes" 1>&6
    1423         cat >> confdefs.h <<\EOF
     2535        echo "$as_me:2535: result: yes" >&5
     2536echo "${ECHO_T}yes" >&6
     2537        cat >>confdefs.h <<\EOF
    14242538#define HAVE_TCPD_H 1
    14252539EOF
     
    14272541    fi
    14282542fi
    1429 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1430 echo "configure:1431: checking for ANSI C header files" >&5
    1431 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1432   echo $ac_n "(cached) $ac_c" 1>&6
    1433 else
    1434   cat > conftest.$ac_ext <<EOF
    1435 #line 1436 "configure"
     2543echo "$as_me:2543: checking for ANSI C header files" >&5
     2544echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2545if test "${ac_cv_header_stdc+set}" = set; then
     2546  echo $ECHO_N "(cached) $ECHO_C" >&6
     2547else
     2548  cat >conftest.$ac_ext <<_ACEOF
     2549#line 2549 "configure"
    14362550#include "confdefs.h"
    14372551#include <stdlib.h>
     
    14392553#include <string.h>
    14402554#include <float.h>
    1441 EOF
    1442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1443 { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1445 if test -z "$ac_err"; then
    1446   rm -rf conftest*
     2555
     2556_ACEOF
     2557if { (eval echo "$as_me:2557: \"$ac_cpp conftest.$ac_ext\"") >&5
     2558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2559  ac_status=$?
     2560  egrep -v '^ *\+' conftest.er1 >conftest.err
     2561  rm -f conftest.er1
     2562  cat conftest.err >&5
     2563  echo "$as_me:2563: \$? = $ac_status" >&5
     2564  (exit $ac_status); } >/dev/null; then
     2565  if test -s conftest.err; then
     2566    ac_cpp_err=$ac_c_preproc_warn_flag
     2567  else
     2568    ac_cpp_err=
     2569  fi
     2570else
     2571  ac_cpp_err=yes
     2572fi
     2573if test -z "$ac_cpp_err"; then
    14472574  ac_cv_header_stdc=yes
    14482575else
    1449   echo "$ac_err" >&5
    1450   echo "configure: failed program was:" >&5
     2576  echo "$as_me: failed program was:" >&5
    14512577  cat conftest.$ac_ext >&5
    1452   rm -rf conftest*
    14532578  ac_cv_header_stdc=no
    14542579fi
    1455 rm -f conftest*
     2580rm -f conftest.err conftest.$ac_ext
    14562581
    14572582if test $ac_cv_header_stdc = yes; then
    14582583  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1459 cat > conftest.$ac_ext <<EOF
    1460 #line 1461 "configure"
     2584  cat >conftest.$ac_ext <<_ACEOF
     2585#line 2585 "configure"
    14612586#include "confdefs.h"
    14622587#include <string.h>
    1463 EOF
     2588
     2589_ACEOF
    14642590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    14652591  egrep "memchr" >/dev/null 2>&1; then
    14662592  :
    14672593else
    1468   rm -rf conftest*
    14692594  ac_cv_header_stdc=no
    14702595fi
     
    14752600if test $ac_cv_header_stdc = yes; then
    14762601  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1477 cat > conftest.$ac_ext <<EOF
    1478 #line 1479 "configure"
     2602  cat >conftest.$ac_ext <<_ACEOF
     2603#line 2603 "configure"
    14792604#include "confdefs.h"
    14802605#include <stdlib.h>
    1481 EOF
     2606
     2607_ACEOF
    14822608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    14832609  egrep "free" >/dev/null 2>&1; then
    14842610  :
    14852611else
    1486   rm -rf conftest*
    14872612  ac_cv_header_stdc=no
    14882613fi
     
    14932618if test $ac_cv_header_stdc = yes; then
    14942619  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1495 if test "$cross_compiling" = yes; then
     2620  if test "$cross_compiling" = yes; then
    14962621  :
    14972622else
    1498   cat > conftest.$ac_ext <<EOF
    1499 #line 1500 "configure"
     2623  cat >conftest.$ac_ext <<_ACEOF
     2624#line 2624 "configure"
    15002625#include "confdefs.h"
    15012626#include <ctype.h>
    1502 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1503 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2627#if ((' ' & 0x0FF) == 0x020)
     2628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2630#else
     2631# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     2632                     || ('j' <= (c) && (c) <= 'r') \
     2633                     || ('s' <= (c) && (c) <= 'z'))
     2634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2635#endif
     2636
    15042637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1505 int main () { int i; for (i = 0; i < 256; i++)
    1506 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1507 exit (0); }
    1508 
    1509 EOF
    1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1511 then
     2638int
     2639main ()
     2640{
     2641  int i;
     2642  for (i = 0; i < 256; i++)
     2643    if (XOR (islower (i), ISLOWER (i))
     2644        || toupper (i) != TOUPPER (i))
     2645      exit(2);
     2646  exit (0);
     2647}
     2648_ACEOF
     2649rm -f conftest$ac_exeext
     2650if { (eval echo "$as_me:2650: \"$ac_link\"") >&5
     2651  (eval $ac_link) 2>&5
     2652  ac_status=$?
     2653  echo "$as_me:2653: \$? = $ac_status" >&5
     2654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2655  { (eval echo "$as_me:2655: \"$ac_try\"") >&5
     2656  (eval $ac_try) 2>&5
     2657  ac_status=$?
     2658  echo "$as_me:2658: \$? = $ac_status" >&5
     2659  (exit $ac_status); }; }; then
    15122660  :
    15132661else
    1514   echo "configure: failed program was:" >&5
    1515   cat conftest.$ac_ext >&5
    1516   rm -fr conftest*
    1517   ac_cv_header_stdc=no
    1518 fi
    1519 rm -fr conftest*
    1520 fi
    1521 
    1522 fi
    1523 fi
    1524 
    1525 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     2662  echo "$as_me: program exited with status $ac_status" >&5
     2663echo "$as_me: failed program was:" >&5
     2664cat conftest.$ac_ext >&5
     2665ac_cv_header_stdc=no
     2666fi
     2667rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
     2668fi
     2669fi
     2670fi
     2671echo "$as_me:2671: result: $ac_cv_header_stdc" >&5
     2672echo "${ECHO_T}$ac_cv_header_stdc" >&6
    15262673if test $ac_cv_header_stdc = yes; then
    1527   cat >> confdefs.h <<\EOF
     2674
     2675cat >>confdefs.h <<\EOF
    15282676#define STDC_HEADERS 1
    15292677EOF
     
    15322680
    15332681if test "$ac_cv_header_stdc" = "no"; then
    1534     echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
     2682    { echo "$as_me:2682: WARNING: Your system doesn't seem to support ANSI C" >&5
     2683echo "$as_me: WARNING: Your system doesn't seem to support ANSI C" >&2;}
    15352684fi
    15362685# Check whether --enable-threads or --disable-threads was given.
    15372686if test "${enable_threads+set}" = set; then
    15382687  enableval="$enable_threads"
    1539   :
    1540 fi
    1541 
     2688
     2689fi;
    15422690if test "$enable_threads" = "yes"; then
    1543     for ac_hdr in pthread.h threads.h
     2691
     2692for ac_header in pthread.h threads.h
    15442693do
    1545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1547 echo "configure:1548: checking for $ac_hdr" >&5
    1548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1549   echo $ac_n "(cached) $ac_c" 1>&6
    1550 else
    1551   cat > conftest.$ac_ext <<EOF
    1552 #line 1553 "configure"
     2694ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
     2695echo "$as_me:2695: checking for $ac_header" >&5
     2696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2697if eval "test \"\${$ac_ac_Header+set}\" = set"; then
     2698  echo $ECHO_N "(cached) $ECHO_C" >&6
     2699else
     2700  cat >conftest.$ac_ext <<_ACEOF
     2701#line 2701 "configure"
    15532702#include "confdefs.h"
    1554 #include <$ac_hdr>
     2703#include <$ac_header>
     2704_ACEOF
     2705if { (eval echo "$as_me:2705: \"$ac_cpp conftest.$ac_ext\"") >&5
     2706  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2707  ac_status=$?
     2708  egrep -v '^ *\+' conftest.er1 >conftest.err
     2709  rm -f conftest.er1
     2710  cat conftest.err >&5
     2711  echo "$as_me:2711: \$? = $ac_status" >&5
     2712  (exit $ac_status); } >/dev/null; then
     2713  if test -s conftest.err; then
     2714    ac_cpp_err=$ac_c_preproc_warn_flag
     2715  else
     2716    ac_cpp_err=
     2717  fi
     2718else
     2719  ac_cpp_err=yes
     2720fi
     2721if test -z "$ac_cpp_err"; then
     2722  eval "$ac_ac_Header=yes"
     2723else
     2724  echo "$as_me: failed program was:" >&5
     2725  cat conftest.$ac_ext >&5
     2726  eval "$ac_ac_Header=no"
     2727fi
     2728rm -f conftest.err conftest.$ac_ext
     2729fi
     2730echo "$as_me:2730: result: `eval echo '${'$ac_ac_Header'}'`" >&5
     2731echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
     2732if test `eval echo '${'$ac_ac_Header'}'` = yes; then
     2733  cat >>confdefs.h <<EOF
     2734#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
    15552735EOF
    1556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1557 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1559 if test -z "$ac_err"; then
    1560   rm -rf conftest*
    1561   eval "ac_cv_header_$ac_safe=yes"
    1562 else
    1563   echo "$ac_err" >&5
    1564   echo "configure: failed program was:" >&5
    1565   cat conftest.$ac_ext >&5
    1566   rm -rf conftest*
    1567   eval "ac_cv_header_$ac_safe=no"
    1568 fi
    1569 rm -f conftest*
    1570 fi
    1571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1572   echo "$ac_t""yes" 1>&6
    1573     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1574   cat >> confdefs.h <<EOF
    1575 #define $ac_tr_hdr 1
    1576 EOF
    1577  
    1578 else
    1579   echo "$ac_t""no" 1>&6
     2736
    15802737fi
    15812738done
    15822739
    1583     echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
    1584 echo "configure:1585: checking for pthread_mutex_lock" >&5
    1585 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
    1586   echo $ac_n "(cached) $ac_c" 1>&6
    1587 else
    1588   cat > conftest.$ac_ext <<EOF
    1589 #line 1590 "configure"
     2740    echo "$as_me:2740: checking for pthread_mutex_lock" >&5
     2741echo $ECHO_N "checking for pthread_mutex_lock... $ECHO_C" >&6
     2742if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then
     2743  echo $ECHO_N "(cached) $ECHO_C" >&6
     2744else
     2745  cat >conftest.$ac_ext <<_ACEOF
     2746#line 2746 "configure"
    15902747#include "confdefs.h"
    15912748/* System header to define __stub macros and hopefully few prototypes,
    1592     which can conflict with char pthread_mutex_lock(); below.  */
     2749    which can conflict with char pthread_mutex_lock (); below.  */
    15932750#include <assert.h>
    15942751/* Override any gcc2 internal prototype to avoid an error.  */
     2752#ifdef __cplusplus
     2753extern "C"
     2754#endif
    15952755/* We use char because int might match the return type of a gcc2
    1596     builtin and then its argument prototype would still apply.  */
    1597 char pthread_mutex_lock();
    1598 
    1599 int main() {
    1600 
     2756   builtin and then its argument prototype would still apply.  */
     2757char pthread_mutex_lock ();
     2758char (*f) ();
     2759
     2760int
     2761main ()
     2762{
    16012763/* The GNU C library defines this for functions which it implements
    16022764    to always fail with ENOSYS.  Some functions are actually named
     
    16052767choke me
    16062768#else
    1607 pthread_mutex_lock();
     2769f = pthread_mutex_lock;
    16082770#endif
    16092771
    1610 ; return 0; }
     2772  ;
     2773  return 0;
     2774}
     2775_ACEOF
     2776rm -f conftest.$ac_objext conftest$ac_exeext
     2777if { (eval echo "$as_me:2777: \"$ac_link\"") >&5
     2778  (eval $ac_link) 2>&5
     2779  ac_status=$?
     2780  echo "$as_me:2780: \$? = $ac_status" >&5
     2781  (exit $ac_status); } &&
     2782         { ac_try='test -s conftest$ac_exeext'
     2783  { (eval echo "$as_me:2783: \"$ac_try\"") >&5
     2784  (eval $ac_try) 2>&5
     2785  ac_status=$?
     2786  echo "$as_me:2786: \$? = $ac_status" >&5
     2787  (exit $ac_status); }; }; then
     2788  ac_cv_func_pthread_mutex_lock=yes
     2789else
     2790  echo "$as_me: failed program was:" >&5
     2791cat conftest.$ac_ext >&5
     2792ac_cv_func_pthread_mutex_lock=no
     2793fi
     2794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2795fi
     2796echo "$as_me:2796: result: $ac_cv_func_pthread_mutex_lock" >&5
     2797echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6
     2798
     2799    if test "$ac_cv_func_pthread_mutex_lock" = "no"; then
     2800
     2801echo "$as_me:2801: checking for main in -lpthread" >&5
     2802echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
     2803if test "${ac_cv_lib_pthread_main+set}" = set; then
     2804  echo $ECHO_N "(cached) $ECHO_C" >&6
     2805else
     2806  ac_check_lib_save_LIBS=$LIBS
     2807LIBS="-lpthread  $LIBS"
     2808cat >conftest.$ac_ext <<_ACEOF
     2809#line 2809 "configure"
     2810#include "confdefs.h"
     2811
     2812int
     2813main ()
     2814{
     2815main ();
     2816  ;
     2817  return 0;
     2818}
     2819_ACEOF
     2820rm -f conftest.$ac_objext conftest$ac_exeext
     2821if { (eval echo "$as_me:2821: \"$ac_link\"") >&5
     2822  (eval $ac_link) 2>&5
     2823  ac_status=$?
     2824  echo "$as_me:2824: \$? = $ac_status" >&5
     2825  (exit $ac_status); } &&
     2826         { ac_try='test -s conftest$ac_exeext'
     2827  { (eval echo "$as_me:2827: \"$ac_try\"") >&5
     2828  (eval $ac_try) 2>&5
     2829  ac_status=$?
     2830  echo "$as_me:2830: \$? = $ac_status" >&5
     2831  (exit $ac_status); }; }; then
     2832  ac_cv_lib_pthread_main=yes
     2833else
     2834  echo "$as_me: failed program was:" >&5
     2835cat conftest.$ac_ext >&5
     2836ac_cv_lib_pthread_main=no
     2837fi
     2838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2839LIBS=$ac_check_lib_save_LIBS
     2840fi
     2841echo "$as_me:2841: result: $ac_cv_lib_pthread_main" >&5
     2842echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
     2843if test $ac_cv_lib_pthread_main = yes; then
     2844  cat >>confdefs.h <<EOF
     2845#define HAVE_LIBPTHREAD 1
    16112846EOF
    1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1613   rm -rf conftest*
    1614   eval "ac_cv_func_pthread_mutex_lock=yes"
    1615 else
    1616   echo "configure: failed program was:" >&5
    1617   cat conftest.$ac_ext >&5
    1618   rm -rf conftest*
    1619   eval "ac_cv_func_pthread_mutex_lock=no"
    1620 fi
    1621 rm -f conftest*
    1622 fi
    1623 
    1624 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
    1625   echo "$ac_t""yes" 1>&6
    1626   :
    1627 else
    1628   echo "$ac_t""no" 1>&6
    1629 fi
    1630 
    1631     if test "$ac_cv_func_pthread_mutex_lock" = "no"; then
    1632         echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
    1633 echo "configure:1634: checking for main in -lpthread" >&5
    1634 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
    1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1636   echo $ac_n "(cached) $ac_c" 1>&6
    1637 else
    1638   ac_save_LIBS="$LIBS"
    1639 LIBS="-lpthread  $LIBS"
    1640 cat > conftest.$ac_ext <<EOF
    1641 #line 1642 "configure"
    1642 #include "confdefs.h"
    1643 
    1644 int main() {
    1645 main()
    1646 ; return 0; }
    1647 EOF
    1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1649   rm -rf conftest*
    1650   eval "ac_cv_lib_$ac_lib_var=yes"
    1651 else
    1652   echo "configure: failed program was:" >&5
    1653   cat conftest.$ac_ext >&5
    1654   rm -rf conftest*
    1655   eval "ac_cv_lib_$ac_lib_var=no"
    1656 fi
    1657 rm -f conftest*
    1658 LIBS="$ac_save_LIBS"
    1659 
    1660 fi
    1661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1662   echo "$ac_t""yes" 1>&6
    1663     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1664     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1665   cat >> confdefs.h <<EOF
    1666 #define $ac_tr_lib 1
    1667 EOF
    16682847
    16692848  LIBS="-lpthread $LIBS"
    16702849
    1671 else
    1672   echo "$ac_t""no" 1>&6
    16732850fi
    16742851
    16752852    fi
    1676     cat >> confdefs.h <<\EOF
     2853    cat >>confdefs.h <<\EOF
    16772854#define _REENTRANT 1
    16782855EOF
    16792856
    16802857fi
    1681 SUBDIRS_VAR="util odr $ASNMODULE zutil comstack ccl tab include lib client $DOCMODULE"
    1682 
    1683 trap '' 1 2 15
    1684 cat > confcache <<\EOF
     2858SUBDIRS_VAR="util odr $ASNMODULE zutil comstack tab include lib client $DOCMODULE"
     2859
     2860ac_config_files="$ac_config_files Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile"
     2861cat >confcache <<\_ACEOF
    16852862# This file is a shell script that caches the results of configure
    16862863# tests run on this system so they can be shared between configure
    1687 # scripts and configure runs.  It is not useful on other systems.
    1688 # If it contains results you don't want to keep, you may remove or edit it.
     2864# scripts and configure runs, see configure's option --config-cache.
     2865# It is not useful on other systems.  If it contains results you don't
     2866# want to keep, you may remove or edit it.
    16892867#
    1690 # By default, configure uses ./config.cache as the cache file,
    1691 # creating it if it does not exist already.  You can give configure
    1692 # the --cache-file=FILE option to use a different cache file; that is
    1693 # what configure does when it calls configure scripts in
    1694 # subdirectories, so they share the cache.
    1695 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    1696 # config.status only pays attention to the cache file if you give it the
    1697 # --recheck option to rerun configure.
     2868# config.status only pays attention to the cache file if you give it
     2869# the --recheck option to rerun configure.
    16982870#
    1699 EOF
     2871# `ac_cv_env_foo' variables (set or unset) will be overriden when
     2872# loading this file, other *unset* `ac_cv_foo' will be assigned the
     2873# following values.
     2874
     2875_ACEOF
     2876
    17002877# The following way of writing the cache mishandles newlines in values,
    17012878# but we know of no workaround that is simple, portable, and efficient.
     
    17032880# Ultrix sh set writes to stderr and can't be redirected directly,
    17042881# and sets the high bit in the cache file unless we assign to the vars.
    1705 (set) 2>&1 |
    1706   case `(ac_space=' '; set | grep ac_space) 2>&1` in
    1707   *ac_space=\ *)
    1708     # `set' does not quote correctly, so add quotes (double-quote substitution
    1709     # turns \\\\ into \\, and sed turns \\ into \).
    1710     sed -n \
    1711       -e "s/'/'\\\\''/g" \
    1712       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    1713     ;;
    1714   *)
    1715     # `set' quotes correctly as required by POSIX, so do not add quotes.
    1716     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    1717     ;;
    1718   esac >> confcache
    1719 if cmp -s $cache_file confcache; then
    1720   :
    1721 else
     2882{
     2883  (set) 2>&1 |
     2884    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     2885    *ac_space=\ *)
     2886      # `set' does not quote correctly, so add quotes (double-quote
     2887      # substitution turns \\\\ into \\, and sed turns \\ into \).
     2888      sed -n \
     2889        "s/'/'\\\\''/g;
     2890          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     2891      ;;
     2892    *)
     2893      # `set' quotes correctly as required by POSIX, so do not add quotes.
     2894      sed -n \
     2895        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     2896      ;;
     2897    esac;
     2898} |
     2899  sed '
     2900     t clear
     2901     : clear
     2902     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     2903     t end
     2904     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     2905     : end' >>confcache
     2906if cmp -s $cache_file confcache; then :; else
    17222907  if test -w $cache_file; then
    1723     echo "updating cache $cache_file"
    1724     cat confcache > $cache_file
     2908    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     2909    cat confcache >$cache_file
    17252910  else
    17262911    echo "not updating unwritable cache $cache_file"
     
    17292914rm -f confcache
    17302915
    1731 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    1732 
    17332916test "x$prefix" = xNONE && prefix=$ac_default_prefix
    17342917# Let make expand exec_prefix.
    17352918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    17362919
    1737 # Any assignment to VPATH causes Sun make to only execute
    1738 # the first set of double-colon rules, so remove it if not needed.
    1739 # If there is a colon in the path, we need to keep it.
     2920# VPATH may cause trouble with some makes, so we remove $(srcdir),
     2921# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     2922# trailing colons and then remove the whole line if VPATH becomes empty
     2923# (actually we leave an empty line to preserve line numbers).
    17402924if test "x$srcdir" = x.; then
    1741   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
    1742 fi
    1743 
    1744 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     2925  ac_vpsub='/^[     ]*VPATH[    ]*=/{
     2926s/:*\$(srcdir):*/:/;
     2927s/:*\${srcdir}:*/:/;
     2928s/:*@srcdir@:*/:/;
     2929s/^\([^=]*=[    ]*\):*/\1/;
     2930s/:*$//;
     2931s/^[^=]*=[  ]*$//;
     2932}'
     2933fi
    17452934
    17462935# Transform confdefs.h into DEFS.
    17472936# Protect against shell expansion while executing Makefile rules.
    17482937# Protect against Makefile macro expansion.
    1749 cat > conftest.defs <<\EOF
    1750 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
    1751 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
    1752 s%\[%\\&%g
    1753 s%\]%\\&%g
    1754 s%\$%$$%g
     2938#
     2939# If the first sed substitution is executed (which looks for macros that
     2940# take arguments), then we branch to the quote section.  Otherwise,
     2941# look for a macro that doesn't take arguments.
     2942cat >confdef2opt.sed <<\EOF
     2943t clear
     2944: clear
     2945s,^[    ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
     2946t quote
     2947s,^[    ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
     2948t quote
     2949d
     2950: quote
     2951s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
     2952s,\[,\\&,g
     2953s,\],\\&,g
     2954s,\$,$$,g
     2955p
    17552956EOF
    1756 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
    1757 rm -f conftest.defs
    1758 
    1759 
    1760 # Without the "./", some shells look in PATH for config.status.
     2957# We use echo to avoid assuming a particular line-breaking character.
     2958# The extra dot is to prevent the shell from consuming trailing
     2959# line-breaks from the sub-command output.  A line-break within
     2960# single-quotes doesn't work because, if this script is created in a
     2961# platform that uses two characters for line-breaks (e.g., DOS), tr
     2962# would break.
     2963ac_LF_and_DOT=`echo; echo .`
     2964DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
     2965rm -f confdef2opt.sed
     2966
    17612967: ${CONFIG_STATUS=./config.status}
    1762 
    1763 echo creating $CONFIG_STATUS
    1764 rm -f $CONFIG_STATUS
    1765 cat > $CONFIG_STATUS <<EOF
    1766 #! /bin/sh
     2968ac_clean_files_save=$ac_clean_files
     2969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     2970{ echo "$as_me:2970: creating $CONFIG_STATUS" >&5
     2971echo "$as_me: creating $CONFIG_STATUS" >&6;}
     2972cat >$CONFIG_STATUS <<_ACEOF
     2973#! $SHELL
    17672974# Generated automatically by configure.
    17682975# Run this file to recreate the current configuration.
    1769 # This directory was configured as follows,
    1770 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     2976# Compiler output produced by configure, useful for debugging
     2977# configure, is in config.log if it exists.
     2978
     2979debug=false
     2980SHELL=\${CONFIG_SHELL-$SHELL}
     2981ac_cs_invocation="\$0 \$@"
     2982
     2983_ACEOF
     2984
     2985cat >>$CONFIG_STATUS <<\_ACEOF
     2986# Be Bourne compatible
     2987if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     2988  emulate sh
     2989  NULLCMD=:
     2990elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     2991  set -o posix
     2992fi
     2993
     2994# Name of the executable.
     2995as_me=`echo "$0" |sed 's,.*[\\/],,'`
     2996
     2997if expr a : '\(a\)' >/dev/null 2>&1; then
     2998  as_expr=expr
     2999else
     3000  as_expr=false
     3001fi
     3002
     3003rm -f conf$$ conf$$.exe conf$$.file
     3004echo >conf$$.file
     3005if ln -s conf$$.file conf$$ 2>/dev/null; then
     3006  # We could just check for DJGPP; but this test a) works b) is more generic
     3007  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     3008  if test -f conf$$.exe; then
     3009    # Don't use ln at all; we don't have any links
     3010    as_ln_s='cp -p'
     3011  else
     3012    as_ln_s='ln -s'
     3013  fi
     3014elif ln conf$$.file conf$$ 2>/dev/null; then
     3015  as_ln_s=ln
     3016else
     3017  as_ln_s='cp -p'
     3018fi
     3019rm -f conf$$ conf$$.exe conf$$.file
     3020
     3021as_executable_p="test -f"
     3022
     3023# Support unset when possible.
     3024if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     3025  as_unset=unset
     3026else
     3027  as_unset=false
     3028fi
     3029
     3030# NLS nuisances.
     3031$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     3032$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     3033$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     3034$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     3035$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     3036$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     3037$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     3038$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     3039
     3040# IFS
     3041# We need space, tab and new line, in precisely that order.
     3042as_nl='
     3043'
     3044IFS="   $as_nl"
     3045
     3046# CDPATH.
     3047$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     3048
     3049exec 6>&1
     3050
     3051_ACEOF
     3052
     3053# Files that config.status was made for.
     3054if test -n "$ac_config_files"; then
     3055  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     3056fi
     3057
     3058if test -n "$ac_config_headers"; then
     3059  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     3060fi
     3061
     3062if test -n "$ac_config_links"; then
     3063  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     3064fi
     3065
     3066if test -n "$ac_config_commands"; then
     3067  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     3068fi
     3069
     3070cat >>$CONFIG_STATUS <<\EOF
     3071
     3072ac_cs_usage="\
     3073\`$as_me' instantiates files from templates according to the
     3074current configuration.
     3075
     3076Usage: $0 [OPTIONS] [FILE]...
     3077
     3078  -h, --help       print this help, then exit
     3079  -V, --version    print version number, then exit
     3080  -d, --debug      don't remove temporary files
     3081      --recheck    update $as_me by reconfiguring in the same conditions
     3082  --file=FILE[:TEMPLATE]
     3083                   instantiate the configuration file FILE
     3084
     3085Configuration files:
     3086$config_files
     3087
     3088Report bugs to <[email protected]>."
     3089EOF
     3090
     3091cat >>$CONFIG_STATUS <<EOF
     3092ac_cs_version="\\
     3093config.status
     3094configured by $0, generated by GNU Autoconf 2.50,
     3095  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     3096
     3097Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     3098Free Software Foundation, Inc.
     3099This config.status script is free software; the Free Software Foundation
     3100gives unlimited permission to copy, distribute and modify it."
     3101srcdir=$srcdir
     3102EOF
     3103
     3104cat >>$CONFIG_STATUS <<\EOF
     3105# If no file are specified by the user, then we need to provide default
     3106# value.  By we need to know if files were specified by the user.
     3107ac_need_defaults=:
     3108while test $# != 0
     3109do
     3110  case $1 in
     3111  --*=*)
     3112    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     3113    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     3114    shift
     3115    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     3116    shift
     3117    ;;
     3118  -*);;
     3119  *) # This is not an option, so the user has probably given explicit
     3120     # arguments.
     3121     ac_need_defaults=false;;
     3122  esac
     3123
     3124  case $1 in
     3125  # Handling of the options.
     3126EOF
     3127cat >>$CONFIG_STATUS <<EOF
     3128  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     3129    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     3130    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     3131EOF
     3132cat >>$CONFIG_STATUS <<\EOF
     3133  --version | --vers* | -V )
     3134    echo "$ac_cs_version"; exit 0 ;;
     3135  --he | --h)
     3136    # Conflict between --help and --header
     3137    { { echo "$as_me:3137: error: ambiguous option: $1
     3138Try \`$0 --help' for more information." >&5
     3139echo "$as_me: error: ambiguous option: $1
     3140Try \`$0 --help' for more information." >&2;}
     3141   { (exit 1); exit 1; }; };;
     3142  --help | --hel | -h )
     3143    echo "$ac_cs_usage"; exit 0 ;;
     3144  --debug | --d* | -d )
     3145    debug=: ;;
     3146  --file | --fil | --fi | --f )
     3147    shift
     3148    CONFIG_FILES="$CONFIG_FILES $1"
     3149    ac_need_defaults=false;;
     3150  --header | --heade | --head | --hea )
     3151    shift
     3152    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     3153    ac_need_defaults=false;;
     3154
     3155  # Handling of arguments.
     3156  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     3157  'util/Makefile' ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
     3158  'odr/Makefile' ) CONFIG_FILES="$CONFIG_FILES odr/Makefile" ;;
     3159  'z39.50/Makefile' ) CONFIG_FILES="$CONFIG_FILES z39.50/Makefile" ;;
     3160  'asn/Makefile' ) CONFIG_FILES="$CONFIG_FILES asn/Makefile" ;;
     3161  'zutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES zutil/Makefile" ;;
     3162  'comstack/Makefile' ) CONFIG_FILES="$CONFIG_FILES comstack/Makefile" ;;
     3163  'tab/Makefile' ) CONFIG_FILES="$CONFIG_FILES tab/Makefile" ;;
     3164  'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
     3165  'include/yaz/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/yaz/Makefile" ;;
     3166  'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     3167  'client/Makefile' ) CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
     3168  'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
     3169
     3170  # This is an error.
     3171  -*) { { echo "$as_me:3171: error: unrecognized option: $1
     3172Try \`$0 --help' for more information." >&5
     3173echo "$as_me: error: unrecognized option: $1
     3174Try \`$0 --help' for more information." >&2;}
     3175   { (exit 1); exit 1; }; } ;;
     3176  *) { { echo "$as_me:3176: error: invalid argument: $1" >&5
     3177echo "$as_me: error: invalid argument: $1" >&2;}
     3178   { (exit 1); exit 1; }; };;
     3179  esac
     3180  shift
     3181done
     3182
     3183exec 5>>config.log
     3184cat >&5 << _ACEOF
     3185
     3186## ----------------------- ##
     3187## Running config.status.  ##
     3188## ----------------------- ##
     3189
     3190This file was extended by $as_me 2.50, executed with
     3191  > $ac_cs_invocation
     3192on `(hostname || uname -n) 2>/dev/null | sed 1q`
     3193
     3194_ACEOF
     3195EOF
     3196
     3197cat >>$CONFIG_STATUS <<\EOF
     3198# If the user did not use the arguments to specify the items to instantiate,
     3199# then the envvar interface is used.  Set only those that are not.
     3200# We use the long form for the default assignment because of an extremely
     3201# bizarre bug on SunOS 4.1.3.
     3202if $ac_need_defaults; then
     3203  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     3204fi
     3205
     3206# Create a temporary directory, and hook for its removal unless debugging.
     3207$debug ||
     3208{
     3209  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     3210  trap '{ (exit $?); exit $?; }' 1 2 13 15
     3211}
     3212
     3213# Create a (secure) tmp directory for tmp files.
     3214: ${TMPDIR=/tmp}
     3215{
     3216  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     3217  test -n "$tmp" && test -d "$tmp"
     3218}  ||
     3219{
     3220  tmp=$TMPDIR/cs$$-$RANDOM
     3221  (umask 077 && mkdir $tmp)
     3222} ||
     3223{
     3224   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     3225   { (exit 1); exit 1; }
     3226}
     3227
     3228EOF
     3229
     3230cat >>$CONFIG_STATUS <<EOF
     3231
    17713232#
    1772 # $0 $ac_configure_args
     3233# CONFIG_FILES section.
    17733234#
    1774 # Compiler output produced by configure, useful for debugging
    1775 # configure, is in ./config.log if it exists.
    1776 
    1777 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    1778 for ac_option
    1779 do
    1780   case "\$ac_option" in
    1781   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    1782     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    1783     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    1784   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    1785     echo "$CONFIG_STATUS generated by autoconf version 2.13"
    1786     exit 0 ;;
    1787   -help | --help | --hel | --he | --h)
    1788     echo "\$ac_cs_usage"; exit 0 ;;
    1789   *) echo "\$ac_cs_usage"; exit 1 ;;
     3235
     3236# No need to generate the scripts if there are no CONFIG_FILES.
     3237# This happens for instance when ./config.status config.h
     3238if test -n "\$CONFIG_FILES"; then
     3239  # Protect against being on the right side of a sed subst in config.status.
     3240  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     3241   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     3242s,@SHELL@,$SHELL,;t t
     3243s,@exec_prefix@,$exec_prefix,;t t
     3244s,@prefix@,$prefix,;t t
     3245s,@program_transform_name@,$program_transform_name,;t t
     3246s,@bindir@,$bindir,;t t
     3247s,@sbindir@,$sbindir,;t t
     3248s,@libexecdir@,$libexecdir,;t t
     3249s,@datadir@,$datadir,;t t
     3250s,@sysconfdir@,$sysconfdir,;t t
     3251s,@sharedstatedir@,$sharedstatedir,;t t
     3252s,@localstatedir@,$localstatedir,;t t
     3253s,@libdir@,$libdir,;t t
     3254s,@includedir@,$includedir,;t t
     3255s,@oldincludedir@,$oldincludedir,;t t
     3256s,@infodir@,$infodir,;t t
     3257s,@mandir@,$mandir,;t t
     3258s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     3259s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     3260s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     3261s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     3262s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     3263s,@ECHO_C@,$ECHO_C,;t t
     3264s,@ECHO_N@,$ECHO_N,;t t
     3265s,@ECHO_T@,$ECHO_T,;t t
     3266s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     3267s,@DEFS@,$DEFS,;t t
     3268s,@LIBS@,$LIBS,;t t
     3269s,@CC@,$CC,;t t
     3270s,@CFLAGS@,$CFLAGS,;t t
     3271s,@LDFLAGS@,$LDFLAGS,;t t
     3272s,@CPPFLAGS@,$CPPFLAGS,;t t
     3273s,@ac_ct_CC@,$ac_ct_CC,;t t
     3274s,@EXEEXT@,$EXEEXT,;t t
     3275s,@OBJEXT@,$OBJEXT,;t t
     3276s,@CPP@,$CPP,;t t
     3277s,@RANLIB@,$RANLIB,;t t
     3278s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     3279s,@have_sgml2txt@,$have_sgml2txt,;t t
     3280s,@have_sgml2latex@,$have_sgml2latex,;t t
     3281s,@have_sgml2html@,$have_sgml2html,;t t
     3282s,@ASNMODULE@,$ASNMODULE,;t t
     3283s,@ILLMODULE@,$ILLMODULE,;t t
     3284s,@ILLLIB@,$ILLLIB,;t t
     3285s,@SUBDIRS_VAR@,$SUBDIRS_VAR,;t t
     3286CEOF
     3287
     3288EOF
     3289
     3290  cat >>$CONFIG_STATUS <<\EOF
     3291  # Split the substitutions into bite-sized pieces for seds with
     3292  # small command number limits, like on Digital OSF/1 and HP-UX.
     3293  ac_max_sed_lines=48
     3294  ac_sed_frag=1 # Number of current file.
     3295  ac_beg=1 # First line for current file.
     3296  ac_end=$ac_max_sed_lines # Line after last line for current file.
     3297  ac_more_lines=:
     3298  ac_sed_cmds=
     3299  while $ac_more_lines; do
     3300    if test $ac_beg -gt 1; then
     3301      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     3302    else
     3303      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     3304    fi
     3305    if test ! -s $tmp/subs.frag; then
     3306      ac_more_lines=false
     3307    else
     3308      # The purpose of the label and of the branching condition is to
     3309      # speed up the sed processing (if there are no `@' at all, there
     3310      # is no need to browse any of the substitutions).
     3311      # These are the two extra sed commands mentioned above.
     3312      (echo ':t
     3313  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     3314      if test -z "$ac_sed_cmds"; then
     3315    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     3316      else
     3317    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     3318      fi
     3319      ac_sed_frag=`expr $ac_sed_frag + 1`
     3320      ac_beg=$ac_end
     3321      ac_end=`expr $ac_end + $ac_max_sed_lines`
     3322    fi
     3323  done
     3324  if test -z "$ac_sed_cmds"; then
     3325    ac_sed_cmds=cat
     3326  fi
     3327fi # test -n "$CONFIG_FILES"
     3328
     3329EOF
     3330cat >>$CONFIG_STATUS <<\EOF
     3331for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     3332  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     3333  case $ac_file in
     3334  - | *:- | *:-:* ) # input from stdin
     3335        cat >$tmp/stdin
     3336        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     3337        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     3338  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     3339        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     3340  * )   ac_file_in=$ac_file.in ;;
    17903341  esac
    1791 done
    1792 
    1793 ac_given_srcdir=$srcdir
    1794 
    1795 trap 'rm -fr `echo "Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    1796 EOF
    1797 cat >> $CONFIG_STATUS <<EOF
    1798 
    1799 # Protect against being on the right side of a sed subst in config.status.
    1800 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    1801  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    1802 $ac_vpsub
    1803 $extrasub
    1804 s%@SHELL@%$SHELL%g
    1805 s%@CFLAGS@%$CFLAGS%g
    1806 s%@CPPFLAGS@%$CPPFLAGS%g
    1807 s%@CXXFLAGS@%$CXXFLAGS%g
    1808 s%@FFLAGS@%$FFLAGS%g
    1809 s%@DEFS@%$DEFS%g
    1810 s%@LDFLAGS@%$LDFLAGS%g
    1811 s%@LIBS@%$LIBS%g
    1812 s%@exec_prefix@%$exec_prefix%g
    1813 s%@prefix@%$prefix%g
    1814 s%@program_transform_name@%$program_transform_name%g
    1815 s%@bindir@%$bindir%g
    1816 s%@sbindir@%$sbindir%g
    1817 s%@libexecdir@%$libexecdir%g
    1818 s%@datadir@%$datadir%g
    1819 s%@sysconfdir@%$sysconfdir%g
    1820 s%@sharedstatedir@%$sharedstatedir%g
    1821 s%@localstatedir@%$localstatedir%g
    1822 s%@libdir@%$libdir%g
    1823 s%@includedir@%$includedir%g
    1824 s%@oldincludedir@%$oldincludedir%g
    1825 s%@infodir@%$infodir%g
    1826 s%@mandir@%$mandir%g
    1827 s%@CC@%$CC%g
    1828 s%@CPP@%$CPP%g
    1829 s%@RANLIB@%$RANLIB%g
    1830 s%@have_sgml2txt@%$have_sgml2txt%g
    1831 s%@have_sgml2latex@%$have_sgml2latex%g
    1832 s%@have_sgml2html@%$have_sgml2html%g
    1833 s%@ASNMODULE@%$ASNMODULE%g
    1834 s%@ILLMODULE@%$ILLMODULE%g
    1835 s%@ILLLIB@%$ILLLIB%g
    1836 s%@SUBDIRS_VAR@%$SUBDIRS_VAR%g
    1837 
    1838 CEOF
    1839 EOF
    1840 
    1841 cat >> $CONFIG_STATUS <<\EOF
    1842 
    1843 # Split the substitutions into bite-sized pieces for seds with
    1844 # small command number limits, like on Digital OSF/1 and HP-UX.
    1845 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    1846 ac_file=1 # Number of current file.
    1847 ac_beg=1 # First line for current file.
    1848 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    1849 ac_more_lines=:
    1850 ac_sed_cmds=""
    1851 while $ac_more_lines; do
    1852   if test $ac_beg -gt 1; then
    1853     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    1854   else
    1855     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    1856   fi
    1857   if test ! -s conftest.s$ac_file; then
    1858     ac_more_lines=false
    1859     rm -f conftest.s$ac_file
    1860   else
    1861     if test -z "$ac_sed_cmds"; then
    1862       ac_sed_cmds="sed -f conftest.s$ac_file"
    1863     else
    1864       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    1865     fi
    1866     ac_file=`expr $ac_file + 1`
    1867     ac_beg=$ac_end
    1868     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    1869   fi
    1870 done
    1871 if test -z "$ac_sed_cmds"; then
    1872   ac_sed_cmds=cat
    1873 fi
    1874 EOF
    1875 
    1876 cat >> $CONFIG_STATUS <<EOF
    1877 
    1878 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile"}
    1879 EOF
    1880 cat >> $CONFIG_STATUS <<\EOF
    1881 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    1882   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    1883   case "$ac_file" in
    1884   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    1885        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    1886   *) ac_file_in="${ac_file}.in" ;;
     3342
     3343  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     3344  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     3345         X"$ac_file" : 'X\(//\)[^/]' \| \
     3346         X"$ac_file" : 'X\(//\)$' \| \
     3347         X"$ac_file" : 'X\(/\)' \| \
     3348         .     : '\(.\)' 2>/dev/null ||
     3349echo X"$ac_file" |
     3350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     3351      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     3352      /^X\(\/\/\)$/{ s//\1/; q; }
     3353      /^X\(\/\).*/{ s//\1/; q; }
     3354      s/.*/./; q'`
     3355  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     3356    { case "$ac_dir" in
     3357  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     3358  *)                      as_incr_dir=.;;
     3359esac
     3360as_dummy="$ac_dir"
     3361for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     3362  case $as_mkdir_dir in
     3363    # Skip DOS drivespec
     3364    ?:) as_incr_dir=$as_mkdir_dir ;;
     3365    *)
     3366      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     3367      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     3368    ;;
    18873369  esac
    1888 
    1889   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    1890 
    1891   # Remove last slash and all that follows it.  Not all systems have dirname.
    1892   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    1893   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    1894     # The file is in a subdirectory.
    1895     test ! -d "$ac_dir" && mkdir "$ac_dir"
    1896     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     3370done; }
     3371
     3372    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    18973373    # A "../" for each directory in $ac_dir_suffix.
    1898     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     3374    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    18993375  else
    19003376    ac_dir_suffix= ac_dots=
    19013377  fi
    19023378
    1903   case "$ac_given_srcdir" in
    1904   .)  srcdir=.
    1905       if test -z "$ac_dots"; then top_srcdir=.
    1906       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    1907   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     3379  case $srcdir in
     3380  .)  ac_srcdir=.
     3381      if test -z "$ac_dots"; then
     3382         ac_top_srcdir=.
     3383      else
     3384         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     3385      fi ;;
     3386  [\\/]* | ?:[\\/]* )
     3387      ac_srcdir=$srcdir$ac_dir_suffix;
     3388      ac_top_srcdir=$srcdir ;;
    19083389  *) # Relative path.
    1909     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    1910     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     3390    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     3391    ac_top_srcdir=$ac_dots$srcdir ;;
    19113392  esac
    19123393
    1913 
    1914   echo creating "$ac_file"
    1915   rm -f "$ac_file"
    1916   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    1917   case "$ac_file" in
    1918   *Makefile*) ac_comsub="1i\\
    1919 # $configure_input" ;;
    1920   *) ac_comsub= ;;
    1921   esac
    1922 
    1923   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    1924   sed -e "$ac_comsub
    1925 s%@configure_input@%$configure_input%g
    1926 s%@srcdir@%$srcdir%g
    1927 s%@top_srcdir@%$top_srcdir%g
    1928 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    1929 fi; done
    1930 rm -f conftest.s*
    1931 
     3394  if test x"$ac_file" != x-; then
     3395    { echo "$as_me:3395: creating $ac_file" >&5
     3396echo "$as_me: creating $ac_file" >&6;}
     3397    rm -f "$ac_file"
     3398  fi
     3399  # Let's still pretend it is `configure' which instantiates (i.e., don't
     3400  # use $as_me), people would be surprised to read:
     3401  #    /* config.h.  Generated automatically by config.status.  */
     3402  configure_input="Generated automatically from `echo $ac_file_in |
     3403                                                 sed 's,.*/,,'` by configure."
     3404
     3405  # First look for the input files in the build tree, otherwise in the
     3406  # src tree.
     3407  ac_file_inputs=`IFS=:
     3408    for f in $ac_file_in; do
     3409      case $f in
     3410      -) echo $tmp/stdin ;;
     3411      [\\/$]*)
     3412         # Absolute (can't be DOS-style, as IFS=:)
     3413         test -f "$f" || { { echo "$as_me:3413: error: cannot find input file: $f" >&5
     3414echo "$as_me: error: cannot find input file: $f" >&2;}
     3415   { (exit 1); exit 1; }; }
     3416         echo $f;;
     3417      *) # Relative
     3418         if test -f "$f"; then
     3419           # Build tree
     3420           echo $f
     3421         elif test -f "$srcdir/$f"; then
     3422           # Source tree
     3423           echo $srcdir/$f
     3424         else
     3425           # /dev/null tree
     3426           { { echo "$as_me:3426: error: cannot find input file: $f" >&5
     3427echo "$as_me: error: cannot find input file: $f" >&2;}
     3428   { (exit 1); exit 1; }; }
     3429         fi;;
     3430      esac
     3431    done` || { (exit 1); exit 1; }
    19323432EOF
    1933 cat >> $CONFIG_STATUS <<EOF
    1934 
     3433cat >>$CONFIG_STATUS <<EOF
     3434  sed "$ac_vpsub
     3435$extrasub
    19353436EOF
    1936 cat >> $CONFIG_STATUS <<\EOF
    1937 
    1938 exit 0
     3437cat >>$CONFIG_STATUS <<\EOF
     3438:t
     3439/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     3440s,@configure_input@,$configure_input,;t t
     3441s,@srcdir@,$ac_srcdir,;t t
     3442s,@top_srcdir@,$ac_top_srcdir,;t t
     3443" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     3444  rm -f $tmp/stdin
     3445  if test x"$ac_file" != x-; then
     3446    mv $tmp/out $ac_file
     3447  else
     3448    cat $tmp/out
     3449    rm -f $tmp/out
     3450  fi
     3451
     3452done
     3453EOF
     3454
     3455cat >>$CONFIG_STATUS <<\EOF
     3456
     3457{ (exit 0); exit 0; }
    19393458EOF
    19403459chmod +x $CONFIG_STATUS
    1941 rm -fr confdefs* $ac_clean_files
    1942 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    1943 
    1944 
    1945 
     3460ac_clean_files=$ac_clean_files_save
     3461
     3462# configure is writing to config.log, and then calls config.status.
     3463# config.status does its own redirection, appending to config.log.
     3464# Unfortunately, on DOS this fails, as config.log is still kept open
     3465# by configure, so config.status won't be able to write to it; its
     3466# output is simply discarded.  So we exec the FD to /dev/null,
     3467# effectively closing config.log, so it can be properly (re)opened and
     3468# appended to by config.status.  When coming back to configure, we
     3469# need to make the FD available again.
     3470if test "$no_create" != yes; then
     3471  ac_cs_success=:
     3472  exec 5>/dev/null
     3473  $SHELL $CONFIG_STATUS || ac_cs_success=false
     3474  exec 5>>config.log
     3475  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     3476  # would make configure fail if this is the last instruction.
     3477  $ac_cs_success || { (exit 1); exit 1; }
     3478fi
     3479
  • trunk/gsdl/packages/yaz/configure.in

    r1713 r3173  
    100100fi
    101101dnl
    102 dnl retrieval $ILLMODULE server ztest
    103 SUBDIRS_VAR="util odr $ASNMODULE zutil comstack ccl tab include lib client $DOCMODULE"
     102dnl removed: retrieval $ILLMODULE server ztest ccl
     103SUBDIRS_VAR="util odr $ASNMODULE zutil comstack tab include lib client $DOCMODULE"
    104104AC_SUBST(SUBDIRS_VAR)
    105105dnl
     
    107107dnl
    108108dnl retrieval/Makefile ill/Makefile server/Makefile ztest/Makefile
    109 AC_OUTPUT(Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile ccl/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile)
     109AC_OUTPUT(Makefile util/Makefile odr/Makefile z39.50/Makefile asn/Makefile zutil/Makefile comstack/Makefile tab/Makefile include/Makefile include/yaz/Makefile lib/Makefile client/Makefile doc/Makefile)
    110110
    111111
  • trunk/gsdl/packages/yaz/lib/Makefile.in

    r1713 r3173  
    8181
    8282# removed: ../server/libserver.a ../retrieval/libret.a @ILLLIB@
    83 YAZLIBS = ../odr/libodr.a ../@ASNMODULE@/libasn.a ../comstack/libcomstack.a   ../zutil/libzutil.a ../util/libutil.a  ../ccl/libccl.a
     83YAZLIBS = ../odr/libodr.a ../@ASNMODULE@/libasn.a ../comstack/libcomstack.a   ../zutil/libzutil.a ../util/libutil.a
    8484
    8585
Note: See TracChangeset for help on using the changeset viewer.