Ignore:
Timestamp:
2010-11-29T16:49:14+13:00 (13 years ago)
Author:
sjm84
Message:

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

Location:
main/trunk/greenstone2/runtime-src
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/aclocal.m4

    r16568 r23356  
    139139fi
    140140])
     141dnl @synopsis AC_PROG_JAVAC
     142dnl
     143dnl AC_PROG_JAVAC tests an existing Java compiler. It uses the
     144dnl environment variable JAVAC then tests in sequence various common
     145dnl Java compilers. For political reasons, it starts with the free
     146dnl ones.
     147dnl
     148dnl If you want to force a specific compiler:
     149dnl
     150dnl - at the configure.in level, set JAVAC=yourcompiler before calling
     151dnl AC_PROG_JAVAC
     152dnl
     153dnl - at the configure level, setenv JAVAC
     154dnl
     155dnl You can use the JAVAC variable in your Makefile.in, with @JAVAC@.
     156dnl
     157dnl *Warning*: its success or failure can depend on a proper setting of
     158dnl the CLASSPATH env. variable.
     159dnl
     160dnl TODO: allow to exclude compilers (rationale: most Java programs
     161dnl cannot compile with some compilers like guavac).
     162dnl
     163dnl Note: This is part of the set of autoconf M4 macros for Java
     164dnl programs. It is VERY IMPORTANT that you download the whole set,
     165dnl some macros depend on other. Unfortunately, the autoconf archive
     166dnl does not support the concept of set of macros, so I had to break it
     167dnl for submission. The general documentation, as well as the sample
     168dnl configure.in, is included in the AC_PROG_JAVA macro.
     169dnl
     170dnl @category Java
     171dnl @author Stephane Bortzmeyer <[email protected]>
     172dnl @version 2000-07-19
     173dnl @license GPLWithACException
     174
     175AC_DEFUN([AC_PROG_JAVAC],[
     176if test "x$JAVAC" = x ; then
     177  AC_REQUIRE([AC_EXEEXT])dnl
     178  if test "x$JAVAPREFIX" = x; then
     179    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT)
     180  else
     181    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT, $JAVAPREFIX)
     182  fi
     183  test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
     184else
     185  echo "Checking for javac... $JAVAC"
     186fi
     187
     188AC_SUBST(JAVAC)
     189AC_PROG_JAVAC_WORKS
     190AC_PROVIDE([$0])dnl
     191])
     192
     193dnl @synopsis AC_PROG_JAVAC_WORKS
     194dnl
     195dnl Internal use ONLY.
     196dnl
     197dnl Note: This is part of the set of autoconf M4 macros for Java
     198dnl programs. It is VERY IMPORTANT that you download the whole set,
     199dnl some macros depend on other. Unfortunately, the autoconf archive
     200dnl does not support the concept of set of macros, so I had to break it
     201dnl for submission. The general documentation, as well as the sample
     202dnl configure.in, is included in the AC_PROG_JAVA macro.
     203dnl
     204dnl @category Java
     205dnl @author Stephane Bortzmeyer <[email protected]>
     206dnl @version 2000-07-19
     207dnl @license GPLWithACException
     208
     209AC_DEFUN([AC_PROG_JAVAC_WORKS],[
     210AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
     211JAVA_TEST=Test.java
     212CLASS_TEST=Test.class
     213cat << \EOF > $JAVA_TEST
     214/* [#]line __oline__ "configure" */
     215public class Test {
     216}
     217EOF
     218if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
     219  ac_cv_prog_javac_works=yes
     220else
     221  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
     222  echo "configure: failed program was:" >&AC_FD_CC
     223  cat $JAVA_TEST >&AC_FD_CC
     224fi
     225rm -f $JAVA_TEST $CLASS_TEST
     226])
     227AC_PROVIDE([$0])dnl
     228if test "x$JAVACFLAGS" = x ; then
     229  JAVACFLAGS="-source 1.4 -target 1.4"
     230fi
     231AC_SUBST(JAVACFLAGS)
     232])
     233
     234dnl @synopsis AC_PROG_JAVA
     235dnl
     236dnl Here is a summary of the main macros:
     237dnl
     238dnl AC_PROG_JAVAC: finds a Java compiler.
     239dnl
     240dnl AC_PROG_JAVA: finds a Java virtual machine.
     241dnl
     242dnl AC_CHECK_CLASS: finds if we have the given class (beware of
     243dnl CLASSPATH!).
     244dnl
     245dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops
     246dnl otherwise.
     247dnl
     248dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
     249dnl
     250dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
     251dnl
     252dnl AC_JAVA_OPTIONS: adds Java configure options.
     253dnl
     254dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the
     255dnl environment variable JAVA then tests in sequence various common
     256dnl Java virtual machines. For political reasons, it starts with the
     257dnl free ones. You *must* call [AC_PROG_JAVAC] before.
     258dnl
     259dnl If you want to force a specific VM:
     260dnl
     261dnl - at the configure.in level, set JAVA=yourvm before calling
     262dnl AC_PROG_JAVA
     263dnl
     264dnl   (but after AC_INIT)
     265dnl
     266dnl - at the configure level, setenv JAVA
     267dnl
     268dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.
     269dnl
     270dnl *Warning*: its success or failure can depend on a proper setting of
     271dnl the CLASSPATH env. variable.
     272dnl
     273dnl TODO: allow to exclude virtual machines (rationale: most Java
     274dnl programs cannot run with some VM like kaffe).
     275dnl
     276dnl Note: This is part of the set of autoconf M4 macros for Java
     277dnl programs. It is VERY IMPORTANT that you download the whole set,
     278dnl some macros depend on other. Unfortunately, the autoconf archive
     279dnl does not support the concept of set of macros, so I had to break it
     280dnl for submission.
     281dnl
     282dnl A Web page, with a link to the latest CVS snapshot is at
     283dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
     284dnl
     285dnl This is a sample configure.in Process this file with autoconf to
     286dnl produce a configure script.
     287dnl
     288dnl    AC_INIT(UnTag.java)
     289dnl
     290dnl    dnl Checks for programs.
     291dnl    AC_CHECK_CLASSPATH
     292dnl    AC_PROG_JAVAC
     293dnl    AC_PROG_JAVA
     294dnl
     295dnl    dnl Checks for classes
     296dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
     297dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
     298dnl
     299dnl    AC_OUTPUT(Makefile)
     300dnl
     301dnl @category Java
     302dnl @author Stephane Bortzmeyer <[email protected]>
     303dnl @version 2000-07-19
     304dnl @license GPLWithACException
     305
     306AC_DEFUN([AC_PROG_JAVA],[
     307if test "x$JAVA" = x ; then
     308    AC_REQUIRE([AC_EXEEXT])dnl
     309    if test x$JAVAPREFIX = x; then
     310        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT)
     311    else
     312        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT, $JAVAPREFIX)
     313    fi
     314    test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
     315fi
     316AC_SUBST(JAVA)
     317AC_PROG_JAVA_WORKS
     318AC_PROVIDE([$0])dnl
     319])
     320
     321dnl @synopsis AC_PROG_JAVA_WORKS
     322dnl
     323dnl Internal use ONLY.
     324dnl
     325dnl Note: This is part of the set of autoconf M4 macros for Java
     326dnl programs. It is VERY IMPORTANT that you download the whole set,
     327dnl some macros depend on other. Unfortunately, the autoconf archive
     328dnl does not support the concept of set of macros, so I had to break it
     329dnl for submission. The general documentation, as well as the sample
     330dnl configure.in, is included in the AC_PROG_JAVA macro.
     331dnl
     332dnl @category Java
     333dnl @author Stephane Bortzmeyer <[email protected]>
     334dnl @version 2000-07-19
     335dnl @license GPLWithACException
     336
     337AC_DEFUN([AC_PROG_JAVA_WORKS], [
     338AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)
     339if test x$uudecode = xyes; then
     340AC_CACHE_CHECK([if uudecode can decode base 64 file], ac_cv_prog_uudecode_base64, [
     341dnl /**
     342dnl  * Test.java: used to test if java compiler works.
     343dnl  */
     344dnl public class Test
     345dnl {
     346dnl
     347dnl public static void
     348dnl main( String[] argv )
     349dnl {
     350dnl     System.exit (0);
     351dnl }
     352dnl
     353dnl }
     354cat << \EOF > Test.uue
     355begin-base64 644 Test.class
     356yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     357bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     358bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     359YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     360aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     361AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     362AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     363====
     364EOF
     365if uudecode$EXEEXT Test.uue; then
     366        ac_cv_prog_uudecode_base64=yes
     367else
     368        echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC
     369        echo "configure: failed file was:" >&AC_FD_CC
     370        cat Test.uue >&AC_FD_CC
     371        ac_cv_prog_uudecode_base64=no
     372fi
     373rm -f Test.uue])
     374fi
     375if test x$ac_cv_prog_uudecode_base64 != xyes; then
     376        rm -f Test.class
     377        AC_MSG_WARN([I have to compile Test.class from scratch])
     378        if test x$ac_cv_prog_javac_works = xno; then
     379                AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly])
     380        fi
     381        if test x$ac_cv_prog_javac_works = x; then
     382                AC_PROG_JAVAC
     383        fi
     384fi
     385AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [
     386JAVA_TEST=Test.java
     387CLASS_TEST=Test.class
     388TEST=Test
     389changequote(, )dnl
     390cat << \EOF > $JAVA_TEST
     391/* [#]line __oline__ "configure" */
     392public class Test {
     393public static void main (String args[]) {
     394        System.exit (0);
     395} }
     396EOF
     397changequote([, ])dnl
     398if test x$ac_cv_prog_uudecode_base64 != xyes; then
     399        if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then
     400                :
     401        else
     402          echo "configure: failed program was:" >&AC_FD_CC
     403          cat $JAVA_TEST >&AC_FD_CC
     404          AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))
     405        fi
     406fi
     407if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
     408  ac_cv_prog_java_works=yes
     409else
     410  echo "configure: failed program was:" >&AC_FD_CC
     411  cat $JAVA_TEST >&AC_FD_CC
     412  AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
     413fi
     414rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     415])
     416AC_PROVIDE([$0])dnl
     417]
     418)
  • main/trunk/greenstone2/runtime-src/configure

    r22068 r23356  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.67.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5#
     6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     8# Foundation, Inc.
     9#
     10#
    611# This configure script is free software; the Free Software Foundation
    712# gives unlimited permission to copy, distribute and modify it.
    8 ## --------------------- ##
    9 ## M4sh Initialization.  ##
    10 ## --------------------- ##
    11 
    12 # Be Bourne compatible
    13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     13## -------------------- ##
     14## M4sh Initialization. ##
     15## -------------------- ##
     16
     17# Be more Bourne compatible
     18DUALCASE=1; export DUALCASE # for MKS sh
     19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    1420  emulate sh
    1521  NULLCMD=:
    16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    1723  # is contrary to our usage.  Disable this feature.
    1824  alias -g '${1+"$@"}'='"$@"'
    19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    20   set -o posix
    21 fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    23 
    24 # Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
     25  setopt NO_GLOB_SUBST
     26else
     27  case `(set -o) 2>/dev/null` in #(
     28  *posix*) :
     29    set -o posix ;; #(
     30  *) :
     31     ;;
     32esac
     33fi
     34
     35
     36as_nl='
     37'
     38export as_nl
     39# Printing a long string crashes Solaris 7 /usr/bin/printf.
     40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43# Prefer a ksh shell builtin over an external printf program on Solaris,
     44# but without wasting forks for bash or zsh.
     45if test -z "$BASH_VERSION$ZSH_VERSION" \
     46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47  as_echo='print -r --'
     48  as_echo_n='print -rn --'
     49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50  as_echo='printf %s\n'
     51  as_echo_n='printf %s'
     52else
     53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55    as_echo_n='/usr/ucb/echo -n'
     56  else
     57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58    as_echo_n_body='eval
     59      arg=$1;
     60      case $arg in #(
     61      *"$as_nl"*)
     62    expr "X$arg" : "X\\(.*\\)$as_nl";
     63    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64      esac;
     65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66    '
     67    export as_echo_n_body
     68    as_echo_n='sh -c $as_echo_n_body as_echo'
     69  fi
     70  export as_echo_body
     71  as_echo='sh -c $as_echo_body as_echo'
     72fi
     73
     74# The user is always right.
     75if test "${PATH_SEPARATOR+set}" != set; then
     76  PATH_SEPARATOR=:
     77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79      PATH_SEPARATOR=';'
     80  }
     81fi
     82
     83
     84# IFS
     85# We need space, tab and new line, in precisely that order.  Quoting is
     86# there to prevent editors from complaining about space-tab.
     87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88# splitting by setting IFS to empty value.)
     89IFS=" ""    $as_nl"
     90
     91# Find who we are.  Look in the path if we contain no directory separator.
     92case $0 in #((
     93  *[\\/]* ) as_myself=$0 ;;
     94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     95for as_dir in $PATH
     96do
     97  IFS=$as_save_IFS
     98  test -z "$as_dir" && as_dir=.
     99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     100  done
     101IFS=$as_save_IFS
     102
     103     ;;
     104esac
     105# We did not find ourselves, most probably we were run as `sh COMMAND'
     106# in which case we are not to be found in the path.
     107if test "x$as_myself" = x; then
     108  as_myself=$0
     109fi
     110if test ! -f "$as_myself"; then
     111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     112  exit 1
     113fi
     114
     115# Unset variables that we do not need and which cause bugs (e.g. in
     116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     117# suppresses any "Segmentation fault" message there.  '((' could
     118# trigger a bug in pdksh 5.2.14.
     119for as_var in BASH_ENV ENV MAIL MAILPATH
     120do eval test x\${$as_var+set} = xset \
     121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     122done
    34123PS1='$ '
    35124PS2='> '
     
    37126
    38127# NLS nuisances.
    39 for as_var in \
    40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    42   LC_TELEPHONE LC_TIME
     128LC_ALL=C
     129export LC_ALL
     130LANGUAGE=C
     131export LANGUAGE
     132
     133# CDPATH.
     134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     135
     136if test "x$CONFIG_SHELL" = x; then
     137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
     138  emulate sh
     139  NULLCMD=:
     140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
     141  # is contrary to our usage.  Disable this feature.
     142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     143  setopt NO_GLOB_SUBST
     144else
     145  case \`(set -o) 2>/dev/null\` in #(
     146  *posix*) :
     147    set -o posix ;; #(
     148  *) :
     149     ;;
     150esac
     151fi
     152"
     153  as_required="as_fn_return () { (exit \$1); }
     154as_fn_success () { as_fn_return 0; }
     155as_fn_failure () { as_fn_return 1; }
     156as_fn_ret_success () { return 0; }
     157as_fn_ret_failure () { return 1; }
     158
     159exitcode=0
     160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
     161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
     162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
     163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
     164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
     165
     166else
     167  exitcode=1; echo positional parameters were not saved.
     168fi
     169test x\$exitcode = x0 || exit 1"
     170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
     171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     174test \$(( 1 + 1 )) = 2 || exit 1"
     175  if (eval "$as_required") 2>/dev/null; then :
     176  as_have_required=yes
     177else
     178  as_have_required=no
     179fi
     180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
     181
     182else
     183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     184as_found=false
     185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    43186do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    45     eval $as_var=C; export $as_var
     187  IFS=$as_save_IFS
     188  test -z "$as_dir" && as_dir=.
     189  as_found=:
     190  case $as_dir in #(
     191     /*)
     192       for as_base in sh bash ksh sh5; do
     193         # Try only shells that exist, to save several forks.
     194         as_shell=$as_dir/$as_base
     195         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     196            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
     197  CONFIG_SHELL=$as_shell as_have_required=yes
     198           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
     199  break 2
     200fi
     201fi
     202       done;;
     203       esac
     204  as_found=false
     205done
     206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
     207          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
     208  CONFIG_SHELL=$SHELL as_have_required=yes
     209fi; }
     210IFS=$as_save_IFS
     211
     212
     213      if test "x$CONFIG_SHELL" != x; then :
     214  # We cannot yet assume a decent shell, so we have to provide a
     215    # neutralization value for shells without unset; and this also
     216    # works around shells that cannot unset nonexistent variables.
     217    BASH_ENV=/dev/null
     218    ENV=/dev/null
     219    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     220    export CONFIG_SHELL
     221    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     222fi
     223
     224    if test x$as_have_required = xno; then :
     225  $as_echo "$0: This script requires a shell more modern than all"
     226  $as_echo "$0: the shells that I found on your system."
     227  if test x${ZSH_VERSION+set} = xset ; then
     228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
     229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    46230  else
    47     $as_unset $as_var
     231    $as_echo "$0: Please tell [email protected] about your system,
     232$0: including any error possibly output before this
     233$0: message. Then install a modern shell, or manually run
     234$0: the script under such a shell if you do have one."
    48235  fi
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
     236  exit 1
     237fi
     238fi
     239fi
     240SHELL=${CONFIG_SHELL-/bin/sh}
     241export SHELL
     242# Unset more variables known to interfere with behavior of common tools.
     243CLICOLOR_FORCE= GREP_OPTIONS=
     244unset CLICOLOR_FORCE GREP_OPTIONS
     245
     246## --------------------- ##
     247## M4sh Shell Functions. ##
     248## --------------------- ##
     249# as_fn_unset VAR
     250# ---------------
     251# Portably unset VAR.
     252as_fn_unset ()
     253{
     254  { eval $1=; unset $1;}
     255}
     256as_unset=as_fn_unset
     257
     258# as_fn_set_status STATUS
     259# -----------------------
     260# Set $? to STATUS, without forking.
     261as_fn_set_status ()
     262{
     263  return $1
     264} # as_fn_set_status
     265
     266# as_fn_exit STATUS
     267# -----------------
     268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     269as_fn_exit ()
     270{
     271  set +e
     272  as_fn_set_status $1
     273  exit $1
     274} # as_fn_exit
     275
     276# as_fn_mkdir_p
     277# -------------
     278# Create "$as_dir" as a directory, including parents if necessary.
     279as_fn_mkdir_p ()
     280{
     281
     282  case $as_dir in #(
     283  -*) as_dir=./$as_dir;;
     284  esac
     285  test -d "$as_dir" || eval $as_mkdir_p || {
     286    as_dirs=
     287    while :; do
     288      case $as_dir in #(
     289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     290      *) as_qdir=$as_dir;;
     291      esac
     292      as_dirs="'$as_qdir' $as_dirs"
     293      as_dir=`$as_dirname -- "$as_dir" ||
     294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     295     X"$as_dir" : 'X\(//\)[^/]' \| \
     296     X"$as_dir" : 'X\(//\)$' \| \
     297     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     298$as_echo X"$as_dir" |
     299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     300        s//\1/
     301        q
     302      }
     303      /^X\(\/\/\)[^/].*/{
     304        s//\1/
     305        q
     306      }
     307      /^X\(\/\/\)$/{
     308        s//\1/
     309        q
     310      }
     311      /^X\(\/\).*/{
     312        s//\1/
     313        q
     314      }
     315      s/.*/./; q'`
     316      test -d "$as_dir" && break
     317    done
     318    test -z "$as_dirs" || eval "mkdir $as_dirs"
     319  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     320
     321
     322} # as_fn_mkdir_p
     323# as_fn_append VAR VALUE
     324# ----------------------
     325# Append the text in VALUE to the end of the definition contained in VAR. Take
     326# advantage of any shell optimizations that allow amortized linear growth over
     327# repeated appends, instead of the typical quadratic growth present in naive
     328# implementations.
     329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     330  eval 'as_fn_append ()
     331  {
     332    eval $1+=\$2
     333  }'
     334else
     335  as_fn_append ()
     336  {
     337    eval $1=\$$1\$2
     338  }
     339fi # as_fn_append
     340
     341# as_fn_arith ARG...
     342# ------------------
     343# Perform arithmetic evaluation on the ARGs, and store the result in the
     344# global $as_val. Take advantage of shells that can avoid forks. The arguments
     345# must be portable across $(()) and expr.
     346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     347  eval 'as_fn_arith ()
     348  {
     349    as_val=$(( $* ))
     350  }'
     351else
     352  as_fn_arith ()
     353  {
     354    as_val=`expr "$@" || test $? -eq 1`
     355  }
     356fi # as_fn_arith
     357
     358
     359# as_fn_error STATUS ERROR [LINENO LOG_FD]
     360# ----------------------------------------
     361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     363# script with STATUS, using 1 if that was 0.
     364as_fn_error ()
     365{
     366  as_status=$1; test $as_status -eq 0 && as_status=1
     367  if test "$4"; then
     368    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     370  fi
     371  $as_echo "$as_me: error: $2" >&2
     372  as_fn_exit $as_status
     373} # as_fn_error
     374
     375if expr a : '\(a\)' >/dev/null 2>&1 &&
     376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    53377  as_expr=expr
    54378else
     
    56380fi
    57381
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    59383  as_basename=basename
    60384else
     
    62386fi
    63387
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
     388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     389  as_dirname=dirname
     390else
     391  as_dirname=false
     392fi
     393
     394as_me=`$as_basename -- "$0" ||
    67395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68396     X"$0" : 'X\(//\)$' \| \
    69      X"$0" : 'X\(/\)$' \| \
    70      .     : '\(.\)' 2>/dev/null ||
    71 echo X/"$0" |
    72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    73       /^X\/\(\/\/\)$/{ s//\1/; q; }
    74       /^X\/\(\/\).*/{ s//\1/; q; }
    75       s/.*/./; q'`
    76 
    77 
    78 # PATH needs CR, and LINENO needs CR and PATH.
     397     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     398$as_echo X/"$0" |
     399    sed '/^.*\/\([^/][^/]*\)\/*$/{
     400        s//\1/
     401        q
     402      }
     403      /^X\/\(\/\/\)$/{
     404        s//\1/
     405        q
     406      }
     407      /^X\/\(\/\).*/{
     408        s//\1/
     409        q
     410      }
     411      s/.*/./; q'`
     412
    79413# Avoid depending upon Character Ranges.
    80414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    84418as_cr_alnum=$as_cr_Letters$as_cr_digits
    85419
    86 # The user is always right.
    87 if test "${PATH_SEPARATOR+set}" != set; then
    88   echo "#! /bin/sh" >conf$$.sh
    89   echo  "exit 0"   >>conf$$.sh
    90   chmod +x conf$$.sh
    91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    92     PATH_SEPARATOR=';'
    93   else
    94     PATH_SEPARATOR=:
    95   fi
    96   rm -f conf$$.sh
    97 fi
    98 
    99 
    100   as_lineno_1=$LINENO
    101   as_lineno_2=$LINENO
    102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105   # Find who we are.  Look in the path if we contain no path at all
    106   # relative or not.
    107   case $0 in
    108     *[\\/]* ) as_myself=$0 ;;
    109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    110 for as_dir in $PATH
    111 do
    112   IFS=$as_save_IFS
    113   test -z "$as_dir" && as_dir=.
    114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    115 done
    116 
    117        ;;
    118   esac
    119   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120   # in which case we are not to be found in the path.
    121   if test "x$as_myself" = x; then
    122     as_myself=$0
    123   fi
    124   if test ! -f "$as_myself"; then
    125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126    { (exit 1); exit 1; }; }
    127   fi
    128   case $CONFIG_SHELL in
    129   '')
    130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    132 do
    133   IFS=$as_save_IFS
    134   test -z "$as_dir" && as_dir=.
    135   for as_base in sh bash ksh sh5; do
    136      case $as_dir in
    137      /*)
    138        if ("$as_dir/$as_base" -c '
    139   as_lineno_1=$LINENO
    140   as_lineno_2=$LINENO
    141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142   test "x$as_lineno_1" != "x$as_lineno_2" &&
    143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146          CONFIG_SHELL=$as_dir/$as_base
    147          export CONFIG_SHELL
    148          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149        fi;;
    150      esac
    151        done
    152 done
    153 ;;
    154   esac
    155 
    156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157   # uniformly replaced by the line number.  The first 'sed' inserts a
    158   # line-number line before each line; the second 'sed' does the real
    159   # work.  The second script uses 'N' to pair each line-number line
    160   # with the numbered line, and appends trailing '-' during
    161   # substitution so that $LINENO is not a special case at line end.
    162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164   sed '=' <$as_myself |
     420
     421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
     422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
     423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
     424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
     425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     426  sed -n '
     427    p
     428    /[$]LINENO/=
     429  ' <$as_myself |
    165430    sed '
     431      s/[$]LINENO.*/&-/
     432      t lineno
     433      b
     434      :lineno
    166435      N
    167       s,$,-,
    168       : loop
    169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     436      :loop
     437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    170438      t loop
    171       s,-$,,
    172       s,^['$as_cr_digits']*\n,,
     439      s/-\n.*//
    173440    ' >$as_me.lineno &&
    174   chmod +x $as_me.lineno ||
    175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176    { (exit 1); exit 1; }; }
     441  chmod +x "$as_me.lineno" ||
     442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    177443
    178444  # Don't try to exec as it changes $[0], causing all sort of problems
    179445  # (the dirname of $[0] is not the place where we might find the
    180   # original and so on.  Autoconf is especially sensible to this).
    181   . ./$as_me.lineno
     446  # original and so on.  Autoconf is especially sensitive to this).
     447  . "./$as_me.lineno"
    182448  # Exit status is that of the last command.
    183449  exit
    184450}
    185451
    186 
    187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188   *c*,-n*) ECHO_N= ECHO_C='
    189 ' ECHO_T='  ' ;;
    190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     452ECHO_C= ECHO_N= ECHO_T=
     453case `echo -n x` in #(((((
     454-n*)
     455  case `echo 'xy\c'` in
     456  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     457  xy)  ECHO_C='\c';;
     458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     459       ECHO_T=' ';;
     460  esac;;
     461*)
     462  ECHO_N='-n';;
    192463esac
    193464
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
    195   as_expr=expr
    196 else
    197   as_expr=false
    198 fi
    199 
    200465rm -f conf$$ conf$$.exe conf$$.file
    201 echo >conf$$.file
    202 if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
     466if test -d conf$$.dir; then
     467  rm -f conf$$.dir/conf$$.file
     468else
     469  rm -f conf$$.dir
     470  mkdir conf$$.dir 2>/dev/null
     471fi
     472if (echo >conf$$.file) 2>/dev/null; then
     473  if ln -s conf$$.file conf$$ 2>/dev/null; then
     474    as_ln_s='ln -s'
     475    # ... but there are two gotchas:
     476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     478    # In both cases, we have to default to `cp -p'.
     479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     480      as_ln_s='cp -p'
     481  elif ln conf$$.file conf$$ 2>/dev/null; then
     482    as_ln_s=ln
     483  else
    207484    as_ln_s='cp -p'
    208   else
    209     as_ln_s='ln -s'
    210485  fi
    211 elif ln conf$$.file conf$$ 2>/dev/null; then
    212   as_ln_s=ln
    213486else
    214487  as_ln_s='cp -p'
    215488fi
    216 rm -f conf$$ conf$$.exe conf$$.file
     489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     490rmdir conf$$.dir 2>/dev/null
    217491
    218492if mkdir -p . 2>/dev/null; then
    219   as_mkdir_p=:
     493  as_mkdir_p='mkdir -p "$as_dir"'
    220494else
    221495  test -d ./-p && rmdir ./-p
     
    223497fi
    224498
    225 as_executable_p="test -f"
     499if test -x / >/dev/null 2>&1; then
     500  as_test_x='test -x'
     501else
     502  if ls -dL / >/dev/null 2>&1; then
     503    as_ls_L_option=L
     504  else
     505    as_ls_L_option=
     506  fi
     507  as_test_x='
     508    eval sh -c '\''
     509      if test -d "$1"; then
     510    test -d "$1/.";
     511      else
     512    case $1 in #(
     513    -*)set "./$1";;
     514    esac;
     515    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     516    ???[sx]*):;;*)false;;esac;fi
     517    '\'' sh
     518  '
     519fi
     520as_executable_p=$as_test_x
    226521
    227522# Sed expression to map a string onto a valid CPP name.
     
    232527
    233528
    234 # IFS
    235 # We need space, tab and new line, in precisely that order.
    236 as_nl='
    237 '
    238 IFS="   $as_nl"
    239 
    240 # CDPATH.
    241 $as_unset CDPATH
    242 
     529test -n "$DJDIR" || exec 7<&0 </dev/null
     530exec 6>&1
    243531
    244532# Name of the host.
    245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    246534# so uname gets run too.
    247535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    248 
    249 exec 6>&1
    250536
    251537#
     
    253539#
    254540ac_default_prefix=/usr/local
     541ac_clean_files=
    255542ac_config_libobj_dir=.
     543LIBOBJS=
    256544cross_compiling=no
    257545subdirs=
    258546MFLAGS=
    259547MAKEFLAGS=
    260 SHELL=${CONFIG_SHELL-/bin/sh}
    261 
    262 # Maximum number of lines to put in a shell here document.
    263 # This variable seems obsolete.  It should probably be removed, and
    264 # only ac_max_sed_lines should be used.
    265 : ${ac_max_here_lines=38}
    266548
    267549# Identity of this package.
     
    271553PACKAGE_STRING=
    272554PACKAGE_BUGREPORT=
     555PACKAGE_URL=
    273556
    274557# Factoring default headers for most tests.
    275558ac_includes_default="\
    276559#include <stdio.h>
    277 #if HAVE_SYS_TYPES_H
     560#ifdef HAVE_SYS_TYPES_H
    278561# include <sys/types.h>
    279562#endif
    280 #if HAVE_SYS_STAT_H
     563#ifdef HAVE_SYS_STAT_H
    281564# include <sys/stat.h>
    282565#endif
    283 #if STDC_HEADERS
     566#ifdef STDC_HEADERS
    284567# include <stdlib.h>
    285568# include <stddef.h>
    286569#else
    287 # if HAVE_STDLIB_H
     570# ifdef HAVE_STDLIB_H
    288571#  include <stdlib.h>
    289572# endif
    290573#endif
    291 #if HAVE_STRING_H
    292 # if !STDC_HEADERS && HAVE_MEMORY_H
     574#ifdef HAVE_STRING_H
     575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    293576#  include <memory.h>
    294577# endif
    295578# include <string.h>
    296579#endif
    297 #if HAVE_STRINGS_H
     580#ifdef HAVE_STRINGS_H
    298581# include <strings.h>
    299582#endif
    300 #if HAVE_INTTYPES_H
     583#ifdef HAVE_INTTYPES_H
    301584# include <inttypes.h>
    302 #else
    303 # if HAVE_STDINT_H
    304 #  include <stdint.h>
    305 # endif
    306585#endif
    307 #if HAVE_UNISTD_H
     586#ifdef HAVE_STDINT_H
     587# include <stdint.h>
     588#endif
     589#ifdef HAVE_UNISTD_H
    308590# include <unistd.h>
    309591#endif"
    310592
    311 ac_subdirs_all="$ac_subdirs_all packages"
    312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
     593enable_option_checking=no
     594ac_subst_vars='LTLIBOBJS
     595subdirs
     596MODULEDIRS
     597gsdlos
     598STATIC
     599LIBOBJS
     600ALLOCA
     601ANSI2KNR
     602U
     603EGREP
     604GREP
     605CPP
     606MICO_VER
     607COMPAT32BITFLAGS
     608RANLIB
     609SET_MAKE
     610LN_S
     611INSTALL_DATA
     612INSTALL_SCRIPT
     613INSTALL_PROGRAM
     614target_os
     615target_vendor
     616target_cpu
     617target
     618host_os
     619host_vendor
     620host_cpu
     621host
     622build_os
     623build_vendor
     624build_cpu
     625build
     626YFLAGS
     627YACC
     628AWK
     629uudecode
     630JAVA
     631JAVACFLAGS
     632JAVAC
     633ac_ct_CXX
     634CXXFLAGS
     635CXX
     636OBJEXT
     637EXEEXT
     638ac_ct_CC
     639CPPFLAGS
     640CC
     641CFLAGS
     642LDFLAGS
     643ENABLE_LUCENE
     644ENABLE_MGPP
     645ENABLE_MG
     646USE_APACHE_HTTPD
     647USE_SQLITE
     648ENABLE_ACCENTFOLD
     649USE_GDBM
     650USE_JDBM
     651ENABLE_JAVA
     652USE_YAZ
     653USE_Z3950
     654MICO_DIR
     655USE_CORBA
     656USE_LANGACTION
     657USE_FASTCGI
     658VERSION
     659PACKAGE
     660target_alias
     661host_alias
     662build_alias
     663LIBS
     664ECHO_T
     665ECHO_N
     666ECHO_C
     667DEFS
     668mandir
     669localedir
     670libdir
     671psdir
     672pdfdir
     673dvidir
     674htmldir
     675infodir
     676docdir
     677oldincludedir
     678includedir
     679localstatedir
     680sharedstatedir
     681sysconfdir
     682datadir
     683datarootdir
     684libexecdir
     685sbindir
     686bindir
     687program_transform_name
     688prefix
     689exec_prefix
     690PACKAGE_URL
     691PACKAGE_BUGREPORT
     692PACKAGE_STRING
     693PACKAGE_VERSION
     694PACKAGE_TARNAME
     695PACKAGE_NAME
     696PATH_SEPARATOR
     697SHELL'
    313698ac_subst_files=''
     699ac_user_opts='
     700enable_option_checking
     701enable_corba
     702with_micodir
     703enable_z3950
     704enable_yaz
     705enable_java
     706enable_jdbm
     707enable_gdbm
     708enable_accentfold
     709enable_sqlite
     710enable_apache_httpd
     711enable_mg
     712enable_mgpp
     713enable_lucene
     714with_dmalloc
     715with_regex
     716'
     717      ac_precious_vars='build_alias
     718host_alias
     719target_alias
     720CC
     721CFLAGS
     722LDFLAGS
     723LIBS
     724CPPFLAGS
     725CXX
     726CXXFLAGS
     727CCC
     728YACC
     729YFLAGS
     730CPP'
     731ac_subdirs_all='packages'
    314732
    315733# Initialize some variables set by options.
    316734ac_init_help=
    317735ac_init_version=false
     736ac_unrecognized_opts=
     737ac_unrecognized_sep=
    318738# The variables have the same names as the options, with
    319739# dashes changed to underlines.
     
    338758# by default will actually change.
    339759# Use braces instead of parens because sh, perl, etc. also accept them.
     760# (The list follows the same order as the GNU Coding Standards.)
    340761bindir='${exec_prefix}/bin'
    341762sbindir='${exec_prefix}/sbin'
    342763libexecdir='${exec_prefix}/libexec'
    343 datadir='${prefix}/share'
     764datarootdir='${prefix}/share'
     765datadir='${datarootdir}'
    344766sysconfdir='${prefix}/etc'
    345767sharedstatedir='${prefix}/com'
    346768localstatedir='${prefix}/var'
    347 libdir='${exec_prefix}/lib'
    348769includedir='${prefix}/include'
    349770oldincludedir='/usr/include'
    350 infodir='${prefix}/info'
    351 mandir='${prefix}/man'
     771docdir='${datarootdir}/doc/${PACKAGE}'
     772infodir='${datarootdir}/info'
     773htmldir='${docdir}'
     774dvidir='${docdir}'
     775pdfdir='${docdir}'
     776psdir='${docdir}'
     777libdir='${exec_prefix}/lib'
     778localedir='${datarootdir}/locale'
     779mandir='${datarootdir}/man'
    352780
    353781ac_prev=
     782ac_dashdash=
    354783for ac_option
    355784do
    356785  # If the previous option needs an argument, assign it.
    357786  if test -n "$ac_prev"; then
    358     eval "$ac_prev=\$ac_option"
     787    eval $ac_prev=\$ac_option
    359788    ac_prev=
    360789    continue
    361790  fi
    362791
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     792  case $ac_option in
     793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     794  *=)   ac_optarg= ;;
     795  *)    ac_optarg=yes ;;
     796  esac
    364797
    365798  # Accept the important Cygnus configure options, so we can diagnose typos.
    366799
    367   case $ac_option in
     800  case $ac_dashdash$ac_option in
     801  --)
     802    ac_dashdash=yes ;;
    368803
    369804  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    387822    cache_file=config.cache ;;
    388823
    389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     824  -datadir | --datadir | --datadi | --datad)
    390825    ac_prev=datadir ;;
    391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392   | --da=*)
     826  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    393827    datadir=$ac_optarg ;;
    394828
     829  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     830  | --dataroo | --dataro | --datar)
     831    ac_prev=datarootdir ;;
     832  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     833  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     834    datarootdir=$ac_optarg ;;
     835
    395836  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     837    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    397838    # Reject names that are not valid shell variable names.
    398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    400    { (exit 1); exit 1; }; }
    401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    402     eval "enable_$ac_feature=no" ;;
     839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     840      as_fn_error $? "invalid feature name: $ac_useropt"
     841    ac_useropt_orig=$ac_useropt
     842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     843    case $ac_user_opts in
     844      *"
     845"enable_$ac_useropt"
     846"*) ;;
     847      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     848     ac_unrecognized_sep=', ';;
     849    esac
     850    eval enable_$ac_useropt=no ;;
     851
     852  -docdir | --docdir | --docdi | --doc | --do)
     853    ac_prev=docdir ;;
     854  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     855    docdir=$ac_optarg ;;
     856
     857  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     858    ac_prev=dvidir ;;
     859  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     860    dvidir=$ac_optarg ;;
    403861
    404862  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     863    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    406864    # Reject names that are not valid shell variable names.
    407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    409    { (exit 1); exit 1; }; }
    410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    411     case $ac_option in
    412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    413       *) ac_optarg=yes ;;
     865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     866      as_fn_error $? "invalid feature name: $ac_useropt"
     867    ac_useropt_orig=$ac_useropt
     868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     869    case $ac_user_opts in
     870      *"
     871"enable_$ac_useropt"
     872"*) ;;
     873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     874     ac_unrecognized_sep=', ';;
    414875    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     876    eval enable_$ac_useropt=\$ac_optarg ;;
    416877
    417878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    440901    host_alias=$ac_optarg ;;
    441902
     903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     904    ac_prev=htmldir ;;
     905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     906  | --ht=*)
     907    htmldir=$ac_optarg ;;
     908
    442909  -includedir | --includedir | --includedi | --included | --include \
    443910  | --includ | --inclu | --incl | --inc)
     
    464931    libexecdir=$ac_optarg ;;
    465932
     933  -localedir | --localedir | --localedi | --localed | --locale)
     934    ac_prev=localedir ;;
     935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     936    localedir=$ac_optarg ;;
     937
    466938  -localstatedir | --localstatedir | --localstatedi | --localstated \
    467   | --localstate | --localstat | --localsta | --localst \
    468   | --locals | --local | --loca | --loc | --lo)
     939  | --localstate | --localstat | --localsta | --localst | --locals)
    469940    ac_prev=localstatedir ;;
    470941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    473943    localstatedir=$ac_optarg ;;
    474944
     
    5351005    program_transform_name=$ac_optarg ;;
    5361006
     1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     1008    ac_prev=pdfdir ;;
     1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     1010    pdfdir=$ac_optarg ;;
     1011
     1012  -psdir | --psdir | --psdi | --psd | --ps)
     1013    ac_prev=psdir ;;
     1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     1015    psdir=$ac_optarg ;;
     1016
    5371017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    5381018  | -silent | --silent | --silen | --sile | --sil)
     
    5851065
    5861066  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1067    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5881068    # Reject names that are not valid shell variable names.
    589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    590       { echo "$as_me: error: invalid package name: $ac_package" >&2
    591    { (exit 1); exit 1; }; }
    592     ac_package=`echo $ac_package| sed 's/-/_/g'`
    593     case $ac_option in
    594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    595       *) ac_optarg=yes ;;
     1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1070      as_fn_error $? "invalid package name: $ac_useropt"
     1071    ac_useropt_orig=$ac_useropt
     1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1073    case $ac_user_opts in
     1074      *"
     1075"with_$ac_useropt"
     1076"*) ;;
     1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1078     ac_unrecognized_sep=', ';;
    5961079    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     1080    eval with_$ac_useropt=\$ac_optarg ;;
    5981081
    5991082  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1083    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6011084    # Reject names that are not valid shell variable names.
    602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    603       { echo "$as_me: error: invalid package name: $ac_package" >&2
    604    { (exit 1); exit 1; }; }
    605     ac_package=`echo $ac_package | sed 's/-/_/g'`
    606     eval "with_$ac_package=no" ;;
     1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1086      as_fn_error $? "invalid package name: $ac_useropt"
     1087    ac_useropt_orig=$ac_useropt
     1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1089    case $ac_user_opts in
     1090      *"
     1091"with_$ac_useropt"
     1092"*) ;;
     1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1094     ac_unrecognized_sep=', ';;
     1095    esac
     1096    eval with_$ac_useropt=no ;;
    6071097
    6081098  --x)
     
    6241114    x_libraries=$ac_optarg ;;
    6251115
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1117Try \`$0 --help' for more information"
    6291118    ;;
    6301119
     
    6321121    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6331122    # Reject names that are not valid shell variable names.
    634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    636    { (exit 1); exit 1; }; }
    637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    638     eval "$ac_envvar='$ac_optarg'"
     1123    case $ac_envvar in #(
     1124      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1126    esac
     1127    eval $ac_envvar=\$ac_optarg
    6391128    export $ac_envvar ;;
    6401129
    6411130  *)
    6421131    # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1132    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6441133    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1134      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6461135    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6471136    ;;
     
    6521141if test -n "$ac_prev"; then
    6531142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    654   { echo "$as_me: error: missing argument to $ac_option" >&2
    655    { (exit 1); exit 1; }; }
    656 fi
    657 
    658 # Be sure to have absolute paths.
    659 for ac_var in exec_prefix prefix
     1143  as_fn_error $? "missing argument to $ac_option"
     1144fi
     1145
     1146if test -n "$ac_unrecognized_opts"; then
     1147  case $enable_option_checking in
     1148    no) ;;
     1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1151  esac
     1152fi
     1153
     1154# Check all directory arguments for consistency.
     1155for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1156        datadir sysconfdir sharedstatedir localstatedir includedir \
     1157        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1158        libdir localedir mandir
    6601159do
    661   eval ac_val=$`echo $ac_var`
     1160  eval ac_val=\$$ac_var
     1161  # Remove trailing slashes.
    6621162  case $ac_val in
    663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    665    { (exit 1); exit 1; }; };;
     1163    */ )
     1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1165      eval $ac_var=\$ac_val;;
    6661166  esac
    667 done
    668 
    669 # Be sure to have absolute paths.
    670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    671           localstatedir libdir includedir oldincludedir infodir mandir
    672 do
    673   eval ac_val=$`echo $ac_var`
     1167  # Be sure to have absolute directory names.
    6741168  case $ac_val in
    675     [\\/$]* | ?:[\\/]* ) ;;
    676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    677    { (exit 1); exit 1; }; };;
     1169    [\\/$]* | ?:[\\/]* )  continue;;
     1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6781171  esac
     1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6791173done
    6801174
     
    6901184  if test "x$build_alias" = x; then
    6911185    cross_compiling=maybe
    692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    693     If a cross compiler is detected then cross compile mode will be used." >&2
     1186    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1187    If a cross compiler is detected then cross compile mode will be used" >&2
    6941188  elif test "x$build_alias" != "x$host_alias"; then
    6951189    cross_compiling=yes
     
    7031197
    7041198
     1199ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1200ac_ls_di=`ls -di .` &&
     1201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1202  as_fn_error $? "working directory cannot be determined"
     1203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1204  as_fn_error $? "pwd does not report name of working directory"
     1205
     1206
    7051207# Find the source files, if location was not specified.
    7061208if test -z "$srcdir"; then
    7071209  ac_srcdir_defaulted=yes
    708   # Try the directory containing this script, then its parent.
    709   ac_confdir=`(dirname "$0") 2>/dev/null ||
    710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    711      X"$0" : 'X\(//\)[^/]' \| \
    712      X"$0" : 'X\(//\)$' \| \
    713      X"$0" : 'X\(/\)' \| \
    714      .     : '\(.\)' 2>/dev/null ||
    715 echo X"$0" |
    716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    717       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    718       /^X\(\/\/\)$/{ s//\1/; q; }
    719       /^X\(\/\).*/{ s//\1/; q; }
    720       s/.*/./; q'`
     1210  # Try the directory containing this script, then the parent directory.
     1211  ac_confdir=`$as_dirname -- "$as_myself" ||
     1212$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1213     X"$as_myself" : 'X\(//\)[^/]' \| \
     1214     X"$as_myself" : 'X\(//\)$' \| \
     1215     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1216$as_echo X"$as_myself" |
     1217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1218        s//\1/
     1219        q
     1220      }
     1221      /^X\(\/\/\)[^/].*/{
     1222        s//\1/
     1223        q
     1224      }
     1225      /^X\(\/\/\)$/{
     1226        s//\1/
     1227        q
     1228      }
     1229      /^X\(\/\).*/{
     1230        s//\1/
     1231        q
     1232      }
     1233      s/.*/./; q'`
    7211234  srcdir=$ac_confdir
    722   if test ! -r $srcdir/$ac_unique_file; then
     1235  if test ! -r "$srcdir/$ac_unique_file"; then
    7231236    srcdir=..
    7241237  fi
     
    7261239  ac_srcdir_defaulted=no
    7271240fi
    728 if test ! -r $srcdir/$ac_unique_file; then
    729   if test "$ac_srcdir_defaulted" = yes; then
    730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    731    { (exit 1); exit 1; }; }
    732   else
    733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    734    { (exit 1); exit 1; }; }
    735   fi
    736 fi
    737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    739    { (exit 1); exit 1; }; }
    740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    741 ac_env_build_alias_set=${build_alias+set}
    742 ac_env_build_alias_value=$build_alias
    743 ac_cv_env_build_alias_set=${build_alias+set}
    744 ac_cv_env_build_alias_value=$build_alias
    745 ac_env_host_alias_set=${host_alias+set}
    746 ac_env_host_alias_value=$host_alias
    747 ac_cv_env_host_alias_set=${host_alias+set}
    748 ac_cv_env_host_alias_value=$host_alias
    749 ac_env_target_alias_set=${target_alias+set}
    750 ac_env_target_alias_value=$target_alias
    751 ac_cv_env_target_alias_set=${target_alias+set}
    752 ac_cv_env_target_alias_value=$target_alias
    753 ac_env_CC_set=${CC+set}
    754 ac_env_CC_value=$CC
    755 ac_cv_env_CC_set=${CC+set}
    756 ac_cv_env_CC_value=$CC
    757 ac_env_CFLAGS_set=${CFLAGS+set}
    758 ac_env_CFLAGS_value=$CFLAGS
    759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    760 ac_cv_env_CFLAGS_value=$CFLAGS
    761 ac_env_LDFLAGS_set=${LDFLAGS+set}
    762 ac_env_LDFLAGS_value=$LDFLAGS
    763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_cv_env_LDFLAGS_value=$LDFLAGS
    765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    766 ac_env_CPPFLAGS_value=$CPPFLAGS
    767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_env_CXX_set=${CXX+set}
    770 ac_env_CXX_value=$CXX
    771 ac_cv_env_CXX_set=${CXX+set}
    772 ac_cv_env_CXX_value=$CXX
    773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    774 ac_env_CXXFLAGS_value=$CXXFLAGS
    775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    777 ac_env_CPP_set=${CPP+set}
    778 ac_env_CPP_value=$CPP
    779 ac_cv_env_CPP_set=${CPP+set}
    780 ac_cv_env_CPP_value=$CPP
     1241if test ! -r "$srcdir/$ac_unique_file"; then
     1242  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1243  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1244fi
     1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1246ac_abs_confdir=`(
     1247    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1248    pwd)`
     1249# When building in place, set srcdir=.
     1250if test "$ac_abs_confdir" = "$ac_pwd"; then
     1251  srcdir=.
     1252fi
     1253# Remove unnecessary trailing slashes from srcdir.
     1254# Double slashes in file names in object file debugging info
     1255# mess up M-x gdb in Emacs.
     1256case $srcdir in
     1257*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1258esac
     1259for ac_var in $ac_precious_vars; do
     1260  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1261  eval ac_env_${ac_var}_value=\$${ac_var}
     1262  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1263  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1264done
    7811265
    7821266#
     
    8011285      --help=recursive    display the short help of all the included packages
    8021286  -V, --version           display version information and exit
    803   -q, --quiet, --silent   do not print \`checking...' messages
     1287  -q, --quiet, --silent   do not print \`checking ...' messages
    8041288      --cache-file=FILE   cache test results in FILE [disabled]
    8051289  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8071291      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8081292
    809 _ACEOF
    810 
    811   cat <<_ACEOF
    8121293Installation directories:
    8131294  --prefix=PREFIX         install architecture-independent files in PREFIX
    814               [$ac_default_prefix]
     1295                          [$ac_default_prefix]
    8151296  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    816               [PREFIX]
     1297                          [PREFIX]
    8171298
    8181299By default, \`make install' will install all the files in
     
    8241305
    8251306Fine tuning of the installation directories:
    826   --bindir=DIR           user executables [EPREFIX/bin]
    827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    828   --libexecdir=DIR       program executables [EPREFIX/libexec]
    829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    833   --libdir=DIR           object code libraries [EPREFIX/lib]
    834   --includedir=DIR       C header files [PREFIX/include]
    835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    836   --infodir=DIR          info documentation [PREFIX/info]
    837   --mandir=DIR           man documentation [PREFIX/man]
     1307  --bindir=DIR            user executables [EPREFIX/bin]
     1308  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1309  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1310  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1311  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1312  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1313  --libdir=DIR            object code libraries [EPREFIX/lib]
     1314  --includedir=DIR        C header files [PREFIX/include]
     1315  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1316  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1317  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1318  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1319  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1320  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1321  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1322  --htmldir=DIR           html documentation [DOCDIR]
     1323  --dvidir=DIR            dvi documentation [DOCDIR]
     1324  --pdfdir=DIR            pdf documentation [DOCDIR]
     1325  --psdir=DIR             ps documentation [DOCDIR]
    8381326_ACEOF
    8391327
     
    8521340
    8531341Optional Features:
     1342  --disable-option-checking  ignore unrecognized --enable/--with options
    8541343  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8551344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     
    8571346  --enable-z3950          Enable Z39.50 client support
    8581347  --disable-yaz           Disable YAZ compilation
     1348  --disable-java          Disable Java compilation
    8591349  --disable-jdbm        Disable JDBM compilation
    8601350  --disable-gdbm        Disable GDBM compilation
     
    8791369  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8801370              nonstandard directory <lib dir>
    881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    882               headers in a nonstandard directory <include dir>
     1371  LIBS        libraries to pass to the linker, e.g. -l<library>
     1372  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1373              you have headers in a nonstandard directory <include dir>
    8831374  CXX         C++ compiler command
    8841375  CXXFLAGS    C++ compiler flags
     1376  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1377              the first program found out of: `bison -y', `byacc', `yacc'.
     1378  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1379              This script will default YFLAGS to the empty string to avoid a
     1380              default value of `-d' given by some make applications.
    8851381  CPP         C preprocessor
    8861382
     
    8881384it to find libraries and programs with nonstandard names/locations.
    8891385
    890 _ACEOF
     1386Report bugs to the package provider.
     1387_ACEOF
     1388ac_status=$?
    8911389fi
    8921390
    8931391if test "$ac_init_help" = "recursive"; then
    8941392  # If there are subdirs, report their specific --help.
    895   ac_popdir=`pwd`
    8961393  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    897     test -d $ac_dir || continue
     1394    test -d "$ac_dir" ||
     1395      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1396      continue
    8981397    ac_builddir=.
    8991398
    900 if test "$ac_dir" != .; then
    901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    902   # A "../" for each directory in $ac_dir_suffix.
    903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    904 else
    905   ac_dir_suffix= ac_top_builddir=
    906 fi
     1399case "$ac_dir" in
     1400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1401*)
     1402  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1403  # A ".." for each directory in $ac_dir_suffix.
     1404  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1405  case $ac_top_builddir_sub in
     1406  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1407  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1408  esac ;;
     1409esac
     1410ac_abs_top_builddir=$ac_pwd
     1411ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1412# for backward compatibility:
     1413ac_top_builddir=$ac_top_build_prefix
    9071414
    9081415case $srcdir in
    909   .)  # No --srcdir option.  We are building in place.
     1416  .)  # We are building in place.
    9101417    ac_srcdir=.
    911     if test -z "$ac_top_builddir"; then
    912        ac_top_srcdir=.
     1418    ac_top_srcdir=$ac_top_builddir_sub
     1419    ac_abs_top_srcdir=$ac_pwd ;;
     1420  [\\/]* | ?:[\\/]* )  # Absolute name.
     1421    ac_srcdir=$srcdir$ac_dir_suffix;
     1422    ac_top_srcdir=$srcdir
     1423    ac_abs_top_srcdir=$srcdir ;;
     1424  *) # Relative name.
     1425    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1426    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1427    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1428esac
     1429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1430
     1431    cd "$ac_dir" || { ac_status=$?; continue; }
     1432    # Check for guested configure.
     1433    if test -f "$ac_srcdir/configure.gnu"; then
     1434      echo &&
     1435      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1436    elif test -f "$ac_srcdir/configure"; then
     1437      echo &&
     1438      $SHELL "$ac_srcdir/configure" --help=recursive
    9131439    else
    914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    915     fi ;;
    916   [\\/]* | ?:[\\/]* )  # Absolute path.
    917     ac_srcdir=$srcdir$ac_dir_suffix;
    918     ac_top_srcdir=$srcdir ;;
    919   *) # Relative path.
    920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    922 esac
    923 
    924 # Do not use `cd foo && pwd` to compute absolute paths, because
    925 # the directories may not exist.
    926 case `pwd` in
    927 .) ac_abs_builddir="$ac_dir";;
    928 *)
    929   case "$ac_dir" in
    930   .) ac_abs_builddir=`pwd`;;
    931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    933   esac;;
    934 esac
    935 case $ac_abs_builddir in
    936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    937 *)
    938   case ${ac_top_builddir}. in
    939   .) ac_abs_top_builddir=$ac_abs_builddir;;
    940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    942   esac;;
    943 esac
    944 case $ac_abs_builddir in
    945 .) ac_abs_srcdir=$ac_srcdir;;
    946 *)
    947   case $ac_srcdir in
    948   .) ac_abs_srcdir=$ac_abs_builddir;;
    949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    951   esac;;
    952 esac
    953 case $ac_abs_builddir in
    954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    955 *)
    956   case $ac_top_srcdir in
    957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    960   esac;;
    961 esac
    962 
    963     cd $ac_dir
    964     # Check for guested configure; otherwise get Cygnus style configure.
    965     if test -f $ac_srcdir/configure.gnu; then
    966       echo
    967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    968     elif test -f $ac_srcdir/configure; then
    969       echo
    970       $SHELL $ac_srcdir/configure  --help=recursive
    971     elif test -f $ac_srcdir/configure.ac ||
    972        test -f $ac_srcdir/configure.in; then
    973       echo
    974       $ac_configure --help
    975     else
    976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    977     fi
    978     cd $ac_popdir
     1440      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1441    fi || ac_status=$?
     1442    cd "$ac_pwd" || { ac_status=$?; break; }
    9791443  done
    9801444fi
    9811445
    982 test -n "$ac_init_help" && exit 0
     1446test -n "$ac_init_help" && exit $ac_status
    9831447if $ac_init_version; then
    9841448  cat <<\_ACEOF
    985 
    986 Copyright (C) 2003 Free Software Foundation, Inc.
     1449configure
     1450generated by GNU Autoconf 2.67
     1451
     1452Copyright (C) 2010 Free Software Foundation, Inc.
    9871453This configure script is free software; the Free Software Foundation
    9881454gives unlimited permission to copy, distribute and modify it.
    9891455_ACEOF
    990   exit 0
    991 fi
    992 exec 5>config.log
    993 cat >&5 <<_ACEOF
     1456  exit
     1457fi
     1458
     1459## ------------------------ ##
     1460## Autoconf initialization. ##
     1461## ------------------------ ##
     1462
     1463# ac_fn_c_try_compile LINENO
     1464# --------------------------
     1465# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1466ac_fn_c_try_compile ()
     1467{
     1468  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1469  rm -f conftest.$ac_objext
     1470  if { { ac_try="$ac_compile"
     1471case "(($ac_try" in
     1472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1473  *) ac_try_echo=$ac_try;;
     1474esac
     1475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1476$as_echo "$ac_try_echo"; } >&5
     1477  (eval "$ac_compile") 2>conftest.err
     1478  ac_status=$?
     1479  if test -s conftest.err; then
     1480    grep -v '^ *+' conftest.err >conftest.er1
     1481    cat conftest.er1 >&5
     1482    mv -f conftest.er1 conftest.err
     1483  fi
     1484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1485  test $ac_status = 0; } && {
     1486     test -z "$ac_c_werror_flag" ||
     1487     test ! -s conftest.err
     1488       } && test -s conftest.$ac_objext; then :
     1489  ac_retval=0
     1490else
     1491  $as_echo "$as_me: failed program was:" >&5
     1492sed 's/^/| /' conftest.$ac_ext >&5
     1493
     1494    ac_retval=1
     1495fi
     1496  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1497  as_fn_set_status $ac_retval
     1498
     1499} # ac_fn_c_try_compile
     1500
     1501# ac_fn_cxx_try_compile LINENO
     1502# ----------------------------
     1503# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1504ac_fn_cxx_try_compile ()
     1505{
     1506  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1507  rm -f conftest.$ac_objext
     1508  if { { ac_try="$ac_compile"
     1509case "(($ac_try" in
     1510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1511  *) ac_try_echo=$ac_try;;
     1512esac
     1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1514$as_echo "$ac_try_echo"; } >&5
     1515  (eval "$ac_compile") 2>conftest.err
     1516  ac_status=$?
     1517  if test -s conftest.err; then
     1518    grep -v '^ *+' conftest.err >conftest.er1
     1519    cat conftest.er1 >&5
     1520    mv -f conftest.er1 conftest.err
     1521  fi
     1522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1523  test $ac_status = 0; } && {
     1524     test -z "$ac_cxx_werror_flag" ||
     1525     test ! -s conftest.err
     1526       } && test -s conftest.$ac_objext; then :
     1527  ac_retval=0
     1528else
     1529  $as_echo "$as_me: failed program was:" >&5
     1530sed 's/^/| /' conftest.$ac_ext >&5
     1531
     1532    ac_retval=1
     1533fi
     1534  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1535  as_fn_set_status $ac_retval
     1536
     1537} # ac_fn_cxx_try_compile
     1538
     1539# ac_fn_c_try_cpp LINENO
     1540# ----------------------
     1541# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1542ac_fn_c_try_cpp ()
     1543{
     1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1545  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1546case "(($ac_try" in
     1547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1548  *) ac_try_echo=$ac_try;;
     1549esac
     1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1551$as_echo "$ac_try_echo"; } >&5
     1552  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1553  ac_status=$?
     1554  if test -s conftest.err; then
     1555    grep -v '^ *+' conftest.err >conftest.er1
     1556    cat conftest.er1 >&5
     1557    mv -f conftest.er1 conftest.err
     1558  fi
     1559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1560  test $ac_status = 0; } > conftest.i && {
     1561     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1562     test ! -s conftest.err
     1563       }; then :
     1564  ac_retval=0
     1565else
     1566  $as_echo "$as_me: failed program was:" >&5
     1567sed 's/^/| /' conftest.$ac_ext >&5
     1568
     1569    ac_retval=1
     1570fi
     1571  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1572  as_fn_set_status $ac_retval
     1573
     1574} # ac_fn_c_try_cpp
     1575
     1576# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1577# -------------------------------------------------------
     1578# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1579# the include files in INCLUDES and setting the cache variable VAR
     1580# accordingly.
     1581ac_fn_c_check_header_mongrel ()
     1582{
     1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1584  if eval "test \"\${$3+set}\"" = set; then :
     1585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1586$as_echo_n "checking for $2... " >&6; }
     1587if eval "test \"\${$3+set}\"" = set; then :
     1588  $as_echo_n "(cached) " >&6
     1589fi
     1590eval ac_res=\$$3
     1591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1592$as_echo "$ac_res" >&6; }
     1593else
     1594  # Is the header compilable?
     1595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1596$as_echo_n "checking $2 usability... " >&6; }
     1597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1598/* end confdefs.h.  */
     1599$4
     1600#include <$2>
     1601_ACEOF
     1602if ac_fn_c_try_compile "$LINENO"; then :
     1603  ac_header_compiler=yes
     1604else
     1605  ac_header_compiler=no
     1606fi
     1607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1609$as_echo "$ac_header_compiler" >&6; }
     1610
     1611# Is the header present?
     1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1613$as_echo_n "checking $2 presence... " >&6; }
     1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1615/* end confdefs.h.  */
     1616#include <$2>
     1617_ACEOF
     1618if ac_fn_c_try_cpp "$LINENO"; then :
     1619  ac_header_preproc=yes
     1620else
     1621  ac_header_preproc=no
     1622fi
     1623rm -f conftest.err conftest.i conftest.$ac_ext
     1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1625$as_echo "$ac_header_preproc" >&6; }
     1626
     1627# So?  What about this header?
     1628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1629  yes:no: )
     1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1631$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1633$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1634    ;;
     1635  no:yes:* )
     1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1637$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1639$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1641$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1643$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1645$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1646    ;;
     1647esac
     1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1649$as_echo_n "checking for $2... " >&6; }
     1650if eval "test \"\${$3+set}\"" = set; then :
     1651  $as_echo_n "(cached) " >&6
     1652else
     1653  eval "$3=\$ac_header_compiler"
     1654fi
     1655eval ac_res=\$$3
     1656           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1657$as_echo "$ac_res" >&6; }
     1658fi
     1659  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1660
     1661} # ac_fn_c_check_header_mongrel
     1662
     1663# ac_fn_c_try_run LINENO
     1664# ----------------------
     1665# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1666# that executables *can* be run.
     1667ac_fn_c_try_run ()
     1668{
     1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1670  if { { ac_try="$ac_link"
     1671case "(($ac_try" in
     1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1673  *) ac_try_echo=$ac_try;;
     1674esac
     1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1676$as_echo "$ac_try_echo"; } >&5
     1677  (eval "$ac_link") 2>&5
     1678  ac_status=$?
     1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1680  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1681  { { case "(($ac_try" in
     1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1683  *) ac_try_echo=$ac_try;;
     1684esac
     1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1686$as_echo "$ac_try_echo"; } >&5
     1687  (eval "$ac_try") 2>&5
     1688  ac_status=$?
     1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1690  test $ac_status = 0; }; }; then :
     1691  ac_retval=0
     1692else
     1693  $as_echo "$as_me: program exited with status $ac_status" >&5
     1694       $as_echo "$as_me: failed program was:" >&5
     1695sed 's/^/| /' conftest.$ac_ext >&5
     1696
     1697       ac_retval=$ac_status
     1698fi
     1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1700  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1701  as_fn_set_status $ac_retval
     1702
     1703} # ac_fn_c_try_run
     1704
     1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1706# -------------------------------------------------------
     1707# Tests whether HEADER exists and can be compiled using the include files in
     1708# INCLUDES, setting the cache variable VAR accordingly.
     1709ac_fn_c_check_header_compile ()
     1710{
     1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1713$as_echo_n "checking for $2... " >&6; }
     1714if eval "test \"\${$3+set}\"" = set; then :
     1715  $as_echo_n "(cached) " >&6
     1716else
     1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1718/* end confdefs.h.  */
     1719$4
     1720#include <$2>
     1721_ACEOF
     1722if ac_fn_c_try_compile "$LINENO"; then :
     1723  eval "$3=yes"
     1724else
     1725  eval "$3=no"
     1726fi
     1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1728fi
     1729eval ac_res=\$$3
     1730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1731$as_echo "$ac_res" >&6; }
     1732  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1733
     1734} # ac_fn_c_check_header_compile
     1735
     1736# ac_fn_c_try_link LINENO
     1737# -----------------------
     1738# Try to link conftest.$ac_ext, and return whether this succeeded.
     1739ac_fn_c_try_link ()
     1740{
     1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1742  rm -f conftest.$ac_objext conftest$ac_exeext
     1743  if { { ac_try="$ac_link"
     1744case "(($ac_try" in
     1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1746  *) ac_try_echo=$ac_try;;
     1747esac
     1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1749$as_echo "$ac_try_echo"; } >&5
     1750  (eval "$ac_link") 2>conftest.err
     1751  ac_status=$?
     1752  if test -s conftest.err; then
     1753    grep -v '^ *+' conftest.err >conftest.er1
     1754    cat conftest.er1 >&5
     1755    mv -f conftest.er1 conftest.err
     1756  fi
     1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1758  test $ac_status = 0; } && {
     1759     test -z "$ac_c_werror_flag" ||
     1760     test ! -s conftest.err
     1761       } && test -s conftest$ac_exeext && {
     1762     test "$cross_compiling" = yes ||
     1763     $as_test_x conftest$ac_exeext
     1764       }; then :
     1765  ac_retval=0
     1766else
     1767  $as_echo "$as_me: failed program was:" >&5
     1768sed 's/^/| /' conftest.$ac_ext >&5
     1769
     1770    ac_retval=1
     1771fi
     1772  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1773  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1774  # interfere with the next link command; also delete a directory that is
     1775  # left behind by Apple's compiler.  We do this before executing the actions.
     1776  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1778  as_fn_set_status $ac_retval
     1779
     1780} # ac_fn_c_try_link
     1781
     1782# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1783# -------------------------------------------
     1784# Tests whether TYPE exists after having included INCLUDES, setting cache
     1785# variable VAR accordingly.
     1786ac_fn_c_check_type ()
     1787{
     1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1790$as_echo_n "checking for $2... " >&6; }
     1791if eval "test \"\${$3+set}\"" = set; then :
     1792  $as_echo_n "(cached) " >&6
     1793else
     1794  eval "$3=no"
     1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1796/* end confdefs.h.  */
     1797$4
     1798int
     1799main ()
     1800{
     1801if (sizeof ($2))
     1802     return 0;
     1803  ;
     1804  return 0;
     1805}
     1806_ACEOF
     1807if ac_fn_c_try_compile "$LINENO"; then :
     1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1809/* end confdefs.h.  */
     1810$4
     1811int
     1812main ()
     1813{
     1814if (sizeof (($2)))
     1815        return 0;
     1816  ;
     1817  return 0;
     1818}
     1819_ACEOF
     1820if ac_fn_c_try_compile "$LINENO"; then :
     1821
     1822else
     1823  eval "$3=yes"
     1824fi
     1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1826fi
     1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1828fi
     1829eval ac_res=\$$3
     1830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1831$as_echo "$ac_res" >&6; }
     1832  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1833
     1834} # ac_fn_c_check_type
     1835
     1836# ac_fn_c_check_func LINENO FUNC VAR
     1837# ----------------------------------
     1838# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1839ac_fn_c_check_func ()
     1840{
     1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1843$as_echo_n "checking for $2... " >&6; }
     1844if eval "test \"\${$3+set}\"" = set; then :
     1845  $as_echo_n "(cached) " >&6
     1846else
     1847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1848/* end confdefs.h.  */
     1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1850   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1851#define $2 innocuous_$2
     1852
     1853/* System header to define __stub macros and hopefully few prototypes,
     1854    which can conflict with char $2 (); below.
     1855    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1856    <limits.h> exists even on freestanding compilers.  */
     1857
     1858#ifdef __STDC__
     1859# include <limits.h>
     1860#else
     1861# include <assert.h>
     1862#endif
     1863
     1864#undef $2
     1865
     1866/* Override any GCC internal prototype to avoid an error.
     1867   Use char because int might match the return type of a GCC
     1868   builtin and then its argument prototype would still apply.  */
     1869#ifdef __cplusplus
     1870extern "C"
     1871#endif
     1872char $2 ();
     1873/* The GNU C library defines this for functions which it implements
     1874    to always fail with ENOSYS.  Some functions are actually named
     1875    something starting with __ and the normal name is an alias.  */
     1876#if defined __stub_$2 || defined __stub___$2
     1877choke me
     1878#endif
     1879
     1880int
     1881main ()
     1882{
     1883return $2 ();
     1884  ;
     1885  return 0;
     1886}
     1887_ACEOF
     1888if ac_fn_c_try_link "$LINENO"; then :
     1889  eval "$3=yes"
     1890else
     1891  eval "$3=no"
     1892fi
     1893rm -f core conftest.err conftest.$ac_objext \
     1894    conftest$ac_exeext conftest.$ac_ext
     1895fi
     1896eval ac_res=\$$3
     1897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1898$as_echo "$ac_res" >&6; }
     1899  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1900
     1901} # ac_fn_c_check_func
     1902
     1903# ac_fn_cxx_try_run LINENO
     1904# ------------------------
     1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1906# that executables *can* be run.
     1907ac_fn_cxx_try_run ()
     1908{
     1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1910  if { { ac_try="$ac_link"
     1911case "(($ac_try" in
     1912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1913  *) ac_try_echo=$ac_try;;
     1914esac
     1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1916$as_echo "$ac_try_echo"; } >&5
     1917  (eval "$ac_link") 2>&5
     1918  ac_status=$?
     1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1920  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1921  { { case "(($ac_try" in
     1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1923  *) ac_try_echo=$ac_try;;
     1924esac
     1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1926$as_echo "$ac_try_echo"; } >&5
     1927  (eval "$ac_try") 2>&5
     1928  ac_status=$?
     1929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1930  test $ac_status = 0; }; }; then :
     1931  ac_retval=0
     1932else
     1933  $as_echo "$as_me: program exited with status $ac_status" >&5
     1934       $as_echo "$as_me: failed program was:" >&5
     1935sed 's/^/| /' conftest.$ac_ext >&5
     1936
     1937       ac_retval=$ac_status
     1938fi
     1939  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1940  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1941  as_fn_set_status $ac_retval
     1942
     1943} # ac_fn_cxx_try_run
     1944cat >config.log <<_ACEOF
    9941945This file contains any messages produced by compilers while
    9951946running configure, to aid debugging if configure makes a mistake.
    9961947
    9971948It was created by $as_me, which was
    998 generated by GNU Autoconf 2.59.  Invocation command line was
     1949generated by GNU Autoconf 2.67.  Invocation command line was
    9991950
    10001951  $ $0 $@
    10011952
    10021953_ACEOF
     1954exec 5>>config.log
    10031955{
    10041956cat <<_ASUNAME
     
    10191971/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10201972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1021 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1973/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10221974/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10231975/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10311983  IFS=$as_save_IFS
    10321984  test -z "$as_dir" && as_dir=.
    1033   echo "PATH: $as_dir"
    1034 done
     1985    $as_echo "PATH: $as_dir"
     1986  done
     1987IFS=$as_save_IFS
    10351988
    10361989} >&5
     
    10542007ac_configure_args0=
    10552008ac_configure_args1=
    1056 ac_sep=
    10572009ac_must_keep_next=false
    10582010for ac_pass in 1 2
     
    10652017    | -silent | --silent | --silen | --sile | --sil)
    10662018      continue ;;
    1067     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1068       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2019    *\'*)
     2020      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10692021    esac
    10702022    case $ac_pass in
    1071     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2023    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10722024    2)
    1073       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2025      as_fn_append ac_configure_args1 " '$ac_arg'"
    10742026      if test $ac_must_keep_next = true; then
    10752027    ac_must_keep_next=false # Got value, back to normal.
     
    10872039    esac
    10882040      fi
    1089       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1090       # Get rid of the leading space.
    1091       ac_sep=" "
     2041      as_fn_append ac_configure_args " '$ac_arg'"
    10922042      ;;
    10932043    esac
    10942044  done
    10952045done
    1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2046{ ac_configure_args0=; unset ac_configure_args0;}
     2047{ ac_configure_args1=; unset ac_configure_args1;}
    10982048
    10992049# When interrupted or exit'd, cleanup temporary files, and complete
    11002050# config.log.  We remove comments because anyway the quotes in there
    11012051# would cause problems or look ugly.
    1102 # WARNING: Be sure not to use single quotes in there, as some shells,
    1103 # such as our DU 5.0 friend, will then `close' the trap.
     2052# WARNING: Use '\'' to represent an apostrophe within the trap.
     2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11042054trap 'exit_status=$?
    11052055  # Save into config.log some information that might help in debugging.
     
    11072057    echo
    11082058
    1109     cat <<\_ASBOX
    1110 ## ---------------- ##
     2059    $as_echo "## ---------------- ##
    11112060## Cache variables. ##
    1112 ## ---------------- ##
    1113 _ASBOX
     2061## ---------------- ##"
    11142062    echo
    11152063    # The following way of writing the cache mishandles newlines in values,
    1116 {
     2064(
     2065  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2066    eval ac_val=\$$ac_var
     2067    case $ac_val in #(
     2068    *${as_nl}*)
     2069      case $ac_var in #(
     2070      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2072      esac
     2073      case $ac_var in #(
     2074      _ | IFS | as_nl) ;; #(
     2075      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2076      *) { eval $ac_var=; unset $ac_var;} ;;
     2077      esac ;;
     2078    esac
     2079  done
    11172080  (set) 2>&1 |
    1118     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1119     *ac_space=\ *)
     2081    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2082    *${as_nl}ac_space=\ *)
    11202083      sed -n \
    1121     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1122       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2084    "s/'\''/'\''\\\\'\'''\''/g;
     2085      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2086      ;; #(
     2087    *)
     2088      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11232089      ;;
    1124     *)
    1125       sed -n \
    1126     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1127       ;;
    1128     esac;
    1129 }
     2090    esac |
     2091    sort
     2092)
    11302093    echo
    11312094
    1132     cat <<\_ASBOX
    1133 ## ----------------- ##
     2095    $as_echo "## ----------------- ##
    11342096## Output variables. ##
    1135 ## ----------------- ##
    1136 _ASBOX
     2097## ----------------- ##"
    11372098    echo
    11382099    for ac_var in $ac_subst_vars
    11392100    do
    1140       eval ac_val=$`echo $ac_var`
    1141       echo "$ac_var='"'"'$ac_val'"'"'"
     2101      eval ac_val=\$$ac_var
     2102      case $ac_val in
     2103      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2104      esac
     2105      $as_echo "$ac_var='\''$ac_val'\''"
    11422106    done | sort
    11432107    echo
    11442108
    11452109    if test -n "$ac_subst_files"; then
    1146       cat <<\_ASBOX
    1147 ## ------------- ##
    1148 ## Output files. ##
    1149 ## ------------- ##
    1150 _ASBOX
     2110      $as_echo "## ------------------- ##
     2111## File substitutions. ##
     2112## ------------------- ##"
    11512113      echo
    11522114      for ac_var in $ac_subst_files
    11532115      do
    1154     eval ac_val=$`echo $ac_var`
    1155     echo "$ac_var='"'"'$ac_val'"'"'"
     2116    eval ac_val=\$$ac_var
     2117    case $ac_val in
     2118    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2119    esac
     2120    $as_echo "$ac_var='\''$ac_val'\''"
    11562121      done | sort
    11572122      echo
     
    11592124
    11602125    if test -s confdefs.h; then
    1161       cat <<\_ASBOX
    1162 ## ----------- ##
     2126      $as_echo "## ----------- ##
    11632127## confdefs.h. ##
    1164 ## ----------- ##
    1165 _ASBOX
     2128## ----------- ##"
    11662129      echo
    1167       sed "/^$/d" confdefs.h | sort
     2130      cat confdefs.h
    11682131      echo
    11692132    fi
    11702133    test "$ac_signal" != 0 &&
    1171       echo "$as_me: caught signal $ac_signal"
    1172     echo "$as_me: exit $exit_status"
     2134      $as_echo "$as_me: caught signal $ac_signal"
     2135    $as_echo "$as_me: exit $exit_status"
    11732136  } >&5
    1174   rm -f core *.core &&
    1175   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2137  rm -f core *.core core.conftest.* &&
     2138    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11762139    exit $exit_status
    1177      ' 0
     2140' 0
    11782141for ac_signal in 1 2 13 15; do
    1179   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2142  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11802143done
    11812144ac_signal=0
    11822145
    11832146# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1184 rm -rf conftest* confdefs.h
    1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1186 echo >confdefs.h
     2147rm -f -r conftest* confdefs.h
     2148
     2149$as_echo "/* confdefs.h */" > confdefs.h
    11872150
    11882151# Predefined preprocessor variables.
     
    11922155_ACEOF
    11932156
    1194 
    11952157cat >>confdefs.h <<_ACEOF
    11962158#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11972159_ACEOF
    11982160
    1199 
    12002161cat >>confdefs.h <<_ACEOF
    12012162#define PACKAGE_VERSION "$PACKAGE_VERSION"
    12022163_ACEOF
    12032164
    1204 
    12052165cat >>confdefs.h <<_ACEOF
    12062166#define PACKAGE_STRING "$PACKAGE_STRING"
    12072167_ACEOF
    12082168
    1209 
    12102169cat >>confdefs.h <<_ACEOF
    12112170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12122171_ACEOF
    12132172
     2173cat >>confdefs.h <<_ACEOF
     2174#define PACKAGE_URL "$PACKAGE_URL"
     2175_ACEOF
     2176
    12142177
    12152178# Let the site file select an alternate cache file if it wants to.
    1216 # Prefer explicitly selected file to automatically selected ones.
    1217 if test -z "$CONFIG_SITE"; then
    1218   if test "x$prefix" != xNONE; then
    1219     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1220   else
    1221     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1222   fi
    1223 fi
    1224 for ac_site_file in $CONFIG_SITE; do
    1225   if test -r "$ac_site_file"; then
    1226     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1227 echo "$as_me: loading site script $ac_site_file" >&6;}
     2179# Prefer an explicitly selected file to automatically selected ones.
     2180ac_site_file1=NONE
     2181ac_site_file2=NONE
     2182if test -n "$CONFIG_SITE"; then
     2183  # We do not want a PATH search for config.site.
     2184  case $CONFIG_SITE in #((
     2185    -*)  ac_site_file1=./$CONFIG_SITE;;
     2186    */*) ac_site_file1=$CONFIG_SITE;;
     2187    *)   ac_site_file1=./$CONFIG_SITE;;
     2188  esac
     2189elif test "x$prefix" != xNONE; then
     2190  ac_site_file1=$prefix/share/config.site
     2191  ac_site_file2=$prefix/etc/config.site
     2192else
     2193  ac_site_file1=$ac_default_prefix/share/config.site
     2194  ac_site_file2=$ac_default_prefix/etc/config.site
     2195fi
     2196for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2197do
     2198  test "x$ac_site_file" = xNONE && continue
     2199  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2200    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2201$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12282202    sed 's/^/| /' "$ac_site_file" >&5
    1229     . "$ac_site_file"
     2203    . "$ac_site_file" \
     2204      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2206as_fn_error $? "failed to load site script $ac_site_file
     2207See \`config.log' for more details" "$LINENO" 5 ; }
    12302208  fi
    12312209done
    12322210
    12332211if test -r "$cache_file"; then
    1234   # Some versions of bash will fail to source /dev/null (special
    1235   # files actually), so we avoid doing that.
    1236   if test -f "$cache_file"; then
    1237     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1238 echo "$as_me: loading cache $cache_file" >&6;}
     2212  # Some versions of bash will fail to source /dev/null (special files
     2213  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2214  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2215    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2216$as_echo "$as_me: loading cache $cache_file" >&6;}
    12392217    case $cache_file in
    1240       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1241       *)                      . ./$cache_file;;
     2218      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2219      *)                      . "./$cache_file";;
    12422220    esac
    12432221  fi
    12442222else
    1245   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1246 echo "$as_me: creating cache $cache_file" >&6;}
     2223  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2224$as_echo "$as_me: creating cache $cache_file" >&6;}
    12472225  >$cache_file
    12482226fi
     
    12512229# value.
    12522230ac_cache_corrupted=false
    1253 for ac_var in `(set) 2>&1 |
    1254            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2231for ac_var in $ac_precious_vars; do
    12552232  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12562233  eval ac_new_set=\$ac_env_${ac_var}_set
    1257   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1258   eval ac_new_val="\$ac_env_${ac_var}_value"
     2234  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2235  eval ac_new_val=\$ac_env_${ac_var}_value
    12592236  case $ac_old_set,$ac_new_set in
    12602237    set,)
    1261       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2238      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12632240      ac_cache_corrupted=: ;;
    12642241    ,set)
    1265       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2242      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12672244      ac_cache_corrupted=: ;;
    12682245    ,);;
    12692246    *)
    12702247      if test "x$ac_old_val" != "x$ac_new_val"; then
    1271     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1273     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1274 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1275     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1276 echo "$as_me:   current value: $ac_new_val" >&2;}
    1277     ac_cache_corrupted=:
     2248    # differences in whitespace do not lead to failure.
     2249    ac_old_val_w=`echo x $ac_old_val`
     2250    ac_new_val_w=`echo x $ac_new_val`
     2251    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2252      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2254      ac_cache_corrupted=:
     2255    else
     2256      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2258      eval $ac_var=\$ac_old_val
     2259    fi
     2260    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2261$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2262    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2263$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12782264      fi;;
    12792265  esac
     
    12812267  if test "$ac_new_set" = set; then
    12822268    case $ac_new_val in
    1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1284       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2269    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12852270    *) ac_arg=$ac_var=$ac_new_val ;;
    12862271    esac
    12872272    case " $ac_configure_args " in
    12882273      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1289       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2274      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12902275    esac
    12912276  fi
    12922277done
    12932278if $ac_cache_corrupted; then
    1294   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1296   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1298    { (exit 1); exit 1; }; }
    1299 fi
     2279  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2283  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2284fi
     2285## -------------------- ##
     2286## Main body of script. ##
     2287## -------------------- ##
    13002288
    13012289ac_ext=c
     
    13062294
    13072295
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323 
    1324 
    1325           ac_config_headers="$ac_config_headers config.h"
     2296ac_config_headers="$ac_config_headers config.h"
    13262297
    13272298
     
    13292300
    13302301PACKAGE=gsdl
    1331 VERSION=2.82-svn
     2302VERSION=2.x-svn
    13322303cat >>confdefs.h <<_ACEOF
    13332304#define PACKAGE "$PACKAGE"
     
    13432314USE_FASTCGI=0
    13442315if test USE_FASTCGI = 1; then
    1345 cat >>confdefs.h <<\_ACEOF
    1346 #define USE_FASTCGI 1
    1347 _ACEOF
     2316$as_echo "#define USE_FASTCGI 1" >>confdefs.h
    13482317
    13492318
     
    13512320
    13522321if test USE_LANGACTION = 1; then
    1353 cat >>confdefs.h <<\_ACEOF
    1354 #define USE_LANGACTION 1
    1355 _ACEOF
    1356 
    1357 
    1358 fi
    1359 
    1360 # Check whether --enable-corba or --disable-corba was given.
    1361 if test "${enable_corba+set}" = set; then
    1362   enableval="$enable_corba"
    1363   USE_CORBA=$enableval
     2322$as_echo "#define USE_LANGACTION 1" >>confdefs.h
     2323
     2324
     2325fi
     2326
     2327# Check whether --enable-corba was given.
     2328if test "${enable_corba+set}" = set; then :
     2329  enableval=$enable_corba; USE_CORBA=$enableval
    13642330else
    13652331  USE_CORBA=no
    1366 fi;
     2332fi
     2333
    13672334if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
    13682335  USE_CORBA=1
    1369   cat >>confdefs.h <<\_ACEOF
    1370 #define USE_CORBA
    1371 _ACEOF
     2336  $as_echo "#define USE_CORBA /**/" >>confdefs.h
    13722337
    13732338else
     
    13772342
    13782343
    1379 # Check whether --with-micodir or --without-micodir was given.
    1380 if test "${with_micodir+set}" = set; then
    1381   withval="$with_micodir"
    1382   MICO_DIR=$withval
     2344# Check whether --with-micodir was given.
     2345if test "${with_micodir+set}" = set; then :
     2346  withval=$with_micodir; MICO_DIR=$withval
    13832347else
    13842348  MICO_DIR="default"
    1385 fi;
     2349fi
     2350
    13862351cat >>confdefs.h <<_ACEOF
    13872352#define MICO_DIR "$MICO_DIR"
     
    13902355
    13912356
    1392 # Check whether --enable-z3950 or --disable-z3950 was given.
    1393 if test "${enable_z3950+set}" = set; then
    1394   enableval="$enable_z3950"
    1395   USE_Z3950=$enableval
     2357# Check whether --enable-z3950 was given.
     2358if test "${enable_z3950+set}" = set; then :
     2359  enableval=$enable_z3950; USE_Z3950=$enableval
    13962360else
    13972361  USE_Z3950=no
    1398 fi;
     2362fi
     2363
    13992364if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
    14002365  USE_Z3950=1
    1401   cat >>confdefs.h <<\_ACEOF
    1402 #define USE_Z3950
    1403 _ACEOF
     2366  $as_echo "#define USE_Z3950 /**/" >>confdefs.h
    14042367
    14052368else
     
    14082371
    14092372
    1410 # Check whether --enable-yaz or --disable-yaz was given.
    1411 if test "${enable_yaz+set}" = set; then
    1412   enableval="$enable_yaz"
    1413   USE_YAZ=$enableval
     2373# Check whether --enable-yaz was given.
     2374if test "${enable_yaz+set}" = set; then :
     2375  enableval=$enable_yaz; USE_YAZ=$enableval
    14142376else
    14152377  USE_YAZ=yes
    1416 fi;
     2378fi
     2379
    14172380if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
    14182381  USE_YAZ=1
    1419   cat >>confdefs.h <<\_ACEOF
    1420 #define USE_YAZ
    1421 _ACEOF
     2382  $as_echo "#define USE_YAZ /**/" >>confdefs.h
    14222383
    14232384else
     
    14262387
    14272388
    1428 # Check whether --enable-jdbm or --disable-jdbm was given.
    1429 if test "${enable_jdbm+set}" = set; then
    1430   enableval="$enable_jdbm"
    1431   USE_JDBM=$enableval
     2389# Check whether --enable-java was given.
     2390if test "${enable_java+set}" = set; then :
     2391  enableval=$enable_java; ENABLE_JAVA=$enableval
     2392else
     2393  ENABLE_JAVA=yes
     2394fi
     2395
     2396if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2397  ENABLE_JAVA=1
     2398  if test "x$JAVA_HOME" != "x" ; then
     2399    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2400    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2401    echo "and JAVA respectively"
     2402    export JAVA_HOME=
     2403  fi
     2404else
     2405  ENABLE_JAVA=0
     2406fi
     2407
     2408
     2409# Check whether --enable-jdbm was given.
     2410if test "${enable_jdbm+set}" = set; then :
     2411  enableval=$enable_jdbm; USE_JDBM=$enableval
    14322412else
    14332413  USE_JDBM=yes
    1434 fi;
    1435 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     2414fi
     2415
     2416if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    14362417  USE_JDBM=1
    1437   cat >>confdefs.h <<\_ACEOF
    1438 #define USE_JDBM
    1439 _ACEOF
     2418  $as_echo "#define USE_JDBM /**/" >>confdefs.h
    14402419
    14412420else
     
    14442423
    14452424
    1446 # Check whether --enable-gdbm or --disable-gdbm was given.
    1447 if test "${enable_gdbm+set}" = set; then
    1448   enableval="$enable_gdbm"
    1449   USE_GDBM=$enableval
     2425# Check whether --enable-gdbm was given.
     2426if test "${enable_gdbm+set}" = set; then :
     2427  enableval=$enable_gdbm; USE_GDBM=$enableval
    14502428else
    14512429  USE_GDBM=yes
    1452 fi;
     2430fi
     2431
    14532432if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
    14542433  USE_GDBM=1
    1455   cat >>confdefs.h <<\_ACEOF
    1456 #define USE_GDBM
    1457 _ACEOF
     2434  $as_echo "#define USE_GDBM /**/" >>confdefs.h
    14582435
    14592436else
     
    14622439
    14632440
    1464 # Check whether --enable-accentfold or --disable-accentfold was given.
    1465 if test "${enable_accentfold+set}" = set; then
    1466   enableval="$enable_accentfold"
    1467   ENABLE_ACCENTFOLD=$enableval
     2441# Check whether --enable-accentfold was given.
     2442if test "${enable_accentfold+set}" = set; then :
     2443  enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
    14682444else
    14692445  ENABLE_ACCENTFOLD=yes
    1470 fi;
     2446fi
     2447
    14712448if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
    14722449  ENABLE_ACCENTFOLD=1
    1473   cat >>confdefs.h <<\_ACEOF
    1474 #define ENABLE_ACCENTFOLD
    1475 _ACEOF
     2450  $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
    14762451
    14772452else
     
    14802455
    14812456
    1482 # Check whether --enable-sqlite or --disable-sqlite was given.
    1483 if test "${enable_sqlite+set}" = set; then
    1484   enableval="$enable_sqlite"
    1485   USE_SQLITE=$enableval
     2457# Check whether --enable-sqlite was given.
     2458if test "${enable_sqlite+set}" = set; then :
     2459  enableval=$enable_sqlite; USE_SQLITE=$enableval
    14862460else
    14872461  USE_SQLITE=yes
    1488 fi;
     2462fi
     2463
    14892464if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
    14902465  USE_SQLITE=1
    1491   cat >>confdefs.h <<\_ACEOF
    1492 #define USE_SQLITE
    1493 _ACEOF
     2466  $as_echo "#define USE_SQLITE /**/" >>confdefs.h
    14942467
    14952468else
     
    14982471
    14992472
    1500 # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
    1501 if test "${enable_apache_httpd+set}" = set; then
    1502   enableval="$enable_apache_httpd"
    1503   USE_APACHE_HTTPD=$enableval
     2473# Check whether --enable-apache-httpd was given.
     2474if test "${enable_apache_httpd+set}" = set; then :
     2475  enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
    15042476else
    15052477  USE_APACHE_HTTPD=no
    1506 fi;
     2478fi
     2479
    15072480if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
    15082481  USE_APACHE_HTTPD=1
    1509   cat >>confdefs.h <<\_ACEOF
    1510 #define USE_APACHE_HTTPD
    1511 _ACEOF
     2482  $as_echo "#define USE_APACHE_HTTPD /**/" >>confdefs.h
    15122483
    15132484else
     
    15172488
    15182489
    1519 # Check whether --enable-mg or --disable-mg was given.
    1520 if test "${enable_mg+set}" = set; then
    1521   enableval="$enable_mg"
    1522   ENABLE_MG=$enableval
     2490# Check whether --enable-mg was given.
     2491if test "${enable_mg+set}" = set; then :
     2492  enableval=$enable_mg; ENABLE_MG=$enableval
    15232493else
    15242494  ENABLE_MG=yes
    1525 fi;
     2495fi
     2496
    15262497if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
    15272498  ENABLE_MG=1
    1528   cat >>confdefs.h <<\_ACEOF
    1529 #define ENABLE_MG
    1530 _ACEOF
     2499  $as_echo "#define ENABLE_MG /**/" >>confdefs.h
    15312500
    15322501else
     
    15352504
    15362505
    1537 # Check whether --enable-mgpp or --disable-mgpp was given.
    1538 if test "${enable_mgpp+set}" = set; then
    1539   enableval="$enable_mgpp"
    1540   ENABLE_MGPP=$enableval
     2506# Check whether --enable-mgpp was given.
     2507if test "${enable_mgpp+set}" = set; then :
     2508  enableval=$enable_mgpp; ENABLE_MGPP=$enableval
    15412509else
    15422510  ENABLE_MGPP=yes
    1543 fi;
     2511fi
     2512
    15442513if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
    15452514  ENABLE_MGPP=1
    1546   cat >>confdefs.h <<\_ACEOF
    1547 #define ENABLE_MGPP
    1548 _ACEOF
     2515  $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
    15492516
    15502517else
     
    15532520
    15542521
    1555 # Check whether --enable-lucene or --disable-lucene was given.
    1556 if test "${enable_lucene+set}" = set; then
    1557   enableval="$enable_lucene"
    1558   ENABLE_LUCENE=$enableval
     2522# Check whether --enable-lucene was given.
     2523if test "${enable_lucene+set}" = set; then :
     2524  enableval=$enable_lucene; ENABLE_LUCENE=$enableval
    15592525else
    15602526  ENABLE_LUCENE=yes
    1561 fi;
    1562 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     2527fi
     2528
     2529if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    15632530  ENABLE_LUCENE=1
    1564   cat >>confdefs.h <<\_ACEOF
    1565 #define ENABLE_LUCENE
    1566 _ACEOF
     2531  $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
    15672532
    15682533else
     
    15872552  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    15882553set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1591 if test "${ac_cv_prog_CC+set}" = set; then
    1592   echo $ECHO_N "(cached) $ECHO_C" >&6
     2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2555$as_echo_n "checking for $ac_word... " >&6; }
     2556if test "${ac_cv_prog_CC+set}" = set; then :
     2557  $as_echo_n "(cached) " >&6
    15932558else
    15942559  if test -n "$CC"; then
     
    16002565  IFS=$as_save_IFS
    16012566  test -z "$as_dir" && as_dir=.
    1602   for ac_exec_ext in '' $ac_executable_extensions; do
    1603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2567    for ac_exec_ext in '' $ac_executable_extensions; do
     2568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16042569    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16062571    break 2
    16072572  fi
    16082573done
    1609 done
     2574  done
     2575IFS=$as_save_IFS
    16102576
    16112577fi
     
    16132579CC=$ac_cv_prog_CC
    16142580if test -n "$CC"; then
    1615   echo "$as_me:$LINENO: result: $CC" >&5
    1616 echo "${ECHO_T}$CC" >&6
    1617 else
    1618   echo "$as_me:$LINENO: result: no" >&5
    1619 echo "${ECHO_T}no" >&6
    1620 fi
     2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2582$as_echo "$CC" >&6; }
     2583else
     2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2585$as_echo "no" >&6; }
     2586fi
     2587
    16212588
    16222589fi
     
    16252592  # Extract the first word of "gcc", so it can be a program name with args.
    16262593set dummy gcc; ac_word=$2
    1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1630   echo $ECHO_N "(cached) $ECHO_C" >&6
     2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2595$as_echo_n "checking for $ac_word... " >&6; }
     2596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2597  $as_echo_n "(cached) " >&6
    16312598else
    16322599  if test -n "$ac_ct_CC"; then
     
    16382605  IFS=$as_save_IFS
    16392606  test -z "$as_dir" && as_dir=.
    1640   for ac_exec_ext in '' $ac_executable_extensions; do
    1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2607    for ac_exec_ext in '' $ac_executable_extensions; do
     2608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16422609    ac_cv_prog_ac_ct_CC="gcc"
    1643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16442611    break 2
    16452612  fi
    16462613done
    1647 done
     2614  done
     2615IFS=$as_save_IFS
    16482616
    16492617fi
     
    16512619ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16522620if test -n "$ac_ct_CC"; then
    1653   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1654 echo "${ECHO_T}$ac_ct_CC" >&6
    1655 else
    1656   echo "$as_me:$LINENO: result: no" >&5
    1657 echo "${ECHO_T}no" >&6
    1658 fi
    1659 
    1660   CC=$ac_ct_CC
     2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2622$as_echo "$ac_ct_CC" >&6; }
     2623else
     2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2625$as_echo "no" >&6; }
     2626fi
     2627
     2628  if test "x$ac_ct_CC" = x; then
     2629    CC=""
     2630  else
     2631    case $cross_compiling:$ac_tool_warned in
     2632yes:)
     2633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2635ac_tool_warned=yes ;;
     2636esac
     2637    CC=$ac_ct_CC
     2638  fi
    16612639else
    16622640  CC="$ac_cv_prog_CC"
     
    16642642
    16652643if test -z "$CC"; then
    1666   if test -n "$ac_tool_prefix"; then
    1667   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2644          if test -n "$ac_tool_prefix"; then
     2645    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    16682646set dummy ${ac_tool_prefix}cc; ac_word=$2
    1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1671 if test "${ac_cv_prog_CC+set}" = set; then
    1672   echo $ECHO_N "(cached) $ECHO_C" >&6
     2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2648$as_echo_n "checking for $ac_word... " >&6; }
     2649if test "${ac_cv_prog_CC+set}" = set; then :
     2650  $as_echo_n "(cached) " >&6
    16732651else
    16742652  if test -n "$CC"; then
     
    16802658  IFS=$as_save_IFS
    16812659  test -z "$as_dir" && as_dir=.
    1682   for ac_exec_ext in '' $ac_executable_extensions; do
    1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2660    for ac_exec_ext in '' $ac_executable_extensions; do
     2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16842662    ac_cv_prog_CC="${ac_tool_prefix}cc"
    1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16862664    break 2
    16872665  fi
    16882666done
    1689 done
     2667  done
     2668IFS=$as_save_IFS
    16902669
    16912670fi
     
    16932672CC=$ac_cv_prog_CC
    16942673if test -n "$CC"; then
    1695   echo "$as_me:$LINENO: result: $CC" >&5
    1696 echo "${ECHO_T}$CC" >&6
    1697 else
    1698   echo "$as_me:$LINENO: result: no" >&5
    1699 echo "${ECHO_T}no" >&6
    1700 fi
    1701 
    1702 fi
    1703 if test -z "$ac_cv_prog_CC"; then
    1704   ac_ct_CC=$CC
    1705   # Extract the first word of "cc", so it can be a program name with args.
    1706 set dummy cc; ac_word=$2
    1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1710   echo $ECHO_N "(cached) $ECHO_C" >&6
    1711 else
    1712   if test -n "$ac_ct_CC"; then
    1713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1714 else
    1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1716 for as_dir in $PATH
    1717 do
    1718   IFS=$as_save_IFS
    1719   test -z "$as_dir" && as_dir=.
    1720   for ac_exec_ext in '' $ac_executable_extensions; do
    1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1722     ac_cv_prog_ac_ct_CC="cc"
    1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1724     break 2
     2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2675$as_echo "$CC" >&6; }
     2676else
     2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2678$as_echo "no" >&6; }
     2679fi
     2680
     2681
    17252682  fi
    1726 done
    1727 done
    1728 
    1729 fi
    1730 fi
    1731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1732 if test -n "$ac_ct_CC"; then
    1733   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1734 echo "${ECHO_T}$ac_ct_CC" >&6
    1735 else
    1736   echo "$as_me:$LINENO: result: no" >&5
    1737 echo "${ECHO_T}no" >&6
    1738 fi
    1739 
    1740   CC=$ac_ct_CC
    1741 else
    1742   CC="$ac_cv_prog_CC"
    1743 fi
    1744 
    17452683fi
    17462684if test -z "$CC"; then
    17472685  # Extract the first word of "cc", so it can be a program name with args.
    17482686set dummy cc; ac_word=$2
    1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1751 if test "${ac_cv_prog_CC+set}" = set; then
    1752   echo $ECHO_N "(cached) $ECHO_C" >&6
     2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2688$as_echo_n "checking for $ac_word... " >&6; }
     2689if test "${ac_cv_prog_CC+set}" = set; then :
     2690  $as_echo_n "(cached) " >&6
    17532691else
    17542692  if test -n "$CC"; then
     
    17612699  IFS=$as_save_IFS
    17622700  test -z "$as_dir" && as_dir=.
    1763   for ac_exec_ext in '' $ac_executable_extensions; do
    1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2701    for ac_exec_ext in '' $ac_executable_extensions; do
     2702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17652703    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    17662704       ac_prog_rejected=yes
     
    17682706     fi
    17692707    ac_cv_prog_CC="cc"
    1770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    17712709    break 2
    17722710  fi
    17732711done
    1774 done
     2712  done
     2713IFS=$as_save_IFS
    17752714
    17762715if test $ac_prog_rejected = yes; then
     
    17902729CC=$ac_cv_prog_CC
    17912730if test -n "$CC"; then
    1792   echo "$as_me:$LINENO: result: $CC" >&5
    1793 echo "${ECHO_T}$CC" >&6
    1794 else
    1795   echo "$as_me:$LINENO: result: no" >&5
    1796 echo "${ECHO_T}no" >&6
    1797 fi
     2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2732$as_echo "$CC" >&6; }
     2733else
     2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2735$as_echo "no" >&6; }
     2736fi
     2737
    17982738
    17992739fi
    18002740if test -z "$CC"; then
    18012741  if test -n "$ac_tool_prefix"; then
    1802   for ac_prog in cl
     2742  for ac_prog in cl.exe
    18032743  do
    18042744    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    18052745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1808 if test "${ac_cv_prog_CC+set}" = set; then
    1809   echo $ECHO_N "(cached) $ECHO_C" >&6
     2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2747$as_echo_n "checking for $ac_word... " >&6; }
     2748if test "${ac_cv_prog_CC+set}" = set; then :
     2749  $as_echo_n "(cached) " >&6
    18102750else
    18112751  if test -n "$CC"; then
     
    18172757  IFS=$as_save_IFS
    18182758  test -z "$as_dir" && as_dir=.
    1819   for ac_exec_ext in '' $ac_executable_extensions; do
    1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2759    for ac_exec_ext in '' $ac_executable_extensions; do
     2760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18212761    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18232763    break 2
    18242764  fi
    18252765done
    1826 done
     2766  done
     2767IFS=$as_save_IFS
    18272768
    18282769fi
     
    18302771CC=$ac_cv_prog_CC
    18312772if test -n "$CC"; then
    1832   echo "$as_me:$LINENO: result: $CC" >&5
    1833 echo "${ECHO_T}$CC" >&6
    1834 else
    1835   echo "$as_me:$LINENO: result: no" >&5
    1836 echo "${ECHO_T}no" >&6
    1837 fi
     2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2774$as_echo "$CC" >&6; }
     2775else
     2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2777$as_echo "no" >&6; }
     2778fi
     2779
    18382780
    18392781    test -n "$CC" && break
     
    18422784if test -z "$CC"; then
    18432785  ac_ct_CC=$CC
    1844   for ac_prog in cl
     2786  for ac_prog in cl.exe
    18452787do
    18462788  # Extract the first word of "$ac_prog", so it can be a program name with args.
    18472789set dummy $ac_prog; ac_word=$2
    1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1851   echo $ECHO_N "(cached) $ECHO_C" >&6
     2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2791$as_echo_n "checking for $ac_word... " >&6; }
     2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2793  $as_echo_n "(cached) " >&6
    18522794else
    18532795  if test -n "$ac_ct_CC"; then
     
    18592801  IFS=$as_save_IFS
    18602802  test -z "$as_dir" && as_dir=.
    1861   for ac_exec_ext in '' $ac_executable_extensions; do
    1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2803    for ac_exec_ext in '' $ac_executable_extensions; do
     2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18632805    ac_cv_prog_ac_ct_CC="$ac_prog"
    1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18652807    break 2
    18662808  fi
    18672809done
    1868 done
     2810  done
     2811IFS=$as_save_IFS
    18692812
    18702813fi
     
    18722815ac_ct_CC=$ac_cv_prog_ac_ct_CC
    18732816if test -n "$ac_ct_CC"; then
    1874   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1875 echo "${ECHO_T}$ac_ct_CC" >&6
    1876 else
    1877   echo "$as_me:$LINENO: result: no" >&5
    1878 echo "${ECHO_T}no" >&6
    1879 fi
     2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2818$as_echo "$ac_ct_CC" >&6; }
     2819else
     2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2821$as_echo "no" >&6; }
     2822fi
     2823
    18802824
    18812825  test -n "$ac_ct_CC" && break
    18822826done
    18832827
    1884   CC=$ac_ct_CC
    1885 fi
    1886 
    1887 fi
    1888 
    1889 
    1890 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    1891 See \`config.log' for more details." >&5
    1892 echo "$as_me: error: no acceptable C compiler found in \$PATH
    1893 See \`config.log' for more details." >&2;}
    1894    { (exit 1); exit 1; }; }
     2828  if test "x$ac_ct_CC" = x; then
     2829    CC=""
     2830  else
     2831    case $cross_compiling:$ac_tool_warned in
     2832yes:)
     2833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2835ac_tool_warned=yes ;;
     2836esac
     2837    CC=$ac_ct_CC
     2838  fi
     2839fi
     2840
     2841fi
     2842
     2843
     2844test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2846as_fn_error $? "no acceptable C compiler found in \$PATH
     2847See \`config.log' for more details" "$LINENO" 5 ; }
    18952848
    18962849# Provide some information about the compiler.
    1897 echo "$as_me:$LINENO:" \
    1898      "checking for C compiler version" >&5
    1899 ac_compiler=`set X $ac_compile; echo $2`
    1900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1901   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2851set X $ac_compile
     2852ac_compiler=$2
     2853for ac_option in --version -v -V -qversion; do
     2854  { { ac_try="$ac_compiler $ac_option >&5"
     2855case "(($ac_try" in
     2856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2857  *) ac_try_echo=$ac_try;;
     2858esac
     2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2860$as_echo "$ac_try_echo"; } >&5
     2861  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    19022862  ac_status=$?
    1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1904   (exit $ac_status); }
    1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1906   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1907   ac_status=$?
    1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1909   (exit $ac_status); }
    1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1911   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1912   ac_status=$?
    1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1914   (exit $ac_status); }
    1915 
    1916 cat >conftest.$ac_ext <<_ACEOF
    1917 /* confdefs.h.  */
    1918 _ACEOF
    1919 cat confdefs.h >>conftest.$ac_ext
    1920 cat >>conftest.$ac_ext <<_ACEOF
     2863  if test -s conftest.err; then
     2864    sed '10a\
     2865... rest of stderr output deleted ...
     2866         10q' conftest.err >conftest.er1
     2867    cat conftest.er1 >&5
     2868  fi
     2869  rm -f conftest.er1 conftest.err
     2870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2871  test $ac_status = 0; }
     2872done
     2873
     2874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    19212875/* end confdefs.h.  */
    19222876
     
    19302884_ACEOF
    19312885ac_clean_files_save=$ac_clean_files
    1932 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    19332887# Try to create an executable without -o first, disregard a.out.
    19342888# It will help us diagnose broken compilers, and finding out an intuition
    19352889# of exeext.
    1936 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1937 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    1938 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1939 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1940   (eval $ac_link_default) 2>&5
     2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2891$as_echo_n "checking whether the C compiler works... " >&6; }
     2892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2893
     2894# The possible output files:
     2895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2896
     2897ac_rmfiles=
     2898for ac_file in $ac_files
     2899do
     2900  case $ac_file in
     2901    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2902    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2903  esac
     2904done
     2905rm -f $ac_rmfiles
     2906
     2907if { { ac_try="$ac_link_default"
     2908case "(($ac_try" in
     2909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2910  *) ac_try_echo=$ac_try;;
     2911esac
     2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2913$as_echo "$ac_try_echo"; } >&5
     2914  (eval "$ac_link_default") 2>&5
    19412915  ac_status=$?
    1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1943   (exit $ac_status); }; then
    1944   # Find the output, starting from the most likely.  This scheme is
    1945 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1946 # resort.
    1947 
    1948 # Be careful to initialize this variable, since it used to be cached.
    1949 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1950 ac_cv_exeext=
    1951 # b.out is created by i960 compilers.
    1952 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2917  test $ac_status = 0; }; then :
     2918  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2920# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2921# so that the user can short-circuit this test for compilers unknown to
     2922# Autoconf.
     2923for ac_file in $ac_files ''
    19532924do
    19542925  test -f "$ac_file" || continue
    19552926  case $ac_file in
    1956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1957     ;;
    1958     conftest.$ac_ext )
    1959     # This is the source file.
     2927    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    19602928    ;;
    19612929    [ab].out )
     
    19642932    break;;
    19652933    *.* )
    1966     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1967     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1968     # but it would be cool to find out if it's true.  Does anybody
    1969     # maintain Libtool? --akim.
    1970     export ac_cv_exeext
     2934    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2935    then :; else
     2936       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2937    fi
     2938    # We set ac_cv_exeext here because the later test for it is not
     2939    # safe: cross compilers may not add the suffix if given an `-o'
     2940    # argument, so we may need to know it at that point already.
     2941    # Even if this section looks crufty: it has the advantage of
     2942    # actually working.
    19712943    break;;
    19722944    * )
     
    19742946  esac
    19752947done
    1976 else
    1977   echo "$as_me: failed program was:" >&5
     2948test "$ac_cv_exeext" = no && ac_cv_exeext=
     2949
     2950else
     2951  ac_file=''
     2952fi
     2953if test -z "$ac_file"; then :
     2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2955$as_echo "no" >&6; }
     2956$as_echo "$as_me: failed program was:" >&5
    19782957sed 's/^/| /' conftest.$ac_ext >&5
    19792958
    1980 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    1981 See \`config.log' for more details." >&5
    1982 echo "$as_me: error: C compiler cannot create executables
    1983 See \`config.log' for more details." >&2;}
    1984    { (exit 77); exit 77; }; }
    1985 fi
    1986 
     2959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2961as_fn_error 77 "C compiler cannot create executables
     2962See \`config.log' for more details" "$LINENO" 5 ; }
     2963else
     2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2965$as_echo "yes" >&6; }
     2966fi
     2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     2968$as_echo_n "checking for C compiler default output file name... " >&6; }
     2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2970$as_echo "$ac_file" >&6; }
    19872971ac_exeext=$ac_cv_exeext
    1988 echo "$as_me:$LINENO: result: $ac_file" >&5
    1989 echo "${ECHO_T}$ac_file" >&6
    1990 
    1991 # Check the compiler produces executables we can run.  If not, either
    1992 # the compiler is broken, or we cross compile.
    1993 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1994 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1996 # If not cross compiling, check that we can run a simple program.
    1997 if test "$cross_compiling" != yes; then
    1998   if { ac_try='./$ac_file'
    1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2000   (eval $ac_try) 2>&5
     2972
     2973rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2974ac_clean_files=$ac_clean_files_save
     2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2976$as_echo_n "checking for suffix of executables... " >&6; }
     2977if { { ac_try="$ac_link"
     2978case "(($ac_try" in
     2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2980  *) ac_try_echo=$ac_try;;
     2981esac
     2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2983$as_echo "$ac_try_echo"; } >&5
     2984  (eval "$ac_link") 2>&5
    20012985  ac_status=$?
    2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2003   (exit $ac_status); }; }; then
    2004     cross_compiling=no
    2005   else
    2006     if test "$cross_compiling" = maybe; then
    2007     cross_compiling=yes
    2008     else
    2009     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2010 If you meant to cross compile, use \`--host'.
    2011 See \`config.log' for more details." >&5
    2012 echo "$as_me: error: cannot run C compiled programs.
    2013 If you meant to cross compile, use \`--host'.
    2014 See \`config.log' for more details." >&2;}
    2015    { (exit 1); exit 1; }; }
    2016     fi
    2017   fi
    2018 fi
    2019 echo "$as_me:$LINENO: result: yes" >&5
    2020 echo "${ECHO_T}yes" >&6
    2021 
    2022 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2023 ac_clean_files=$ac_clean_files_save
    2024 # Check the compiler produces executables we can run.  If not, either
    2025 # the compiler is broken, or we cross compile.
    2026 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2028 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2029 echo "${ECHO_T}$cross_compiling" >&6
    2030 
    2031 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2032 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2034   (eval $ac_link) 2>&5
    2035   ac_status=$?
    2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2037   (exit $ac_status); }; then
     2986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2987  test $ac_status = 0; }; then :
    20382988  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    20392989# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    20432993  test -f "$ac_file" || continue
    20442994  case $ac_file in
    2045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2995    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    20462996    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2047       export ac_cv_exeext
    20482997      break;;
    20492998    * ) break;;
     
    20513000done
    20523001else
    2053   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2054 See \`config.log' for more details." >&5
    2055 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2056 See \`config.log' for more details." >&2;}
    2057    { (exit 1); exit 1; }; }
    2058 fi
    2059 
    2060 rm -f conftest$ac_cv_exeext
    2061 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2062 echo "${ECHO_T}$ac_cv_exeext" >&6
     3002  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3004as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     3005See \`config.log' for more details" "$LINENO" 5 ; }
     3006fi
     3007rm -f conftest conftest$ac_cv_exeext
     3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     3009$as_echo "$ac_cv_exeext" >&6; }
    20633010
    20643011rm -f conftest.$ac_ext
    20653012EXEEXT=$ac_cv_exeext
    20663013ac_exeext=$EXEEXT
    2067 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2068 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    2069 if test "${ac_cv_objext+set}" = set; then
    2070   echo $ECHO_N "(cached) $ECHO_C" >&6
    2071 else
    2072   cat >conftest.$ac_ext <<_ACEOF
    2073 /* confdefs.h.  */
    2074 _ACEOF
    2075 cat confdefs.h >>conftest.$ac_ext
    2076 cat >>conftest.$ac_ext <<_ACEOF
     3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20773015/* end confdefs.h.  */
    2078 
     3016#include <stdio.h>
    20793017int
    20803018main ()
    20813019{
     3020FILE *f = fopen ("conftest.out", "w");
     3021 return ferror (f) || fclose (f) != 0;
    20823022
    20833023  ;
     
    20853025}
    20863026_ACEOF
     3027ac_clean_files="$ac_clean_files conftest.out"
     3028# Check that the compiler produces executables we can run.  If not, either
     3029# the compiler is broken, or we cross compile.
     3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3031$as_echo_n "checking whether we are cross compiling... " >&6; }
     3032if test "$cross_compiling" != yes; then
     3033  { { ac_try="$ac_link"
     3034case "(($ac_try" in
     3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3036  *) ac_try_echo=$ac_try;;
     3037esac
     3038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3039$as_echo "$ac_try_echo"; } >&5
     3040  (eval "$ac_link") 2>&5
     3041  ac_status=$?
     3042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3043  test $ac_status = 0; }
     3044  if { ac_try='./conftest$ac_cv_exeext'
     3045  { { case "(($ac_try" in
     3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3047  *) ac_try_echo=$ac_try;;
     3048esac
     3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3050$as_echo "$ac_try_echo"; } >&5
     3051  (eval "$ac_try") 2>&5
     3052  ac_status=$?
     3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3054  test $ac_status = 0; }; }; then
     3055    cross_compiling=no
     3056  else
     3057    if test "$cross_compiling" = maybe; then
     3058    cross_compiling=yes
     3059    else
     3060    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3062as_fn_error $? "cannot run C compiled programs.
     3063If you meant to cross compile, use \`--host'.
     3064See \`config.log' for more details" "$LINENO" 5 ; }
     3065    fi
     3066  fi
     3067fi
     3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3069$as_echo "$cross_compiling" >&6; }
     3070
     3071rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     3072ac_clean_files=$ac_clean_files_save
     3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     3074$as_echo_n "checking for suffix of object files... " >&6; }
     3075if test "${ac_cv_objext+set}" = set; then :
     3076  $as_echo_n "(cached) " >&6
     3077else
     3078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3079/* end confdefs.h.  */
     3080
     3081int
     3082main ()
     3083{
     3084
     3085  ;
     3086  return 0;
     3087}
     3088_ACEOF
    20873089rm -f conftest.o conftest.obj
    2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2089   (eval $ac_compile) 2>&5
     3090if { { ac_try="$ac_compile"
     3091case "(($ac_try" in
     3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3093  *) ac_try_echo=$ac_try;;
     3094esac
     3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3096$as_echo "$ac_try_echo"; } >&5
     3097  (eval "$ac_compile") 2>&5
    20903098  ac_status=$?
    2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2092   (exit $ac_status); }; then
    2093   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     3099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3100  test $ac_status = 0; }; then :
     3101  for ac_file in conftest.o conftest.obj conftest.*; do
     3102  test -f "$ac_file" || continue;
    20943103  case $ac_file in
    2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     3104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    20963105    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    20973106       break;;
     
    20993108done
    21003109else
    2101   echo "$as_me: failed program was:" >&5
     3110  $as_echo "$as_me: failed program was:" >&5
    21023111sed 's/^/| /' conftest.$ac_ext >&5
    21033112
    2104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2105 See \`config.log' for more details." >&5
    2106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2107 See \`config.log' for more details." >&2;}
    2108    { (exit 1); exit 1; }; }
    2109 fi
    2110 
     3113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3115as_fn_error $? "cannot compute suffix of object files: cannot compile
     3116See \`config.log' for more details" "$LINENO" 5 ; }
     3117fi
    21113118rm -f conftest.$ac_cv_objext conftest.$ac_ext
    21123119fi
    2113 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2114 echo "${ECHO_T}$ac_cv_objext" >&6
     3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3121$as_echo "$ac_cv_objext" >&6; }
    21153122OBJEXT=$ac_cv_objext
    21163123ac_objext=$OBJEXT
    2117 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2118 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2120   echo $ECHO_N "(cached) $ECHO_C" >&6
    2121 else
    2122   cat >conftest.$ac_ext <<_ACEOF
    2123 /* confdefs.h.  */
    2124 _ACEOF
    2125 cat confdefs.h >>conftest.$ac_ext
    2126 cat >>conftest.$ac_ext <<_ACEOF
     3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3125$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3126if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3127  $as_echo_n "(cached) " >&6
     3128else
     3129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21273130/* end confdefs.h.  */
    21283131
     
    21383141}
    21393142_ACEOF
    2140 rm -f conftest.$ac_objext
    2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2142   (eval $ac_compile) 2>conftest.er1
    2143   ac_status=$?
    2144   grep -v '^ *+' conftest.er1 >conftest.err
    2145   rm -f conftest.er1
    2146   cat conftest.err >&5
    2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2148   (exit $ac_status); } &&
    2149      { ac_try='test -z "$ac_c_werror_flag"
    2150              || test ! -s conftest.err'
    2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2152   (eval $ac_try) 2>&5
    2153   ac_status=$?
    2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2155   (exit $ac_status); }; } &&
    2156      { ac_try='test -s conftest.$ac_objext'
    2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2158   (eval $ac_try) 2>&5
    2159   ac_status=$?
    2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2161   (exit $ac_status); }; }; then
     3143if ac_fn_c_try_compile "$LINENO"; then :
    21623144  ac_compiler_gnu=yes
    21633145else
    2164   echo "$as_me: failed program was:" >&5
    2165 sed 's/^/| /' conftest.$ac_ext >&5
    2166 
    2167 ac_compiler_gnu=no
    2168 fi
    2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3146  ac_compiler_gnu=no
     3147fi
     3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21703149ac_cv_c_compiler_gnu=$ac_compiler_gnu
    21713150
    21723151fi
    2173 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2174 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2175 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3153$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3154if test $ac_compiler_gnu = yes; then
     3155  GCC=yes
     3156else
     3157  GCC=
     3158fi
    21763159ac_test_CFLAGS=${CFLAGS+set}
    21773160ac_save_CFLAGS=$CFLAGS
    2178 CFLAGS="-g"
    2179 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2180 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2181 if test "${ac_cv_prog_cc_g+set}" = set; then
    2182   echo $ECHO_N "(cached) $ECHO_C" >&6
    2183 else
    2184   cat >conftest.$ac_ext <<_ACEOF
    2185 /* confdefs.h.  */
    2186 _ACEOF
    2187 cat confdefs.h >>conftest.$ac_ext
    2188 cat >>conftest.$ac_ext <<_ACEOF
     3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3162$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3163if test "${ac_cv_prog_cc_g+set}" = set; then :
     3164  $as_echo_n "(cached) " >&6
     3165else
     3166  ac_save_c_werror_flag=$ac_c_werror_flag
     3167   ac_c_werror_flag=yes
     3168   ac_cv_prog_cc_g=no
     3169   CFLAGS="-g"
     3170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21893171/* end confdefs.h.  */
    21903172
     
    21973179}
    21983180_ACEOF
    2199 rm -f conftest.$ac_objext
    2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2201   (eval $ac_compile) 2>conftest.er1
    2202   ac_status=$?
    2203   grep -v '^ *+' conftest.er1 >conftest.err
    2204   rm -f conftest.er1
    2205   cat conftest.err >&5
    2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2207   (exit $ac_status); } &&
    2208      { ac_try='test -z "$ac_c_werror_flag"
    2209              || test ! -s conftest.err'
    2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2211   (eval $ac_try) 2>&5
    2212   ac_status=$?
    2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2214   (exit $ac_status); }; } &&
    2215      { ac_try='test -s conftest.$ac_objext'
    2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2217   (eval $ac_try) 2>&5
    2218   ac_status=$?
    2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2220   (exit $ac_status); }; }; then
     3181if ac_fn_c_try_compile "$LINENO"; then :
    22213182  ac_cv_prog_cc_g=yes
    22223183else
    2223   echo "$as_me: failed program was:" >&5
    2224 sed 's/^/| /' conftest.$ac_ext >&5
    2225 
    2226 ac_cv_prog_cc_g=no
    2227 fi
    2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2229 fi
    2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3184  CFLAGS=""
     3185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3186/* end confdefs.h.  */
     3187
     3188int
     3189main ()
     3190{
     3191
     3192  ;
     3193  return 0;
     3194}
     3195_ACEOF
     3196if ac_fn_c_try_compile "$LINENO"; then :
     3197
     3198else
     3199  ac_c_werror_flag=$ac_save_c_werror_flag
     3200     CFLAGS="-g"
     3201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3202/* end confdefs.h.  */
     3203
     3204int
     3205main ()
     3206{
     3207
     3208  ;
     3209  return 0;
     3210}
     3211_ACEOF
     3212if ac_fn_c_try_compile "$LINENO"; then :
     3213  ac_cv_prog_cc_g=yes
     3214fi
     3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3216fi
     3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3218fi
     3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3220   ac_c_werror_flag=$ac_save_c_werror_flag
     3221fi
     3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3223$as_echo "$ac_cv_prog_cc_g" >&6; }
    22323224if test "$ac_test_CFLAGS" = set; then
    22333225  CFLAGS=$ac_save_CFLAGS
     
    22453237  fi
    22463238fi
    2247 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2248 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2249 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2250   echo $ECHO_N "(cached) $ECHO_C" >&6
    2251 else
    2252   ac_cv_prog_cc_stdc=no
     3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3240$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3241if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3242  $as_echo_n "(cached) " >&6
     3243else
     3244  ac_cv_prog_cc_c89=no
    22533245ac_save_CC=$CC
    2254 cat >conftest.$ac_ext <<_ACEOF
    2255 /* confdefs.h.  */
    2256 _ACEOF
    2257 cat confdefs.h >>conftest.$ac_ext
    2258 cat >>conftest.$ac_ext <<_ACEOF
     3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    22593247/* end confdefs.h.  */
    22603248#include <stdarg.h>
     
    22843272   function prototypes and stuff, but not '\xHH' hex character constants.
    22853273   These don't provoke an error unfortunately, instead are silently treated
    2286    as 'x'.  The following induces an error, until -std1 is added to get
     3274   as 'x'.  The following induces an error, until -std is added to get
    22873275   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    22883276   array size at least.  It's necessary to write '\x00'==0 to get something
    2289    that's true only with -std1.  */
     3277   that's true only with -std.  */
    22903278int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3279
     3280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3281   inside strings and character constants.  */
     3282#define FOO(x) 'x'
     3283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    22913284
    22923285int test (int i, double x);
     
    23043297}
    23053298_ACEOF
    2306 # Don't try gcc -ansi; that turns off useful extensions and
    2307 # breaks some systems' header files.
    2308 # AIX           -qlanglvl=ansi
    2309 # Ultrix and OSF/1  -std1
    2310 # HP-UX 10.20 and later -Ae
    2311 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2312 # SVR4          -Xc -D__EXTENSIONS__
    2313 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3300    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    23143301do
    23153302  CC="$ac_save_CC $ac_arg"
    2316   rm -f conftest.$ac_objext
    2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2318   (eval $ac_compile) 2>conftest.er1
    2319   ac_status=$?
    2320   grep -v '^ *+' conftest.er1 >conftest.err
    2321   rm -f conftest.er1
    2322   cat conftest.err >&5
    2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2324   (exit $ac_status); } &&
    2325      { ac_try='test -z "$ac_c_werror_flag"
    2326              || test ! -s conftest.err'
    2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2328   (eval $ac_try) 2>&5
    2329   ac_status=$?
    2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2331   (exit $ac_status); }; } &&
    2332      { ac_try='test -s conftest.$ac_objext'
    2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2334   (eval $ac_try) 2>&5
    2335   ac_status=$?
    2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2337   (exit $ac_status); }; }; then
    2338   ac_cv_prog_cc_stdc=$ac_arg
    2339 break
    2340 else
    2341   echo "$as_me: failed program was:" >&5
    2342 sed 's/^/| /' conftest.$ac_ext >&5
    2343 
    2344 fi
    2345 rm -f conftest.err conftest.$ac_objext
     3303  if ac_fn_c_try_compile "$LINENO"; then :
     3304  ac_cv_prog_cc_c89=$ac_arg
     3305fi
     3306rm -f core conftest.err conftest.$ac_objext
     3307  test "x$ac_cv_prog_cc_c89" != "xno" && break
    23463308done
    2347 rm -f conftest.$ac_ext conftest.$ac_objext
     3309rm -f conftest.$ac_ext
    23483310CC=$ac_save_CC
    23493311
    23503312fi
    2351 
    2352 case "x$ac_cv_prog_cc_stdc" in
    2353   x|xno)
    2354     echo "$as_me:$LINENO: result: none needed" >&5
    2355 echo "${ECHO_T}none needed" >&6 ;;
     3313# AC_CACHE_VAL
     3314case "x$ac_cv_prog_cc_c89" in
     3315  x)
     3316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3317$as_echo "none needed" >&6; } ;;
     3318  xno)
     3319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3320$as_echo "unsupported" >&6; } ;;
    23563321  *)
    2357     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2358 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2359     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3322    CC="$CC $ac_cv_prog_cc_c89"
     3323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    23603325esac
    2361 
    2362 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2363 # in C++ we need to declare it.  In case someone uses the same compiler
    2364 # for both compiling C and C++ we need to have the C++ compiler decide
    2365 # the declaration of exit, since it's the most demanding environment.
    2366 cat >conftest.$ac_ext <<_ACEOF
    2367 #ifndef __cplusplus
    2368   choke me
    2369 #endif
    2370 _ACEOF
    2371 rm -f conftest.$ac_objext
    2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2373   (eval $ac_compile) 2>conftest.er1
    2374   ac_status=$?
    2375   grep -v '^ *+' conftest.er1 >conftest.err
    2376   rm -f conftest.er1
    2377   cat conftest.err >&5
    2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2379   (exit $ac_status); } &&
    2380      { ac_try='test -z "$ac_c_werror_flag"
    2381              || test ! -s conftest.err'
    2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2383   (eval $ac_try) 2>&5
    2384   ac_status=$?
    2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2386   (exit $ac_status); }; } &&
    2387      { ac_try='test -s conftest.$ac_objext'
    2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2389   (eval $ac_try) 2>&5
    2390   ac_status=$?
    2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2392   (exit $ac_status); }; }; then
    2393   for ac_declaration in \
    2394    '' \
    2395    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2396    'extern "C" void std::exit (int); using std::exit;' \
    2397    'extern "C" void exit (int) throw ();' \
    2398    'extern "C" void exit (int);' \
    2399    'void exit (int);'
    2400 do
    2401   cat >conftest.$ac_ext <<_ACEOF
    2402 /* confdefs.h.  */
    2403 _ACEOF
    2404 cat confdefs.h >>conftest.$ac_ext
    2405 cat >>conftest.$ac_ext <<_ACEOF
    2406 /* end confdefs.h.  */
    2407 $ac_declaration
    2408 #include <stdlib.h>
    2409 int
    2410 main ()
    2411 {
    2412 exit (42);
    2413   ;
    2414   return 0;
    2415 }
    2416 _ACEOF
    2417 rm -f conftest.$ac_objext
    2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2419   (eval $ac_compile) 2>conftest.er1
    2420   ac_status=$?
    2421   grep -v '^ *+' conftest.er1 >conftest.err
    2422   rm -f conftest.er1
    2423   cat conftest.err >&5
    2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2425   (exit $ac_status); } &&
    2426      { ac_try='test -z "$ac_c_werror_flag"
    2427              || test ! -s conftest.err'
    2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2429   (eval $ac_try) 2>&5
    2430   ac_status=$?
    2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2432   (exit $ac_status); }; } &&
    2433      { ac_try='test -s conftest.$ac_objext'
    2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2435   (eval $ac_try) 2>&5
    2436   ac_status=$?
    2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2438   (exit $ac_status); }; }; then
    2439   :
    2440 else
    2441   echo "$as_me: failed program was:" >&5
    2442 sed 's/^/| /' conftest.$ac_ext >&5
    2443 
    2444 continue
    2445 fi
    2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2447   cat >conftest.$ac_ext <<_ACEOF
    2448 /* confdefs.h.  */
    2449 _ACEOF
    2450 cat confdefs.h >>conftest.$ac_ext
    2451 cat >>conftest.$ac_ext <<_ACEOF
    2452 /* end confdefs.h.  */
    2453 $ac_declaration
    2454 int
    2455 main ()
    2456 {
    2457 exit (42);
    2458   ;
    2459   return 0;
    2460 }
    2461 _ACEOF
    2462 rm -f conftest.$ac_objext
    2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2464   (eval $ac_compile) 2>conftest.er1
    2465   ac_status=$?
    2466   grep -v '^ *+' conftest.er1 >conftest.err
    2467   rm -f conftest.er1
    2468   cat conftest.err >&5
    2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2470   (exit $ac_status); } &&
    2471      { ac_try='test -z "$ac_c_werror_flag"
    2472              || test ! -s conftest.err'
    2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2474   (eval $ac_try) 2>&5
    2475   ac_status=$?
    2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2477   (exit $ac_status); }; } &&
    2478      { ac_try='test -s conftest.$ac_objext'
    2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2480   (eval $ac_try) 2>&5
    2481   ac_status=$?
    2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2483   (exit $ac_status); }; }; then
    2484   break
    2485 else
    2486   echo "$as_me: failed program was:" >&5
    2487 sed 's/^/| /' conftest.$ac_ext >&5
    2488 
    2489 fi
    2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2491 done
    2492 rm -f conftest*
    2493 if test -n "$ac_declaration"; then
    2494   echo '#ifdef __cplusplus' >>confdefs.h
    2495   echo $ac_declaration      >>confdefs.h
    2496   echo '#endif'             >>confdefs.h
    2497 fi
    2498 
    2499 else
    2500   echo "$as_me: failed program was:" >&5
    2501 sed 's/^/| /' conftest.$ac_ext >&5
    2502 
    2503 fi
    2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3326if test "x$ac_cv_prog_cc_c89" != xno; then :
     3327
     3328fi
     3329
    25053330ac_ext=c
    25063331ac_cpp='$CPP $CPPFLAGS'
     
    25093334ac_compiler_gnu=$ac_cv_c_compiler_gnu
    25103335
    2511 ac_ext=cc
     3336ac_ext=cpp
    25123337ac_cpp='$CXXCPP $CPPFLAGS'
    25133338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    25143339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    25153340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2516 if test -n "$ac_tool_prefix"; then
    2517   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3341if test -z "$CXX"; then
     3342  if test -n "$CCC"; then
     3343    CXX=$CCC
     3344  else
     3345    if test -n "$ac_tool_prefix"; then
     3346  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25183347  do
    25193348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    25203349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2523 if test "${ac_cv_prog_CXX+set}" = set; then
    2524   echo $ECHO_N "(cached) $ECHO_C" >&6
     3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3351$as_echo_n "checking for $ac_word... " >&6; }
     3352if test "${ac_cv_prog_CXX+set}" = set; then :
     3353  $as_echo_n "(cached) " >&6
    25253354else
    25263355  if test -n "$CXX"; then
     
    25323361  IFS=$as_save_IFS
    25333362  test -z "$as_dir" && as_dir=.
    2534   for ac_exec_ext in '' $ac_executable_extensions; do
    2535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3363    for ac_exec_ext in '' $ac_executable_extensions; do
     3364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25363365    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25383367    break 2
    25393368  fi
    25403369done
    2541 done
     3370  done
     3371IFS=$as_save_IFS
    25423372
    25433373fi
     
    25453375CXX=$ac_cv_prog_CXX
    25463376if test -n "$CXX"; then
    2547   echo "$as_me:$LINENO: result: $CXX" >&5
    2548 echo "${ECHO_T}$CXX" >&6
    2549 else
    2550   echo "$as_me:$LINENO: result: no" >&5
    2551 echo "${ECHO_T}no" >&6
    2552 fi
     3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     3378$as_echo "$CXX" >&6; }
     3379else
     3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3381$as_echo "no" >&6; }
     3382fi
     3383
    25533384
    25543385    test -n "$CXX" && break
     
    25573388if test -z "$CXX"; then
    25583389  ac_ct_CXX=$CXX
    2559   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3390  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25603391do
    25613392  # Extract the first word of "$ac_prog", so it can be a program name with args.
    25623393set dummy $ac_prog; ac_word=$2
    2563 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2565 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2566   echo $ECHO_N "(cached) $ECHO_C" >&6
     3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3395$as_echo_n "checking for $ac_word... " >&6; }
     3396if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     3397  $as_echo_n "(cached) " >&6
    25673398else
    25683399  if test -n "$ac_ct_CXX"; then
     
    25743405  IFS=$as_save_IFS
    25753406  test -z "$as_dir" && as_dir=.
    2576   for ac_exec_ext in '' $ac_executable_extensions; do
    2577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3407    for ac_exec_ext in '' $ac_executable_extensions; do
     3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25783409    ac_cv_prog_ac_ct_CXX="$ac_prog"
    2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25803411    break 2
    25813412  fi
    25823413done
    2583 done
     3414  done
     3415IFS=$as_save_IFS
    25843416
    25853417fi
     
    25873419ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    25883420if test -n "$ac_ct_CXX"; then
    2589   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2590 echo "${ECHO_T}$ac_ct_CXX" >&6
    2591 else
    2592   echo "$as_me:$LINENO: result: no" >&5
    2593 echo "${ECHO_T}no" >&6
    2594 fi
     3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     3422$as_echo "$ac_ct_CXX" >&6; }
     3423else
     3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3425$as_echo "no" >&6; }
     3426fi
     3427
    25953428
    25963429  test -n "$ac_ct_CXX" && break
    25973430done
    2598 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    2599 
    2600   CXX=$ac_ct_CXX
    2601 fi
    2602 
    2603 
     3431
     3432  if test "x$ac_ct_CXX" = x; then
     3433    CXX="g++"
     3434  else
     3435    case $cross_compiling:$ac_tool_warned in
     3436yes:)
     3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3439ac_tool_warned=yes ;;
     3440esac
     3441    CXX=$ac_ct_CXX
     3442  fi
     3443fi
     3444
     3445  fi
     3446fi
    26043447# Provide some information about the compiler.
    2605 echo "$as_me:$LINENO:" \
    2606      "checking for C++ compiler version" >&5
    2607 ac_compiler=`set X $ac_compile; echo $2`
    2608 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2609   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     3449set X $ac_compile
     3450ac_compiler=$2
     3451for ac_option in --version -v -V -qversion; do
     3452  { { ac_try="$ac_compiler $ac_option >&5"
     3453case "(($ac_try" in
     3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3455  *) ac_try_echo=$ac_try;;
     3456esac
     3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3458$as_echo "$ac_try_echo"; } >&5
     3459  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    26103460  ac_status=$?
    2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2612   (exit $ac_status); }
    2613 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2614   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2615   ac_status=$?
    2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2617   (exit $ac_status); }
    2618 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2619   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2620   ac_status=$?
    2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2622   (exit $ac_status); }
    2623 
    2624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2627   echo $ECHO_N "(cached) $ECHO_C" >&6
    2628 else
    2629   cat >conftest.$ac_ext <<_ACEOF
    2630 /* confdefs.h.  */
    2631 _ACEOF
    2632 cat confdefs.h >>conftest.$ac_ext
    2633 cat >>conftest.$ac_ext <<_ACEOF
     3461  if test -s conftest.err; then
     3462    sed '10a\
     3463... rest of stderr output deleted ...
     3464         10q' conftest.err >conftest.er1
     3465    cat conftest.er1 >&5
     3466  fi
     3467  rm -f conftest.er1 conftest.err
     3468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3469  test $ac_status = 0; }
     3470done
     3471
     3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     3473$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3474if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3475  $as_echo_n "(cached) " >&6
     3476else
     3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26343478/* end confdefs.h.  */
    26353479
     
    26453489}
    26463490_ACEOF
    2647 rm -f conftest.$ac_objext
    2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2649   (eval $ac_compile) 2>conftest.er1
    2650   ac_status=$?
    2651   grep -v '^ *+' conftest.er1 >conftest.err
    2652   rm -f conftest.er1
    2653   cat conftest.err >&5
    2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2655   (exit $ac_status); } &&
    2656      { ac_try='test -z "$ac_cxx_werror_flag"
    2657              || test ! -s conftest.err'
    2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2659   (eval $ac_try) 2>&5
    2660   ac_status=$?
    2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2662   (exit $ac_status); }; } &&
    2663      { ac_try='test -s conftest.$ac_objext'
    2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2665   (eval $ac_try) 2>&5
    2666   ac_status=$?
    2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2668   (exit $ac_status); }; }; then
     3491if ac_fn_cxx_try_compile "$LINENO"; then :
    26693492  ac_compiler_gnu=yes
    26703493else
    2671   echo "$as_me: failed program was:" >&5
    2672 sed 's/^/| /' conftest.$ac_ext >&5
    2673 
    2674 ac_compiler_gnu=no
    2675 fi
    2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3494  ac_compiler_gnu=no
     3495fi
     3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    26773497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    26783498
    26793499fi
    2680 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2681 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2682 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     3501$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3502if test $ac_compiler_gnu = yes; then
     3503  GXX=yes
     3504else
     3505  GXX=
     3506fi
    26833507ac_test_CXXFLAGS=${CXXFLAGS+set}
    26843508ac_save_CXXFLAGS=$CXXFLAGS
    2685 CXXFLAGS="-g"
    2686 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2688 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2689   echo $ECHO_N "(cached) $ECHO_C" >&6
    2690 else
    2691   cat >conftest.$ac_ext <<_ACEOF
    2692 /* confdefs.h.  */
    2693 _ACEOF
    2694 cat confdefs.h >>conftest.$ac_ext
    2695 cat >>conftest.$ac_ext <<_ACEOF
     3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     3510$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3511if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3512  $as_echo_n "(cached) " >&6
     3513else
     3514  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3515   ac_cxx_werror_flag=yes
     3516   ac_cv_prog_cxx_g=no
     3517   CXXFLAGS="-g"
     3518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26963519/* end confdefs.h.  */
    26973520
     
    27043527}
    27053528_ACEOF
    2706 rm -f conftest.$ac_objext
    2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2708   (eval $ac_compile) 2>conftest.er1
    2709   ac_status=$?
    2710   grep -v '^ *+' conftest.er1 >conftest.err
    2711   rm -f conftest.er1
    2712   cat conftest.err >&5
    2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2714   (exit $ac_status); } &&
    2715      { ac_try='test -z "$ac_cxx_werror_flag"
    2716              || test ! -s conftest.err'
    2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2718   (eval $ac_try) 2>&5
    2719   ac_status=$?
    2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2721   (exit $ac_status); }; } &&
    2722      { ac_try='test -s conftest.$ac_objext'
    2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2724   (eval $ac_try) 2>&5
    2725   ac_status=$?
    2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2727   (exit $ac_status); }; }; then
     3529if ac_fn_cxx_try_compile "$LINENO"; then :
    27283530  ac_cv_prog_cxx_g=yes
    27293531else
    2730   echo "$as_me: failed program was:" >&5
    2731 sed 's/^/| /' conftest.$ac_ext >&5
    2732 
    2733 ac_cv_prog_cxx_g=no
    2734 fi
    2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2736 fi
    2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2738 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3532  CXXFLAGS=""
     3533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3534/* end confdefs.h.  */
     3535
     3536int
     3537main ()
     3538{
     3539
     3540  ;
     3541  return 0;
     3542}
     3543_ACEOF
     3544if ac_fn_cxx_try_compile "$LINENO"; then :
     3545
     3546else
     3547  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3548     CXXFLAGS="-g"
     3549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3550/* end confdefs.h.  */
     3551
     3552int
     3553main ()
     3554{
     3555
     3556  ;
     3557  return 0;
     3558}
     3559_ACEOF
     3560if ac_fn_cxx_try_compile "$LINENO"; then :
     3561  ac_cv_prog_cxx_g=yes
     3562fi
     3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3564fi
     3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3566fi
     3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3568   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3569fi
     3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     3571$as_echo "$ac_cv_prog_cxx_g" >&6; }
    27393572if test "$ac_test_CXXFLAGS" = set; then
    27403573  CXXFLAGS=$ac_save_CXXFLAGS
     
    27523585  fi
    27533586fi
    2754 for ac_declaration in \
    2755    '' \
    2756    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2757    'extern "C" void std::exit (int); using std::exit;' \
    2758    'extern "C" void exit (int) throw ();' \
    2759    'extern "C" void exit (int);' \
    2760    'void exit (int);'
    2761 do
    2762   cat >conftest.$ac_ext <<_ACEOF
    2763 /* confdefs.h.  */
    2764 _ACEOF
    2765 cat confdefs.h >>conftest.$ac_ext
    2766 cat >>conftest.$ac_ext <<_ACEOF
    2767 /* end confdefs.h.  */
    2768 $ac_declaration
    2769 #include <stdlib.h>
    2770 int
    2771 main ()
    2772 {
    2773 exit (42);
    2774   ;
    2775   return 0;
    2776 }
    2777 _ACEOF
    2778 rm -f conftest.$ac_objext
    2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2780   (eval $ac_compile) 2>conftest.er1
    2781   ac_status=$?
    2782   grep -v '^ *+' conftest.er1 >conftest.err
    2783   rm -f conftest.er1
    2784   cat conftest.err >&5
    2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2786   (exit $ac_status); } &&
    2787      { ac_try='test -z "$ac_cxx_werror_flag"
    2788              || test ! -s conftest.err'
    2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2790   (eval $ac_try) 2>&5
    2791   ac_status=$?
    2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2793   (exit $ac_status); }; } &&
    2794      { ac_try='test -s conftest.$ac_objext'
    2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2796   (eval $ac_try) 2>&5
    2797   ac_status=$?
    2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2799   (exit $ac_status); }; }; then
    2800   :
    2801 else
    2802   echo "$as_me: failed program was:" >&5
    2803 sed 's/^/| /' conftest.$ac_ext >&5
    2804 
    2805 continue
    2806 fi
    2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2808   cat >conftest.$ac_ext <<_ACEOF
    2809 /* confdefs.h.  */
    2810 _ACEOF
    2811 cat confdefs.h >>conftest.$ac_ext
    2812 cat >>conftest.$ac_ext <<_ACEOF
    2813 /* end confdefs.h.  */
    2814 $ac_declaration
    2815 int
    2816 main ()
    2817 {
    2818 exit (42);
    2819   ;
    2820   return 0;
    2821 }
    2822 _ACEOF
    2823 rm -f conftest.$ac_objext
    2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2825   (eval $ac_compile) 2>conftest.er1
    2826   ac_status=$?
    2827   grep -v '^ *+' conftest.er1 >conftest.err
    2828   rm -f conftest.er1
    2829   cat conftest.err >&5
    2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2831   (exit $ac_status); } &&
    2832      { ac_try='test -z "$ac_cxx_werror_flag"
    2833              || test ! -s conftest.err'
    2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2835   (eval $ac_try) 2>&5
    2836   ac_status=$?
    2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2838   (exit $ac_status); }; } &&
    2839      { ac_try='test -s conftest.$ac_objext'
    2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2841   (eval $ac_try) 2>&5
    2842   ac_status=$?
    2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2844   (exit $ac_status); }; }; then
    2845   break
    2846 else
    2847   echo "$as_me: failed program was:" >&5
    2848 sed 's/^/| /' conftest.$ac_ext >&5
    2849 
    2850 fi
    2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2852 done
    2853 rm -f conftest*
    2854 if test -n "$ac_declaration"; then
    2855   echo '#ifdef __cplusplus' >>confdefs.h
    2856   echo $ac_declaration      >>confdefs.h
    2857   echo '#endif'             >>confdefs.h
    2858 fi
    2859 
    28603587ac_ext=c
    28613588ac_cpp='$CPP $CPPFLAGS'
     
    28643591ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28653592
    2866 for ac_prog in gawk mawk nawk awk
     3593if test $ENABLE_JAVA = "1" ; then
     3594
     3595
     3596if test "x$JAVAC" = x ; then
     3597    if test "x$JAVAPREFIX" = x; then
     3598    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    28673599do
    28683600  # Extract the first word of "$ac_prog", so it can be a program name with args.
    28693601set dummy $ac_prog; ac_word=$2
    2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2872 if test "${ac_cv_prog_AWK+set}" = set; then
    2873   echo $ECHO_N "(cached) $ECHO_C" >&6
    2874 else
    2875   if test -n "$AWK"; then
    2876   ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3603$as_echo_n "checking for $ac_word... " >&6; }
     3604if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3605  $as_echo_n "(cached) " >&6
     3606else
     3607  if test -n "$JAVAC"; then
     3608  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    28773609else
    28783610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28813613  IFS=$as_save_IFS
    28823614  test -z "$as_dir" && as_dir=.
    2883   for ac_exec_ext in '' $ac_executable_extensions; do
    2884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2885     ac_cv_prog_AWK="$ac_prog"
    2886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3615    for ac_exec_ext in '' $ac_executable_extensions; do
     3616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3617    ac_cv_prog_JAVAC="$ac_prog"
     3618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28873619    break 2
    28883620  fi
    28893621done
     3622  done
     3623IFS=$as_save_IFS
     3624
     3625fi
     3626fi
     3627JAVAC=$ac_cv_prog_JAVAC
     3628if test -n "$JAVAC"; then
     3629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3630$as_echo "$JAVAC" >&6; }
     3631else
     3632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3633$as_echo "no" >&6; }
     3634fi
     3635
     3636
     3637  test -n "$JAVAC" && break
    28903638done
    28913639
    2892 fi
    2893 fi
    2894 AWK=$ac_cv_prog_AWK
    2895 if test -n "$AWK"; then
    2896   echo "$as_me:$LINENO: result: $AWK" >&5
    2897 echo "${ECHO_T}$AWK" >&6
    2898 else
    2899   echo "$as_me:$LINENO: result: no" >&5
    2900 echo "${ECHO_T}no" >&6
    2901 fi
    2902 
    2903   test -n "$AWK" && break
    2904 done
    2905 
    2906 for ac_prog in 'bison -y' byacc
     3640  else
     3641    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    29073642do
    29083643  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29093644set dummy $ac_prog; ac_word=$2
    2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2912 if test "${ac_cv_prog_YACC+set}" = set; then
    2913   echo $ECHO_N "(cached) $ECHO_C" >&6
    2914 else
    2915   if test -n "$YACC"; then
    2916   ac_cv_prog_YACC="$YACC" # Let the user override the test.
     3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3646$as_echo_n "checking for $ac_word... " >&6; }
     3647if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3648  $as_echo_n "(cached) " >&6
     3649else
     3650  if test -n "$JAVAC"; then
     3651  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    29173652else
    29183653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    29213656  IFS=$as_save_IFS
    29223657  test -z "$as_dir" && as_dir=.
    2923   for ac_exec_ext in '' $ac_executable_extensions; do
    2924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2925     ac_cv_prog_YACC="$ac_prog"
    2926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3658    for ac_exec_ext in '' $ac_executable_extensions; do
     3659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3660    ac_cv_prog_JAVAC="$ac_prog"
     3661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    29273662    break 2
    29283663  fi
    29293664done
     3665  done
     3666IFS=$as_save_IFS
     3667
     3668fi
     3669fi
     3670JAVAC=$ac_cv_prog_JAVAC
     3671if test -n "$JAVAC"; then
     3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3673$as_echo "$JAVAC" >&6; }
     3674else
     3675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3676$as_echo "no" >&6; }
     3677fi
     3678
     3679
     3680  test -n "$JAVAC" && break
    29303681done
     3682test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3683
     3684  fi
     3685  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3686else
     3687  echo "Checking for javac... $JAVAC"
     3688fi
     3689
     3690
     3691
     3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3693$as_echo_n "checking if $JAVAC works... " >&6; }
     3694if test "${ac_cv_prog_javac_works+set}" = set; then :
     3695  $as_echo_n "(cached) " >&6
     3696else
     3697
     3698JAVA_TEST=Test.java
     3699CLASS_TEST=Test.class
     3700cat << \EOF > $JAVA_TEST
     3701/* #line 3701 "configure" */
     3702public class Test {
     3703}
     3704EOF
     3705if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3706  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3707  (eval $ac_try) 2>&5
     3708  ac_status=$?
     3709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3710  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3711  ac_cv_prog_javac_works=yes
     3712else
     3713  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3714  echo "configure: failed program was:" >&5
     3715  cat $JAVA_TEST >&5
     3716fi
     3717rm -f $JAVA_TEST $CLASS_TEST
     3718
     3719fi
     3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     3721$as_echo "$ac_cv_prog_javac_works" >&6; }
     3722if test "x$JAVACFLAGS" = x ; then
     3723  JAVACFLAGS="-source 1.4 -target 1.4"
     3724fi
     3725
     3726
     3727
     3728
     3729if test "x$JAVA" = x ; then
     3730        if test x$JAVAPREFIX = x; then
     3731        test x$JAVA = x && for ac_prog in java$EXEEXT
     3732do
     3733  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3734set dummy $ac_prog; ac_word=$2
     3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3736$as_echo_n "checking for $ac_word... " >&6; }
     3737if test "${ac_cv_prog_JAVA+set}" = set; then :
     3738  $as_echo_n "(cached) " >&6
     3739else
     3740  if test -n "$JAVA"; then
     3741  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3742else
     3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3744for as_dir in $PATH
     3745do
     3746  IFS=$as_save_IFS
     3747  test -z "$as_dir" && as_dir=.
     3748    for ac_exec_ext in '' $ac_executable_extensions; do
     3749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3750    ac_cv_prog_JAVA="$ac_prog"
     3751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3752    break 2
     3753  fi
     3754done
     3755  done
     3756IFS=$as_save_IFS
     3757
     3758fi
     3759fi
     3760JAVA=$ac_cv_prog_JAVA
     3761if test -n "$JAVA"; then
     3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3763$as_echo "$JAVA" >&6; }
     3764else
     3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3766$as_echo "no" >&6; }
     3767fi
     3768
     3769
     3770  test -n "$JAVA" && break
     3771done
     3772
     3773    else
     3774        test x$JAVA = x && for ac_prog in java$EXEEXT
     3775do
     3776  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3777set dummy $ac_prog; ac_word=$2
     3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3779$as_echo_n "checking for $ac_word... " >&6; }
     3780if test "${ac_cv_prog_JAVA+set}" = set; then :
     3781  $as_echo_n "(cached) " >&6
     3782else
     3783  if test -n "$JAVA"; then
     3784  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3785else
     3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3787for as_dir in $PATH
     3788do
     3789  IFS=$as_save_IFS
     3790  test -z "$as_dir" && as_dir=.
     3791    for ac_exec_ext in '' $ac_executable_extensions; do
     3792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3793    ac_cv_prog_JAVA="$ac_prog"
     3794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3795    break 2
     3796  fi
     3797done
     3798  done
     3799IFS=$as_save_IFS
     3800
     3801fi
     3802fi
     3803JAVA=$ac_cv_prog_JAVA
     3804if test -n "$JAVA"; then
     3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3806$as_echo "$JAVA" >&6; }
     3807else
     3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3809$as_echo "no" >&6; }
     3810fi
     3811
     3812
     3813  test -n "$JAVA" && break
     3814done
     3815test -n "$JAVA" || JAVA="$JAVAPREFIX"
     3816
     3817    fi
     3818    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     3819fi
     3820
     3821
     3822# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     3823set dummy uudecode$EXEEXT; ac_word=$2
     3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3825$as_echo_n "checking for $ac_word... " >&6; }
     3826if test "${ac_cv_prog_uudecode+set}" = set; then :
     3827  $as_echo_n "(cached) " >&6
     3828else
     3829  if test -n "$uudecode"; then
     3830  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     3831else
     3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3833for as_dir in $PATH
     3834do
     3835  IFS=$as_save_IFS
     3836  test -z "$as_dir" && as_dir=.
     3837    for ac_exec_ext in '' $ac_executable_extensions; do
     3838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3839    ac_cv_prog_uudecode="yes"
     3840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3841    break 2
     3842  fi
     3843done
     3844  done
     3845IFS=$as_save_IFS
     3846
     3847fi
     3848fi
     3849uudecode=$ac_cv_prog_uudecode
     3850if test -n "$uudecode"; then
     3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     3852$as_echo "$uudecode" >&6; }
     3853else
     3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3855$as_echo "no" >&6; }
     3856fi
     3857
     3858
     3859if test x$uudecode = xyes; then
     3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     3861$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     3862if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     3863  $as_echo_n "(cached) " >&6
     3864else
     3865
     3866cat << \EOF > Test.uue
     3867begin-base64 644 Test.class
     3868yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     3869bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     3870bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     3871YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     3872aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     3873AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     3874AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     3875====
     3876EOF
     3877if uudecode$EXEEXT Test.uue; then
     3878        ac_cv_prog_uudecode_base64=yes
     3879else
     3880        echo "configure: 3880: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     3881        echo "configure: failed file was:" >&5
     3882        cat Test.uue >&5
     3883        ac_cv_prog_uudecode_base64=no
     3884fi
     3885rm -f Test.uue
     3886fi
     3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     3888$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     3889fi
     3890if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3891        rm -f Test.class
     3892        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     3893$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     3894        if test x$ac_cv_prog_javac_works = xno; then
     3895                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     3896        fi
     3897        if test x$ac_cv_prog_javac_works = x; then
     3898
     3899if test "x$JAVAC" = x ; then
     3900    if test "x$JAVAPREFIX" = x; then
     3901    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3902do
     3903  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3904set dummy $ac_prog; ac_word=$2
     3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3906$as_echo_n "checking for $ac_word... " >&6; }
     3907if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3908  $as_echo_n "(cached) " >&6
     3909else
     3910  if test -n "$JAVAC"; then
     3911  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3912else
     3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3914for as_dir in $PATH
     3915do
     3916  IFS=$as_save_IFS
     3917  test -z "$as_dir" && as_dir=.
     3918    for ac_exec_ext in '' $ac_executable_extensions; do
     3919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3920    ac_cv_prog_JAVAC="$ac_prog"
     3921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3922    break 2
     3923  fi
     3924done
     3925  done
     3926IFS=$as_save_IFS
     3927
     3928fi
     3929fi
     3930JAVAC=$ac_cv_prog_JAVAC
     3931if test -n "$JAVAC"; then
     3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3933$as_echo "$JAVAC" >&6; }
     3934else
     3935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3936$as_echo "no" >&6; }
     3937fi
     3938
     3939
     3940  test -n "$JAVAC" && break
     3941done
     3942
     3943  else
     3944    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3945do
     3946  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3947set dummy $ac_prog; ac_word=$2
     3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3949$as_echo_n "checking for $ac_word... " >&6; }
     3950if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3951  $as_echo_n "(cached) " >&6
     3952else
     3953  if test -n "$JAVAC"; then
     3954  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3955else
     3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3957for as_dir in $PATH
     3958do
     3959  IFS=$as_save_IFS
     3960  test -z "$as_dir" && as_dir=.
     3961    for ac_exec_ext in '' $ac_executable_extensions; do
     3962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3963    ac_cv_prog_JAVAC="$ac_prog"
     3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3965    break 2
     3966  fi
     3967done
     3968  done
     3969IFS=$as_save_IFS
     3970
     3971fi
     3972fi
     3973JAVAC=$ac_cv_prog_JAVAC
     3974if test -n "$JAVAC"; then
     3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3976$as_echo "$JAVAC" >&6; }
     3977else
     3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3979$as_echo "no" >&6; }
     3980fi
     3981
     3982
     3983  test -n "$JAVAC" && break
     3984done
     3985test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3986
     3987  fi
     3988  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3989else
     3990  echo "Checking for javac... $JAVAC"
     3991fi
     3992
     3993
     3994
     3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3996$as_echo_n "checking if $JAVAC works... " >&6; }
     3997if test "${ac_cv_prog_javac_works+set}" = set; then :
     3998  $as_echo_n "(cached) " >&6
     3999else
     4000
     4001JAVA_TEST=Test.java
     4002CLASS_TEST=Test.class
     4003cat << \EOF > $JAVA_TEST
     4004/* #line 4004 "configure" */
     4005public class Test {
     4006}
     4007EOF
     4008if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4009  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4010  (eval $ac_try) 2>&5
     4011  ac_status=$?
     4012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4013  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4014  ac_cv_prog_javac_works=yes
     4015else
     4016  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4017  echo "configure: failed program was:" >&5
     4018  cat $JAVA_TEST >&5
     4019fi
     4020rm -f $JAVA_TEST $CLASS_TEST
     4021
     4022fi
     4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4024$as_echo "$ac_cv_prog_javac_works" >&6; }
     4025if test "x$JAVACFLAGS" = x ; then
     4026  JAVACFLAGS="-source 1.4 -target 1.4"
     4027fi
     4028
     4029
     4030
     4031        fi
     4032fi
     4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     4034$as_echo_n "checking if $JAVA works... " >&6; }
     4035if test "${ac_cv_prog_java_works+set}" = set; then :
     4036  $as_echo_n "(cached) " >&6
     4037else
     4038
     4039JAVA_TEST=Test.java
     4040CLASS_TEST=Test.class
     4041TEST=Test
     4042cat << \EOF > $JAVA_TEST
     4043/* [#]line 4043 "configure" */
     4044public class Test {
     4045public static void main (String args[]) {
     4046        System.exit (0);
     4047} }
     4048EOF
     4049if test x$ac_cv_prog_uudecode_base64 != xyes; then
     4050        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4051  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4052  (eval $ac_try) 2>&5
     4053  ac_status=$?
     4054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4055  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     4056                :
     4057        else
     4058          echo "configure: failed program was:" >&5
     4059          cat $JAVA_TEST >&5
     4060          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4061        fi
     4062fi
     4063if { ac_try='$JAVA $JAVAFLAGS $TEST'
     4064  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4065  (eval $ac_try) 2>&5
     4066  ac_status=$?
     4067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4068  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4069  ac_cv_prog_java_works=yes
     4070else
     4071  echo "configure: failed program was:" >&5
     4072  cat $JAVA_TEST >&5
     4073  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4074fi
     4075rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     4076
     4077fi
     4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     4079$as_echo "$ac_cv_prog_java_works" >&6; }
     4080
     4081
     4082
     4083fi
     4084for ac_prog in gawk mawk nawk awk
     4085do
     4086  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4087set dummy $ac_prog; ac_word=$2
     4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4089$as_echo_n "checking for $ac_word... " >&6; }
     4090if test "${ac_cv_prog_AWK+set}" = set; then :
     4091  $as_echo_n "(cached) " >&6
     4092else
     4093  if test -n "$AWK"; then
     4094  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     4095else
     4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4097for as_dir in $PATH
     4098do
     4099  IFS=$as_save_IFS
     4100  test -z "$as_dir" && as_dir=.
     4101    for ac_exec_ext in '' $ac_executable_extensions; do
     4102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4103    ac_cv_prog_AWK="$ac_prog"
     4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4105    break 2
     4106  fi
     4107done
     4108  done
     4109IFS=$as_save_IFS
     4110
     4111fi
     4112fi
     4113AWK=$ac_cv_prog_AWK
     4114if test -n "$AWK"; then
     4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     4116$as_echo "$AWK" >&6; }
     4117else
     4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4119$as_echo "no" >&6; }
     4120fi
     4121
     4122
     4123  test -n "$AWK" && break
     4124done
     4125
     4126for ac_prog in 'bison -y' byacc
     4127do
     4128  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4129set dummy $ac_prog; ac_word=$2
     4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4131$as_echo_n "checking for $ac_word... " >&6; }
     4132if test "${ac_cv_prog_YACC+set}" = set; then :
     4133  $as_echo_n "(cached) " >&6
     4134else
     4135  if test -n "$YACC"; then
     4136  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     4137else
     4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4139for as_dir in $PATH
     4140do
     4141  IFS=$as_save_IFS
     4142  test -z "$as_dir" && as_dir=.
     4143    for ac_exec_ext in '' $ac_executable_extensions; do
     4144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4145    ac_cv_prog_YACC="$ac_prog"
     4146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4147    break 2
     4148  fi
     4149done
     4150  done
     4151IFS=$as_save_IFS
    29314152
    29324153fi
     
    29344155YACC=$ac_cv_prog_YACC
    29354156if test -n "$YACC"; then
    2936   echo "$as_me:$LINENO: result: $YACC" >&5
    2937 echo "${ECHO_T}$YACC" >&6
    2938 else
    2939   echo "$as_me:$LINENO: result: no" >&5
    2940 echo "${ECHO_T}no" >&6
    2941 fi
     4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     4158$as_echo "$YACC" >&6; }
     4159else
     4160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4161$as_echo "no" >&6; }
     4162fi
     4163
    29424164
    29434165  test -n "$YACC" && break
     
    29464168
    29474169ac_aux_dir=
    2948 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    2949   if test -f $ac_dir/install-sh; then
     4170for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     4171  if test -f "$ac_dir/install-sh"; then
    29504172    ac_aux_dir=$ac_dir
    29514173    ac_install_sh="$ac_aux_dir/install-sh -c"
    29524174    break
    2953   elif test -f $ac_dir/install.sh; then
     4175  elif test -f "$ac_dir/install.sh"; then
    29544176    ac_aux_dir=$ac_dir
    29554177    ac_install_sh="$ac_aux_dir/install.sh -c"
    29564178    break
    2957   elif test -f $ac_dir/shtool; then
     4179  elif test -f "$ac_dir/shtool"; then
    29584180    ac_aux_dir=$ac_dir
    29594181    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    29624184done
    29634185if test -z "$ac_aux_dir"; then
    2964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2965 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2966    { (exit 1); exit 1; }; }
    2967 fi
    2968 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2969 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2970 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     4186  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     4187fi
     4188
     4189# These three variables are undocumented and unsupported,
     4190# and are intended to be withdrawn in a future Autoconf release.
     4191# They can cause serious problems if a builder's source tree is in a directory
     4192# whose full name contains unusual characters.
     4193ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     4194ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     4195ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     4196
    29714197
    29724198# Make sure we can run config.sub.
    2973 $ac_config_sub sun4 >/dev/null 2>&1 ||
    2974   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    2975 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2976    { (exit 1); exit 1; }; }
    2977 
    2978 echo "$as_me:$LINENO: checking build system type" >&5
    2979 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2980 if test "${ac_cv_build+set}" = set; then
    2981   echo $ECHO_N "(cached) $ECHO_C" >&6
    2982 else
    2983   ac_cv_build_alias=$build_alias
    2984 test -z "$ac_cv_build_alias" &&
    2985   ac_cv_build_alias=`$ac_config_guess`
    2986 test -z "$ac_cv_build_alias" &&
    2987   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    2988 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2989    { (exit 1); exit 1; }; }
    2990 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2991   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    2992 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    2993    { (exit 1); exit 1; }; }
    2994 
    2995 fi
    2996 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    2997 echo "${ECHO_T}$ac_cv_build" >&6
     4199$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     4200  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     4201
     4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     4203$as_echo_n "checking build system type... " >&6; }
     4204if test "${ac_cv_build+set}" = set; then :
     4205  $as_echo_n "(cached) " >&6
     4206else
     4207  ac_build_alias=$build_alias
     4208test "x$ac_build_alias" = x &&
     4209  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     4210test "x$ac_build_alias" = x &&
     4211  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     4212ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     4213  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     4214
     4215fi
     4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     4217$as_echo "$ac_cv_build" >&6; }
     4218case $ac_cv_build in
     4219*-*-*) ;;
     4220*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     4221esac
    29984222build=$ac_cv_build
    2999 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3000 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3001 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3002 
    3003 
    3004 echo "$as_me:$LINENO: checking host system type" >&5
    3005 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    3006 if test "${ac_cv_host+set}" = set; then
    3007   echo $ECHO_N "(cached) $ECHO_C" >&6
    3008 else
    3009   ac_cv_host_alias=$host_alias
    3010 test -z "$ac_cv_host_alias" &&
    3011   ac_cv_host_alias=$ac_cv_build_alias
    3012 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    3013   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    3014 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    3015    { (exit 1); exit 1; }; }
    3016 
    3017 fi
    3018 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    3019 echo "${ECHO_T}$ac_cv_host" >&6
     4223ac_save_IFS=$IFS; IFS='-'
     4224set x $ac_cv_build
     4225shift
     4226build_cpu=$1
     4227build_vendor=$2
     4228shift; shift
     4229# Remember, the first character of IFS is used to create $*,
     4230# except with old shells:
     4231build_os=$*
     4232IFS=$ac_save_IFS
     4233case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     4234
     4235
     4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     4237$as_echo_n "checking host system type... " >&6; }
     4238if test "${ac_cv_host+set}" = set; then :
     4239  $as_echo_n "(cached) " >&6
     4240else
     4241  if test "x$host_alias" = x; then
     4242  ac_cv_host=$ac_cv_build
     4243else
     4244  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     4245    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     4246fi
     4247
     4248fi
     4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     4250$as_echo "$ac_cv_host" >&6; }
     4251case $ac_cv_host in
     4252*-*-*) ;;
     4253*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     4254esac
    30204255host=$ac_cv_host
    3021 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3022 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3023 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3024 
    3025 
    3026 echo "$as_me:$LINENO: checking target system type" >&5
    3027 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    3028 if test "${ac_cv_target+set}" = set; then
    3029   echo $ECHO_N "(cached) $ECHO_C" >&6
    3030 else
    3031   ac_cv_target_alias=$target_alias
    3032 test "x$ac_cv_target_alias" = "x" &&
    3033   ac_cv_target_alias=$ac_cv_host_alias
    3034 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    3035   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    3036 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    3037    { (exit 1); exit 1; }; }
    3038 
    3039 fi
    3040 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    3041 echo "${ECHO_T}$ac_cv_target" >&6
     4256ac_save_IFS=$IFS; IFS='-'
     4257set x $ac_cv_host
     4258shift
     4259host_cpu=$1
     4260host_vendor=$2
     4261shift; shift
     4262# Remember, the first character of IFS is used to create $*,
     4263# except with old shells:
     4264host_os=$*
     4265IFS=$ac_save_IFS
     4266case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     4267
     4268
     4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     4270$as_echo_n "checking target system type... " >&6; }
     4271if test "${ac_cv_target+set}" = set; then :
     4272  $as_echo_n "(cached) " >&6
     4273else
     4274  if test "x$target_alias" = x; then
     4275  ac_cv_target=$ac_cv_host
     4276else
     4277  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     4278    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     4279fi
     4280
     4281fi
     4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     4283$as_echo "$ac_cv_target" >&6; }
     4284case $ac_cv_target in
     4285*-*-*) ;;
     4286*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     4287esac
    30424288target=$ac_cv_target
    3043 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3044 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3045 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4289ac_save_IFS=$IFS; IFS='-'
     4290set x $ac_cv_target
     4291shift
     4292target_cpu=$1
     4293target_vendor=$2
     4294shift; shift
     4295# Remember, the first character of IFS is used to create $*,
     4296# except with old shells:
     4297target_os=$*
     4298IFS=$ac_save_IFS
     4299case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    30464300
    30474301
     
    30524306    NONENONEs,x,x, &&
    30534307  program_prefix=${target_alias}-
     4308
    30544309# Find a good install program.  We prefer a C program (faster),
    30554310# so one script is as good as another.  But avoid the broken or
     
    30654320# OS/2's system install, which has a completely different semantic
    30664321# ./install, which can be erroneously created by make from ./install.sh.
    3067 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    3068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     4322# Reject install programs that cannot install multiple files.
     4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     4324$as_echo_n "checking for a BSD-compatible install... " >&6; }
    30694325if test -z "$INSTALL"; then
    3070 if test "${ac_cv_path_install+set}" = set; then
    3071   echo $ECHO_N "(cached) $ECHO_C" >&6
     4326if test "${ac_cv_path_install+set}" = set; then :
     4327  $as_echo_n "(cached) " >&6
    30724328else
    30734329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    30764332  IFS=$as_save_IFS
    30774333  test -z "$as_dir" && as_dir=.
    3078   # Account for people who put trailing slashes in PATH elements.
    3079 case $as_dir/ in
    3080   ./ | .// | /cC/* | \
     4334    # Account for people who put trailing slashes in PATH elements.
     4335case $as_dir/ in #((
     4336  ./ | .// | /[cC]/* | \
    30814337  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3082   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     4338  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    30834339  /usr/ucb/* ) ;;
    30844340  *)
     
    30884344    for ac_prog in ginstall scoinst install; do
    30894345      for ac_exec_ext in '' $ac_executable_extensions; do
    3090     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4346    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    30914347      if test $ac_prog = install &&
    30924348        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    30984354        :
    30994355      else
    3100         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    3101         break 3
     4356        rm -rf conftest.one conftest.two conftest.dir
     4357        echo one > conftest.one
     4358        echo two > conftest.two
     4359        mkdir conftest.dir
     4360        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     4361          test -s conftest.one && test -s conftest.two &&
     4362          test -s conftest.dir/conftest.one &&
     4363          test -s conftest.dir/conftest.two
     4364        then
     4365          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     4366          break 3
     4367        fi
    31024368      fi
    31034369    fi
     
    31064372    ;;
    31074373esac
    3108 done
    3109 
     4374
     4375  done
     4376IFS=$as_save_IFS
     4377
     4378rm -rf conftest.one conftest.two conftest.dir
    31104379
    31114380fi
     
    31134382    INSTALL=$ac_cv_path_install
    31144383  else
    3115     # As a last resort, use the slow shell script.  We don't cache a
    3116     # path for INSTALL within a source directory, because that will
     4384    # As a last resort, use the slow shell script.  Don't cache a
     4385    # value for INSTALL within a source directory, because that will
    31174386    # break other packages using the cache if that directory is
    3118     # removed, or if the path is relative.
     4387    # removed, or if the value is a relative name.
    31194388    INSTALL=$ac_install_sh
    31204389  fi
    31214390fi
    3122 echo "$as_me:$LINENO: result: $INSTALL" >&5
    3123 echo "${ECHO_T}$INSTALL" >&6
     4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     4392$as_echo "$INSTALL" >&6; }
    31244393
    31254394# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    31314400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    31324401
    3133 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     4403$as_echo_n "checking whether ln -s works... " >&6; }
    31354404LN_S=$as_ln_s
    31364405if test "$LN_S" = "ln -s"; then
    3137   echo "$as_me:$LINENO: result: yes" >&5
    3138 echo "${ECHO_T}yes" >&6
    3139 else
    3140   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3141 echo "${ECHO_T}no, using $LN_S" >&6
    3142 fi
    3143 
    3144 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3145 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    3146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    3147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    3148   echo $ECHO_N "(cached) $ECHO_C" >&6
     4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4407$as_echo "yes" >&6; }
     4408else
     4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     4410$as_echo "no, using $LN_S" >&6; }
     4411fi
     4412
     4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4414$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     4415set x ${MAKE-make}
     4416ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     4417if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     4418  $as_echo_n "(cached) " >&6
    31494419else
    31504420  cat >conftest.make <<\_ACEOF
     4421SHELL = /bin/sh
    31514422all:
    3152     @echo 'ac_maketemp="$(MAKE)"'
    3153 _ACEOF
    3154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    3156 if test -n "$ac_maketemp"; then
    3157   eval ac_cv_prog_make_${ac_make}_set=yes
    3158 else
    3159   eval ac_cv_prog_make_${ac_make}_set=no
    3160 fi
     4423    @echo '@@@%%%=$(MAKE)=@@@%%%'
     4424_ACEOF
     4425# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4426case `${MAKE-make} -f conftest.make 2>/dev/null` in
     4427  *@@@%%%=?*=@@@%%%*)
     4428    eval ac_cv_prog_make_${ac_make}_set=yes;;
     4429  *)
     4430    eval ac_cv_prog_make_${ac_make}_set=no;;
     4431esac
    31614432rm -f conftest.make
    31624433fi
    3163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    3164   echo "$as_me:$LINENO: result: yes" >&5
    3165 echo "${ECHO_T}yes" >&6
     4434if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4436$as_echo "yes" >&6; }
    31664437  SET_MAKE=
    31674438else
    3168   echo "$as_me:$LINENO: result: no" >&5
    3169 echo "${ECHO_T}no" >&6
     4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4440$as_echo "no" >&6; }
    31704441  SET_MAKE="MAKE=${MAKE-make}"
    31714442fi
     
    31744445  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    31754446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3178 if test "${ac_cv_prog_RANLIB+set}" = set; then
    3179   echo $ECHO_N "(cached) $ECHO_C" >&6
     4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4448$as_echo_n "checking for $ac_word... " >&6; }
     4449if test "${ac_cv_prog_RANLIB+set}" = set; then :
     4450  $as_echo_n "(cached) " >&6
    31804451else
    31814452  if test -n "$RANLIB"; then
     
    31874458  IFS=$as_save_IFS
    31884459  test -z "$as_dir" && as_dir=.
    3189   for ac_exec_ext in '' $ac_executable_extensions; do
    3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4460    for ac_exec_ext in '' $ac_executable_extensions; do
     4461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    31914462    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31934464    break 2
    31944465  fi
    31954466done
    3196 done
     4467  done
     4468IFS=$as_save_IFS
    31974469
    31984470fi
     
    32004472RANLIB=$ac_cv_prog_RANLIB
    32014473if test -n "$RANLIB"; then
    3202   echo "$as_me:$LINENO: result: $RANLIB" >&5
    3203 echo "${ECHO_T}$RANLIB" >&6
    3204 else
    3205   echo "$as_me:$LINENO: result: no" >&5
    3206 echo "${ECHO_T}no" >&6
    3207 fi
     4474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     4475$as_echo "$RANLIB" >&6; }
     4476else
     4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4478$as_echo "no" >&6; }
     4479fi
     4480
    32084481
    32094482fi
     
    32124485  # Extract the first word of "ranlib", so it can be a program name with args.
    32134486set dummy ranlib; ac_word=$2
    3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3217   echo $ECHO_N "(cached) $ECHO_C" >&6
     4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4488$as_echo_n "checking for $ac_word... " >&6; }
     4489if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     4490  $as_echo_n "(cached) " >&6
    32184491else
    32194492  if test -n "$ac_ct_RANLIB"; then
     
    32254498  IFS=$as_save_IFS
    32264499  test -z "$as_dir" && as_dir=.
    3227   for ac_exec_ext in '' $ac_executable_extensions; do
    3228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4500    for ac_exec_ext in '' $ac_executable_extensions; do
     4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    32294502    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    32314504    break 2
    32324505  fi
    32334506done
    3234 done
    3235 
    3236   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     4507  done
     4508IFS=$as_save_IFS
     4509
    32374510fi
    32384511fi
    32394512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    32404513if test -n "$ac_ct_RANLIB"; then
    3241   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3242 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3243 else
    3244   echo "$as_me:$LINENO: result: no" >&5
    3245 echo "${ECHO_T}no" >&6
    3246 fi
    3247 
    3248   RANLIB=$ac_ct_RANLIB
     4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     4515$as_echo "$ac_ct_RANLIB" >&6; }
     4516else
     4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4518$as_echo "no" >&6; }
     4519fi
     4520
     4521  if test "x$ac_ct_RANLIB" = x; then
     4522    RANLIB=":"
     4523  else
     4524    case $cross_compiling:$ac_tool_warned in
     4525yes:)
     4526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4528ac_tool_warned=yes ;;
     4529esac
     4530    RANLIB=$ac_ct_RANLIB
     4531  fi
    32494532else
    32504533  RANLIB="$ac_cv_prog_RANLIB"
     
    32524535
    32534536
    3254 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    3255 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     4538$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    32564539arch_64bit=no
    32574540case "$host_cpu" in
     
    32604543
    32614544if test "$arch_64bit" = yes; then
    3262   echo "$as_me:$LINENO: result: yes" >&5
    3263 echo "${ECHO_T}yes" >&6
     4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4546$as_echo "yes" >&6; }
    32644547  if test -z "$COMPAT32BITFLAGS" ; then
    32654548    COMPAT32BITFLAGS="-m32"
    32664549  fi
    32674550else
    3268   echo "$as_me:$LINENO: result: no" >&5
    3269 echo "${ECHO_T}no" >&6
     4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4552$as_echo "no" >&6; }
    32704553  if test -z "$COMPAT32BITFLAGS" ; then
    32714554    COMPAT32BITFLAGS=
     
    33094592#do test of MICO_VER
    33104593if test MICO_VER != 0; then
    3311 cat >>confdefs.h <<\_ACEOF
    3312 #define MICO_VER 1
    3313 _ACEOF
     4594$as_echo "#define MICO_VER 1" >>confdefs.h
    33144595
    33154596
     
    33244605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    33254606ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3326 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3327 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4608$as_echo_n "checking how to run the C preprocessor... " >&6; }
    33284609# On Suns, sometimes $CPP names a directory.
    33294610if test -n "$CPP" && test -d "$CPP"; then
     
    33314612fi
    33324613if test -z "$CPP"; then
    3333   if test "${ac_cv_prog_CPP+set}" = set; then
    3334   echo $ECHO_N "(cached) $ECHO_C" >&6
     4614  if test "${ac_cv_prog_CPP+set}" = set; then :
     4615  $as_echo_n "(cached) " >&6
    33354616else
    33364617      # Double quotes because CPP needs to be expanded
     
    33464627  # On the NeXT, cc -E runs the code through the compiler's parser,
    33474628  # not just through cpp. "Syntax error" is here to catch this case.
    3348   cat >conftest.$ac_ext <<_ACEOF
    3349 /* confdefs.h.  */
    3350 _ACEOF
    3351 cat confdefs.h >>conftest.$ac_ext
    3352 cat >>conftest.$ac_ext <<_ACEOF
     4629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33534630/* end confdefs.h.  */
    33544631#ifdef __STDC__
     
    33594636             Syntax error
    33604637_ACEOF
    3361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3363   ac_status=$?
    3364   grep -v '^ *+' conftest.er1 >conftest.err
    3365   rm -f conftest.er1
    3366   cat conftest.err >&5
    3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3368   (exit $ac_status); } >/dev/null; then
    3369   if test -s conftest.err; then
    3370     ac_cpp_err=$ac_c_preproc_warn_flag
    3371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3372   else
    3373     ac_cpp_err=
    3374   fi
    3375 else
    3376   ac_cpp_err=yes
    3377 fi
    3378 if test -z "$ac_cpp_err"; then
    3379   :
    3380 else
    3381   echo "$as_me: failed program was:" >&5
    3382 sed 's/^/| /' conftest.$ac_ext >&5
    3383 
     4638if ac_fn_c_try_cpp "$LINENO"; then :
     4639
     4640else
    33844641  # Broken: fails on valid input.
    33854642continue
    33864643fi
    3387 rm -f conftest.err conftest.$ac_ext
    3388 
    3389   # OK, works on sane cases.  Now check whether non-existent headers
     4644rm -f conftest.err conftest.i conftest.$ac_ext
     4645
     4646  # OK, works on sane cases.  Now check whether nonexistent headers
    33904647  # can be detected and how.
    3391   cat >conftest.$ac_ext <<_ACEOF
    3392 /* confdefs.h.  */
    3393 _ACEOF
    3394 cat confdefs.h >>conftest.$ac_ext
    3395 cat >>conftest.$ac_ext <<_ACEOF
     4648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33964649/* end confdefs.h.  */
    33974650#include <ac_nonexistent.h>
    33984651_ACEOF
    3399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3401   ac_status=$?
    3402   grep -v '^ *+' conftest.er1 >conftest.err
    3403   rm -f conftest.er1
    3404   cat conftest.err >&5
    3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3406   (exit $ac_status); } >/dev/null; then
    3407   if test -s conftest.err; then
    3408     ac_cpp_err=$ac_c_preproc_warn_flag
    3409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3410   else
    3411     ac_cpp_err=
    3412   fi
    3413 else
    3414   ac_cpp_err=yes
    3415 fi
    3416 if test -z "$ac_cpp_err"; then
     4652if ac_fn_c_try_cpp "$LINENO"; then :
    34174653  # Broken: success on invalid input.
    34184654continue
    34194655else
    3420   echo "$as_me: failed program was:" >&5
    3421 sed 's/^/| /' conftest.$ac_ext >&5
    3422 
    34234656  # Passes both tests.
    34244657ac_preproc_ok=:
    34254658break
    34264659fi
    3427 rm -f conftest.err conftest.$ac_ext
     4660rm -f conftest.err conftest.i conftest.$ac_ext
    34284661
    34294662done
    34304663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3431 rm -f conftest.err conftest.$ac_ext
    3432 if $ac_preproc_ok; then
     4664rm -f conftest.i conftest.err conftest.$ac_ext
     4665if $ac_preproc_ok; then :
    34334666  break
    34344667fi
     
    34424675  ac_cv_prog_CPP=$CPP
    34434676fi
    3444 echo "$as_me:$LINENO: result: $CPP" >&5
    3445 echo "${ECHO_T}$CPP" >&6
     4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4678$as_echo "$CPP" >&6; }
    34464679ac_preproc_ok=false
    34474680for ac_c_preproc_warn_flag in '' yes
     
    34534686  # On the NeXT, cc -E runs the code through the compiler's parser,
    34544687  # not just through cpp. "Syntax error" is here to catch this case.
    3455   cat >conftest.$ac_ext <<_ACEOF
    3456 /* confdefs.h.  */
    3457 _ACEOF
    3458 cat confdefs.h >>conftest.$ac_ext
    3459 cat >>conftest.$ac_ext <<_ACEOF
     4688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34604689/* end confdefs.h.  */
    34614690#ifdef __STDC__
     
    34664695             Syntax error
    34674696_ACEOF
    3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3470   ac_status=$?
    3471   grep -v '^ *+' conftest.er1 >conftest.err
    3472   rm -f conftest.er1
    3473   cat conftest.err >&5
    3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3475   (exit $ac_status); } >/dev/null; then
    3476   if test -s conftest.err; then
    3477     ac_cpp_err=$ac_c_preproc_warn_flag
    3478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3479   else
    3480     ac_cpp_err=
    3481   fi
    3482 else
    3483   ac_cpp_err=yes
    3484 fi
    3485 if test -z "$ac_cpp_err"; then
    3486   :
    3487 else
    3488   echo "$as_me: failed program was:" >&5
    3489 sed 's/^/| /' conftest.$ac_ext >&5
    3490 
     4697if ac_fn_c_try_cpp "$LINENO"; then :
     4698
     4699else
    34914700  # Broken: fails on valid input.
    34924701continue
    34934702fi
    3494 rm -f conftest.err conftest.$ac_ext
    3495 
    3496   # OK, works on sane cases.  Now check whether non-existent headers
     4703rm -f conftest.err conftest.i conftest.$ac_ext
     4704
     4705  # OK, works on sane cases.  Now check whether nonexistent headers
    34974706  # can be detected and how.
    3498   cat >conftest.$ac_ext <<_ACEOF
    3499 /* confdefs.h.  */
    3500 _ACEOF
    3501 cat confdefs.h >>conftest.$ac_ext
    3502 cat >>conftest.$ac_ext <<_ACEOF
     4707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35034708/* end confdefs.h.  */
    35044709#include <ac_nonexistent.h>
    35054710_ACEOF
    3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3508   ac_status=$?
    3509   grep -v '^ *+' conftest.er1 >conftest.err
    3510   rm -f conftest.er1
    3511   cat conftest.err >&5
    3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3513   (exit $ac_status); } >/dev/null; then
    3514   if test -s conftest.err; then
    3515     ac_cpp_err=$ac_c_preproc_warn_flag
    3516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3517   else
    3518     ac_cpp_err=
    3519   fi
    3520 else
    3521   ac_cpp_err=yes
    3522 fi
    3523 if test -z "$ac_cpp_err"; then
     4711if ac_fn_c_try_cpp "$LINENO"; then :
    35244712  # Broken: success on invalid input.
    35254713continue
    35264714else
    3527   echo "$as_me: failed program was:" >&5
    3528 sed 's/^/| /' conftest.$ac_ext >&5
    3529 
    35304715  # Passes both tests.
    35314716ac_preproc_ok=:
    35324717break
    35334718fi
    3534 rm -f conftest.err conftest.$ac_ext
     4719rm -f conftest.err conftest.i conftest.$ac_ext
    35354720
    35364721done
    35374722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3538 rm -f conftest.err conftest.$ac_ext
    3539 if $ac_preproc_ok; then
    3540   :
    3541 else
    3542   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3543 See \`config.log' for more details." >&5
    3544 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3545 See \`config.log' for more details." >&2;}
    3546    { (exit 1); exit 1; }; }
     4723rm -f conftest.i conftest.err conftest.$ac_ext
     4724if $ac_preproc_ok; then :
     4725
     4726else
     4727  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4729as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4730See \`config.log' for more details" "$LINENO" 5 ; }
    35474731fi
    35484732
     
    35544738
    35554739
    3556 echo "$as_me:$LINENO: checking for egrep" >&5
    3557 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3558 if test "${ac_cv_prog_egrep+set}" = set; then
    3559   echo $ECHO_N "(cached) $ECHO_C" >&6
    3560 else
    3561   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3562     then ac_cv_prog_egrep='grep -E'
    3563     else ac_cv_prog_egrep='egrep'
     4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4741$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4742if test "${ac_cv_path_GREP+set}" = set; then :
     4743  $as_echo_n "(cached) " >&6
     4744else
     4745  if test -z "$GREP"; then
     4746  ac_path_GREP_found=false
     4747  # Loop through the user's path and test for each of PROGNAME-LIST
     4748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4750do
     4751  IFS=$as_save_IFS
     4752  test -z "$as_dir" && as_dir=.
     4753    for ac_prog in grep ggrep; do
     4754    for ac_exec_ext in '' $ac_executable_extensions; do
     4755      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4756      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4757# Check for GNU ac_path_GREP and select it if it is found.
     4758  # Check for GNU $ac_path_GREP
     4759case `"$ac_path_GREP" --version 2>&1` in
     4760*GNU*)
     4761  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4762*)
     4763  ac_count=0
     4764  $as_echo_n 0123456789 >"conftest.in"
     4765  while :
     4766  do
     4767    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4768    mv "conftest.tmp" "conftest.in"
     4769    cp "conftest.in" "conftest.nl"
     4770    $as_echo 'GREP' >> "conftest.nl"
     4771    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4772    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4773    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4774    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4775      # Best one so far, save it but keep looking for a better one
     4776      ac_cv_path_GREP="$ac_path_GREP"
     4777      ac_path_GREP_max=$ac_count
    35644778    fi
    3565 fi
    3566 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3567 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3568  EGREP=$ac_cv_prog_egrep
    3569 
    3570 
    3571 
    3572 echo "$as_me:$LINENO: checking for AIX" >&5
    3573 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3574 cat >conftest.$ac_ext <<_ACEOF
    3575 /* confdefs.h.  */
    3576 _ACEOF
    3577 cat confdefs.h >>conftest.$ac_ext
    3578 cat >>conftest.$ac_ext <<_ACEOF
    3579 /* end confdefs.h.  */
    3580 #ifdef _AIX
    3581   yes
    3582 #endif
    3583 
    3584 _ACEOF
    3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3586   $EGREP "yes" >/dev/null 2>&1; then
    3587   echo "$as_me:$LINENO: result: yes" >&5
    3588 echo "${ECHO_T}yes" >&6
    3589 cat >>confdefs.h <<\_ACEOF
    3590 #define _ALL_SOURCE 1
    3591 _ACEOF
    3592 
    3593 else
    3594   echo "$as_me:$LINENO: result: no" >&5
    3595 echo "${ECHO_T}no" >&6
    3596 fi
    3597 rm -f conftest*
    3598 
    3599 
    3600 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3601 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3602 if test "${ac_cv_search_strerror+set}" = set; then
    3603   echo $ECHO_N "(cached) $ECHO_C" >&6
    3604 else
    3605   ac_func_search_save_LIBS=$LIBS
    3606 ac_cv_search_strerror=no
    3607 cat >conftest.$ac_ext <<_ACEOF
    3608 /* confdefs.h.  */
    3609 _ACEOF
    3610 cat confdefs.h >>conftest.$ac_ext
    3611 cat >>conftest.$ac_ext <<_ACEOF
    3612 /* end confdefs.h.  */
    3613 
    3614 /* Override any gcc2 internal prototype to avoid an error.  */
    3615 #ifdef __cplusplus
    3616 extern "C"
    3617 #endif
    3618 /* We use char because int might match the return type of a gcc2
    3619    builtin and then its argument prototype would still apply.  */
    3620 char strerror ();
    3621 int
    3622 main ()
    3623 {
    3624 strerror ();
    3625   ;
    3626   return 0;
    3627 }
    3628 _ACEOF
    3629 rm -f conftest.$ac_objext conftest$ac_exeext
    3630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3631   (eval $ac_link) 2>conftest.er1
    3632   ac_status=$?
    3633   grep -v '^ *+' conftest.er1 >conftest.err
    3634   rm -f conftest.er1
    3635   cat conftest.err >&5
    3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3637   (exit $ac_status); } &&
    3638      { ac_try='test -z "$ac_c_werror_flag"
    3639              || test ! -s conftest.err'
    3640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3641   (eval $ac_try) 2>&5
    3642   ac_status=$?
    3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3644   (exit $ac_status); }; } &&
    3645      { ac_try='test -s conftest$ac_exeext'
    3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3647   (eval $ac_try) 2>&5
    3648   ac_status=$?
    3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3650   (exit $ac_status); }; }; then
    3651   ac_cv_search_strerror="none required"
    3652 else
    3653   echo "$as_me: failed program was:" >&5
    3654 sed 's/^/| /' conftest.$ac_ext >&5
    3655 
    3656 fi
    3657 rm -f conftest.err conftest.$ac_objext \
    3658       conftest$ac_exeext conftest.$ac_ext
    3659 if test "$ac_cv_search_strerror" = no; then
    3660   for ac_lib in cposix; do
    3661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3662     cat >conftest.$ac_ext <<_ACEOF
    3663 /* confdefs.h.  */
    3664 _ACEOF
    3665 cat confdefs.h >>conftest.$ac_ext
    3666 cat >>conftest.$ac_ext <<_ACEOF
    3667 /* end confdefs.h.  */
    3668 
    3669 /* Override any gcc2 internal prototype to avoid an error.  */
    3670 #ifdef __cplusplus
    3671 extern "C"
    3672 #endif
    3673 /* We use char because int might match the return type of a gcc2
    3674    builtin and then its argument prototype would still apply.  */
    3675 char strerror ();
    3676 int
    3677 main ()
    3678 {
    3679 strerror ();
    3680   ;
    3681   return 0;
    3682 }
    3683 _ACEOF
    3684 rm -f conftest.$ac_objext conftest$ac_exeext
    3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3686   (eval $ac_link) 2>conftest.er1
    3687   ac_status=$?
    3688   grep -v '^ *+' conftest.er1 >conftest.err
    3689   rm -f conftest.er1
    3690   cat conftest.err >&5
    3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3692   (exit $ac_status); } &&
    3693      { ac_try='test -z "$ac_c_werror_flag"
    3694              || test ! -s conftest.err'
    3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3696   (eval $ac_try) 2>&5
    3697   ac_status=$?
    3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3699   (exit $ac_status); }; } &&
    3700      { ac_try='test -s conftest$ac_exeext'
    3701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3702   (eval $ac_try) 2>&5
    3703   ac_status=$?
    3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3705   (exit $ac_status); }; }; then
    3706   ac_cv_search_strerror="-l$ac_lib"
    3707 break
    3708 else
    3709   echo "$as_me: failed program was:" >&5
    3710 sed 's/^/| /' conftest.$ac_ext >&5
    3711 
    3712 fi
    3713 rm -f conftest.err conftest.$ac_objext \
    3714       conftest$ac_exeext conftest.$ac_ext
     4779    # 10*(2^10) chars as input seems more than enough
     4780    test $ac_count -gt 10 && break
    37154781  done
    3716 fi
    3717 LIBS=$ac_func_search_save_LIBS
    3718 fi
    3719 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3720 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3721 if test "$ac_cv_search_strerror" != no; then
    3722   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3723 
    3724 fi
    3725 
    3726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3728 if test "${ac_cv_header_stdc+set}" = set; then
    3729   echo $ECHO_N "(cached) $ECHO_C" >&6
    3730 else
    3731   cat >conftest.$ac_ext <<_ACEOF
    3732 /* confdefs.h.  */
    3733 _ACEOF
    3734 cat confdefs.h >>conftest.$ac_ext
    3735 cat >>conftest.$ac_ext <<_ACEOF
     4782  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4783esac
     4784
     4785      $ac_path_GREP_found && break 3
     4786    done
     4787  done
     4788  done
     4789IFS=$as_save_IFS
     4790  if test -z "$ac_cv_path_GREP"; then
     4791    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4792  fi
     4793else
     4794  ac_cv_path_GREP=$GREP
     4795fi
     4796
     4797fi
     4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4799$as_echo "$ac_cv_path_GREP" >&6; }
     4800 GREP="$ac_cv_path_GREP"
     4801
     4802
     4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4804$as_echo_n "checking for egrep... " >&6; }
     4805if test "${ac_cv_path_EGREP+set}" = set; then :
     4806  $as_echo_n "(cached) " >&6
     4807else
     4808  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4809   then ac_cv_path_EGREP="$GREP -E"
     4810   else
     4811     if test -z "$EGREP"; then
     4812  ac_path_EGREP_found=false
     4813  # Loop through the user's path and test for each of PROGNAME-LIST
     4814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4816do
     4817  IFS=$as_save_IFS
     4818  test -z "$as_dir" && as_dir=.
     4819    for ac_prog in egrep; do
     4820    for ac_exec_ext in '' $ac_executable_extensions; do
     4821      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4822      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4823# Check for GNU ac_path_EGREP and select it if it is found.
     4824  # Check for GNU $ac_path_EGREP
     4825case `"$ac_path_EGREP" --version 2>&1` in
     4826*GNU*)
     4827  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4828*)
     4829  ac_count=0
     4830  $as_echo_n 0123456789 >"conftest.in"
     4831  while :
     4832  do
     4833    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4834    mv "conftest.tmp" "conftest.in"
     4835    cp "conftest.in" "conftest.nl"
     4836    $as_echo 'EGREP' >> "conftest.nl"
     4837    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4839    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4840    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4841      # Best one so far, save it but keep looking for a better one
     4842      ac_cv_path_EGREP="$ac_path_EGREP"
     4843      ac_path_EGREP_max=$ac_count
     4844    fi
     4845    # 10*(2^10) chars as input seems more than enough
     4846    test $ac_count -gt 10 && break
     4847  done
     4848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4849esac
     4850
     4851      $ac_path_EGREP_found && break 3
     4852    done
     4853  done
     4854  done
     4855IFS=$as_save_IFS
     4856  if test -z "$ac_cv_path_EGREP"; then
     4857    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4858  fi
     4859else
     4860  ac_cv_path_EGREP=$EGREP
     4861fi
     4862
     4863   fi
     4864fi
     4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4866$as_echo "$ac_cv_path_EGREP" >&6; }
     4867 EGREP="$ac_cv_path_EGREP"
     4868
     4869
     4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4871$as_echo_n "checking for ANSI C header files... " >&6; }
     4872if test "${ac_cv_header_stdc+set}" = set; then :
     4873  $as_echo_n "(cached) " >&6
     4874else
     4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37364876/* end confdefs.h.  */
    37374877#include <stdlib.h>
     
    37484888}
    37494889_ACEOF
    3750 rm -f conftest.$ac_objext
    3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3752   (eval $ac_compile) 2>conftest.er1
    3753   ac_status=$?
    3754   grep -v '^ *+' conftest.er1 >conftest.err
    3755   rm -f conftest.er1
    3756   cat conftest.err >&5
    3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3758   (exit $ac_status); } &&
    3759      { ac_try='test -z "$ac_c_werror_flag"
    3760              || test ! -s conftest.err'
    3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3762   (eval $ac_try) 2>&5
    3763   ac_status=$?
    3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3765   (exit $ac_status); }; } &&
    3766      { ac_try='test -s conftest.$ac_objext'
    3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3768   (eval $ac_try) 2>&5
    3769   ac_status=$?
    3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3771   (exit $ac_status); }; }; then
     4890if ac_fn_c_try_compile "$LINENO"; then :
    37724891  ac_cv_header_stdc=yes
    37734892else
    3774   echo "$as_me: failed program was:" >&5
    3775 sed 's/^/| /' conftest.$ac_ext >&5
    3776 
    3777 ac_cv_header_stdc=no
    3778 fi
    3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4893  ac_cv_header_stdc=no
     4894fi
     4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    37804896
    37814897if test $ac_cv_header_stdc = yes; then
    37824898  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3783   cat >conftest.$ac_ext <<_ACEOF
    3784 /* confdefs.h.  */
    3785 _ACEOF
    3786 cat confdefs.h >>conftest.$ac_ext
    3787 cat >>conftest.$ac_ext <<_ACEOF
     4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37884900/* end confdefs.h.  */
    37894901#include <string.h>
     
    37914903_ACEOF
    37924904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3793   $EGREP "memchr" >/dev/null 2>&1; then
    3794   :
     4905  $EGREP "memchr" >/dev/null 2>&1; then :
     4906
    37954907else
    37964908  ac_cv_header_stdc=no
     
    38024914if test $ac_cv_header_stdc = yes; then
    38034915  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3804   cat >conftest.$ac_ext <<_ACEOF
    3805 /* confdefs.h.  */
    3806 _ACEOF
    3807 cat confdefs.h >>conftest.$ac_ext
    3808 cat >>conftest.$ac_ext <<_ACEOF
     4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38094917/* end confdefs.h.  */
    38104918#include <stdlib.h>
     
    38124920_ACEOF
    38134921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3814   $EGREP "free" >/dev/null 2>&1; then
    3815   :
     4922  $EGREP "free" >/dev/null 2>&1; then :
     4923
    38164924else
    38174925  ac_cv_header_stdc=no
     
    38234931if test $ac_cv_header_stdc = yes; then
    38244932  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3825   if test "$cross_compiling" = yes; then
     4933  if test "$cross_compiling" = yes; then :
    38264934  :
    38274935else
    3828   cat >conftest.$ac_ext <<_ACEOF
    3829 /* confdefs.h.  */
    3830 _ACEOF
    3831 cat confdefs.h >>conftest.$ac_ext
    3832 cat >>conftest.$ac_ext <<_ACEOF
     4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38334937/* end confdefs.h.  */
    38344938#include <ctype.h>
     4939#include <stdlib.h>
    38354940#if ((' ' & 0x0FF) == 0x020)
    38364941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    38524957    if (XOR (islower (i), ISLOWER (i))
    38534958    || toupper (i) != TOUPPER (i))
    3854       exit(2);
    3855   exit (0);
     4959      return 2;
     4960  return 0;
    38564961}
    38574962_ACEOF
    3858 rm -f conftest$ac_exeext
    3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3860   (eval $ac_link) 2>&5
    3861   ac_status=$?
    3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3865   (eval $ac_try) 2>&5
    3866   ac_status=$?
    3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3868   (exit $ac_status); }; }; then
    3869   :
    3870 else
    3871   echo "$as_me: program exited with status $ac_status" >&5
    3872 echo "$as_me: failed program was:" >&5
    3873 sed 's/^/| /' conftest.$ac_ext >&5
    3874 
    3875 ( exit $ac_status )
    3876 ac_cv_header_stdc=no
    3877 fi
    3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3879 fi
    3880 fi
    3881 fi
    3882 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3883 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4963if ac_fn_c_try_run "$LINENO"; then :
     4964
     4965else
     4966  ac_cv_header_stdc=no
     4967fi
     4968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4969  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4970fi
     4971
     4972fi
     4973fi
     4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4975$as_echo "$ac_cv_header_stdc" >&6; }
    38844976if test $ac_cv_header_stdc = yes; then
    38854977
    3886 cat >>confdefs.h <<\_ACEOF
    3887 #define STDC_HEADERS 1
    3888 _ACEOF
     4978$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    38894979
    38904980fi
    38914981
    38924982# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3893 
    3894 
    3895 
    3896 
    3897 
    3898 
    3899 
    3900 
    3901 
    39024983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    39034984          inttypes.h stdint.h unistd.h
    3904 do
    3905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3906 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3909   echo $ECHO_N "(cached) $ECHO_C" >&6
    3910 else
    3911   cat >conftest.$ac_ext <<_ACEOF
    3912 /* confdefs.h.  */
    3913 _ACEOF
    3914 cat confdefs.h >>conftest.$ac_ext
    3915 cat >>conftest.$ac_ext <<_ACEOF
     4985do :
     4986  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4987ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4988"
     4989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4990  cat >>confdefs.h <<_ACEOF
     4991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4992_ACEOF
     4993
     4994fi
     4995
     4996done
     4997
     4998
     4999
     5000  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     5001if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     5002  MINIX=yes
     5003else
     5004  MINIX=
     5005fi
     5006
     5007
     5008  if test "$MINIX" = yes; then
     5009
     5010$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     5011
     5012
     5013$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     5014
     5015
     5016$as_echo "#define _MINIX 1" >>confdefs.h
     5017
     5018  fi
     5019
     5020
     5021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     5022$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     5023if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     5024  $as_echo_n "(cached) " >&6
     5025else
     5026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39165027/* end confdefs.h.  */
    3917 $ac_includes_default
    3918 
    3919 #include <$ac_header>
    3920 _ACEOF
    3921 rm -f conftest.$ac_objext
    3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3923   (eval $ac_compile) 2>conftest.er1
    3924   ac_status=$?
    3925   grep -v '^ *+' conftest.er1 >conftest.err
    3926   rm -f conftest.er1
    3927   cat conftest.err >&5
    3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3929   (exit $ac_status); } &&
    3930      { ac_try='test -z "$ac_c_werror_flag"
    3931              || test ! -s conftest.err'
    3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3933   (eval $ac_try) 2>&5
    3934   ac_status=$?
    3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3936   (exit $ac_status); }; } &&
    3937      { ac_try='test -s conftest.$ac_objext'
    3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3939   (eval $ac_try) 2>&5
    3940   ac_status=$?
    3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3942   (exit $ac_status); }; }; then
    3943   eval "$as_ac_Header=yes"
    3944 else
    3945   echo "$as_me: failed program was:" >&5
    3946 sed 's/^/| /' conftest.$ac_ext >&5
    3947 
    3948 eval "$as_ac_Header=no"
    3949 fi
    3950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3951 fi
    3952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3955   cat >>confdefs.h <<_ACEOF
    3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3957 _ACEOF
    3958 
    3959 fi
    3960 
     5028
     5029#     define __EXTENSIONS__ 1
     5030      $ac_includes_default
     5031int
     5032main ()
     5033{
     5034
     5035  ;
     5036  return 0;
     5037}
     5038_ACEOF
     5039if ac_fn_c_try_compile "$LINENO"; then :
     5040  ac_cv_safe_to_define___extensions__=yes
     5041else
     5042  ac_cv_safe_to_define___extensions__=no
     5043fi
     5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5045fi
     5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     5047$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     5048  test $ac_cv_safe_to_define___extensions__ = yes &&
     5049    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     5050
     5051  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     5052
     5053  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     5054
     5055  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     5056
     5057  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     5058
     5059
     5060
     5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     5062$as_echo_n "checking for library containing strerror... " >&6; }
     5063if test "${ac_cv_search_strerror+set}" = set; then :
     5064  $as_echo_n "(cached) " >&6
     5065else
     5066  ac_func_search_save_LIBS=$LIBS
     5067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5068/* end confdefs.h.  */
     5069
     5070/* Override any GCC internal prototype to avoid an error.
     5071   Use char because int might match the return type of a GCC
     5072   builtin and then its argument prototype would still apply.  */
     5073#ifdef __cplusplus
     5074extern "C"
     5075#endif
     5076char strerror ();
     5077int
     5078main ()
     5079{
     5080return strerror ();
     5081  ;
     5082  return 0;
     5083}
     5084_ACEOF
     5085for ac_lib in '' cposix; do
     5086  if test -z "$ac_lib"; then
     5087    ac_res="none required"
     5088  else
     5089    ac_res=-l$ac_lib
     5090    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5091  fi
     5092  if ac_fn_c_try_link "$LINENO"; then :
     5093  ac_cv_search_strerror=$ac_res
     5094fi
     5095rm -f core conftest.err conftest.$ac_objext \
     5096    conftest$ac_exeext
     5097  if test "${ac_cv_search_strerror+set}" = set; then :
     5098  break
     5099fi
    39615100done
    3962 
    3963 
    3964 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3965   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3966 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3967 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3968   echo $ECHO_N "(cached) $ECHO_C" >&6
    3969 fi
    3970 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3971 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3972 else
    3973   # Is the header compilable?
    3974 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3975 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3976 cat >conftest.$ac_ext <<_ACEOF
    3977 /* confdefs.h.  */
    3978 _ACEOF
    3979 cat confdefs.h >>conftest.$ac_ext
    3980 cat >>conftest.$ac_ext <<_ACEOF
    3981 /* end confdefs.h.  */
    3982 $ac_includes_default
    3983 #include <minix/config.h>
    3984 _ACEOF
    3985 rm -f conftest.$ac_objext
    3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3987   (eval $ac_compile) 2>conftest.er1
    3988   ac_status=$?
    3989   grep -v '^ *+' conftest.er1 >conftest.err
    3990   rm -f conftest.er1
    3991   cat conftest.err >&5
    3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3993   (exit $ac_status); } &&
    3994      { ac_try='test -z "$ac_c_werror_flag"
    3995              || test ! -s conftest.err'
    3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3997   (eval $ac_try) 2>&5
    3998   ac_status=$?
    3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4000   (exit $ac_status); }; } &&
    4001      { ac_try='test -s conftest.$ac_objext'
    4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4003   (eval $ac_try) 2>&5
    4004   ac_status=$?
    4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4006   (exit $ac_status); }; }; then
    4007   ac_header_compiler=yes
    4008 else
    4009   echo "$as_me: failed program was:" >&5
    4010 sed 's/^/| /' conftest.$ac_ext >&5
    4011 
    4012 ac_header_compiler=no
    4013 fi
    4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4016 echo "${ECHO_T}$ac_header_compiler" >&6
    4017 
    4018 # Is the header present?
    4019 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    4020 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    4021 cat >conftest.$ac_ext <<_ACEOF
    4022 /* confdefs.h.  */
    4023 _ACEOF
    4024 cat confdefs.h >>conftest.$ac_ext
    4025 cat >>conftest.$ac_ext <<_ACEOF
    4026 /* end confdefs.h.  */
    4027 #include <minix/config.h>
    4028 _ACEOF
    4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4031   ac_status=$?
    4032   grep -v '^ *+' conftest.er1 >conftest.err
    4033   rm -f conftest.er1
    4034   cat conftest.err >&5
    4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4036   (exit $ac_status); } >/dev/null; then
    4037   if test -s conftest.err; then
    4038     ac_cpp_err=$ac_c_preproc_warn_flag
    4039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4040   else
    4041     ac_cpp_err=
    4042   fi
    4043 else
    4044   ac_cpp_err=yes
    4045 fi
    4046 if test -z "$ac_cpp_err"; then
    4047   ac_header_preproc=yes
    4048 else
    4049   echo "$as_me: failed program was:" >&5
    4050 sed 's/^/| /' conftest.$ac_ext >&5
    4051 
    4052   ac_header_preproc=no
    4053 fi
    4054 rm -f conftest.err conftest.$ac_ext
    4055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4056 echo "${ECHO_T}$ac_header_preproc" >&6
    4057 
    4058 # So?  What about this header?
    4059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4060   yes:no: )
    4061     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    4062 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4063     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    4064 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    4065     ac_header_preproc=yes
    4066     ;;
    4067   no:yes:* )
    4068     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    4069 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    4070     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    4071 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    4072     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    4073 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    4074     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    4075 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    4076     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    4077 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    4078     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    4079 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    4080     (
    4081       cat <<\_ASBOX
    4082 ## ------------------------------------------ ##
    4083 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4084 ## ------------------------------------------ ##
    4085 _ASBOX
    4086     ) |
    4087       sed "s/^/$as_me: WARNING:     /" >&2
    4088     ;;
    4089 esac
    4090 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    4091 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    4092 if test "${ac_cv_header_minix_config_h+set}" = set; then
    4093   echo $ECHO_N "(cached) $ECHO_C" >&6
    4094 else
    4095   ac_cv_header_minix_config_h=$ac_header_preproc
    4096 fi
    4097 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    4098 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    4099 
    4100 fi
    4101 if test $ac_cv_header_minix_config_h = yes; then
    4102   MINIX=yes
    4103 else
    4104   MINIX=
    4105 fi
    4106 
    4107 
    4108 if test "$MINIX" = yes; then
    4109 
    4110 cat >>confdefs.h <<\_ACEOF
    4111 #define _POSIX_SOURCE 1
    4112 _ACEOF
    4113 
    4114 
    4115 cat >>confdefs.h <<\_ACEOF
    4116 #define _POSIX_1_SOURCE 2
    4117 _ACEOF
    4118 
    4119 
    4120 cat >>confdefs.h <<\_ACEOF
    4121 #define _MINIX 1
    4122 _ACEOF
    4123 
    4124 fi
    4125 
    4126 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    4127 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    4128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    4129   echo $ECHO_N "(cached) $ECHO_C" >&6
     5101if test "${ac_cv_search_strerror+set}" = set; then :
     5102
     5103else
     5104  ac_cv_search_strerror=no
     5105fi
     5106rm conftest.$ac_ext
     5107LIBS=$ac_func_search_save_LIBS
     5108fi
     5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     5110$as_echo "$ac_cv_search_strerror" >&6; }
     5111ac_res=$ac_cv_search_strerror
     5112if test "$ac_res" != no; then :
     5113  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5114
     5115fi
     5116
     5117
     5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     5119$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     5120if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     5121  $as_echo_n "(cached) " >&6
    41305122else
    41315123  ac_cv_prog_cc_stdc=no
     
    41405132do
    41415133  CFLAGS="$ac_save_CFLAGS $ac_arg"
    4142   cat >conftest.$ac_ext <<_ACEOF
    4143 /* confdefs.h.  */
    4144 _ACEOF
    4145 cat confdefs.h >>conftest.$ac_ext
    4146 cat >>conftest.$ac_ext <<_ACEOF
     5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    41475135/* end confdefs.h.  */
    41485136#if !defined(__STDC__) || __STDC__ != 1
     
    41605148}
    41615149_ACEOF
    4162 rm -f conftest.$ac_objext
    4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4164   (eval $ac_compile) 2>conftest.er1
    4165   ac_status=$?
    4166   grep -v '^ *+' conftest.er1 >conftest.err
    4167   rm -f conftest.er1
    4168   cat conftest.err >&5
    4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4170   (exit $ac_status); } &&
    4171      { ac_try='test -z "$ac_c_werror_flag"
    4172              || test ! -s conftest.err'
    4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4174   (eval $ac_try) 2>&5
    4175   ac_status=$?
    4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4177   (exit $ac_status); }; } &&
    4178      { ac_try='test -s conftest.$ac_objext'
    4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4180   (eval $ac_try) 2>&5
    4181   ac_status=$?
    4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4183   (exit $ac_status); }; }; then
     5150if ac_fn_c_try_compile "$LINENO"; then :
    41845151  ac_cv_prog_cc_stdc="$ac_arg"; break
    4185 else
    4186   echo "$as_me: failed program was:" >&5
    4187 sed 's/^/| /' conftest.$ac_ext >&5
    4188 
    4189 fi
    4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5152fi
     5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    41915154done
    41925155CFLAGS="$ac_save_CFLAGS"
     
    41945157fi
    41955158
    4196 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    4197 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     5160$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    41985161case "x$ac_cv_prog_cc_stdc" in
    41995162  x|xno) ;;
     
    42025165
    42035166
    4204 echo "$as_me:$LINENO: checking for function prototypes" >&5
    4205 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     5168$as_echo_n "checking for function prototypes... " >&6; }
    42065169if test "$ac_cv_prog_cc_stdc" != no; then
    4207   echo "$as_me:$LINENO: result: yes" >&5
    4208 echo "${ECHO_T}yes" >&6
    4209   cat >>confdefs.h <<\_ACEOF
    4210 #define PROTOTYPES 1
    4211 _ACEOF
     5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5171$as_echo "yes" >&6; }
     5172  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    42125173
    42135174  U= ANSI2KNR=
    42145175else
    4215   echo "$as_me:$LINENO: result: no" >&5
    4216 echo "${ECHO_T}no" >&6
     5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5177$as_echo "no" >&6; }
    42175178  U=_ ANSI2KNR=ansi2knr
    42185179fi
    42195180
    4220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4222 if test "${ac_cv_c_const+set}" = set; then
    4223   echo $ECHO_N "(cached) $ECHO_C" >&6
    4224 else
    4225   cat >conftest.$ac_ext <<_ACEOF
    4226 /* confdefs.h.  */
    4227 _ACEOF
    4228 cat confdefs.h >>conftest.$ac_ext
    4229 cat >>conftest.$ac_ext <<_ACEOF
     5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     5182$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     5183if test "${ac_cv_c_const+set}" = set; then :
     5184  $as_echo_n "(cached) " >&6
     5185else
     5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42305187/* end confdefs.h.  */
    42315188
     
    42375194  /* Ultrix mips cc rejects this.  */
    42385195  typedef int charset[2];
    4239   const charset x;
     5196  const charset cs;
    42405197  /* SunOS 4.1.1 cc rejects this.  */
    4241   char const *const *ccp;
    4242   char **p;
     5198  char const *const *pcpcc;
     5199  char **ppc;
    42435200  /* NEC SVR4.0.2 mips cc rejects this.  */
    42445201  struct point {int x, y;};
     
    42495206     expression */
    42505207  const char *g = "string";
    4251   ccp = &g + (g ? g-g : 0);
     5208  pcpcc = &g + (g ? g-g : 0);
    42525209  /* HPUX 7.0 cc rejects these. */
    4253   ++ccp;
    4254   p = (char**) ccp;
    4255   ccp = (char const *const *) p;
     5210  ++pcpcc;
     5211  ppc = (char**) pcpcc;
     5212  pcpcc = (char const *const *) ppc;
    42565213  { /* SCO 3.2v4 cc rejects this.  */
    42575214    char *t;
     
    42595216
    42605217    *t++ = 0;
     5218    if (s) return 0;
    42615219  }
    42625220  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    42775235  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    42785236    const int foo = 10;
     5237    if (!foo) return 0;
    42795238  }
     5239  return !cs[0] && !zero.x;
    42805240#endif
    42815241
     
    42845244}
    42855245_ACEOF
    4286 rm -f conftest.$ac_objext
    4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4288   (eval $ac_compile) 2>conftest.er1
    4289   ac_status=$?
    4290   grep -v '^ *+' conftest.er1 >conftest.err
    4291   rm -f conftest.er1
    4292   cat conftest.err >&5
    4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4294   (exit $ac_status); } &&
    4295      { ac_try='test -z "$ac_c_werror_flag"
    4296              || test ! -s conftest.err'
    4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4298   (eval $ac_try) 2>&5
    4299   ac_status=$?
    4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4301   (exit $ac_status); }; } &&
    4302      { ac_try='test -s conftest.$ac_objext'
    4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4304   (eval $ac_try) 2>&5
    4305   ac_status=$?
    4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4307   (exit $ac_status); }; }; then
     5246if ac_fn_c_try_compile "$LINENO"; then :
    43085247  ac_cv_c_const=yes
    43095248else
    4310   echo "$as_me: failed program was:" >&5
    4311 sed 's/^/| /' conftest.$ac_ext >&5
    4312 
    4313 ac_cv_c_const=no
    4314 fi
    4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4316 fi
    4317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4318 echo "${ECHO_T}$ac_cv_c_const" >&6
     5249  ac_cv_c_const=no
     5250fi
     5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5252fi
     5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     5254$as_echo "$ac_cv_c_const" >&6; }
    43195255if test $ac_cv_c_const = no; then
    43205256
    4321 cat >>confdefs.h <<\_ACEOF
    4322 #define const
    4323 _ACEOF
    4324 
    4325 fi
    4326 
    4327 echo "$as_me:$LINENO: checking for off_t" >&5
    4328 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4329 if test "${ac_cv_type_off_t+set}" = set; then
    4330   echo $ECHO_N "(cached) $ECHO_C" >&6
    4331 else
    4332   cat >conftest.$ac_ext <<_ACEOF
    4333 /* confdefs.h.  */
    4334 _ACEOF
    4335 cat confdefs.h >>conftest.$ac_ext
    4336 cat >>conftest.$ac_ext <<_ACEOF
    4337 /* end confdefs.h.  */
    4338 $ac_includes_default
    4339 int
    4340 main ()
    4341 {
    4342 if ((off_t *) 0)
    4343   return 0;
    4344 if (sizeof (off_t))
    4345   return 0;
    4346   ;
    4347   return 0;
    4348 }
    4349 _ACEOF
    4350 rm -f conftest.$ac_objext
    4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4352   (eval $ac_compile) 2>conftest.er1
    4353   ac_status=$?
    4354   grep -v '^ *+' conftest.er1 >conftest.err
    4355   rm -f conftest.er1
    4356   cat conftest.err >&5
    4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4358   (exit $ac_status); } &&
    4359      { ac_try='test -z "$ac_c_werror_flag"
    4360              || test ! -s conftest.err'
    4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4362   (eval $ac_try) 2>&5
    4363   ac_status=$?
    4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4365   (exit $ac_status); }; } &&
    4366      { ac_try='test -s conftest.$ac_objext'
    4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4368   (eval $ac_try) 2>&5
    4369   ac_status=$?
    4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4371   (exit $ac_status); }; }; then
    4372   ac_cv_type_off_t=yes
    4373 else
    4374   echo "$as_me: failed program was:" >&5
    4375 sed 's/^/| /' conftest.$ac_ext >&5
    4376 
    4377 ac_cv_type_off_t=no
    4378 fi
    4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4380 fi
    4381 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4382 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4383 if test $ac_cv_type_off_t = yes; then
    4384   :
     5257$as_echo "#define const /**/" >>confdefs.h
     5258
     5259fi
     5260
     5261ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     5262if test "x$ac_cv_type_off_t" = x""yes; then :
     5263
    43855264else
    43865265
    43875266cat >>confdefs.h <<_ACEOF
    4388 #define off_t long
    4389 _ACEOF
    4390 
    4391 fi
    4392 
    4393 echo "$as_me:$LINENO: checking for size_t" >&5
    4394 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4395 if test "${ac_cv_type_size_t+set}" = set; then
    4396   echo $ECHO_N "(cached) $ECHO_C" >&6
    4397 else
    4398   cat >conftest.$ac_ext <<_ACEOF
    4399 /* confdefs.h.  */
    4400 _ACEOF
    4401 cat confdefs.h >>conftest.$ac_ext
    4402 cat >>conftest.$ac_ext <<_ACEOF
    4403 /* end confdefs.h.  */
    4404 $ac_includes_default
    4405 int
    4406 main ()
    4407 {
    4408 if ((size_t *) 0)
    4409   return 0;
    4410 if (sizeof (size_t))
    4411   return 0;
    4412   ;
    4413   return 0;
    4414 }
    4415 _ACEOF
    4416 rm -f conftest.$ac_objext
    4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4418   (eval $ac_compile) 2>conftest.er1
    4419   ac_status=$?
    4420   grep -v '^ *+' conftest.er1 >conftest.err
    4421   rm -f conftest.er1
    4422   cat conftest.err >&5
    4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4424   (exit $ac_status); } &&
    4425      { ac_try='test -z "$ac_c_werror_flag"
    4426              || test ! -s conftest.err'
    4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4428   (eval $ac_try) 2>&5
    4429   ac_status=$?
    4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4431   (exit $ac_status); }; } &&
    4432      { ac_try='test -s conftest.$ac_objext'
    4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4434   (eval $ac_try) 2>&5
    4435   ac_status=$?
    4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4437   (exit $ac_status); }; }; then
    4438   ac_cv_type_size_t=yes
    4439 else
    4440   echo "$as_me: failed program was:" >&5
    4441 sed 's/^/| /' conftest.$ac_ext >&5
    4442 
    4443 ac_cv_type_size_t=no
    4444 fi
    4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4446 fi
    4447 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4448 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4449 if test $ac_cv_type_size_t = yes; then
    4450   :
     5267#define off_t long int
     5268_ACEOF
     5269
     5270fi
     5271
     5272ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     5273if test "x$ac_cv_type_size_t" = x""yes; then :
     5274
    44515275else
    44525276
    44535277cat >>confdefs.h <<_ACEOF
    4454 #define size_t unsigned
    4455 _ACEOF
    4456 
    4457 fi
    4458 
    4459 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4460 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4461 if test "${ac_cv_header_time+set}" = set; then
    4462   echo $ECHO_N "(cached) $ECHO_C" >&6
    4463 else
    4464   cat >conftest.$ac_ext <<_ACEOF
    4465 /* confdefs.h.  */
    4466 _ACEOF
    4467 cat confdefs.h >>conftest.$ac_ext
    4468 cat >>conftest.$ac_ext <<_ACEOF
     5278#define size_t unsigned int
     5279_ACEOF
     5280
     5281fi
     5282
     5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     5284$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     5285if test "${ac_cv_header_time+set}" = set; then :
     5286  $as_echo_n "(cached) " >&6
     5287else
     5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44695289/* end confdefs.h.  */
    44705290#include <sys/types.h>
     
    44815301}
    44825302_ACEOF
    4483 rm -f conftest.$ac_objext
    4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4485   (eval $ac_compile) 2>conftest.er1
    4486   ac_status=$?
    4487   grep -v '^ *+' conftest.er1 >conftest.err
    4488   rm -f conftest.er1
    4489   cat conftest.err >&5
    4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4491   (exit $ac_status); } &&
    4492      { ac_try='test -z "$ac_c_werror_flag"
    4493              || test ! -s conftest.err'
    4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4495   (eval $ac_try) 2>&5
    4496   ac_status=$?
    4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4498   (exit $ac_status); }; } &&
    4499      { ac_try='test -s conftest.$ac_objext'
    4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4501   (eval $ac_try) 2>&5
    4502   ac_status=$?
    4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4504   (exit $ac_status); }; }; then
     5303if ac_fn_c_try_compile "$LINENO"; then :
    45055304  ac_cv_header_time=yes
    45065305else
    4507   echo "$as_me: failed program was:" >&5
    4508 sed 's/^/| /' conftest.$ac_ext >&5
    4509 
    4510 ac_cv_header_time=no
    4511 fi
    4512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4513 fi
    4514 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4515 echo "${ECHO_T}$ac_cv_header_time" >&6
     5306  ac_cv_header_time=no
     5307fi
     5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5309fi
     5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     5311$as_echo "$ac_cv_header_time" >&6; }
    45165312if test $ac_cv_header_time = yes; then
    45175313
    4518 cat >>confdefs.h <<\_ACEOF
    4519 #define TIME_WITH_SYS_TIME 1
    4520 _ACEOF
    4521 
    4522 fi
    4523 
    4524 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4525 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4526 if test "${ac_cv_struct_tm+set}" = set; then
    4527   echo $ECHO_N "(cached) $ECHO_C" >&6
    4528 else
    4529   cat >conftest.$ac_ext <<_ACEOF
    4530 /* confdefs.h.  */
    4531 _ACEOF
    4532 cat confdefs.h >>conftest.$ac_ext
    4533 cat >>conftest.$ac_ext <<_ACEOF
     5314$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     5315
     5316fi
     5317
     5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     5319$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     5320if test "${ac_cv_struct_tm+set}" = set; then :
     5321  $as_echo_n "(cached) " >&6
     5322else
     5323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45345324/* end confdefs.h.  */
    45355325#include <sys/types.h>
     
    45395329main ()
    45405330{
    4541 struct tm *tp; tp->tm_sec;
     5331struct tm tm;
     5332                     int *p = &tm.tm_sec;
     5333                     return !p;
    45425334  ;
    45435335  return 0;
    45445336}
    45455337_ACEOF
    4546 rm -f conftest.$ac_objext
    4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4548   (eval $ac_compile) 2>conftest.er1
    4549   ac_status=$?
    4550   grep -v '^ *+' conftest.er1 >conftest.err
    4551   rm -f conftest.er1
    4552   cat conftest.err >&5
    4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4554   (exit $ac_status); } &&
    4555      { ac_try='test -z "$ac_c_werror_flag"
    4556              || test ! -s conftest.err'
    4557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4558   (eval $ac_try) 2>&5
    4559   ac_status=$?
    4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4561   (exit $ac_status); }; } &&
    4562      { ac_try='test -s conftest.$ac_objext'
    4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4564   (eval $ac_try) 2>&5
    4565   ac_status=$?
    4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4567   (exit $ac_status); }; }; then
     5338if ac_fn_c_try_compile "$LINENO"; then :
    45685339  ac_cv_struct_tm=time.h
    45695340else
    4570   echo "$as_me: failed program was:" >&5
    4571 sed 's/^/| /' conftest.$ac_ext >&5
    4572 
    4573 ac_cv_struct_tm=sys/time.h
    4574 fi
    4575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4576 fi
    4577 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4578 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5341  ac_cv_struct_tm=sys/time.h
     5342fi
     5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5344fi
     5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5346$as_echo "$ac_cv_struct_tm" >&6; }
    45795347if test $ac_cv_struct_tm = sys/time.h; then
    45805348
    4581 cat >>confdefs.h <<\_ACEOF
    4582 #define TM_IN_SYS_TIME 1
    4583 _ACEOF
     5349$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    45845350
    45855351fi
     
    45875353
    45885354if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4589 cat >conftest.$ac_ext <<_ACEOF
    4590 /* confdefs.h.  */
    4591 _ACEOF
    4592 cat confdefs.h >>conftest.$ac_ext
    4593 cat >>conftest.$ac_ext <<_ACEOF
     5355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45945356/* end confdefs.h.  */
    45955357#include <stdio.h>
     
    46035365}
    46045366_ACEOF
    4605 rm -f conftest.$ac_objext
    4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4607   (eval $ac_compile) 2>conftest.er1
    4608   ac_status=$?
    4609   grep -v '^ *+' conftest.er1 >conftest.err
    4610   rm -f conftest.er1
    4611   cat conftest.err >&5
    4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4613   (exit $ac_status); } &&
    4614      { ac_try='test -z "$ac_c_werror_flag"
    4615              || test ! -s conftest.err'
    4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4617   (eval $ac_try) 2>&5
    4618   ac_status=$?
    4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4620   (exit $ac_status); }; } &&
    4621      { ac_try='test -s conftest.$ac_objext'
    4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4623   (eval $ac_try) 2>&5
    4624   ac_status=$?
    4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4626   (exit $ac_status); }; }; then
    4627   :
    4628 else
    4629   echo "$as_me: failed program was:" >&5
    4630 sed 's/^/| /' conftest.$ac_ext >&5
    4631 
    4632 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4633 fi
    4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4635 fi
    4636 
    4637 
    4638 
    4639 echo "$as_me:$LINENO: checking for main in -lg" >&5
    4640 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    4641 if test "${ac_cv_lib_g_main+set}" = set; then
    4642   echo $ECHO_N "(cached) $ECHO_C" >&6
     5367if ac_fn_c_try_compile "$LINENO"; then :
     5368
     5369else
     5370  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5371fi
     5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5373fi
     5374
     5375
     5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
     5377$as_echo_n "checking for main in -lg... " >&6; }
     5378if test "${ac_cv_lib_g_main+set}" = set; then :
     5379  $as_echo_n "(cached) " >&6
    46435380else
    46445381  ac_check_lib_save_LIBS=$LIBS
    46455382LIBS="-lg  $LIBS"
    4646 cat >conftest.$ac_ext <<_ACEOF
    4647 /* confdefs.h.  */
    4648 _ACEOF
    4649 cat confdefs.h >>conftest.$ac_ext
    4650 cat >>conftest.$ac_ext <<_ACEOF
     5383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46515384/* end confdefs.h.  */
    46525385
     
    46555388main ()
    46565389{
    4657 main ();
     5390return main ();
    46585391  ;
    46595392  return 0;
    46605393}
    46615394_ACEOF
    4662 rm -f conftest.$ac_objext conftest$ac_exeext
    4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4664   (eval $ac_link) 2>conftest.er1
    4665   ac_status=$?
    4666   grep -v '^ *+' conftest.er1 >conftest.err
    4667   rm -f conftest.er1
    4668   cat conftest.err >&5
    4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4670   (exit $ac_status); } &&
    4671      { ac_try='test -z "$ac_c_werror_flag"
    4672              || test ! -s conftest.err'
    4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4674   (eval $ac_try) 2>&5
    4675   ac_status=$?
    4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4677   (exit $ac_status); }; } &&
    4678      { ac_try='test -s conftest$ac_exeext'
    4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4680   (eval $ac_try) 2>&5
    4681   ac_status=$?
    4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4683   (exit $ac_status); }; }; then
     5395if ac_fn_c_try_link "$LINENO"; then :
    46845396  ac_cv_lib_g_main=yes
    46855397else
    4686   echo "$as_me: failed program was:" >&5
    4687 sed 's/^/| /' conftest.$ac_ext >&5
    4688 
    4689 ac_cv_lib_g_main=no
    4690 fi
    4691 rm -f conftest.err conftest.$ac_objext \
    4692       conftest$ac_exeext conftest.$ac_ext
     5398  ac_cv_lib_g_main=no
     5399fi
     5400rm -f core conftest.err conftest.$ac_objext \
     5401    conftest$ac_exeext conftest.$ac_ext
    46935402LIBS=$ac_check_lib_save_LIBS
    46945403fi
    4695 echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
    4696 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    4697 if test $ac_cv_lib_g_main = yes; then
     5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
     5405$as_echo "$ac_cv_lib_g_main" >&6; }
     5406if test "x$ac_cv_lib_g_main" = x""yes; then :
    46985407  cat >>confdefs.h <<_ACEOF
    46995408#define HAVE_LIBG 1
     
    47055414ac_cv_lib_g=ac_cv_lib_g_main
    47065415
    4707 
    4708 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4709 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4710 if test "${ac_cv_lib_m_main+set}" = set; then
    4711   echo $ECHO_N "(cached) $ECHO_C" >&6
     5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5417$as_echo_n "checking for main in -lm... " >&6; }
     5418if test "${ac_cv_lib_m_main+set}" = set; then :
     5419  $as_echo_n "(cached) " >&6
    47125420else
    47135421  ac_check_lib_save_LIBS=$LIBS
    47145422LIBS="-lm  $LIBS"
    4715 cat >conftest.$ac_ext <<_ACEOF
    4716 /* confdefs.h.  */
    4717 _ACEOF
    4718 cat confdefs.h >>conftest.$ac_ext
    4719 cat >>conftest.$ac_ext <<_ACEOF
     5423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47205424/* end confdefs.h.  */
    47215425
     
    47245428main ()
    47255429{
    4726 main ();
     5430return main ();
    47275431  ;
    47285432  return 0;
    47295433}
    47305434_ACEOF
    4731 rm -f conftest.$ac_objext conftest$ac_exeext
    4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4733   (eval $ac_link) 2>conftest.er1
    4734   ac_status=$?
    4735   grep -v '^ *+' conftest.er1 >conftest.err
    4736   rm -f conftest.er1
    4737   cat conftest.err >&5
    4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4739   (exit $ac_status); } &&
    4740      { ac_try='test -z "$ac_c_werror_flag"
    4741              || test ! -s conftest.err'
    4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4743   (eval $ac_try) 2>&5
    4744   ac_status=$?
    4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4746   (exit $ac_status); }; } &&
    4747      { ac_try='test -s conftest$ac_exeext'
    4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4749   (eval $ac_try) 2>&5
    4750   ac_status=$?
    4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4752   (exit $ac_status); }; }; then
     5435if ac_fn_c_try_link "$LINENO"; then :
    47535436  ac_cv_lib_m_main=yes
    47545437else
    4755   echo "$as_me: failed program was:" >&5
    4756 sed 's/^/| /' conftest.$ac_ext >&5
    4757 
    4758 ac_cv_lib_m_main=no
    4759 fi
    4760 rm -f conftest.err conftest.$ac_objext \
    4761       conftest$ac_exeext conftest.$ac_ext
     5438  ac_cv_lib_m_main=no
     5439fi
     5440rm -f core conftest.err conftest.$ac_objext \
     5441    conftest$ac_exeext conftest.$ac_ext
    47625442LIBS=$ac_check_lib_save_LIBS
    47635443fi
    4764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4765 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4766 if test $ac_cv_lib_m_main = yes; then
     5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5445$as_echo "$ac_cv_lib_m_main" >&6; }
     5446if test "x$ac_cv_lib_m_main" = x""yes; then :
    47675447  cat >>confdefs.h <<_ACEOF
    47685448#define HAVE_LIBM 1
     
    47745454ac_cv_lib_m=ac_cv_lib_m_main
    47755455
    4776 
    4777 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
    4778 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    4779 if test "${ac_cv_lib_crypt_main+set}" = set; then
    4780   echo $ECHO_N "(cached) $ECHO_C" >&6
     5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
     5457$as_echo_n "checking for main in -lcrypt... " >&6; }
     5458if test "${ac_cv_lib_crypt_main+set}" = set; then :
     5459  $as_echo_n "(cached) " >&6
    47815460else
    47825461  ac_check_lib_save_LIBS=$LIBS
    47835462LIBS="-lcrypt  $LIBS"
    4784 cat >conftest.$ac_ext <<_ACEOF
    4785 /* confdefs.h.  */
    4786 _ACEOF
    4787 cat confdefs.h >>conftest.$ac_ext
    4788 cat >>conftest.$ac_ext <<_ACEOF
     5463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47895464/* end confdefs.h.  */
    47905465
     
    47935468main ()
    47945469{
    4795 main ();
     5470return main ();
    47965471  ;
    47975472  return 0;
    47985473}
    47995474_ACEOF
    4800 rm -f conftest.$ac_objext conftest$ac_exeext
    4801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4802   (eval $ac_link) 2>conftest.er1
    4803   ac_status=$?
    4804   grep -v '^ *+' conftest.er1 >conftest.err
    4805   rm -f conftest.er1
    4806   cat conftest.err >&5
    4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4808   (exit $ac_status); } &&
    4809      { ac_try='test -z "$ac_c_werror_flag"
    4810              || test ! -s conftest.err'
    4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4812   (eval $ac_try) 2>&5
    4813   ac_status=$?
    4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4815   (exit $ac_status); }; } &&
    4816      { ac_try='test -s conftest$ac_exeext'
    4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4818   (eval $ac_try) 2>&5
    4819   ac_status=$?
    4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4821   (exit $ac_status); }; }; then
     5475if ac_fn_c_try_link "$LINENO"; then :
    48225476  ac_cv_lib_crypt_main=yes
    48235477else
    4824   echo "$as_me: failed program was:" >&5
    4825 sed 's/^/| /' conftest.$ac_ext >&5
    4826 
    4827 ac_cv_lib_crypt_main=no
    4828 fi
    4829 rm -f conftest.err conftest.$ac_objext \
    4830       conftest$ac_exeext conftest.$ac_ext
     5478  ac_cv_lib_crypt_main=no
     5479fi
     5480rm -f core conftest.err conftest.$ac_objext \
     5481    conftest$ac_exeext conftest.$ac_ext
    48315482LIBS=$ac_check_lib_save_LIBS
    48325483fi
    4833 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
    4834 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    4835 if test $ac_cv_lib_crypt_main = yes; then
     5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
     5485$as_echo "$ac_cv_lib_crypt_main" >&6; }
     5486if test "x$ac_cv_lib_crypt_main" = x""yes; then :
    48365487  cat >>confdefs.h <<_ACEOF
    48375488#define HAVE_LIBCRYPT 1
     
    48475498#fi
    48485499
    4849 
    4850 
    4851 
    4852 
    4853 
    48545500ac_header_dirent=no
    48555501for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4856   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4857 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4858 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4860   echo $ECHO_N "(cached) $ECHO_C" >&6
    4861 else
    4862   cat >conftest.$ac_ext <<_ACEOF
    4863 /* confdefs.h.  */
    4864 _ACEOF
    4865 cat confdefs.h >>conftest.$ac_ext
    4866 cat >>conftest.$ac_ext <<_ACEOF
     5502  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5504$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5505if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5506  $as_echo_n "(cached) " >&6
     5507else
     5508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48675509/* end confdefs.h.  */
    48685510#include <sys/types.h>
     
    48785520}
    48795521_ACEOF
    4880 rm -f conftest.$ac_objext
    4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4882   (eval $ac_compile) 2>conftest.er1
    4883   ac_status=$?
    4884   grep -v '^ *+' conftest.er1 >conftest.err
    4885   rm -f conftest.er1
    4886   cat conftest.err >&5
    4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4888   (exit $ac_status); } &&
    4889      { ac_try='test -z "$ac_c_werror_flag"
    4890              || test ! -s conftest.err'
    4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4892   (eval $ac_try) 2>&5
    4893   ac_status=$?
    4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4895   (exit $ac_status); }; } &&
    4896      { ac_try='test -s conftest.$ac_objext'
    4897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4898   (eval $ac_try) 2>&5
    4899   ac_status=$?
    4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4901   (exit $ac_status); }; }; then
     5522if ac_fn_c_try_compile "$LINENO"; then :
    49025523  eval "$as_ac_Header=yes"
    49035524else
    4904   echo "$as_me: failed program was:" >&5
    4905 sed 's/^/| /' conftest.$ac_ext >&5
    4906 
    4907 eval "$as_ac_Header=no"
    4908 fi
    4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4910 fi
    4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5525  eval "$as_ac_Header=no"
     5526fi
     5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5528fi
     5529eval ac_res=\$$as_ac_Header
     5530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5531$as_echo "$ac_res" >&6; }
     5532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    49145533  cat >>confdefs.h <<_ACEOF
    4915 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5534#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    49165535_ACEOF
    49175536
     
    49225541# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    49235542if test $ac_header_dirent = dirent.h; then
    4924   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4926 if test "${ac_cv_search_opendir+set}" = set; then
    4927   echo $ECHO_N "(cached) $ECHO_C" >&6
     5543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5544$as_echo_n "checking for library containing opendir... " >&6; }
     5545if test "${ac_cv_search_opendir+set}" = set; then :
     5546  $as_echo_n "(cached) " >&6
    49285547else
    49295548  ac_func_search_save_LIBS=$LIBS
    4930 ac_cv_search_opendir=no
    4931 cat >conftest.$ac_ext <<_ACEOF
    4932 /* confdefs.h.  */
    4933 _ACEOF
    4934 cat confdefs.h >>conftest.$ac_ext
    4935 cat >>conftest.$ac_ext <<_ACEOF
     5549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49365550/* end confdefs.h.  */
    49375551
    4938 /* Override any gcc2 internal prototype to avoid an error.  */
     5552/* Override any GCC internal prototype to avoid an error.
     5553   Use char because int might match the return type of a GCC
     5554   builtin and then its argument prototype would still apply.  */
    49395555#ifdef __cplusplus
    49405556extern "C"
    49415557#endif
    4942 /* We use char because int might match the return type of a gcc2
    4943    builtin and then its argument prototype would still apply.  */
    49445558char opendir ();
    49455559int
    49465560main ()
    49475561{
    4948 opendir ();
     5562return opendir ();
    49495563  ;
    49505564  return 0;
    49515565}
    49525566_ACEOF
    4953 rm -f conftest.$ac_objext conftest$ac_exeext
    4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4955   (eval $ac_link) 2>conftest.er1
    4956   ac_status=$?
    4957   grep -v '^ *+' conftest.er1 >conftest.err
    4958   rm -f conftest.er1
    4959   cat conftest.err >&5
    4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4961   (exit $ac_status); } &&
    4962      { ac_try='test -z "$ac_c_werror_flag"
    4963              || test ! -s conftest.err'
    4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4965   (eval $ac_try) 2>&5
    4966   ac_status=$?
    4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4968   (exit $ac_status); }; } &&
    4969      { ac_try='test -s conftest$ac_exeext'
    4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4971   (eval $ac_try) 2>&5
    4972   ac_status=$?
    4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4974   (exit $ac_status); }; }; then
    4975   ac_cv_search_opendir="none required"
    4976 else
    4977   echo "$as_me: failed program was:" >&5
    4978 sed 's/^/| /' conftest.$ac_ext >&5
    4979 
    4980 fi
    4981 rm -f conftest.err conftest.$ac_objext \
    4982       conftest$ac_exeext conftest.$ac_ext
    4983 if test "$ac_cv_search_opendir" = no; then
    4984   for ac_lib in dir; do
     5567for ac_lib in '' dir; do
     5568  if test -z "$ac_lib"; then
     5569    ac_res="none required"
     5570  else
     5571    ac_res=-l$ac_lib
    49855572    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4986     cat >conftest.$ac_ext <<_ACEOF
    4987 /* confdefs.h.  */
    4988 _ACEOF
    4989 cat confdefs.h >>conftest.$ac_ext
    4990 cat >>conftest.$ac_ext <<_ACEOF
     5573  fi
     5574  if ac_fn_c_try_link "$LINENO"; then :
     5575  ac_cv_search_opendir=$ac_res
     5576fi
     5577rm -f core conftest.err conftest.$ac_objext \
     5578    conftest$ac_exeext
     5579  if test "${ac_cv_search_opendir+set}" = set; then :
     5580  break
     5581fi
     5582done
     5583if test "${ac_cv_search_opendir+set}" = set; then :
     5584
     5585else
     5586  ac_cv_search_opendir=no
     5587fi
     5588rm conftest.$ac_ext
     5589LIBS=$ac_func_search_save_LIBS
     5590fi
     5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5592$as_echo "$ac_cv_search_opendir" >&6; }
     5593ac_res=$ac_cv_search_opendir
     5594if test "$ac_res" != no; then :
     5595  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5596
     5597fi
     5598
     5599else
     5600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5601$as_echo_n "checking for library containing opendir... " >&6; }
     5602if test "${ac_cv_search_opendir+set}" = set; then :
     5603  $as_echo_n "(cached) " >&6
     5604else
     5605  ac_func_search_save_LIBS=$LIBS
     5606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49915607/* end confdefs.h.  */
    49925608
    4993 /* Override any gcc2 internal prototype to avoid an error.  */
     5609/* Override any GCC internal prototype to avoid an error.
     5610   Use char because int might match the return type of a GCC
     5611   builtin and then its argument prototype would still apply.  */
    49945612#ifdef __cplusplus
    49955613extern "C"
    49965614#endif
    4997 /* We use char because int might match the return type of a gcc2
    4998    builtin and then its argument prototype would still apply.  */
    49995615char opendir ();
    50005616int
    50015617main ()
    50025618{
    5003 opendir ();
     5619return opendir ();
    50045620  ;
    50055621  return 0;
    50065622}
    50075623_ACEOF
    5008 rm -f conftest.$ac_objext conftest$ac_exeext
    5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5010   (eval $ac_link) 2>conftest.er1
    5011   ac_status=$?
    5012   grep -v '^ *+' conftest.er1 >conftest.err
    5013   rm -f conftest.er1
    5014   cat conftest.err >&5
    5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5016   (exit $ac_status); } &&
    5017      { ac_try='test -z "$ac_c_werror_flag"
    5018              || test ! -s conftest.err'
    5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5020   (eval $ac_try) 2>&5
    5021   ac_status=$?
    5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5023   (exit $ac_status); }; } &&
    5024      { ac_try='test -s conftest$ac_exeext'
    5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5026   (eval $ac_try) 2>&5
    5027   ac_status=$?
    5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5029   (exit $ac_status); }; }; then
    5030   ac_cv_search_opendir="-l$ac_lib"
    5031 break
    5032 else
    5033   echo "$as_me: failed program was:" >&5
    5034 sed 's/^/| /' conftest.$ac_ext >&5
    5035 
    5036 fi
    5037 rm -f conftest.err conftest.$ac_objext \
    5038       conftest$ac_exeext conftest.$ac_ext
    5039   done
    5040 fi
     5624for ac_lib in '' x; do
     5625  if test -z "$ac_lib"; then
     5626    ac_res="none required"
     5627  else
     5628    ac_res=-l$ac_lib
     5629    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5630  fi
     5631  if ac_fn_c_try_link "$LINENO"; then :
     5632  ac_cv_search_opendir=$ac_res
     5633fi
     5634rm -f core conftest.err conftest.$ac_objext \
     5635    conftest$ac_exeext
     5636  if test "${ac_cv_search_opendir+set}" = set; then :
     5637  break
     5638fi
     5639done
     5640if test "${ac_cv_search_opendir+set}" = set; then :
     5641
     5642else
     5643  ac_cv_search_opendir=no
     5644fi
     5645rm conftest.$ac_ext
    50415646LIBS=$ac_func_search_save_LIBS
    50425647fi
    5043 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5044 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5045 if test "$ac_cv_search_opendir" != no; then
    5046   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5047 
    5048 fi
    5049 
    5050 else
    5051   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    5052 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    5053 if test "${ac_cv_search_opendir+set}" = set; then
    5054   echo $ECHO_N "(cached) $ECHO_C" >&6
    5055 else
    5056   ac_func_search_save_LIBS=$LIBS
    5057 ac_cv_search_opendir=no
    5058 cat >conftest.$ac_ext <<_ACEOF
    5059 /* confdefs.h.  */
    5060 _ACEOF
    5061 cat confdefs.h >>conftest.$ac_ext
    5062 cat >>conftest.$ac_ext <<_ACEOF
    5063 /* end confdefs.h.  */
    5064 
    5065 /* Override any gcc2 internal prototype to avoid an error.  */
    5066 #ifdef __cplusplus
    5067 extern "C"
    5068 #endif
    5069 /* We use char because int might match the return type of a gcc2
    5070    builtin and then its argument prototype would still apply.  */
    5071 char opendir ();
    5072 int
    5073 main ()
    5074 {
    5075 opendir ();
    5076   ;
    5077   return 0;
    5078 }
    5079 _ACEOF
    5080 rm -f conftest.$ac_objext conftest$ac_exeext
    5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5082   (eval $ac_link) 2>conftest.er1
    5083   ac_status=$?
    5084   grep -v '^ *+' conftest.er1 >conftest.err
    5085   rm -f conftest.er1
    5086   cat conftest.err >&5
    5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5088   (exit $ac_status); } &&
    5089      { ac_try='test -z "$ac_c_werror_flag"
    5090              || test ! -s conftest.err'
    5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5092   (eval $ac_try) 2>&5
    5093   ac_status=$?
    5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5095   (exit $ac_status); }; } &&
    5096      { ac_try='test -s conftest$ac_exeext'
    5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5098   (eval $ac_try) 2>&5
    5099   ac_status=$?
    5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5101   (exit $ac_status); }; }; then
    5102   ac_cv_search_opendir="none required"
    5103 else
    5104   echo "$as_me: failed program was:" >&5
    5105 sed 's/^/| /' conftest.$ac_ext >&5
    5106 
    5107 fi
    5108 rm -f conftest.err conftest.$ac_objext \
    5109       conftest$ac_exeext conftest.$ac_ext
    5110 if test "$ac_cv_search_opendir" = no; then
    5111   for ac_lib in x; do
    5112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    5113     cat >conftest.$ac_ext <<_ACEOF
    5114 /* confdefs.h.  */
    5115 _ACEOF
    5116 cat confdefs.h >>conftest.$ac_ext
    5117 cat >>conftest.$ac_ext <<_ACEOF
    5118 /* end confdefs.h.  */
    5119 
    5120 /* Override any gcc2 internal prototype to avoid an error.  */
    5121 #ifdef __cplusplus
    5122 extern "C"
    5123 #endif
    5124 /* We use char because int might match the return type of a gcc2
    5125    builtin and then its argument prototype would still apply.  */
    5126 char opendir ();
    5127 int
    5128 main ()
    5129 {
    5130 opendir ();
    5131   ;
    5132   return 0;
    5133 }
    5134 _ACEOF
    5135 rm -f conftest.$ac_objext conftest$ac_exeext
    5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5137   (eval $ac_link) 2>conftest.er1
    5138   ac_status=$?
    5139   grep -v '^ *+' conftest.er1 >conftest.err
    5140   rm -f conftest.er1
    5141   cat conftest.err >&5
    5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5143   (exit $ac_status); } &&
    5144      { ac_try='test -z "$ac_c_werror_flag"
    5145              || test ! -s conftest.err'
    5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5147   (eval $ac_try) 2>&5
    5148   ac_status=$?
    5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5150   (exit $ac_status); }; } &&
    5151      { ac_try='test -s conftest$ac_exeext'
    5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5153   (eval $ac_try) 2>&5
    5154   ac_status=$?
    5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5156   (exit $ac_status); }; }; then
    5157   ac_cv_search_opendir="-l$ac_lib"
    5158 break
    5159 else
    5160   echo "$as_me: failed program was:" >&5
    5161 sed 's/^/| /' conftest.$ac_ext >&5
    5162 
    5163 fi
    5164 rm -f conftest.err conftest.$ac_objext \
    5165       conftest$ac_exeext conftest.$ac_ext
    5166   done
    5167 fi
    5168 LIBS=$ac_func_search_save_LIBS
    5169 fi
    5170 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5171 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5172 if test "$ac_cv_search_opendir" != no; then
    5173   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5174 
    5175 fi
    5176 
    5177 fi
    5178 
    5179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5181 if test "${ac_cv_header_stdc+set}" = set; then
    5182   echo $ECHO_N "(cached) $ECHO_C" >&6
    5183 else
    5184   cat >conftest.$ac_ext <<_ACEOF
    5185 /* confdefs.h.  */
    5186 _ACEOF
    5187 cat confdefs.h >>conftest.$ac_ext
    5188 cat >>conftest.$ac_ext <<_ACEOF
     5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5649$as_echo "$ac_cv_search_opendir" >&6; }
     5650ac_res=$ac_cv_search_opendir
     5651if test "$ac_res" != no; then :
     5652  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5653
     5654fi
     5655
     5656fi
     5657
     5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5659$as_echo_n "checking for ANSI C header files... " >&6; }
     5660if test "${ac_cv_header_stdc+set}" = set; then :
     5661  $as_echo_n "(cached) " >&6
     5662else
     5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51895664/* end confdefs.h.  */
    51905665#include <stdlib.h>
     
    52015676}
    52025677_ACEOF
    5203 rm -f conftest.$ac_objext
    5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5205   (eval $ac_compile) 2>conftest.er1
    5206   ac_status=$?
    5207   grep -v '^ *+' conftest.er1 >conftest.err
    5208   rm -f conftest.er1
    5209   cat conftest.err >&5
    5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5211   (exit $ac_status); } &&
    5212      { ac_try='test -z "$ac_c_werror_flag"
    5213              || test ! -s conftest.err'
    5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5215   (eval $ac_try) 2>&5
    5216   ac_status=$?
    5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5218   (exit $ac_status); }; } &&
    5219      { ac_try='test -s conftest.$ac_objext'
    5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5221   (eval $ac_try) 2>&5
    5222   ac_status=$?
    5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5224   (exit $ac_status); }; }; then
     5678if ac_fn_c_try_compile "$LINENO"; then :
    52255679  ac_cv_header_stdc=yes
    52265680else
    5227   echo "$as_me: failed program was:" >&5
    5228 sed 's/^/| /' conftest.$ac_ext >&5
    5229 
    5230 ac_cv_header_stdc=no
    5231 fi
    5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5681  ac_cv_header_stdc=no
     5682fi
     5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    52335684
    52345685if test $ac_cv_header_stdc = yes; then
    52355686  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5236   cat >conftest.$ac_ext <<_ACEOF
    5237 /* confdefs.h.  */
    5238 _ACEOF
    5239 cat confdefs.h >>conftest.$ac_ext
    5240 cat >>conftest.$ac_ext <<_ACEOF
     5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52415688/* end confdefs.h.  */
    52425689#include <string.h>
     
    52445691_ACEOF
    52455692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5246   $EGREP "memchr" >/dev/null 2>&1; then
    5247   :
     5693  $EGREP "memchr" >/dev/null 2>&1; then :
     5694
    52485695else
    52495696  ac_cv_header_stdc=no
     
    52555702if test $ac_cv_header_stdc = yes; then
    52565703  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5257   cat >conftest.$ac_ext <<_ACEOF
    5258 /* confdefs.h.  */
    5259 _ACEOF
    5260 cat confdefs.h >>conftest.$ac_ext
    5261 cat >>conftest.$ac_ext <<_ACEOF
     5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52625705/* end confdefs.h.  */
    52635706#include <stdlib.h>
     
    52655708_ACEOF
    52665709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5267   $EGREP "free" >/dev/null 2>&1; then
    5268   :
     5710  $EGREP "free" >/dev/null 2>&1; then :
     5711
    52695712else
    52705713  ac_cv_header_stdc=no
     
    52765719if test $ac_cv_header_stdc = yes; then
    52775720  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5278   if test "$cross_compiling" = yes; then
     5721  if test "$cross_compiling" = yes; then :
    52795722  :
    52805723else
    5281   cat >conftest.$ac_ext <<_ACEOF
    5282 /* confdefs.h.  */
    5283 _ACEOF
    5284 cat confdefs.h >>conftest.$ac_ext
    5285 cat >>conftest.$ac_ext <<_ACEOF
     5724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52865725/* end confdefs.h.  */
    52875726#include <ctype.h>
     5727#include <stdlib.h>
    52885728#if ((' ' & 0x0FF) == 0x020)
    52895729# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    53055745    if (XOR (islower (i), ISLOWER (i))
    53065746    || toupper (i) != TOUPPER (i))
    5307       exit(2);
    5308   exit (0);
     5747      return 2;
     5748  return 0;
    53095749}
    53105750_ACEOF
    5311 rm -f conftest$ac_exeext
    5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5313   (eval $ac_link) 2>&5
    5314   ac_status=$?
    5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5318   (eval $ac_try) 2>&5
    5319   ac_status=$?
    5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5321   (exit $ac_status); }; }; then
    5322   :
    5323 else
    5324   echo "$as_me: program exited with status $ac_status" >&5
    5325 echo "$as_me: failed program was:" >&5
    5326 sed 's/^/| /' conftest.$ac_ext >&5
    5327 
    5328 ( exit $ac_status )
    5329 ac_cv_header_stdc=no
    5330 fi
    5331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5332 fi
    5333 fi
    5334 fi
    5335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5751if ac_fn_c_try_run "$LINENO"; then :
     5752
     5753else
     5754  ac_cv_header_stdc=no
     5755fi
     5756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5757  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5758fi
     5759
     5760fi
     5761fi
     5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5763$as_echo "$ac_cv_header_stdc" >&6; }
    53375764if test $ac_cv_header_stdc = yes; then
    53385765
    5339 cat >>confdefs.h <<\_ACEOF
    5340 #define STDC_HEADERS 1
    5341 _ACEOF
    5342 
    5343 fi
    5344 
    5345 
    5346 
    5347 
    5348 
    5349 
    5350 
    5351 
    5352 
     5766$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5767
     5768fi
    53535769
    53545770for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
    5355 do
    5356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5358   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5361   echo $ECHO_N "(cached) $ECHO_C" >&6
    5362 fi
    5363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5365 else
    5366   # Is the header compilable?
    5367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5369 cat >conftest.$ac_ext <<_ACEOF
    5370 /* confdefs.h.  */
    5371 _ACEOF
    5372 cat confdefs.h >>conftest.$ac_ext
    5373 cat >>conftest.$ac_ext <<_ACEOF
    5374 /* end confdefs.h.  */
    5375 $ac_includes_default
    5376 #include <$ac_header>
    5377 _ACEOF
    5378 rm -f conftest.$ac_objext
    5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5380   (eval $ac_compile) 2>conftest.er1
    5381   ac_status=$?
    5382   grep -v '^ *+' conftest.er1 >conftest.err
    5383   rm -f conftest.er1
    5384   cat conftest.err >&5
    5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5386   (exit $ac_status); } &&
    5387      { ac_try='test -z "$ac_c_werror_flag"
    5388              || test ! -s conftest.err'
    5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5390   (eval $ac_try) 2>&5
    5391   ac_status=$?
    5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5393   (exit $ac_status); }; } &&
    5394      { ac_try='test -s conftest.$ac_objext'
    5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5396   (eval $ac_try) 2>&5
    5397   ac_status=$?
    5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5399   (exit $ac_status); }; }; then
    5400   ac_header_compiler=yes
    5401 else
    5402   echo "$as_me: failed program was:" >&5
    5403 sed 's/^/| /' conftest.$ac_ext >&5
    5404 
    5405 ac_header_compiler=no
    5406 fi
    5407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5409 echo "${ECHO_T}$ac_header_compiler" >&6
    5410 
    5411 # Is the header present?
    5412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5414 cat >conftest.$ac_ext <<_ACEOF
    5415 /* confdefs.h.  */
    5416 _ACEOF
    5417 cat confdefs.h >>conftest.$ac_ext
    5418 cat >>conftest.$ac_ext <<_ACEOF
    5419 /* end confdefs.h.  */
    5420 #include <$ac_header>
    5421 _ACEOF
    5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5424   ac_status=$?
    5425   grep -v '^ *+' conftest.er1 >conftest.err
    5426   rm -f conftest.er1
    5427   cat conftest.err >&5
    5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5429   (exit $ac_status); } >/dev/null; then
    5430   if test -s conftest.err; then
    5431     ac_cpp_err=$ac_c_preproc_warn_flag
    5432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5433   else
    5434     ac_cpp_err=
    5435   fi
    5436 else
    5437   ac_cpp_err=yes
    5438 fi
    5439 if test -z "$ac_cpp_err"; then
    5440   ac_header_preproc=yes
    5441 else
    5442   echo "$as_me: failed program was:" >&5
    5443 sed 's/^/| /' conftest.$ac_ext >&5
    5444 
    5445   ac_header_preproc=no
    5446 fi
    5447 rm -f conftest.err conftest.$ac_ext
    5448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5449 echo "${ECHO_T}$ac_header_preproc" >&6
    5450 
    5451 # So?  What about this header?
    5452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5453   yes:no: )
    5454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5458     ac_header_preproc=yes
    5459     ;;
    5460   no:yes:* )
    5461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5473     (
    5474       cat <<\_ASBOX
    5475 ## ------------------------------------------ ##
    5476 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5477 ## ------------------------------------------ ##
    5478 _ASBOX
    5479     ) |
    5480       sed "s/^/$as_me: WARNING:     /" >&2
    5481     ;;
    5482 esac
    5483 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5486   echo $ECHO_N "(cached) $ECHO_C" >&6
    5487 else
    5488   eval "$as_ac_Header=\$ac_header_preproc"
    5489 fi
    5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5492 
    5493 fi
    5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5771do :
     5772  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5773ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    54955775  cat >>confdefs.h <<_ACEOF
    5496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    54975777_ACEOF
    54985778
     
    55015781done
    55025782
    5503 cat >conftest.$ac_ext <<_ACEOF
    5504 /* confdefs.h.  */
    5505 _ACEOF
    5506 cat confdefs.h >>conftest.$ac_ext
    5507 cat >>conftest.$ac_ext <<_ACEOF
     5783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55085784/* end confdefs.h.  */
    55095785#include <stdio.h>
     
    55115787_ACEOF
    55125788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5513   $EGREP "fread" >/dev/null 2>&1; then
    5514   cat >>confdefs.h <<\_ACEOF
    5515 #define HAVE_FREAD_DECL 1
    5516 _ACEOF
     5789  $EGREP "fread" >/dev/null 2>&1; then :
     5790  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    55175791
    55185792fi
    55195793rm -f conftest*
    55205794
    5521 cat >conftest.$ac_ext <<_ACEOF
    5522 /* confdefs.h.  */
    5523 _ACEOF
    5524 cat confdefs.h >>conftest.$ac_ext
    5525 cat >>conftest.$ac_ext <<_ACEOF
     5795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55265796/* end confdefs.h.  */
    55275797#include <stdio.h>
     
    55295799_ACEOF
    55305800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5531   $EGREP "fgetc" >/dev/null 2>&1; then
    5532   cat >>confdefs.h <<\_ACEOF
    5533 #define HAVE_FGETC_DECL 1
    5534 _ACEOF
     5801  $EGREP "fgetc" >/dev/null 2>&1; then :
     5802  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    55355803
    55365804fi
    55375805rm -f conftest*
    55385806
    5539 cat >conftest.$ac_ext <<_ACEOF
    5540 /* confdefs.h.  */
    5541 _ACEOF
    5542 cat confdefs.h >>conftest.$ac_ext
    5543 cat >>conftest.$ac_ext <<_ACEOF
     5807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55445808/* end confdefs.h.  */
    55455809#include <sys/procfs.h>
     
    55475811_ACEOF
    55485812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5549   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5550   cat >>confdefs.h <<\_ACEOF
    5551 #define HAVE_PR_BRKSIZE 1
    5552 _ACEOF
     5813  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5814  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    55535815
    55545816fi
     
    55585820# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    55595821# for constant arguments.  Useless!
    5560 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5561 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5562 if test "${ac_cv_working_alloca_h+set}" = set; then
    5563   echo $ECHO_N "(cached) $ECHO_C" >&6
    5564 else
    5565   cat >conftest.$ac_ext <<_ACEOF
    5566 /* confdefs.h.  */
    5567 _ACEOF
    5568 cat confdefs.h >>conftest.$ac_ext
    5569 cat >>conftest.$ac_ext <<_ACEOF
     5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5823$as_echo_n "checking for working alloca.h... " >&6; }
     5824if test "${ac_cv_working_alloca_h+set}" = set; then :
     5825  $as_echo_n "(cached) " >&6
     5826else
     5827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55705828/* end confdefs.h.  */
    55715829#include <alloca.h>
     
    55745832{
    55755833char *p = (char *) alloca (2 * sizeof (int));
     5834              if (p) return 0;
    55765835  ;
    55775836  return 0;
    55785837}
    55795838_ACEOF
    5580 rm -f conftest.$ac_objext conftest$ac_exeext
    5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5582   (eval $ac_link) 2>conftest.er1
    5583   ac_status=$?
    5584   grep -v '^ *+' conftest.er1 >conftest.err
    5585   rm -f conftest.er1
    5586   cat conftest.err >&5
    5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5588   (exit $ac_status); } &&
    5589      { ac_try='test -z "$ac_c_werror_flag"
    5590              || test ! -s conftest.err'
    5591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5592   (eval $ac_try) 2>&5
    5593   ac_status=$?
    5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5595   (exit $ac_status); }; } &&
    5596      { ac_try='test -s conftest$ac_exeext'
    5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5598   (eval $ac_try) 2>&5
    5599   ac_status=$?
    5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5601   (exit $ac_status); }; }; then
     5839if ac_fn_c_try_link "$LINENO"; then :
    56025840  ac_cv_working_alloca_h=yes
    56035841else
    5604   echo "$as_me: failed program was:" >&5
    5605 sed 's/^/| /' conftest.$ac_ext >&5
    5606 
    5607 ac_cv_working_alloca_h=no
    5608 fi
    5609 rm -f conftest.err conftest.$ac_objext \
    5610       conftest$ac_exeext conftest.$ac_ext
    5611 fi
    5612 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5613 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5842  ac_cv_working_alloca_h=no
     5843fi
     5844rm -f core conftest.err conftest.$ac_objext \
     5845    conftest$ac_exeext conftest.$ac_ext
     5846fi
     5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5848$as_echo "$ac_cv_working_alloca_h" >&6; }
    56145849if test $ac_cv_working_alloca_h = yes; then
    56155850
    5616 cat >>confdefs.h <<\_ACEOF
    5617 #define HAVE_ALLOCA_H 1
    5618 _ACEOF
    5619 
    5620 fi
    5621 
    5622 echo "$as_me:$LINENO: checking for alloca" >&5
    5623 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5624 if test "${ac_cv_func_alloca_works+set}" = set; then
    5625   echo $ECHO_N "(cached) $ECHO_C" >&6
    5626 else
    5627   cat >conftest.$ac_ext <<_ACEOF
    5628 /* confdefs.h.  */
    5629 _ACEOF
    5630 cat confdefs.h >>conftest.$ac_ext
    5631 cat >>conftest.$ac_ext <<_ACEOF
     5851$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5852
     5853fi
     5854
     5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5856$as_echo_n "checking for alloca... " >&6; }
     5857if test "${ac_cv_func_alloca_works+set}" = set; then :
     5858  $as_echo_n "(cached) " >&6
     5859else
     5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56325861/* end confdefs.h.  */
    56335862#ifdef __GNUC__
     
    56385867#  define alloca _alloca
    56395868# else
    5640 #  if HAVE_ALLOCA_H
     5869#  ifdef HAVE_ALLOCA_H
    56415870#   include <alloca.h>
    56425871#  else
     
    56565885{
    56575886char *p = (char *) alloca (1);
     5887                    if (p) return 0;
    56585888  ;
    56595889  return 0;
    56605890}
    56615891_ACEOF
    5662 rm -f conftest.$ac_objext conftest$ac_exeext
    5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5664   (eval $ac_link) 2>conftest.er1
    5665   ac_status=$?
    5666   grep -v '^ *+' conftest.er1 >conftest.err
    5667   rm -f conftest.er1
    5668   cat conftest.err >&5
    5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5670   (exit $ac_status); } &&
    5671      { ac_try='test -z "$ac_c_werror_flag"
    5672              || test ! -s conftest.err'
    5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5674   (eval $ac_try) 2>&5
    5675   ac_status=$?
    5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5677   (exit $ac_status); }; } &&
    5678      { ac_try='test -s conftest$ac_exeext'
    5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5680   (eval $ac_try) 2>&5
    5681   ac_status=$?
    5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5683   (exit $ac_status); }; }; then
     5892if ac_fn_c_try_link "$LINENO"; then :
    56845893  ac_cv_func_alloca_works=yes
    56855894else
    5686   echo "$as_me: failed program was:" >&5
    5687 sed 's/^/| /' conftest.$ac_ext >&5
    5688 
    5689 ac_cv_func_alloca_works=no
    5690 fi
    5691 rm -f conftest.err conftest.$ac_objext \
    5692       conftest$ac_exeext conftest.$ac_ext
    5693 fi
    5694 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5695 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5895  ac_cv_func_alloca_works=no
     5896fi
     5897rm -f core conftest.err conftest.$ac_objext \
     5898    conftest$ac_exeext conftest.$ac_ext
     5899fi
     5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5901$as_echo "$ac_cv_func_alloca_works" >&6; }
    56965902
    56975903if test $ac_cv_func_alloca_works = yes; then
    56985904
    5699 cat >>confdefs.h <<\_ACEOF
    5700 #define HAVE_ALLOCA 1
    5701 _ACEOF
     5905$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    57025906
    57035907else
     
    57075911# use ar to extract alloca.o from them instead of compiling alloca.c.
    57085912
    5709 ALLOCA=alloca.$ac_objext
    5710 
    5711 cat >>confdefs.h <<\_ACEOF
    5712 #define C_ALLOCA 1
    5713 _ACEOF
    5714 
    5715 
    5716 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5717 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5718 if test "${ac_cv_os_cray+set}" = set; then
    5719   echo $ECHO_N "(cached) $ECHO_C" >&6
    5720 else
    5721   cat >conftest.$ac_ext <<_ACEOF
    5722 /* confdefs.h.  */
    5723 _ACEOF
    5724 cat confdefs.h >>conftest.$ac_ext
    5725 cat >>conftest.$ac_ext <<_ACEOF
     5913ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5914
     5915$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5916
     5917
     5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5919$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5920if test "${ac_cv_os_cray+set}" = set; then :
     5921  $as_echo_n "(cached) " >&6
     5922else
     5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57265924/* end confdefs.h.  */
    5727 #if defined(CRAY) && ! defined(CRAY2)
     5925#if defined CRAY && ! defined CRAY2
    57285926webecray
    57295927#else
     
    57335931_ACEOF
    57345932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5735   $EGREP "webecray" >/dev/null 2>&1; then
     5933  $EGREP "webecray" >/dev/null 2>&1; then :
    57365934  ac_cv_os_cray=yes
    57375935else
     
    57415939
    57425940fi
    5743 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5744 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5942$as_echo "$ac_cv_os_cray" >&6; }
    57455943if test $ac_cv_os_cray = yes; then
    57465944  for ac_func in _getb67 GETB67 getb67; do
    5747     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5748 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5750 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5751   echo $ECHO_N "(cached) $ECHO_C" >&6
    5752 else
    5753   cat >conftest.$ac_ext <<_ACEOF
    5754 /* confdefs.h.  */
    5755 _ACEOF
    5756 cat confdefs.h >>conftest.$ac_ext
    5757 cat >>conftest.$ac_ext <<_ACEOF
    5758 /* end confdefs.h.  */
    5759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5761 #define $ac_func innocuous_$ac_func
    5762 
    5763 /* System header to define __stub macros and hopefully few prototypes,
    5764     which can conflict with char $ac_func (); below.
    5765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5766     <limits.h> exists even on freestanding compilers.  */
    5767 
    5768 #ifdef __STDC__
    5769 # include <limits.h>
    5770 #else
    5771 # include <assert.h>
    5772 #endif
    5773 
    5774 #undef $ac_func
    5775 
    5776 /* Override any gcc2 internal prototype to avoid an error.  */
    5777 #ifdef __cplusplus
    5778 extern "C"
    5779 {
    5780 #endif
    5781 /* We use char because int might match the return type of a gcc2
    5782    builtin and then its argument prototype would still apply.  */
    5783 char $ac_func ();
    5784 /* The GNU C library defines this for functions which it implements
    5785     to always fail with ENOSYS.  Some functions are actually named
    5786     something starting with __ and the normal name is an alias.  */
    5787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5788 choke me
    5789 #else
    5790 char (*f) () = $ac_func;
    5791 #endif
    5792 #ifdef __cplusplus
    5793 }
    5794 #endif
    5795 
    5796 int
    5797 main ()
    5798 {
    5799 return f != $ac_func;
    5800   ;
    5801   return 0;
    5802 }
    5803 _ACEOF
    5804 rm -f conftest.$ac_objext conftest$ac_exeext
    5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5806   (eval $ac_link) 2>conftest.er1
    5807   ac_status=$?
    5808   grep -v '^ *+' conftest.er1 >conftest.err
    5809   rm -f conftest.er1
    5810   cat conftest.err >&5
    5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5812   (exit $ac_status); } &&
    5813      { ac_try='test -z "$ac_c_werror_flag"
    5814              || test ! -s conftest.err'
    5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5816   (eval $ac_try) 2>&5
    5817   ac_status=$?
    5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5819   (exit $ac_status); }; } &&
    5820      { ac_try='test -s conftest$ac_exeext'
    5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5822   (eval $ac_try) 2>&5
    5823   ac_status=$?
    5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5825   (exit $ac_status); }; }; then
    5826   eval "$as_ac_var=yes"
    5827 else
    5828   echo "$as_me: failed program was:" >&5
    5829 sed 's/^/| /' conftest.$ac_ext >&5
    5830 
    5831 eval "$as_ac_var=no"
    5832 fi
    5833 rm -f conftest.err conftest.$ac_objext \
    5834       conftest$ac_exeext conftest.$ac_ext
    5835 fi
    5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5838 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5945    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5947if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    58395948
    58405949cat >>confdefs.h <<_ACEOF
     
    58485957fi
    58495958
    5850 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5851 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5852 if test "${ac_cv_c_stack_direction+set}" = set; then
    5853   echo $ECHO_N "(cached) $ECHO_C" >&6
    5854 else
    5855   if test "$cross_compiling" = yes; then
     5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5960$as_echo_n "checking stack direction for C alloca... " >&6; }
     5961if test "${ac_cv_c_stack_direction+set}" = set; then :
     5962  $as_echo_n "(cached) " >&6
     5963else
     5964  if test "$cross_compiling" = yes; then :
    58565965  ac_cv_c_stack_direction=0
    58575966else
    5858   cat >conftest.$ac_ext <<_ACEOF
    5859 /* confdefs.h.  */
    5860 _ACEOF
    5861 cat confdefs.h >>conftest.$ac_ext
    5862 cat >>conftest.$ac_ext <<_ACEOF
     5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58635968/* end confdefs.h.  */
     5969$ac_includes_default
    58645970int
    58655971find_stack_direction ()
     
    58795985main ()
    58805986{
    5881   exit (find_stack_direction () < 0);
     5987  return find_stack_direction () < 0;
    58825988}
    58835989_ACEOF
    5884 rm -f conftest$ac_exeext
    5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5886   (eval $ac_link) 2>&5
    5887   ac_status=$?
    5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5891   (eval $ac_try) 2>&5
    5892   ac_status=$?
    5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5894   (exit $ac_status); }; }; then
     5990if ac_fn_c_try_run "$LINENO"; then :
    58955991  ac_cv_c_stack_direction=1
    58965992else
    5897   echo "$as_me: program exited with status $ac_status" >&5
    5898 echo "$as_me: failed program was:" >&5
    5899 sed 's/^/| /' conftest.$ac_ext >&5
    5900 
    5901 ( exit $ac_status )
    5902 ac_cv_c_stack_direction=-1
    5903 fi
    5904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5905 fi
    5906 fi
    5907 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5908 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5909 
     5993  ac_cv_c_stack_direction=-1
     5994fi
     5995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5996  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5997fi
     5998
     5999fi
     6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     6001$as_echo "$ac_cv_c_stack_direction" >&6; }
    59106002cat >>confdefs.h <<_ACEOF
    59116003#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    59166008
    59176009if test $ac_cv_c_compiler_gnu = yes; then
    5918     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5921   echo $ECHO_N "(cached) $ECHO_C" >&6
     6010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     6011$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     6012if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     6013  $as_echo_n "(cached) " >&6
    59226014else
    59236015    ac_pattern="Autoconf.*'x'"
    5924   cat >conftest.$ac_ext <<_ACEOF
    5925 /* confdefs.h.  */
    5926 _ACEOF
    5927 cat confdefs.h >>conftest.$ac_ext
    5928 cat >>conftest.$ac_ext <<_ACEOF
     6016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59296017/* end confdefs.h.  */
    59306018#include <sgtty.h>
     
    59326020_ACEOF
    59336021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5934   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6022  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59356023  ac_cv_prog_gcc_traditional=yes
    59366024else
     
    59416029
    59426030  if test $ac_cv_prog_gcc_traditional = no; then
    5943     cat >conftest.$ac_ext <<_ACEOF
    5944 /* confdefs.h.  */
    5945 _ACEOF
    5946 cat confdefs.h >>conftest.$ac_ext
    5947 cat >>conftest.$ac_ext <<_ACEOF
     6031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59486032/* end confdefs.h.  */
    59496033#include <termio.h>
     
    59516035_ACEOF
    59526036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5953   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6037  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59546038  ac_cv_prog_gcc_traditional=yes
    59556039fi
     
    59586042  fi
    59596043fi
    5960 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     6045$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    59626046  if test $ac_cv_prog_gcc_traditional = yes; then
    59636047    CC="$CC -traditional"
     
    59656049fi
    59666050
    5967 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5968 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5969 if test "${ac_cv_type_signal+set}" = set; then
    5970   echo $ECHO_N "(cached) $ECHO_C" >&6
    5971 else
    5972   cat >conftest.$ac_ext <<_ACEOF
    5973 /* confdefs.h.  */
    5974 _ACEOF
    5975 cat confdefs.h >>conftest.$ac_ext
    5976 cat >>conftest.$ac_ext <<_ACEOF
     6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     6052$as_echo_n "checking return type of signal handlers... " >&6; }
     6053if test "${ac_cv_type_signal+set}" = set; then :
     6054  $as_echo_n "(cached) " >&6
     6055else
     6056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59776057/* end confdefs.h.  */
    59786058#include <sys/types.h>
    59796059#include <signal.h>
    5980 #ifdef signal
    5981 # undef signal
    5982 #endif
    5983 #ifdef __cplusplus
    5984 extern "C" void (*signal (int, void (*)(int)))(int);
    5985 #else
    5986 void (*signal ()) ();
    5987 #endif
    59886060
    59896061int
    59906062main ()
    59916063{
    5992 int i;
     6064return *(signal (0, 0)) (0) == 1;
    59936065  ;
    59946066  return 0;
    59956067}
    59966068_ACEOF
    5997 rm -f conftest.$ac_objext
    5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5999   (eval $ac_compile) 2>conftest.er1
    6000   ac_status=$?
    6001   grep -v '^ *+' conftest.er1 >conftest.err
    6002   rm -f conftest.er1
    6003   cat conftest.err >&5
    6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6005   (exit $ac_status); } &&
    6006      { ac_try='test -z "$ac_c_werror_flag"
    6007              || test ! -s conftest.err'
    6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6009   (eval $ac_try) 2>&5
    6010   ac_status=$?
    6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6012   (exit $ac_status); }; } &&
    6013      { ac_try='test -s conftest.$ac_objext'
    6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6015   (eval $ac_try) 2>&5
    6016   ac_status=$?
    6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6018   (exit $ac_status); }; }; then
     6069if ac_fn_c_try_compile "$LINENO"; then :
     6070  ac_cv_type_signal=int
     6071else
    60196072  ac_cv_type_signal=void
    6020 else
    6021   echo "$as_me: failed program was:" >&5
    6022 sed 's/^/| /' conftest.$ac_ext >&5
    6023 
    6024 ac_cv_type_signal=int
    6025 fi
    6026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6027 fi
    6028 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    6029 echo "${ECHO_T}$ac_cv_type_signal" >&6
     6073fi
     6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6075fi
     6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     6077$as_echo "$ac_cv_type_signal" >&6; }
    60306078
    60316079cat >>confdefs.h <<_ACEOF
     
    60346082
    60356083
    6036 
    60376084for ac_func in vprintf
    6038 do
    6039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6040 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6042 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6043   echo $ECHO_N "(cached) $ECHO_C" >&6
    6044 else
    6045   cat >conftest.$ac_ext <<_ACEOF
    6046 /* confdefs.h.  */
    6047 _ACEOF
    6048 cat confdefs.h >>conftest.$ac_ext
    6049 cat >>conftest.$ac_ext <<_ACEOF
    6050 /* end confdefs.h.  */
    6051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6053 #define $ac_func innocuous_$ac_func
    6054 
    6055 /* System header to define __stub macros and hopefully few prototypes,
    6056     which can conflict with char $ac_func (); below.
    6057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6058     <limits.h> exists even on freestanding compilers.  */
    6059 
    6060 #ifdef __STDC__
    6061 # include <limits.h>
    6062 #else
    6063 # include <assert.h>
    6064 #endif
    6065 
    6066 #undef $ac_func
    6067 
    6068 /* Override any gcc2 internal prototype to avoid an error.  */
    6069 #ifdef __cplusplus
    6070 extern "C"
    6071 {
    6072 #endif
    6073 /* We use char because int might match the return type of a gcc2
    6074    builtin and then its argument prototype would still apply.  */
    6075 char $ac_func ();
    6076 /* The GNU C library defines this for functions which it implements
    6077     to always fail with ENOSYS.  Some functions are actually named
    6078     something starting with __ and the normal name is an alias.  */
    6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6080 choke me
    6081 #else
    6082 char (*f) () = $ac_func;
    6083 #endif
    6084 #ifdef __cplusplus
    6085 }
    6086 #endif
    6087 
    6088 int
    6089 main ()
    6090 {
    6091 return f != $ac_func;
    6092   ;
    6093   return 0;
    6094 }
    6095 _ACEOF
    6096 rm -f conftest.$ac_objext conftest$ac_exeext
    6097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6098   (eval $ac_link) 2>conftest.er1
    6099   ac_status=$?
    6100   grep -v '^ *+' conftest.er1 >conftest.err
    6101   rm -f conftest.er1
    6102   cat conftest.err >&5
    6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6104   (exit $ac_status); } &&
    6105      { ac_try='test -z "$ac_c_werror_flag"
    6106              || test ! -s conftest.err'
    6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6108   (eval $ac_try) 2>&5
    6109   ac_status=$?
    6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6111   (exit $ac_status); }; } &&
    6112      { ac_try='test -s conftest$ac_exeext'
    6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6114   (eval $ac_try) 2>&5
    6115   ac_status=$?
    6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6117   (exit $ac_status); }; }; then
    6118   eval "$as_ac_var=yes"
    6119 else
    6120   echo "$as_me: failed program was:" >&5
    6121 sed 's/^/| /' conftest.$ac_ext >&5
    6122 
    6123 eval "$as_ac_var=no"
    6124 fi
    6125 rm -f conftest.err conftest.$ac_objext \
    6126       conftest$ac_exeext conftest.$ac_ext
    6127 fi
    6128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6130 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6085do :
     6086  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     6087if test "x$ac_cv_func_vprintf" = x""yes; then :
    61316088  cat >>confdefs.h <<_ACEOF
    6132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6133 _ACEOF
    6134 
    6135 echo "$as_me:$LINENO: checking for _doprnt" >&5
    6136 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    6137 if test "${ac_cv_func__doprnt+set}" = set; then
    6138   echo $ECHO_N "(cached) $ECHO_C" >&6
    6139 else
    6140   cat >conftest.$ac_ext <<_ACEOF
    6141 /* confdefs.h.  */
    6142 _ACEOF
    6143 cat confdefs.h >>conftest.$ac_ext
    6144 cat >>conftest.$ac_ext <<_ACEOF
    6145 /* end confdefs.h.  */
    6146 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    6147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6148 #define _doprnt innocuous__doprnt
    6149 
    6150 /* System header to define __stub macros and hopefully few prototypes,
    6151     which can conflict with char _doprnt (); below.
    6152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6153     <limits.h> exists even on freestanding compilers.  */
    6154 
    6155 #ifdef __STDC__
    6156 # include <limits.h>
    6157 #else
    6158 # include <assert.h>
    6159 #endif
    6160 
    6161 #undef _doprnt
    6162 
    6163 /* Override any gcc2 internal prototype to avoid an error.  */
    6164 #ifdef __cplusplus
    6165 extern "C"
    6166 {
    6167 #endif
    6168 /* We use char because int might match the return type of a gcc2
    6169    builtin and then its argument prototype would still apply.  */
    6170 char _doprnt ();
    6171 /* The GNU C library defines this for functions which it implements
    6172     to always fail with ENOSYS.  Some functions are actually named
    6173     something starting with __ and the normal name is an alias.  */
    6174 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    6175 choke me
    6176 #else
    6177 char (*f) () = _doprnt;
    6178 #endif
    6179 #ifdef __cplusplus
    6180 }
    6181 #endif
    6182 
    6183 int
    6184 main ()
    6185 {
    6186 return f != _doprnt;
    6187   ;
    6188   return 0;
    6189 }
    6190 _ACEOF
    6191 rm -f conftest.$ac_objext conftest$ac_exeext
    6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6193   (eval $ac_link) 2>conftest.er1
    6194   ac_status=$?
    6195   grep -v '^ *+' conftest.er1 >conftest.err
    6196   rm -f conftest.er1
    6197   cat conftest.err >&5
    6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6199   (exit $ac_status); } &&
    6200      { ac_try='test -z "$ac_c_werror_flag"
    6201              || test ! -s conftest.err'
    6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6203   (eval $ac_try) 2>&5
    6204   ac_status=$?
    6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6206   (exit $ac_status); }; } &&
    6207      { ac_try='test -s conftest$ac_exeext'
    6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6209   (eval $ac_try) 2>&5
    6210   ac_status=$?
    6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6212   (exit $ac_status); }; }; then
    6213   ac_cv_func__doprnt=yes
    6214 else
    6215   echo "$as_me: failed program was:" >&5
    6216 sed 's/^/| /' conftest.$ac_ext >&5
    6217 
    6218 ac_cv_func__doprnt=no
    6219 fi
    6220 rm -f conftest.err conftest.$ac_objext \
    6221       conftest$ac_exeext conftest.$ac_ext
    6222 fi
    6223 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    6224 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    6225 if test $ac_cv_func__doprnt = yes; then
    6226 
    6227 cat >>confdefs.h <<\_ACEOF
    6228 #define HAVE_DOPRNT 1
    6229 _ACEOF
     6089#define HAVE_VPRINTF 1
     6090_ACEOF
     6091
     6092ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     6093if test "x$ac_cv_func__doprnt" = x""yes; then :
     6094
     6095$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    62306096
    62316097fi
     
    62356101
    62366102
    6237 
    6238 
    6239 
    6240 
    6241 
    6242 
    6243 
    6244 
    6245 
    6246 
    62476103for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    6248 do
    6249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6250 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6252 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6253   echo $ECHO_N "(cached) $ECHO_C" >&6
    6254 else
    6255   cat >conftest.$ac_ext <<_ACEOF
    6256 /* confdefs.h.  */
    6257 _ACEOF
    6258 cat confdefs.h >>conftest.$ac_ext
    6259 cat >>conftest.$ac_ext <<_ACEOF
    6260 /* end confdefs.h.  */
    6261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6263 #define $ac_func innocuous_$ac_func
    6264 
    6265 /* System header to define __stub macros and hopefully few prototypes,
    6266     which can conflict with char $ac_func (); below.
    6267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6268     <limits.h> exists even on freestanding compilers.  */
    6269 
    6270 #ifdef __STDC__
    6271 # include <limits.h>
    6272 #else
    6273 # include <assert.h>
    6274 #endif
    6275 
    6276 #undef $ac_func
    6277 
    6278 /* Override any gcc2 internal prototype to avoid an error.  */
    6279 #ifdef __cplusplus
    6280 extern "C"
    6281 {
    6282 #endif
    6283 /* We use char because int might match the return type of a gcc2
    6284    builtin and then its argument prototype would still apply.  */
    6285 char $ac_func ();
    6286 /* The GNU C library defines this for functions which it implements
    6287     to always fail with ENOSYS.  Some functions are actually named
    6288     something starting with __ and the normal name is an alias.  */
    6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6290 choke me
    6291 #else
    6292 char (*f) () = $ac_func;
    6293 #endif
    6294 #ifdef __cplusplus
    6295 }
    6296 #endif
    6297 
    6298 int
    6299 main ()
    6300 {
    6301 return f != $ac_func;
    6302   ;
    6303   return 0;
    6304 }
    6305 _ACEOF
    6306 rm -f conftest.$ac_objext conftest$ac_exeext
    6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6308   (eval $ac_link) 2>conftest.er1
    6309   ac_status=$?
    6310   grep -v '^ *+' conftest.er1 >conftest.err
    6311   rm -f conftest.er1
    6312   cat conftest.err >&5
    6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6314   (exit $ac_status); } &&
    6315      { ac_try='test -z "$ac_c_werror_flag"
    6316              || test ! -s conftest.err'
    6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6318   (eval $ac_try) 2>&5
    6319   ac_status=$?
    6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6321   (exit $ac_status); }; } &&
    6322      { ac_try='test -s conftest$ac_exeext'
    6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6324   (eval $ac_try) 2>&5
    6325   ac_status=$?
    6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6327   (exit $ac_status); }; }; then
    6328   eval "$as_ac_var=yes"
    6329 else
    6330   echo "$as_me: failed program was:" >&5
    6331 sed 's/^/| /' conftest.$ac_ext >&5
    6332 
    6333 eval "$as_ac_var=no"
    6334 fi
    6335 rm -f conftest.err conftest.$ac_objext \
    6336       conftest$ac_exeext conftest.$ac_ext
    6337 fi
    6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6340 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6104do :
     6105  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6106ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6107if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    63416108  cat >>confdefs.h <<_ACEOF
    6342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    63436110_ACEOF
    63446111
     
    63466113done
    63476114
    6348 
    6349 
    6350 
    6351 for ac_func in ftruncate strstr strcasecmp
    6352 do
    6353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6354 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6356 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6357   echo $ECHO_N "(cached) $ECHO_C" >&6
    6358 else
    6359   cat >conftest.$ac_ext <<_ACEOF
    6360 /* confdefs.h.  */
    6361 _ACEOF
    6362 cat confdefs.h >>conftest.$ac_ext
    6363 cat >>conftest.$ac_ext <<_ACEOF
    6364 /* end confdefs.h.  */
    6365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6367 #define $ac_func innocuous_$ac_func
    6368 
    6369 /* System header to define __stub macros and hopefully few prototypes,
    6370     which can conflict with char $ac_func (); below.
    6371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6372     <limits.h> exists even on freestanding compilers.  */
    6373 
    6374 #ifdef __STDC__
    6375 # include <limits.h>
    6376 #else
    6377 # include <assert.h>
    6378 #endif
    6379 
    6380 #undef $ac_func
    6381 
    6382 /* Override any gcc2 internal prototype to avoid an error.  */
    6383 #ifdef __cplusplus
    6384 extern "C"
    6385 {
    6386 #endif
    6387 /* We use char because int might match the return type of a gcc2
    6388    builtin and then its argument prototype would still apply.  */
    6389 char $ac_func ();
    6390 /* The GNU C library defines this for functions which it implements
    6391     to always fail with ENOSYS.  Some functions are actually named
    6392     something starting with __ and the normal name is an alias.  */
    6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6394 choke me
    6395 #else
    6396 char (*f) () = $ac_func;
    6397 #endif
    6398 #ifdef __cplusplus
    6399 }
    6400 #endif
    6401 
    6402 int
    6403 main ()
    6404 {
    6405 return f != $ac_func;
    6406   ;
    6407   return 0;
    6408 }
    6409 _ACEOF
    6410 rm -f conftest.$ac_objext conftest$ac_exeext
    6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6412   (eval $ac_link) 2>conftest.er1
    6413   ac_status=$?
    6414   grep -v '^ *+' conftest.er1 >conftest.err
    6415   rm -f conftest.er1
    6416   cat conftest.err >&5
    6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6418   (exit $ac_status); } &&
    6419      { ac_try='test -z "$ac_c_werror_flag"
    6420              || test ! -s conftest.err'
    6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6422   (eval $ac_try) 2>&5
    6423   ac_status=$?
    6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6425   (exit $ac_status); }; } &&
    6426      { ac_try='test -s conftest$ac_exeext'
    6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6428   (eval $ac_try) 2>&5
    6429   ac_status=$?
    6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6431   (exit $ac_status); }; }; then
    6432   eval "$as_ac_var=yes"
    6433 else
    6434   echo "$as_me: failed program was:" >&5
    6435 sed 's/^/| /' conftest.$ac_ext >&5
    6436 
    6437 eval "$as_ac_var=no"
    6438 fi
    6439 rm -f conftest.err conftest.$ac_objext \
    6440       conftest$ac_exeext conftest.$ac_ext
    6441 fi
    6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6444 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6445   cat >>confdefs.h <<_ACEOF
    6446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6447 _ACEOF
    6448 
    6449 else
    6450   case $LIBOBJS in
    6451     "$ac_func.$ac_objext"   | \
    6452   *" $ac_func.$ac_objext"   | \
    6453     "$ac_func.$ac_objext "* | \
    6454   *" $ac_func.$ac_objext "* ) ;;
    6455   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6115ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     6116if test "x$ac_cv_func_ftruncate" = x""yes; then :
     6117  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6118
     6119else
     6120  case " $LIBOBJS " in
     6121  *" ftruncate.$ac_objext "* ) ;;
     6122  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6123 ;;
    64566124esac
    64576125
    64586126fi
    6459 done
    6460 
    6461 
    6462 
    6463 echo "$as_me:$LINENO: checking for textdomain" >&5
    6464 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
    6465 if test "${ac_cv_func_textdomain+set}" = set; then
    6466   echo $ECHO_N "(cached) $ECHO_C" >&6
    6467 else
    6468   cat >conftest.$ac_ext <<_ACEOF
    6469 /* confdefs.h.  */
    6470 _ACEOF
    6471 cat confdefs.h >>conftest.$ac_ext
    6472 cat >>conftest.$ac_ext <<_ACEOF
    6473 /* end confdefs.h.  */
    6474 /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
    6475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6476 #define textdomain innocuous_textdomain
    6477 
    6478 /* System header to define __stub macros and hopefully few prototypes,
    6479     which can conflict with char textdomain (); below.
    6480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6481     <limits.h> exists even on freestanding compilers.  */
    6482 
    6483 #ifdef __STDC__
    6484 # include <limits.h>
    6485 #else
    6486 # include <assert.h>
    6487 #endif
    6488 
    6489 #undef textdomain
    6490 
    6491 /* Override any gcc2 internal prototype to avoid an error.  */
    6492 #ifdef __cplusplus
    6493 extern "C"
    6494 {
    6495 #endif
    6496 /* We use char because int might match the return type of a gcc2
    6497    builtin and then its argument prototype would still apply.  */
    6498 char textdomain ();
    6499 /* The GNU C library defines this for functions which it implements
    6500     to always fail with ENOSYS.  Some functions are actually named
    6501     something starting with __ and the normal name is an alias.  */
    6502 #if defined (__stub_textdomain) || defined (__stub___textdomain)
    6503 choke me
    6504 #else
    6505 char (*f) () = textdomain;
    6506 #endif
    6507 #ifdef __cplusplus
    6508 }
    6509 #endif
    6510 
    6511 int
    6512 main ()
    6513 {
    6514 return f != textdomain;
    6515   ;
    6516   return 0;
    6517 }
    6518 _ACEOF
    6519 rm -f conftest.$ac_objext conftest$ac_exeext
    6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6521   (eval $ac_link) 2>conftest.er1
    6522   ac_status=$?
    6523   grep -v '^ *+' conftest.er1 >conftest.err
    6524   rm -f conftest.er1
    6525   cat conftest.err >&5
    6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6527   (exit $ac_status); } &&
    6528      { ac_try='test -z "$ac_c_werror_flag"
    6529              || test ! -s conftest.err'
    6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6531   (eval $ac_try) 2>&5
    6532   ac_status=$?
    6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6534   (exit $ac_status); }; } &&
    6535      { ac_try='test -s conftest$ac_exeext'
    6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6537   (eval $ac_try) 2>&5
    6538   ac_status=$?
    6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6540   (exit $ac_status); }; }; then
    6541   ac_cv_func_textdomain=yes
    6542 else
    6543   echo "$as_me: failed program was:" >&5
    6544 sed 's/^/| /' conftest.$ac_ext >&5
    6545 
    6546 ac_cv_func_textdomain=no
    6547 fi
    6548 rm -f conftest.err conftest.$ac_objext \
    6549       conftest$ac_exeext conftest.$ac_ext
    6550 fi
    6551 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
    6552 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
    6553 if test $ac_cv_func_textdomain = yes; then
    6554   cat >>confdefs.h <<\_ACEOF
    6555 #define ENABLE_NLS  1
    6556 _ACEOF
     6127
     6128ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     6129if test "x$ac_cv_func_strstr" = x""yes; then :
     6130  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     6131
     6132else
     6133  case " $LIBOBJS " in
     6134  *" strstr.$ac_objext "* ) ;;
     6135  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     6136 ;;
     6137esac
     6138
     6139fi
     6140
     6141ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     6142if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     6143  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     6144
     6145else
     6146  case " $LIBOBJS " in
     6147  *" strcasecmp.$ac_objext "* ) ;;
     6148  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     6149 ;;
     6150esac
     6151
     6152fi
     6153
     6154
     6155
     6156ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
     6157if test "x$ac_cv_func_textdomain" = x""yes; then :
     6158  $as_echo "#define ENABLE_NLS  1" >>confdefs.h
    65576159
    65586160fi
     
    65616163# *** Custom checking (based on GNU tar configure.in) ***
    65626164# ---------------------------------------------------------------------------
    6563 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6564 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     6166$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    65656167if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6566   echo "$as_me:$LINENO: result: yes" >&5
    6567 echo "${ECHO_T}yes" >&6
    6568   case $LIBOBJS in
    6569     "gmalloc.$ac_objext"   | \
    6570   *" gmalloc.$ac_objext"   | \
    6571     "gmalloc.$ac_objext "* | \
     6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6169$as_echo "yes" >&6; }
     6170  case " $LIBOBJS " in
    65726171  *" gmalloc.$ac_objext "* ) ;;
    6573   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6172  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     6173 ;;
    65746174esac
    65756175
    6576   cat >>confdefs.h <<\_ACEOF
     6176  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     6177
     6178else
     6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6180$as_echo "no" >&6; }
     6181  for ac_func in valloc
     6182do :
     6183  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     6184if test "x$ac_cv_func_valloc" = x""yes; then :
     6185  cat >>confdefs.h <<_ACEOF
    65776186#define HAVE_VALLOC 1
    65786187_ACEOF
    65796188
    6580 else
    6581   echo "$as_me:$LINENO: result: no" >&5
    6582 echo "${ECHO_T}no" >&6
    6583 
    6584 for ac_func in valloc
    6585 do
    6586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6587 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6589 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6590   echo $ECHO_N "(cached) $ECHO_C" >&6
    6591 else
    6592   cat >conftest.$ac_ext <<_ACEOF
    6593 /* confdefs.h.  */
    6594 _ACEOF
    6595 cat confdefs.h >>conftest.$ac_ext
    6596 cat >>conftest.$ac_ext <<_ACEOF
    6597 /* end confdefs.h.  */
    6598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6600 #define $ac_func innocuous_$ac_func
    6601 
    6602 /* System header to define __stub macros and hopefully few prototypes,
    6603     which can conflict with char $ac_func (); below.
    6604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6605     <limits.h> exists even on freestanding compilers.  */
    6606 
    6607 #ifdef __STDC__
    6608 # include <limits.h>
    6609 #else
    6610 # include <assert.h>
    6611 #endif
    6612 
    6613 #undef $ac_func
    6614 
    6615 /* Override any gcc2 internal prototype to avoid an error.  */
    6616 #ifdef __cplusplus
    6617 extern "C"
    6618 {
    6619 #endif
    6620 /* We use char because int might match the return type of a gcc2
    6621    builtin and then its argument prototype would still apply.  */
    6622 char $ac_func ();
    6623 /* The GNU C library defines this for functions which it implements
    6624     to always fail with ENOSYS.  Some functions are actually named
    6625     something starting with __ and the normal name is an alias.  */
    6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6627 choke me
    6628 #else
    6629 char (*f) () = $ac_func;
    6630 #endif
    6631 #ifdef __cplusplus
    6632 }
    6633 #endif
    6634 
    6635 int
    6636 main ()
    6637 {
    6638 return f != $ac_func;
    6639   ;
    6640   return 0;
    6641 }
    6642 _ACEOF
    6643 rm -f conftest.$ac_objext conftest$ac_exeext
    6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6645   (eval $ac_link) 2>conftest.er1
    6646   ac_status=$?
    6647   grep -v '^ *+' conftest.er1 >conftest.err
    6648   rm -f conftest.er1
    6649   cat conftest.err >&5
    6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6651   (exit $ac_status); } &&
    6652      { ac_try='test -z "$ac_c_werror_flag"
    6653              || test ! -s conftest.err'
    6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6655   (eval $ac_try) 2>&5
    6656   ac_status=$?
    6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6658   (exit $ac_status); }; } &&
    6659      { ac_try='test -s conftest$ac_exeext'
    6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6661   (eval $ac_try) 2>&5
    6662   ac_status=$?
    6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6664   (exit $ac_status); }; }; then
    6665   eval "$as_ac_var=yes"
    6666 else
    6667   echo "$as_me: failed program was:" >&5
    6668 sed 's/^/| /' conftest.$ac_ext >&5
    6669 
    6670 eval "$as_ac_var=no"
    6671 fi
    6672 rm -f conftest.err conftest.$ac_objext \
    6673       conftest$ac_exeext conftest.$ac_ext
    6674 fi
    6675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6677 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6678   cat >>confdefs.h <<_ACEOF
    6679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6680 _ACEOF
    6681 
    66826189fi
    66836190done
     
    66866193
    66876194# we cannot generate static libraries under Darwin
    6688 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6689 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
     6196$as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
    66906197if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6691   echo "$as_me:$LINENO: result: yes" >&5
    6692 echo "${ECHO_T}yes" >&6
     6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6199$as_echo "yes" >&6; }
    66936200  STATIC=""
    66946201else
    6695   echo "$as_me:$LINENO: result: no" >&5
    6696 echo "${ECHO_T}no" >&6
     6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6203$as_echo "no" >&6; }
    66976204  STATIC="-static "
    66986205fi
    66996206
    67006207
    6701 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6702 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6703 
    6704 # Check whether --with-dmalloc or --without-dmalloc was given.
    6705 if test "${with_dmalloc+set}" = set; then
    6706   withval="$with_dmalloc"
    6707   if test "$withval" = yes; then
    6708   echo "$as_me:$LINENO: result: yes" >&5
    6709 echo "${ECHO_T}yes" >&6
    6710   cat >>confdefs.h <<\_ACEOF
    6711 #define WITH_DMALLOC 1
    6712 _ACEOF
     6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     6209$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     6210
     6211# Check whether --with-dmalloc was given.
     6212if test "${with_dmalloc+set}" = set; then :
     6213  withval=$with_dmalloc; if test "$withval" = yes; then
     6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6215$as_echo "yes" >&6; }
     6216  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
    67136217
    67146218  LIBS="$LIBS -ldmalloc"
    67156219  LDFLAGS="$LDFLAGS -g"
    67166220else
    6717   echo "$as_me:$LINENO: result: no" >&5
    6718 echo "${ECHO_T}no" >&6
    6719 fi
    6720 else
    6721   echo "$as_me:$LINENO: result: no" >&5
    6722 echo "${ECHO_T}no" >&6
    6723 fi;
    6724 
    6725 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6726 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6727 
    6728 # Check whether --with-regex or --without-regex was given.
    6729 if test "${with_regex+set}" = set; then
    6730   withval="$with_regex"
    6731   if test "$withval" = yes; then
     6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6222$as_echo "no" >&6; }
     6223fi
     6224else
     6225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6226$as_echo "no" >&6; }
     6227fi
     6228
     6229
     6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     6231$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     6232
     6233# Check whether --with-regex was given.
     6234if test "${with_regex+set}" = set; then :
     6235  withval=$with_regex; if test "$withval" = yes; then
    67326236  ac_with_regex=1
    6733   echo "$as_me:$LINENO: result: regex" >&5
    6734 echo "${ECHO_T}regex" >&6
    6735   cat >>confdefs.h <<\_ACEOF
    6736 #define WITH_REGEX 1
    6737 _ACEOF
    6738 
    6739   case $LIBOBJS in
    6740     "regex.$ac_objext"   | \
    6741   *" regex.$ac_objext"   | \
    6742     "regex.$ac_objext "* | \
     6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     6238$as_echo "regex" >&6; }
     6239  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     6240
     6241  case " $LIBOBJS " in
    67436242  *" regex.$ac_objext "* ) ;;
    6744   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6243  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6244 ;;
    67456245esac
    67466246
    67476247fi
    6748 fi;
     6248fi
     6249
    67496250if test -z "$ac_with_regex"; then
    6750   echo "$as_me:$LINENO: result: rx" >&5
    6751 echo "${ECHO_T}rx" >&6
    6752   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6753 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6754 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6755   echo $ECHO_N "(cached) $ECHO_C" >&6
    6756 else
    6757   cat >conftest.$ac_ext <<_ACEOF
    6758 /* confdefs.h.  */
    6759 _ACEOF
    6760 cat confdefs.h >>conftest.$ac_ext
    6761 cat >>conftest.$ac_ext <<_ACEOF
    6762 /* end confdefs.h.  */
    6763 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6765 #define re_rx_search innocuous_re_rx_search
    6766 
    6767 /* System header to define __stub macros and hopefully few prototypes,
    6768     which can conflict with char re_rx_search (); below.
    6769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6770     <limits.h> exists even on freestanding compilers.  */
    6771 
    6772 #ifdef __STDC__
    6773 # include <limits.h>
    6774 #else
    6775 # include <assert.h>
    6776 #endif
    6777 
    6778 #undef re_rx_search
    6779 
    6780 /* Override any gcc2 internal prototype to avoid an error.  */
    6781 #ifdef __cplusplus
    6782 extern "C"
    6783 {
    6784 #endif
    6785 /* We use char because int might match the return type of a gcc2
    6786    builtin and then its argument prototype would still apply.  */
    6787 char re_rx_search ();
    6788 /* The GNU C library defines this for functions which it implements
    6789     to always fail with ENOSYS.  Some functions are actually named
    6790     something starting with __ and the normal name is an alias.  */
    6791 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6792 choke me
    6793 #else
    6794 char (*f) () = re_rx_search;
    6795 #endif
    6796 #ifdef __cplusplus
    6797 }
    6798 #endif
    6799 
    6800 int
    6801 main ()
    6802 {
    6803 return f != re_rx_search;
    6804   ;
    6805   return 0;
    6806 }
    6807 _ACEOF
    6808 rm -f conftest.$ac_objext conftest$ac_exeext
    6809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6810   (eval $ac_link) 2>conftest.er1
    6811   ac_status=$?
    6812   grep -v '^ *+' conftest.er1 >conftest.err
    6813   rm -f conftest.er1
    6814   cat conftest.err >&5
    6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6816   (exit $ac_status); } &&
    6817      { ac_try='test -z "$ac_c_werror_flag"
    6818              || test ! -s conftest.err'
    6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6820   (eval $ac_try) 2>&5
    6821   ac_status=$?
    6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6823   (exit $ac_status); }; } &&
    6824      { ac_try='test -s conftest$ac_exeext'
    6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6826   (eval $ac_try) 2>&5
    6827   ac_status=$?
    6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6829   (exit $ac_status); }; }; then
    6830   ac_cv_func_re_rx_search=yes
    6831 else
    6832   echo "$as_me: failed program was:" >&5
    6833 sed 's/^/| /' conftest.$ac_ext >&5
    6834 
    6835 ac_cv_func_re_rx_search=no
    6836 fi
    6837 rm -f conftest.err conftest.$ac_objext \
    6838       conftest$ac_exeext conftest.$ac_ext
    6839 fi
    6840 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6841 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6842 if test $ac_cv_func_re_rx_search = yes; then
    6843   :
    6844 else
    6845   case $LIBOBJS in
    6846     "rx.$ac_objext"   | \
    6847   *" rx.$ac_objext"   | \
    6848     "rx.$ac_objext "* | \
     6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     6252$as_echo "rx" >&6; }
     6253  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     6254if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     6255
     6256else
     6257  case " $LIBOBJS " in
    68496258  *" rx.$ac_objext "* ) ;;
    6850   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6259  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     6260 ;;
    68516261esac
    68526262
     
    68586268# ---------------------------------------------------------------------------
    68596269if test "$ac_cv_func_alloca" = 'no'; then
    6860   case $LIBOBJS in
    6861     "xmalloc.$ac_objext"   | \
    6862   *" xmalloc.$ac_objext"   | \
    6863     "xmalloc.$ac_objext "* | \
     6270  case " $LIBOBJS " in
    68646271  *" xmalloc.$ac_objext "* ) ;;
    6865   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6272  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6273 ;;
    68666274esac
    68676275
    6868   case $LIBOBJS in
    6869     "error.$ac_objext"   | \
    6870   *" error.$ac_objext"   | \
    6871     "error.$ac_objext "* | \
     6276  case " $LIBOBJS " in
    68726277  *" error.$ac_objext "* ) ;;
    6873   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6278  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6279 ;;
    68746280esac
    68756281
     
    68796285# ---------------------------------------------------------------------------
    68806286
    6881 ac_ext=cc
     6287ac_ext=cpp
    68826288ac_cpp='$CXXCPP $CPPFLAGS'
    68836289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    68866292
    68876293
    6888 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
    6889 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
     6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
     6295$as_echo_n "checking that Perl 5 is available... " >&6; }
    68906296success="no"
    68916297pl_path="$PATH"
     
    69016307
    69026308success=no
    6903 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
    6904 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
    6905 
    6906 
    6907 cat >conftest.$ac_ext <<_ACEOF
    6908 /* confdefs.h.  */
    6909 _ACEOF
    6910 cat confdefs.h >>conftest.$ac_ext
    6911 cat >>conftest.$ac_ext <<_ACEOF
     6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
     6310$as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
     6311
     6312
     6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69126314/* end confdefs.h.  */
    69136315#include <vector>
     
    69216323}
    69226324_ACEOF
    6923 rm -f conftest.$ac_objext
    6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6925   (eval $ac_compile) 2>conftest.er1
    6926   ac_status=$?
    6927   grep -v '^ *+' conftest.er1 >conftest.err
    6928   rm -f conftest.er1
    6929   cat conftest.err >&5
    6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6931   (exit $ac_status); } &&
    6932      { ac_try='test -z "$ac_cxx_werror_flag"
    6933              || test ! -s conftest.err'
    6934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6935   (eval $ac_try) 2>&5
    6936   ac_status=$?
    6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6938   (exit $ac_status); }; } &&
    6939      { ac_try='test -s conftest.$ac_objext'
    6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6941   (eval $ac_try) 2>&5
    6942   ac_status=$?
    6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6944   (exit $ac_status); }; }; then
     6325if ac_fn_cxx_try_compile "$LINENO"; then :
    69456326  success=yes
    6946 else
    6947   echo "$as_me: failed program was:" >&5
    6948 sed 's/^/| /' conftest.$ac_ext >&5
    6949 
    6950 fi
    6951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6327fi
     6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69526329
    69536330if test $success = "no"; then
    6954 cat >conftest.$ac_ext <<_ACEOF
    6955 /* confdefs.h.  */
    6956 _ACEOF
    6957 cat confdefs.h >>conftest.$ac_ext
    6958 cat >>conftest.$ac_ext <<_ACEOF
     6331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69596332/* end confdefs.h.  */
    69606333#include <vector.h>
     
    69686341}
    69696342_ACEOF
    6970 rm -f conftest.$ac_objext
    6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6972   (eval $ac_compile) 2>conftest.er1
    6973   ac_status=$?
    6974   grep -v '^ *+' conftest.er1 >conftest.err
    6975   rm -f conftest.er1
    6976   cat conftest.err >&5
    6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6978   (exit $ac_status); } &&
    6979      { ac_try='test -z "$ac_cxx_werror_flag"
    6980              || test ! -s conftest.err'
    6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6982   (eval $ac_try) 2>&5
    6983   ac_status=$?
    6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6985   (exit $ac_status); }; } &&
    6986      { ac_try='test -s conftest.$ac_objext'
    6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6988   (eval $ac_try) 2>&5
    6989   ac_status=$?
    6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6991   (exit $ac_status); }; }; then
     6343if ac_fn_cxx_try_compile "$LINENO"; then :
    69926344  success="yes"
    6993 else
    6994   echo "$as_me: failed program was:" >&5
    6995 sed 's/^/| /' conftest.$ac_ext >&5
    6996 
    6997 fi
    6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6345fi
     6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69996347fi
    70006348
    70016349if test $success = "no"; then
    7002 cat >conftest.$ac_ext <<_ACEOF
    7003 /* confdefs.h.  */
    7004 _ACEOF
    7005 cat confdefs.h >>conftest.$ac_ext
    7006 cat >>conftest.$ac_ext <<_ACEOF
     6350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70076351/* end confdefs.h.  */
    70086352#include <ospace\\std\\vector>
     
    70166360}
    70176361_ACEOF
    7018 rm -f conftest.$ac_objext
    7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7020   (eval $ac_compile) 2>conftest.er1
    7021   ac_status=$?
    7022   grep -v '^ *+' conftest.er1 >conftest.err
    7023   rm -f conftest.er1
    7024   cat conftest.err >&5
    7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7026   (exit $ac_status); } &&
    7027      { ac_try='test -z "$ac_cxx_werror_flag"
    7028              || test ! -s conftest.err'
    7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7030   (eval $ac_try) 2>&5
    7031   ac_status=$?
    7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7033   (exit $ac_status); }; } &&
    7034      { ac_try='test -s conftest.$ac_objext'
    7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7036   (eval $ac_try) 2>&5
    7037   ac_status=$?
    7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7039   (exit $ac_status); }; }; then
     6362if ac_fn_cxx_try_compile "$LINENO"; then :
    70406363  success="yes"
    7041 else
    7042   echo "$as_me: failed program was:" >&5
    7043 sed 's/^/| /' conftest.$ac_ext >&5
    7044 
    7045 fi
    7046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6364fi
     6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    70476366fi
    70486367
    70496368if test $success = yes; then
    7050 echo "$as_me:$LINENO: result: \"no\"" >&5
    7051 echo "${ECHO_T}\"no\"" >&6
    7052 else
    7053 echo "$as_me:$LINENO: result: \"yes\"" >&5
    7054 echo "${ECHO_T}\"yes\"" >&6
    7055 { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
    7056 echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
    7057    { (exit 1); exit 1; }; }
     6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6370$as_echo "\"no\"" >&6; }
     6371else
     6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6373$as_echo "\"yes\"" >&6; }
     6374as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
    70586375fi
    70596376
     
    70676384
    70686385# check for endianness
    7069 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    7070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    7071 if test "${ac_cv_c_bigendian+set}" = set; then
    7072   echo $ECHO_N "(cached) $ECHO_C" >&6
    7073 else
    7074   # See if sys/param.h defines the BYTE_ORDER macro.
    7075 cat >conftest.$ac_ext <<_ACEOF
    7076 /* confdefs.h.  */
    7077 _ACEOF
    7078 cat confdefs.h >>conftest.$ac_ext
    7079 cat >>conftest.$ac_ext <<_ACEOF
     6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6387$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6388if test "${ac_cv_c_bigendian+set}" = set; then :
     6389  $as_echo_n "(cached) " >&6
     6390else
     6391  ac_cv_c_bigendian=unknown
     6392    # See if we're dealing with a universal compiler.
     6393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6394/* end confdefs.h.  */
     6395#ifndef __APPLE_CC__
     6396           not a universal capable compiler
     6397         #endif
     6398         typedef int dummy;
     6399
     6400_ACEOF
     6401if ac_fn_cxx_try_compile "$LINENO"; then :
     6402
     6403    # Check for potential -arch flags.  It is not universal unless
     6404    # there are at least two -arch flags with different values.
     6405    ac_arch=
     6406    ac_prev=
     6407    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     6408     if test -n "$ac_prev"; then
     6409       case $ac_word in
     6410         i?86 | x86_64 | ppc | ppc64)
     6411           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     6412         ac_arch=$ac_word
     6413           else
     6414         ac_cv_c_bigendian=universal
     6415         break
     6416           fi
     6417           ;;
     6418       esac
     6419       ac_prev=
     6420     elif test "x$ac_word" = "x-arch"; then
     6421       ac_prev=arch
     6422     fi
     6423       done
     6424fi
     6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6426    if test $ac_cv_c_bigendian = unknown; then
     6427      # See if sys/param.h defines the BYTE_ORDER macro.
     6428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70806429/* end confdefs.h.  */
    70816430#include <sys/types.h>
    7082 #include <sys/param.h>
     6431         #include <sys/param.h>
    70836432
    70846433int
    70856434main ()
    70866435{
    7087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    7088  bogus endian macros
    7089 #endif
     6436#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     6437             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     6438             && LITTLE_ENDIAN)
     6439          bogus endian macros
     6440         #endif
    70906441
    70916442  ;
     
    70936444}
    70946445_ACEOF
    7095 rm -f conftest.$ac_objext
    7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7097   (eval $ac_compile) 2>conftest.er1
    7098   ac_status=$?
    7099   grep -v '^ *+' conftest.er1 >conftest.err
    7100   rm -f conftest.er1
    7101   cat conftest.err >&5
    7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7103   (exit $ac_status); } &&
    7104      { ac_try='test -z "$ac_cxx_werror_flag"
    7105              || test ! -s conftest.err'
    7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7107   (eval $ac_try) 2>&5
    7108   ac_status=$?
    7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7110   (exit $ac_status); }; } &&
    7111      { ac_try='test -s conftest.$ac_objext'
    7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7113   (eval $ac_try) 2>&5
    7114   ac_status=$?
    7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7116   (exit $ac_status); }; }; then
     6446if ac_fn_cxx_try_compile "$LINENO"; then :
    71176447  # It does; now see whether it defined to BIG_ENDIAN or not.
    7118 cat >conftest.$ac_ext <<_ACEOF
    7119 /* confdefs.h.  */
    7120 _ACEOF
    7121 cat confdefs.h >>conftest.$ac_ext
    7122 cat >>conftest.$ac_ext <<_ACEOF
     6448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71236449/* end confdefs.h.  */
    71246450#include <sys/types.h>
    7125 #include <sys/param.h>
     6451        #include <sys/param.h>
    71266452
    71276453int
     
    71296455{
    71306456#if BYTE_ORDER != BIG_ENDIAN
    7131  not big endian
    7132 #endif
     6457        not big endian
     6458        #endif
    71336459
    71346460  ;
     
    71366462}
    71376463_ACEOF
    7138 rm -f conftest.$ac_objext
    7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7140   (eval $ac_compile) 2>conftest.er1
    7141   ac_status=$?
    7142   grep -v '^ *+' conftest.er1 >conftest.err
    7143   rm -f conftest.er1
    7144   cat conftest.err >&5
    7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7146   (exit $ac_status); } &&
    7147      { ac_try='test -z "$ac_cxx_werror_flag"
    7148              || test ! -s conftest.err'
    7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7150   (eval $ac_try) 2>&5
    7151   ac_status=$?
    7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7153   (exit $ac_status); }; } &&
    7154      { ac_try='test -s conftest.$ac_objext'
    7155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7156   (eval $ac_try) 2>&5
    7157   ac_status=$?
    7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7159   (exit $ac_status); }; }; then
     6464if ac_fn_cxx_try_compile "$LINENO"; then :
    71606465  ac_cv_c_bigendian=yes
    71616466else
    7162   echo "$as_me: failed program was:" >&5
    7163 sed 's/^/| /' conftest.$ac_ext >&5
    7164 
    7165 ac_cv_c_bigendian=no
    7166 fi
    7167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7168 else
    7169   echo "$as_me: failed program was:" >&5
    7170 sed 's/^/| /' conftest.$ac_ext >&5
    7171 
    7172 # It does not; compile a test program.
    7173 if test "$cross_compiling" = yes; then
    7174   # try to guess the endianness by grepping values into an object file
    7175   ac_cv_c_bigendian=unknown
    7176   cat >conftest.$ac_ext <<_ACEOF
    7177 /* confdefs.h.  */
    7178 _ACEOF
    7179 cat confdefs.h >>conftest.$ac_ext
    7180 cat >>conftest.$ac_ext <<_ACEOF
     6467  ac_cv_c_bigendian=no
     6468fi
     6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6470fi
     6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6472    fi
     6473    if test $ac_cv_c_bigendian = unknown; then
     6474      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     6475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71816476/* end confdefs.h.  */
    7182 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    7183 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    7184 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    7185 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    7186 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    7187 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6477#include <limits.h>
     6478
    71886479int
    71896480main ()
    71906481{
    7191  _ascii (); _ebcdic ();
     6482#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     6483          bogus endian macros
     6484         #endif
     6485
    71926486  ;
    71936487  return 0;
    71946488}
    71956489_ACEOF
    7196 rm -f conftest.$ac_objext
    7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7198   (eval $ac_compile) 2>conftest.er1
    7199   ac_status=$?
    7200   grep -v '^ *+' conftest.er1 >conftest.err
    7201   rm -f conftest.er1
    7202   cat conftest.err >&5
    7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7204   (exit $ac_status); } &&
    7205      { ac_try='test -z "$ac_cxx_werror_flag"
    7206              || test ! -s conftest.err'
    7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7208   (eval $ac_try) 2>&5
    7209   ac_status=$?
    7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7211   (exit $ac_status); }; } &&
    7212      { ac_try='test -s conftest.$ac_objext'
    7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7214   (eval $ac_try) 2>&5
    7215   ac_status=$?
    7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7217   (exit $ac_status); }; }; then
    7218   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    7219   ac_cv_c_bigendian=yes
    7220 fi
    7221 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    7222   if test "$ac_cv_c_bigendian" = unknown; then
    7223     ac_cv_c_bigendian=no
    7224   else
    7225     # finding both strings is unlikely to happen, but who knows?
    7226     ac_cv_c_bigendian=unknown
    7227   fi
    7228 fi
    7229 else
    7230   echo "$as_me: failed program was:" >&5
    7231 sed 's/^/| /' conftest.$ac_ext >&5
    7232 
    7233 fi
    7234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7235 else
    7236   cat >conftest.$ac_ext <<_ACEOF
    7237 /* confdefs.h.  */
    7238 _ACEOF
    7239 cat confdefs.h >>conftest.$ac_ext
    7240 cat >>conftest.$ac_ext <<_ACEOF
     6490if ac_fn_cxx_try_compile "$LINENO"; then :
     6491  # It does; now see whether it defined to _BIG_ENDIAN or not.
     6492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    72416493/* end confdefs.h.  */
     6494#include <limits.h>
     6495
    72426496int
    72436497main ()
    72446498{
    7245   /* Are we little or big endian?  From Harbison&Steele.  */
    7246   union
    7247   {
    7248     long l;
    7249     char c[sizeof (long)];
    7250   } u;
    7251   u.l = 1;
    7252   exit (u.c[sizeof (long) - 1] == 1);
     6499#ifndef _BIG_ENDIAN
     6500         not big endian
     6501        #endif
     6502
     6503  ;
     6504  return 0;
    72536505}
    72546506_ACEOF
    7255 rm -f conftest$ac_exeext
    7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7257   (eval $ac_link) 2>&5
    7258   ac_status=$?
    7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7262   (eval $ac_try) 2>&5
    7263   ac_status=$?
    7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7265   (exit $ac_status); }; }; then
     6507if ac_fn_cxx_try_compile "$LINENO"; then :
     6508  ac_cv_c_bigendian=yes
     6509else
    72666510  ac_cv_c_bigendian=no
    7267 else
    7268   echo "$as_me: program exited with status $ac_status" >&5
    7269 echo "$as_me: failed program was:" >&5
    7270 sed 's/^/| /' conftest.$ac_ext >&5
    7271 
    7272 ( exit $ac_status )
    7273 ac_cv_c_bigendian=yes
    7274 fi
    7275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7276 fi
    7277 fi
    7278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7279 fi
    7280 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    7281 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    7282 case $ac_cv_c_bigendian in
    7283   yes)
    7284 
    7285 cat >>confdefs.h <<\_ACEOF
    7286 #define WORDS_BIGENDIAN 1
    7287 _ACEOF
    7288  ;;
    7289   no)
    7290      ;;
    7291   *)
    7292     { { echo "$as_me:$LINENO: error: unknown endianness
    7293 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    7294 echo "$as_me: error: unknown endianness
    7295 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    7296    { (exit 1); exit 1; }; } ;;
    7297 esac
     6511fi
     6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6513fi
     6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6515    fi
     6516    if test $ac_cv_c_bigendian = unknown; then
     6517      # Compile a test program.
     6518      if test "$cross_compiling" = yes; then :
     6519  # Try to guess by grepping values from an object file.
     6520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6521/* end confdefs.h.  */
     6522short int ascii_mm[] =
     6523          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6524        short int ascii_ii[] =
     6525          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6526        int use_ascii (int i) {
     6527          return ascii_mm[i] + ascii_ii[i];
     6528        }
     6529        short int ebcdic_ii[] =
     6530          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6531        short int ebcdic_mm[] =
     6532          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6533        int use_ebcdic (int i) {
     6534          return ebcdic_mm[i] + ebcdic_ii[i];
     6535        }
     6536        extern int foo;
     6537
     6538int
     6539main ()
     6540{
     6541return use_ascii (foo) == use_ebcdic (foo);
     6542  ;
     6543  return 0;
     6544}
     6545_ACEOF
     6546if ac_fn_cxx_try_compile "$LINENO"; then :
     6547  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6548          ac_cv_c_bigendian=yes
     6549        fi
     6550        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6551          if test "$ac_cv_c_bigendian" = unknown; then
     6552        ac_cv_c_bigendian=no
     6553          else
     6554        # finding both strings is unlikely to happen, but who knows?
     6555        ac_cv_c_bigendian=unknown
     6556          fi
     6557        fi
     6558fi
     6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6560else
     6561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6562/* end confdefs.h.  */
     6563$ac_includes_default
     6564int
     6565main ()
     6566{
     6567
     6568         /* Are we little or big endian?  From Harbison&Steele.  */
     6569         union
     6570         {
     6571           long int l;
     6572           char c[sizeof (long int)];
     6573         } u;
     6574         u.l = 1;
     6575         return u.c[sizeof (long int) - 1] == 1;
     6576
     6577  ;
     6578  return 0;
     6579}
     6580_ACEOF
     6581if ac_fn_cxx_try_run "$LINENO"; then :
     6582  ac_cv_c_bigendian=no
     6583else
     6584  ac_cv_c_bigendian=yes
     6585fi
     6586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6587  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6588fi
     6589
     6590    fi
     6591fi
     6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6593$as_echo "$ac_cv_c_bigendian" >&6; }
     6594 case $ac_cv_c_bigendian in #(
     6595   yes)
     6596     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6597;; #(
     6598   no)
     6599      ;; #(
     6600   universal)
     6601
     6602$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6603
     6604     ;; #(
     6605   *)
     6606     as_fn_error $? "unknown endianness
     6607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6608 esac
    72986609
    72996610# ---------------------------------------------------------------------------
    73006611if test "$ac_cv_func_alloca" = 'no'; then
    7301   case $LIBOBJS in
    7302     "xmalloc.o.$ac_objext"   | \
    7303   *" xmalloc.o.$ac_objext"   | \
    7304     "xmalloc.o.$ac_objext "* | \
     6612  case " $LIBOBJS " in
    73056613  *" xmalloc.o.$ac_objext "* ) ;;
    7306   *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
     6614  *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
     6615 ;;
    73076616esac
    73086617
    7309   case $LIBOBJS in
    7310     "error.$ac_objext"   | \
    7311   *" error.$ac_objext"   | \
    7312     "error.$ac_objext "* | \
     6618  case " $LIBOBJS " in
    73136619  *" error.$ac_objext "* ) ;;
    7314   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6620  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6621 ;;
    73156622esac
    73166623
     
    73486655         src/recpt/Makefile \
    73496656         src/oaiservr/Makefile \
    7350          src/z3950/Makefile"
    7351 
    7352                                         ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6657         src/z3950/Makefile \
     6658     src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
     6659     src/java/org/nzdl/gsdl/Phind/Makefile"
     6660
     6661ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6662
    73536663cat >confcache <<\_ACEOF
    73546664# This file is a shell script that caches the results of configure
     
    73696679# The following way of writing the cache mishandles newlines in values,
    73706680# but we know of no workaround that is simple, portable, and efficient.
    7371 # So, don't put newlines in cache variables' values.
     6681# So, we kill variables containing newlines.
    73726682# Ultrix sh set writes to stderr and can't be redirected directly,
    73736683# and sets the high bit in the cache file unless we assign to the vars.
    7374 {
     6684(
     6685  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6686    eval ac_val=\$$ac_var
     6687    case $ac_val in #(
     6688    *${as_nl}*)
     6689      case $ac_var in #(
     6690      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6691$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6692      esac
     6693      case $ac_var in #(
     6694      _ | IFS | as_nl) ;; #(
     6695      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6696      *) { eval $ac_var=; unset $ac_var;} ;;
     6697      esac ;;
     6698    esac
     6699  done
     6700
    73756701  (set) 2>&1 |
    7376     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    7377     *ac_space=\ *)
    7378       # `set' does not quote correctly, so add quotes (double-quote
    7379       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6702    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6703    *${as_nl}ac_space=\ *)
     6704      # `set' does not quote correctly, so add quotes: double-quote
     6705      # substitution turns \\\\ into \\, and sed turns \\ into \.
    73806706      sed -n \
    73816707    "s/'/'\\\\''/g;
    73826708      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    7383       ;;
     6709      ;; #(
    73846710    *)
    73856711      # `set' quotes correctly as required by POSIX, so do not add quotes.
    7386       sed -n \
    7387     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6712      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    73886713      ;;
    7389     esac;
    7390 } |
     6714    esac |
     6715    sort
     6716) |
    73916717  sed '
     6718     /^ac_cv_env_/b end
    73926719     t clear
    7393      : clear
     6720     :clear
    73946721     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    73956722     t end
    7396      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    7397      : end' >>confcache
    7398 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    7399   if test -w $cache_file; then
    7400     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6723     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6724     :end' >>confcache
     6725if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6726  if test -w "$cache_file"; then
     6727    test "x$cache_file" != "x/dev/null" &&
     6728      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6729$as_echo "$as_me: updating cache $cache_file" >&6;}
    74016730    cat confcache >$cache_file
    74026731  else
    7403     echo "not updating unwritable cache $cache_file"
     6732    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6733$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    74046734  fi
    74056735fi
     
    74106740test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    74116741
    7412 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7413 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    7414 # trailing colons and then remove the whole line if VPATH becomes empty
    7415 # (actually we leave an empty line to preserve line numbers).
    7416 if test "x$srcdir" = x.; then
    7417   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7418 s/:*\$(srcdir):*/:/;
    7419 s/:*\${srcdir}:*/:/;
    7420 s/:*@srcdir@:*/:/;
    7421 s/^\([^=]*=[     ]*\):*/\1/;
    7422 s/:*$//;
    7423 s/^[^=]*=[   ]*$//;
    7424 }'
    7425 fi
    7426 
    74276742DEFS=-DHAVE_CONFIG_H
    74286743
    74296744ac_libobjs=
    74306745ac_ltlibobjs=
     6746U=
    74316747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    74326748  # 1. Remove the extension, and $U if already installed.
    7433   ac_i=`echo "$ac_i" |
    7434      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    7435   # 2. Add them.
    7436   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    7437   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6749  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6750  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6751  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6752  #    will be set to the directory where LIBOBJS objects are built.
     6753  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6754  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    74386755done
    74396756LIBOBJS=$ac_libobjs
     
    74436760
    74446761
     6762
    74456763: ${CONFIG_STATUS=./config.status}
     6764ac_write_fail=0
    74466765ac_clean_files_save=$ac_clean_files
    74476766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    7448 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    7449 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    7450 cat >$CONFIG_STATUS <<_ACEOF
     6767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6769as_write_fail=0
     6770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    74516771#! $SHELL
    74526772# Generated by $as_me.
     
    74586778ac_cs_recheck=false
    74596779ac_cs_silent=false
     6780
    74606781SHELL=\${CONFIG_SHELL-$SHELL}
    7461 _ACEOF
    7462 
    7463 cat >>$CONFIG_STATUS <<\_ACEOF
    7464 ## --------------------- ##
    7465 ## M4sh Initialization.  ##
    7466 ## --------------------- ##
    7467 
    7468 # Be Bourne compatible
    7469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6782export SHELL
     6783_ASEOF
     6784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6785## -------------------- ##
     6786## M4sh Initialization. ##
     6787## -------------------- ##
     6788
     6789# Be more Bourne compatible
     6790DUALCASE=1; export DUALCASE # for MKS sh
     6791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    74706792  emulate sh
    74716793  NULLCMD=:
    7472   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6794  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    74736795  # is contrary to our usage.  Disable this feature.
    74746796  alias -g '${1+"$@"}'='"$@"'
    7475 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    7476   set -o posix
    7477 fi
    7478 DUALCASE=1; export DUALCASE # for MKS sh
    7479 
    7480 # Support unset when possible.
    7481 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    7482   as_unset=unset
    7483 else
    7484   as_unset=false
    7485 fi
    7486 
    7487 
    7488 # Work around bugs in pre-3.0 UWIN ksh.
    7489 $as_unset ENV MAIL MAILPATH
     6797  setopt NO_GLOB_SUBST
     6798else
     6799  case `(set -o) 2>/dev/null` in #(
     6800  *posix*) :
     6801    set -o posix ;; #(
     6802  *) :
     6803     ;;
     6804esac
     6805fi
     6806
     6807
     6808as_nl='
     6809'
     6810export as_nl
     6811# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6815# Prefer a ksh shell builtin over an external printf program on Solaris,
     6816# but without wasting forks for bash or zsh.
     6817if test -z "$BASH_VERSION$ZSH_VERSION" \
     6818    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6819  as_echo='print -r --'
     6820  as_echo_n='print -rn --'
     6821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6822  as_echo='printf %s\n'
     6823  as_echo_n='printf %s'
     6824else
     6825  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6826    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6827    as_echo_n='/usr/ucb/echo -n'
     6828  else
     6829    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6830    as_echo_n_body='eval
     6831      arg=$1;
     6832      case $arg in #(
     6833      *"$as_nl"*)
     6834    expr "X$arg" : "X\\(.*\\)$as_nl";
     6835    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6836      esac;
     6837      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6838    '
     6839    export as_echo_n_body
     6840    as_echo_n='sh -c $as_echo_n_body as_echo'
     6841  fi
     6842  export as_echo_body
     6843  as_echo='sh -c $as_echo_body as_echo'
     6844fi
     6845
     6846# The user is always right.
     6847if test "${PATH_SEPARATOR+set}" != set; then
     6848  PATH_SEPARATOR=:
     6849  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6850    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6851      PATH_SEPARATOR=';'
     6852  }
     6853fi
     6854
     6855
     6856# IFS
     6857# We need space, tab and new line, in precisely that order.  Quoting is
     6858# there to prevent editors from complaining about space-tab.
     6859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6860# splitting by setting IFS to empty value.)
     6861IFS=" ""    $as_nl"
     6862
     6863# Find who we are.  Look in the path if we contain no directory separator.
     6864case $0 in #((
     6865  *[\\/]* ) as_myself=$0 ;;
     6866  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6867for as_dir in $PATH
     6868do
     6869  IFS=$as_save_IFS
     6870  test -z "$as_dir" && as_dir=.
     6871    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6872  done
     6873IFS=$as_save_IFS
     6874
     6875     ;;
     6876esac
     6877# We did not find ourselves, most probably we were run as `sh COMMAND'
     6878# in which case we are not to be found in the path.
     6879if test "x$as_myself" = x; then
     6880  as_myself=$0
     6881fi
     6882if test ! -f "$as_myself"; then
     6883  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6884  exit 1
     6885fi
     6886
     6887# Unset variables that we do not need and which cause bugs (e.g. in
     6888# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6889# suppresses any "Segmentation fault" message there.  '((' could
     6890# trigger a bug in pdksh 5.2.14.
     6891for as_var in BASH_ENV ENV MAIL MAILPATH
     6892do eval test x\${$as_var+set} = xset \
     6893  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6894done
    74906895PS1='$ '
    74916896PS2='> '
     
    74936898
    74946899# NLS nuisances.
    7495 for as_var in \
    7496   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    7497   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    7498   LC_TELEPHONE LC_TIME
    7499 do
    7500   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    7501     eval $as_var=C; export $as_var
    7502   else
    7503     $as_unset $as_var
     6900LC_ALL=C
     6901export LC_ALL
     6902LANGUAGE=C
     6903export LANGUAGE
     6904
     6905# CDPATH.
     6906(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6907
     6908
     6909# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6910# ----------------------------------------
     6911# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6912# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6913# script with STATUS, using 1 if that was 0.
     6914as_fn_error ()
     6915{
     6916  as_status=$1; test $as_status -eq 0 && as_status=1
     6917  if test "$4"; then
     6918    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6919    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    75046920  fi
    7505 done
    7506 
    7507 # Required to use basename.
    7508 if expr a : '\(a\)' >/dev/null 2>&1; then
     6921  $as_echo "$as_me: error: $2" >&2
     6922  as_fn_exit $as_status
     6923} # as_fn_error
     6924
     6925
     6926# as_fn_set_status STATUS
     6927# -----------------------
     6928# Set $? to STATUS, without forking.
     6929as_fn_set_status ()
     6930{
     6931  return $1
     6932} # as_fn_set_status
     6933
     6934# as_fn_exit STATUS
     6935# -----------------
     6936# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6937as_fn_exit ()
     6938{
     6939  set +e
     6940  as_fn_set_status $1
     6941  exit $1
     6942} # as_fn_exit
     6943
     6944# as_fn_unset VAR
     6945# ---------------
     6946# Portably unset VAR.
     6947as_fn_unset ()
     6948{
     6949  { eval $1=; unset $1;}
     6950}
     6951as_unset=as_fn_unset
     6952# as_fn_append VAR VALUE
     6953# ----------------------
     6954# Append the text in VALUE to the end of the definition contained in VAR. Take
     6955# advantage of any shell optimizations that allow amortized linear growth over
     6956# repeated appends, instead of the typical quadratic growth present in naive
     6957# implementations.
     6958if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6959  eval 'as_fn_append ()
     6960  {
     6961    eval $1+=\$2
     6962  }'
     6963else
     6964  as_fn_append ()
     6965  {
     6966    eval $1=\$$1\$2
     6967  }
     6968fi # as_fn_append
     6969
     6970# as_fn_arith ARG...
     6971# ------------------
     6972# Perform arithmetic evaluation on the ARGs, and store the result in the
     6973# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6974# must be portable across $(()) and expr.
     6975if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6976  eval 'as_fn_arith ()
     6977  {
     6978    as_val=$(( $* ))
     6979  }'
     6980else
     6981  as_fn_arith ()
     6982  {
     6983    as_val=`expr "$@" || test $? -eq 1`
     6984  }
     6985fi # as_fn_arith
     6986
     6987
     6988if expr a : '\(a\)' >/dev/null 2>&1 &&
     6989   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    75096990  as_expr=expr
    75106991else
     
    75126993fi
    75136994
    7514 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    75156996  as_basename=basename
    75166997else
     
    75186999fi
    75197000
    7520 
    7521 # Name of the executable.
    7522 as_me=`$as_basename "$0" ||
     7001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     7002  as_dirname=dirname
     7003else
     7004  as_dirname=false
     7005fi
     7006
     7007as_me=`$as_basename -- "$0" ||
    75237008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    75247009     X"$0" : 'X\(//\)$' \| \
    7525      X"$0" : 'X\(/\)$' \| \
    7526      .     : '\(.\)' 2>/dev/null ||
    7527 echo X/"$0" |
    7528     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    7529       /^X\/\(\/\/\)$/{ s//\1/; q; }
    7530       /^X\/\(\/\).*/{ s//\1/; q; }
    7531       s/.*/./; q'`
    7532 
    7533 
    7534 # PATH needs CR, and LINENO needs CR and PATH.
     7010     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     7011$as_echo X/"$0" |
     7012    sed '/^.*\/\([^/][^/]*\)\/*$/{
     7013        s//\1/
     7014        q
     7015      }
     7016      /^X\/\(\/\/\)$/{
     7017        s//\1/
     7018        q
     7019      }
     7020      /^X\/\(\/\).*/{
     7021        s//\1/
     7022        q
     7023      }
     7024      s/.*/./; q'`
     7025
    75357026# Avoid depending upon Character Ranges.
    75367027as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    75407031as_cr_alnum=$as_cr_Letters$as_cr_digits
    75417032
    7542 # The user is always right.
    7543 if test "${PATH_SEPARATOR+set}" != set; then
    7544   echo "#! /bin/sh" >conf$$.sh
    7545   echo  "exit 0"   >>conf$$.sh
    7546   chmod +x conf$$.sh
    7547   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    7548     PATH_SEPARATOR=';'
     7033ECHO_C= ECHO_N= ECHO_T=
     7034case `echo -n x` in #(((((
     7035-n*)
     7036  case `echo 'xy\c'` in
     7037  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     7038  xy)  ECHO_C='\c';;
     7039  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     7040       ECHO_T=' ';;
     7041  esac;;
     7042*)
     7043  ECHO_N='-n';;
     7044esac
     7045
     7046rm -f conf$$ conf$$.exe conf$$.file
     7047if test -d conf$$.dir; then
     7048  rm -f conf$$.dir/conf$$.file
     7049else
     7050  rm -f conf$$.dir
     7051  mkdir conf$$.dir 2>/dev/null
     7052fi
     7053if (echo >conf$$.file) 2>/dev/null; then
     7054  if ln -s conf$$.file conf$$ 2>/dev/null; then
     7055    as_ln_s='ln -s'
     7056    # ... but there are two gotchas:
     7057    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     7058    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     7059    # In both cases, we have to default to `cp -p'.
     7060    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     7061      as_ln_s='cp -p'
     7062  elif ln conf$$.file conf$$ 2>/dev/null; then
     7063    as_ln_s=ln
    75497064  else
    7550     PATH_SEPARATOR=:
     7065    as_ln_s='cp -p'
    75517066  fi
    7552   rm -f conf$$.sh
    7553 fi
    7554 
    7555 
    7556   as_lineno_1=$LINENO
    7557   as_lineno_2=$LINENO
    7558   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7559   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7560   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    7561   # Find who we are.  Look in the path if we contain no path at all
    7562   # relative or not.
    7563   case $0 in
    7564     *[\\/]* ) as_myself=$0 ;;
    7565     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7566 for as_dir in $PATH
    7567 do
    7568   IFS=$as_save_IFS
    7569   test -z "$as_dir" && as_dir=.
    7570   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    7571 done
    7572 
    7573        ;;
     7067else
     7068  as_ln_s='cp -p'
     7069fi
     7070rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     7071rmdir conf$$.dir 2>/dev/null
     7072
     7073
     7074# as_fn_mkdir_p
     7075# -------------
     7076# Create "$as_dir" as a directory, including parents if necessary.
     7077as_fn_mkdir_p ()
     7078{
     7079
     7080  case $as_dir in #(
     7081  -*) as_dir=./$as_dir;;
    75747082  esac
    7575   # We did not find ourselves, most probably we were run as `sh COMMAND'
    7576   # in which case we are not to be found in the path.
    7577   if test "x$as_myself" = x; then
    7578     as_myself=$0
    7579   fi
    7580   if test ! -f "$as_myself"; then
    7581     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    7582 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    7583    { (exit 1); exit 1; }; }
    7584   fi
    7585   case $CONFIG_SHELL in
    7586   '')
    7587     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7588 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    7589 do
    7590   IFS=$as_save_IFS
    7591   test -z "$as_dir" && as_dir=.
    7592   for as_base in sh bash ksh sh5; do
    7593      case $as_dir in
    7594      /*)
    7595        if ("$as_dir/$as_base" -c '
    7596   as_lineno_1=$LINENO
    7597   as_lineno_2=$LINENO
    7598   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7599   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7600   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    7601          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    7602          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    7603          CONFIG_SHELL=$as_dir/$as_base
    7604          export CONFIG_SHELL
    7605          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    7606        fi;;
    7607      esac
    7608        done
    7609 done
    7610 ;;
    7611   esac
    7612 
    7613   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    7614   # uniformly replaced by the line number.  The first 'sed' inserts a
    7615   # line-number line before each line; the second 'sed' does the real
    7616   # work.  The second script uses 'N' to pair each line-number line
    7617   # with the numbered line, and appends trailing '-' during
    7618   # substitution so that $LINENO is not a special case at line end.
    7619   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    7620   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    7621   sed '=' <$as_myself |
    7622     sed '
    7623       N
    7624       s,$,-,
    7625       : loop
    7626       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    7627       t loop
    7628       s,-$,,
    7629       s,^['$as_cr_digits']*\n,,
    7630     ' >$as_me.lineno &&
    7631   chmod +x $as_me.lineno ||
    7632     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    7633 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    7634    { (exit 1); exit 1; }; }
    7635 
    7636   # Don't try to exec as it changes $[0], causing all sort of problems
    7637   # (the dirname of $[0] is not the place where we might find the
    7638   # original and so on.  Autoconf is especially sensible to this).
    7639   . ./$as_me.lineno
    7640   # Exit status is that of the last command.
    7641   exit
    7642 }
    7643 
    7644 
    7645 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    7646   *c*,-n*) ECHO_N= ECHO_C='
    7647 ' ECHO_T='  ' ;;
    7648   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    7649   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    7650 esac
    7651 
    7652 if expr a : '\(a\)' >/dev/null 2>&1; then
    7653   as_expr=expr
    7654 else
    7655   as_expr=false
    7656 fi
    7657 
    7658 rm -f conf$$ conf$$.exe conf$$.file
    7659 echo >conf$$.file
    7660 if ln -s conf$$.file conf$$ 2>/dev/null; then
    7661   # We could just check for DJGPP; but this test a) works b) is more generic
    7662   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    7663   if test -f conf$$.exe; then
    7664     # Don't use ln at all; we don't have any links
    7665     as_ln_s='cp -p'
    7666   else
    7667     as_ln_s='ln -s'
    7668   fi
    7669 elif ln conf$$.file conf$$ 2>/dev/null; then
    7670   as_ln_s=ln
    7671 else
    7672   as_ln_s='cp -p'
    7673 fi
    7674 rm -f conf$$ conf$$.exe conf$$.file
    7675 
     7083  test -d "$as_dir" || eval $as_mkdir_p || {
     7084    as_dirs=
     7085    while :; do
     7086      case $as_dir in #(
     7087      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     7088      *) as_qdir=$as_dir;;
     7089      esac
     7090      as_dirs="'$as_qdir' $as_dirs"
     7091      as_dir=`$as_dirname -- "$as_dir" ||
     7092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7093     X"$as_dir" : 'X\(//\)[^/]' \| \
     7094     X"$as_dir" : 'X\(//\)$' \| \
     7095     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     7096$as_echo X"$as_dir" |
     7097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7098        s//\1/
     7099        q
     7100      }
     7101      /^X\(\/\/\)[^/].*/{
     7102        s//\1/
     7103        q
     7104      }
     7105      /^X\(\/\/\)$/{
     7106        s//\1/
     7107        q
     7108      }
     7109      /^X\(\/\).*/{
     7110        s//\1/
     7111        q
     7112      }
     7113      s/.*/./; q'`
     7114      test -d "$as_dir" && break
     7115    done
     7116    test -z "$as_dirs" || eval "mkdir $as_dirs"
     7117  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7118
     7119
     7120} # as_fn_mkdir_p
    76767121if mkdir -p . 2>/dev/null; then
    7677   as_mkdir_p=:
     7122  as_mkdir_p='mkdir -p "$as_dir"'
    76787123else
    76797124  test -d ./-p && rmdir ./-p
     
    76817126fi
    76827127
    7683 as_executable_p="test -f"
     7128if test -x / >/dev/null 2>&1; then
     7129  as_test_x='test -x'
     7130else
     7131  if ls -dL / >/dev/null 2>&1; then
     7132    as_ls_L_option=L
     7133  else
     7134    as_ls_L_option=
     7135  fi
     7136  as_test_x='
     7137    eval sh -c '\''
     7138      if test -d "$1"; then
     7139    test -d "$1/.";
     7140      else
     7141    case $1 in #(
     7142    -*)set "./$1";;
     7143    esac;
     7144    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     7145    ???[sx]*):;;*)false;;esac;fi
     7146    '\'' sh
     7147  '
     7148fi
     7149as_executable_p=$as_test_x
    76847150
    76857151# Sed expression to map a string onto a valid CPP name.
     
    76907156
    76917157
    7692 # IFS
    7693 # We need space, tab and new line, in precisely that order.
    7694 as_nl='
    7695 '
    7696 IFS="   $as_nl"
    7697 
    7698 # CDPATH.
    7699 $as_unset CDPATH
    7700 
    77017158exec 6>&1
    7702 
    7703 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     7159## ----------------------------------- ##
     7160## Main body of $CONFIG_STATUS script. ##
     7161## ----------------------------------- ##
     7162_ASEOF
     7163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     7164
     7165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7166# Save the log message, to keep $0 and so on meaningful, and to
    77047167# report actual input values of CONFIG_FILES etc. instead of their
    7705 # values after options handling.  Logging --version etc. is OK.
     7168# values after options handling.
     7169ac_log="
     7170This file was extended by $as_me, which was
     7171generated by GNU Autoconf 2.67.  Invocation command line was
     7172
     7173  CONFIG_FILES    = $CONFIG_FILES
     7174  CONFIG_HEADERS  = $CONFIG_HEADERS
     7175  CONFIG_LINKS    = $CONFIG_LINKS
     7176  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7177  $ $0 $@
     7178
     7179on `(hostname || uname -n) 2>/dev/null | sed 1q`
     7180"
     7181
     7182_ACEOF
     7183
     7184case $ac_config_files in *"
     7185"*) set x $ac_config_files; shift; ac_config_files=$*;;
     7186esac
     7187
     7188case $ac_config_headers in *"
     7189"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     7190esac
     7191
     7192
     7193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7194# Files that config.status was made for.
     7195config_files="$ac_config_files"
     7196config_headers="$ac_config_headers"
     7197
     7198_ACEOF
     7199
     7200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7201ac_cs_usage="\
     7202\`$as_me' instantiates files and other configuration actions
     7203from templates according to the current configuration.  Unless the files
     7204and actions are specified as TAGs, all are instantiated by default.
     7205
     7206Usage: $0 [OPTION]... [TAG]...
     7207
     7208  -h, --help       print this help, then exit
     7209  -V, --version    print version number and configuration settings, then exit
     7210      --config     print configuration, then exit
     7211  -q, --quiet, --silent
     7212                   do not print progress messages
     7213  -d, --debug      don't remove temporary files
     7214      --recheck    update $as_me by reconfiguring in the same conditions
     7215      --file=FILE[:TEMPLATE]
     7216                   instantiate the configuration file FILE
     7217      --header=FILE[:TEMPLATE]
     7218                   instantiate the configuration header FILE
     7219
     7220Configuration files:
     7221$config_files
     7222
     7223Configuration headers:
     7224$config_headers
     7225
     7226Report bugs to the package provider."
     7227
     7228_ACEOF
     7229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7230ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     7231ac_cs_version="\\
     7232config.status
     7233configured by $0, generated by GNU Autoconf 2.67,
     7234  with options \\"\$ac_cs_config\\"
     7235
     7236Copyright (C) 2010 Free Software Foundation, Inc.
     7237This config.status script is free software; the Free Software Foundation
     7238gives unlimited permission to copy, distribute and modify it."
     7239
     7240ac_pwd='$ac_pwd'
     7241srcdir='$srcdir'
     7242INSTALL='$INSTALL'
     7243AWK='$AWK'
     7244test -n "\$AWK" || AWK=awk
     7245_ACEOF
     7246
     7247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7248# The default lists apply if the user does not specify any file.
     7249ac_need_defaults=:
     7250while test $# != 0
     7251do
     7252  case $1 in
     7253  --*=?*)
     7254    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7255    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     7256    ac_shift=:
     7257    ;;
     7258  --*=)
     7259    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7260    ac_optarg=
     7261    ac_shift=:
     7262    ;;
     7263  *)
     7264    ac_option=$1
     7265    ac_optarg=$2
     7266    ac_shift=shift
     7267    ;;
     7268  esac
     7269
     7270  case $ac_option in
     7271  # Handling of the options.
     7272  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     7273    ac_cs_recheck=: ;;
     7274  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     7275    $as_echo "$ac_cs_version"; exit ;;
     7276  --config | --confi | --conf | --con | --co | --c )
     7277    $as_echo "$ac_cs_config"; exit ;;
     7278  --debug | --debu | --deb | --de | --d | -d )
     7279    debug=: ;;
     7280  --file | --fil | --fi | --f )
     7281    $ac_shift
     7282    case $ac_optarg in
     7283    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7284    '') as_fn_error $? "missing file argument" ;;
     7285    esac
     7286    as_fn_append CONFIG_FILES " '$ac_optarg'"
     7287    ac_need_defaults=false;;
     7288  --header | --heade | --head | --hea )
     7289    $ac_shift
     7290    case $ac_optarg in
     7291    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7292    esac
     7293    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     7294    ac_need_defaults=false;;
     7295  --he | --h)
     7296    # Conflict between --help and --header
     7297    as_fn_error $? "ambiguous option: \`$1'
     7298Try \`$0 --help' for more information.";;
     7299  --help | --hel | -h )
     7300    $as_echo "$ac_cs_usage"; exit ;;
     7301  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7302  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7303    ac_cs_silent=: ;;
     7304
     7305  # This is an error.
     7306  -*) as_fn_error $? "unrecognized option: \`$1'
     7307Try \`$0 --help' for more information." ;;
     7308
     7309  *) as_fn_append ac_config_targets " $1"
     7310     ac_need_defaults=false ;;
     7311
     7312  esac
     7313  shift
     7314done
     7315
     7316ac_configure_extra_args=
     7317
     7318if $ac_cs_silent; then
     7319  exec 6>/dev/null
     7320  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7321fi
     7322
     7323_ACEOF
     7324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7325if \$ac_cs_recheck; then
     7326  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7327  shift
     7328  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     7329  CONFIG_SHELL='$SHELL'
     7330  export CONFIG_SHELL
     7331  exec "\$@"
     7332fi
     7333
     7334_ACEOF
     7335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    77067336exec 5>>config.log
    77077337{
     
    77107340## Running $as_me. ##
    77117341_ASBOX
     7342  $as_echo "$ac_log"
    77127343} >&5
    7713 cat >&5 <<_CSEOF
    7714 
    7715 This file was extended by $as_me, which was
    7716 generated by GNU Autoconf 2.59.  Invocation command line was
    7717 
    7718   CONFIG_FILES    = $CONFIG_FILES
    7719   CONFIG_HEADERS  = $CONFIG_HEADERS
    7720   CONFIG_LINKS    = $CONFIG_LINKS
    7721   CONFIG_COMMANDS = $CONFIG_COMMANDS
    7722   $ $0 $@
    7723 
    7724 _CSEOF
    7725 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    7726 echo >&5
    7727 _ACEOF
    7728 
    7729 # Files that config.status was made for.
    7730 if test -n "$ac_config_files"; then
    7731   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    7732 fi
    7733 
    7734 if test -n "$ac_config_headers"; then
    7735   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    7736 fi
    7737 
    7738 if test -n "$ac_config_links"; then
    7739   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    7740 fi
    7741 
    7742 if test -n "$ac_config_commands"; then
    7743   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    7744 fi
    7745 
    7746 cat >>$CONFIG_STATUS <<\_ACEOF
    7747 
    7748 ac_cs_usage="\
    7749 \`$as_me' instantiates files from templates according to the
    7750 current configuration.
    7751 
    7752 Usage: $0 [OPTIONS] [FILE]...
    7753 
    7754   -h, --help       print this help, then exit
    7755   -V, --version    print version number, then exit
    7756   -q, --quiet      do not print progress messages
    7757   -d, --debug      don't remove temporary files
    7758       --recheck    update $as_me by reconfiguring in the same conditions
    7759   --file=FILE[:TEMPLATE]
    7760            instantiate the configuration file FILE
    7761   --header=FILE[:TEMPLATE]
    7762            instantiate the configuration header FILE
    7763 
    7764 Configuration files:
    7765 $config_files
    7766 
    7767 Configuration headers:
    7768 $config_headers
    7769 
    7770 Report bugs to <[email protected]>."
    7771 _ACEOF
    7772 
    7773 cat >>$CONFIG_STATUS <<_ACEOF
    7774 ac_cs_version="\\
    7775 config.status
    7776 configured by $0, generated by GNU Autoconf 2.59,
    7777   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    7778 
    7779 Copyright (C) 2003 Free Software Foundation, Inc.
    7780 This config.status script is free software; the Free Software Foundation
    7781 gives unlimited permission to copy, distribute and modify it."
    7782 srcdir=$srcdir
    7783 INSTALL="$INSTALL"
    7784 _ACEOF
    7785 
    7786 cat >>$CONFIG_STATUS <<\_ACEOF
    7787 # If no file are specified by the user, then we need to provide default
    7788 # value.  By we need to know if files were specified by the user.
    7789 ac_need_defaults=:
    7790 while test $# != 0
    7791 do
    7792   case $1 in
    7793   --*=*)
    7794     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    7795     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    7796     ac_shift=:
    7797     ;;
    7798   -*)
    7799     ac_option=$1
    7800     ac_optarg=$2
    7801     ac_shift=shift
    7802     ;;
    7803   *) # This is not an option, so the user has probably given explicit
    7804      # arguments.
    7805      ac_option=$1
    7806      ac_need_defaults=false;;
    7807   esac
    7808 
    7809   case $ac_option in
    7810   # Handling of the options.
    7811 _ACEOF
    7812 cat >>$CONFIG_STATUS <<\_ACEOF
    7813   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    7814     ac_cs_recheck=: ;;
    7815   --version | --vers* | -V )
    7816     echo "$ac_cs_version"; exit 0 ;;
    7817   --he | --h)
    7818     # Conflict between --help and --header
    7819     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    7820 Try \`$0 --help' for more information." >&5
    7821 echo "$as_me: error: ambiguous option: $1
    7822 Try \`$0 --help' for more information." >&2;}
    7823    { (exit 1); exit 1; }; };;
    7824   --help | --hel | -h )
    7825     echo "$ac_cs_usage"; exit 0 ;;
    7826   --debug | --d* | -d )
    7827     debug=: ;;
    7828   --file | --fil | --fi | --f )
    7829     $ac_shift
    7830     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    7831     ac_need_defaults=false;;
    7832   --header | --heade | --head | --hea )
    7833     $ac_shift
    7834     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    7835     ac_need_defaults=false;;
    7836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    7837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    7838     ac_cs_silent=: ;;
    7839 
    7840   # This is an error.
    7841   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    7842 Try \`$0 --help' for more information." >&5
    7843 echo "$as_me: error: unrecognized option: $1
    7844 Try \`$0 --help' for more information." >&2;}
    7845    { (exit 1); exit 1; }; } ;;
    7846 
    7847   *) ac_config_targets="$ac_config_targets $1" ;;
    7848 
    7849   esac
    7850   shift
    7851 done
    7852 
    7853 ac_configure_extra_args=
    7854 
    7855 if $ac_cs_silent; then
    7856   exec 6>/dev/null
    7857   ac_configure_extra_args="$ac_configure_extra_args --silent"
    7858 fi
    7859 
    7860 _ACEOF
    7861 cat >>$CONFIG_STATUS <<_ACEOF
    7862 if \$ac_cs_recheck; then
    7863   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    7864   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    7865 fi
    7866 
    7867 _ACEOF
    7868 
    7869 
    7870 
    7871 
    7872 
    7873 cat >>$CONFIG_STATUS <<\_ACEOF
     7344
     7345_ACEOF
     7346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7347_ACEOF
     7348
     7349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7350
     7351# Handling of arguments.
    78747352for ac_config_target in $ac_config_targets
    78757353do
    7876   case "$ac_config_target" in
    7877   # Handling of arguments.
    7878   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    7879   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7880   "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
    7881   "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    7882   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    7883   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    7884 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    7885    { (exit 1); exit 1; }; };;
     7354  case $ac_config_target in
     7355    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7356    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     7357    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7358    "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     7359    "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     7360
     7361  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    78867362  esac
    78877363done
     7364
    78887365
    78897366# If the user did not use the arguments to specify the items to instantiate,
     
    78977374
    78987375# Have a temporary directory for convenience.  Make it in the build tree
    7899 # simply because there is no reason to put it here, and in addition,
     7376# simply because there is no reason against having it here, and in addition,
    79007377# creating and moving files from /tmp can sometimes cause problems.
    7901 # Create a temporary directory, and hook for its removal unless debugging.
     7378# Hook for its removal unless debugging.
     7379# Note that there is a small window in which the directory will not be cleaned:
     7380# after its creation but before its name has been assigned to `$tmp'.
    79027381$debug ||
    79037382{
    7904   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    7905   trap '{ (exit 1); exit 1; }' 1 2 13 15
     7383  tmp=
     7384  trap 'exit_status=$?
     7385  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     7386' 0
     7387  trap 'as_fn_exit 1' 1 2 13 15
    79067388}
    7907 
    79087389# Create a (secure) tmp directory for tmp files.
    79097390
    79107391{
    7911   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7392  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    79127393  test -n "$tmp" && test -d "$tmp"
    79137394}  ||
    79147395{
    7915   tmp=./confstat$$-$RANDOM
    7916   (umask 077 && mkdir $tmp)
    7917 } ||
     7396  tmp=./conf$$-$RANDOM
     7397  (umask 077 && mkdir "$tmp")
     7398} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7399
     7400# Set up the scripts for CONFIG_FILES section.
     7401# No need to generate them if there are no CONFIG_FILES.
     7402# This happens for instance with `./config.status config.h'.
     7403if test -n "$CONFIG_FILES"; then
     7404
     7405
     7406ac_cr=`echo X | tr X '\015'`
     7407# On cygwin, bash can eat \r inside `` if the user requested igncr.
     7408# But we know of no other shell where ac_cr would be empty at this
     7409# point, so we can use a bashism as a fallback.
     7410if test "x$ac_cr" = x; then
     7411  eval ac_cr=\$\'\\r\'
     7412fi
     7413ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     7414if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     7415  ac_cs_awk_cr='\\r'
     7416else
     7417  ac_cs_awk_cr=$ac_cr
     7418fi
     7419
     7420echo 'BEGIN {' >"$tmp/subs1.awk" &&
     7421_ACEOF
     7422
     7423
    79187424{
    7919    echo "$me: cannot create a temporary directory in ." >&2
    7920    { (exit 1); exit 1; }
     7425  echo "cat >conf$$subs.awk <<_ACEOF" &&
     7426  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     7427  echo "_ACEOF"
     7428} >conf$$subs.sh ||
     7429  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7430ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7431ac_delim='%!_!# '
     7432for ac_last_try in false false false false false :; do
     7433  . ./conf$$subs.sh ||
     7434    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7435
     7436  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     7437  if test $ac_delim_n = $ac_delim_num; then
     7438    break
     7439  elif $ac_last_try; then
     7440    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7441  else
     7442    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7443  fi
     7444done
     7445rm -f conf$$subs.sh
     7446
     7447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7448cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     7449_ACEOF
     7450sed -n '
     7451h
     7452s/^/S["/; s/!.*/"]=/
     7453p
     7454g
     7455s/^[^!]*!//
     7456:repl
     7457t repl
     7458s/'"$ac_delim"'$//
     7459t delim
     7460:nl
     7461h
     7462s/\(.\{148\}\)..*/\1/
     7463t more1
     7464s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     7465p
     7466n
     7467b repl
     7468:more1
     7469s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7470p
     7471g
     7472s/.\{148\}//
     7473t nl
     7474:delim
     7475h
     7476s/\(.\{148\}\)..*/\1/
     7477t more2
     7478s/["\\]/\\&/g; s/^/"/; s/$/"/
     7479p
     7480b
     7481:more2
     7482s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7483p
     7484g
     7485s/.\{148\}//
     7486t delim
     7487' <conf$$subs.awk | sed '
     7488/^[^""]/{
     7489  N
     7490  s/\n//
    79217491}
    7922 
    7923 _ACEOF
    7924 
    7925 cat >>$CONFIG_STATUS <<_ACEOF
    7926 
    7927 #
    7928 # CONFIG_FILES section.
    7929 #
    7930 
    7931 # No need to generate the scripts if there are no CONFIG_FILES.
    7932 # This happens for instance when ./config.status config.h
    7933 if test -n "\$CONFIG_FILES"; then
    7934   # Protect against being on the right side of a sed subst in config.status.
    7935   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    7936    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    7937 s,@SHELL@,$SHELL,;t t
    7938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    7939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    7940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    7941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    7942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    7943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    7944 s,@exec_prefix@,$exec_prefix,;t t
    7945 s,@prefix@,$prefix,;t t
    7946 s,@program_transform_name@,$program_transform_name,;t t
    7947 s,@bindir@,$bindir,;t t
    7948 s,@sbindir@,$sbindir,;t t
    7949 s,@libexecdir@,$libexecdir,;t t
    7950 s,@datadir@,$datadir,;t t
    7951 s,@sysconfdir@,$sysconfdir,;t t
    7952 s,@sharedstatedir@,$sharedstatedir,;t t
    7953 s,@localstatedir@,$localstatedir,;t t
    7954 s,@libdir@,$libdir,;t t
    7955 s,@includedir@,$includedir,;t t
    7956 s,@oldincludedir@,$oldincludedir,;t t
    7957 s,@infodir@,$infodir,;t t
    7958 s,@mandir@,$mandir,;t t
    7959 s,@build_alias@,$build_alias,;t t
    7960 s,@host_alias@,$host_alias,;t t
    7961 s,@target_alias@,$target_alias,;t t
    7962 s,@DEFS@,$DEFS,;t t
    7963 s,@ECHO_C@,$ECHO_C,;t t
    7964 s,@ECHO_N@,$ECHO_N,;t t
    7965 s,@ECHO_T@,$ECHO_T,;t t
    7966 s,@LIBS@,$LIBS,;t t
    7967 s,@PACKAGE@,$PACKAGE,;t t
    7968 s,@VERSION@,$VERSION,;t t
    7969 s,@USE_FASTCGI@,$USE_FASTCGI,;t t
    7970 s,@USE_LANGACTION@,$USE_LANGACTION,;t t
    7971 s,@USE_CORBA@,$USE_CORBA,;t t
    7972 s,@MICO_DIR@,$MICO_DIR,;t t
    7973 s,@USE_Z3950@,$USE_Z3950,;t t
    7974 s,@USE_YAZ@,$USE_YAZ,;t t
    7975 s,@USE_JDBM@,$USE_JDBM,;t t
    7976 s,@USE_GDBM@,$USE_GDBM,;t t
    7977 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    7978 s,@USE_SQLITE@,$USE_SQLITE,;t t
    7979 s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
    7980 s,@ENABLE_MG@,$ENABLE_MG,;t t
    7981 s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
    7982 s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
    7983 s,@LDFLAGS@,$LDFLAGS,;t t
    7984 s,@CFLAGS@,$CFLAGS,;t t
    7985 s,@CC@,$CC,;t t
    7986 s,@CPPFLAGS@,$CPPFLAGS,;t t
    7987 s,@ac_ct_CC@,$ac_ct_CC,;t t
    7988 s,@EXEEXT@,$EXEEXT,;t t
    7989 s,@OBJEXT@,$OBJEXT,;t t
    7990 s,@CXX@,$CXX,;t t
    7991 s,@CXXFLAGS@,$CXXFLAGS,;t t
    7992 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    7993 s,@AWK@,$AWK,;t t
    7994 s,@YACC@,$YACC,;t t
    7995 s,@build@,$build,;t t
    7996 s,@build_cpu@,$build_cpu,;t t
    7997 s,@build_vendor@,$build_vendor,;t t
    7998 s,@build_os@,$build_os,;t t
    7999 s,@host@,$host,;t t
    8000 s,@host_cpu@,$host_cpu,;t t
    8001 s,@host_vendor@,$host_vendor,;t t
    8002 s,@host_os@,$host_os,;t t
    8003 s,@target@,$target,;t t
    8004 s,@target_cpu@,$target_cpu,;t t
    8005 s,@target_vendor@,$target_vendor,;t t
    8006 s,@target_os@,$target_os,;t t
    8007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    8008 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    8009 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    8010 s,@LN_S@,$LN_S,;t t
    8011 s,@SET_MAKE@,$SET_MAKE,;t t
    8012 s,@RANLIB@,$RANLIB,;t t
    8013 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    8014 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    8015 s,@MICO_VER@,$MICO_VER,;t t
    8016 s,@CPP@,$CPP,;t t
    8017 s,@EGREP@,$EGREP,;t t
    8018 s,@U@,$U,;t t
    8019 s,@ANSI2KNR@,$ANSI2KNR,;t t
    8020 s,@ALLOCA@,$ALLOCA,;t t
    8021 s,@LIBOBJS@,$LIBOBJS,;t t
    8022 s,@STATIC@,$STATIC,;t t
    8023 s,@gsdlos@,$gsdlos,;t t
    8024 s,@MODULEDIRS@,$MODULEDIRS,;t t
    8025 s,@subdirs@,$subdirs,;t t
    8026 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    8027 CEOF
    8028 
    8029 _ACEOF
    8030 
    8031   cat >>$CONFIG_STATUS <<\_ACEOF
    8032   # Split the substitutions into bite-sized pieces for seds with
    8033   # small command number limits, like on Digital OSF/1 and HP-UX.
    8034   ac_max_sed_lines=48
    8035   ac_sed_frag=1 # Number of current file.
    8036   ac_beg=1 # First line for current file.
    8037   ac_end=$ac_max_sed_lines # Line after last line for current file.
    8038   ac_more_lines=:
    8039   ac_sed_cmds=
    8040   while $ac_more_lines; do
    8041     if test $ac_beg -gt 1; then
    8042       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    8043     else
    8044       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7492' >>$CONFIG_STATUS || ac_write_fail=1
     7493rm -f conf$$subs.awk
     7494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7495_ACAWK
     7496cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     7497  for (key in S) S_is_set[key] = 1
     7498  FS = ""
     7499
     7500}
     7501{
     7502  line = $ 0
     7503  nfields = split(line, field, "@")
     7504  substed = 0
     7505  len = length(field[1])
     7506  for (i = 2; i < nfields; i++) {
     7507    key = field[i]
     7508    keylen = length(key)
     7509    if (S_is_set[key]) {
     7510      value = S[key]
     7511      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     7512      len += length(value) + length(field[++i])
     7513      substed = 1
     7514    } else
     7515      len += 1 + keylen
     7516  }
     7517
     7518  print line
     7519}
     7520
     7521_ACAWK
     7522_ACEOF
     7523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7524if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     7525  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     7526else
     7527  cat
     7528fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     7529  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7530_ACEOF
     7531
     7532# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7533# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7534# trailing colons and then remove the whole line if VPATH becomes empty
     7535# (actually we leave an empty line to preserve line numbers).
     7536if test "x$srcdir" = x.; then
     7537  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7538h
     7539s///
     7540s/^/:/
     7541s/[  ]*$/:/
     7542s/:\$(srcdir):/:/g
     7543s/:\${srcdir}:/:/g
     7544s/:@srcdir@:/:/g
     7545s/^:*//
     7546s/:*$//
     7547x
     7548s/\(=[   ]*\).*/\1/
     7549G
     7550s/\n//
     7551s/^[^=]*=[   ]*$//
     7552}'
     7553fi
     7554
     7555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7556fi # test -n "$CONFIG_FILES"
     7557
     7558# Set up the scripts for CONFIG_HEADERS section.
     7559# No need to generate them if there are no CONFIG_HEADERS.
     7560# This happens for instance with `./config.status Makefile'.
     7561if test -n "$CONFIG_HEADERS"; then
     7562cat >"$tmp/defines.awk" <<\_ACAWK ||
     7563BEGIN {
     7564_ACEOF
     7565
     7566# Transform confdefs.h into an awk script `defines.awk', embedded as
     7567# here-document in config.status, that substitutes the proper values into
     7568# config.h.in to produce config.h.
     7569
     7570# Create a delimiter string that does not exist in confdefs.h, to ease
     7571# handling of long lines.
     7572ac_delim='%!_!# '
     7573for ac_last_try in false false :; do
     7574  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7575  if test -z "$ac_t"; then
     7576    break
     7577  elif $ac_last_try; then
     7578    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7579  else
     7580    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7581  fi
     7582done
     7583
     7584# For the awk script, D is an array of macro values keyed by name,
     7585# likewise P contains macro parameters if any.  Preserve backslash
     7586# newline sequences.
     7587
     7588ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7589sed -n '
     7590s/.\{148\}/&'"$ac_delim"'/g
     7591t rset
     7592:rset
     7593s/^[     ]*#[    ]*define[   ][  ]*/ /
     7594t def
     7595d
     7596:def
     7597s/\\$//
     7598t bsnl
     7599s/["\\]/\\&/g
     7600s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7601D["\1"]=" \3"/p
     7602s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7603d
     7604:bsnl
     7605s/["\\]/\\&/g
     7606s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7607D["\1"]=" \3\\\\\\n"\\/p
     7608t cont
     7609s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7610t cont
     7611d
     7612:cont
     7613n
     7614s/.\{148\}/&'"$ac_delim"'/g
     7615t clear
     7616:clear
     7617s/\\$//
     7618t bsnlc
     7619s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7620d
     7621:bsnlc
     7622s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7623b cont
     7624' <confdefs.h | sed '
     7625s/'"$ac_delim"'/"\\\
     7626"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7627
     7628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7629  for (key in D) D_is_set[key] = 1
     7630  FS = ""
     7631}
     7632/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7633  line = \$ 0
     7634  split(line, arg, " ")
     7635  if (arg[1] == "#") {
     7636    defundef = arg[2]
     7637    mac1 = arg[3]
     7638  } else {
     7639    defundef = substr(arg[1], 2)
     7640    mac1 = arg[2]
     7641  }
     7642  split(mac1, mac2, "(") #)
     7643  macro = mac2[1]
     7644  prefix = substr(line, 1, index(line, defundef) - 1)
     7645  if (D_is_set[macro]) {
     7646    # Preserve the white space surrounding the "#".
     7647    print prefix "define", macro P[macro] D[macro]
     7648    next
     7649  } else {
     7650    # Replace #undef with comments.  This is necessary, for example,
     7651    # in the case of _POSIX_SOURCE, which is predefined and required
     7652    # on some systems where configure will not decide to define it.
     7653    if (defundef == "undef") {
     7654      print "/*", prefix defundef, macro, "*/"
     7655      next
     7656    }
     7657  }
     7658}
     7659{ print }
     7660_ACAWK
     7661_ACEOF
     7662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7663  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7664fi # test -n "$CONFIG_HEADERS"
     7665
     7666
     7667eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
     7668shift
     7669for ac_tag
     7670do
     7671  case $ac_tag in
     7672  :[FHLC]) ac_mode=$ac_tag; continue;;
     7673  esac
     7674  case $ac_mode$ac_tag in
     7675  :[FHL]*:*);;
     7676  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7677  :[FH]-) ac_tag=-:-;;
     7678  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7679  esac
     7680  ac_save_IFS=$IFS
     7681  IFS=:
     7682  set x $ac_tag
     7683  IFS=$ac_save_IFS
     7684  shift
     7685  ac_file=$1
     7686  shift
     7687
     7688  case $ac_mode in
     7689  :L) ac_source=$1;;
     7690  :[FH])
     7691    ac_file_inputs=
     7692    for ac_f
     7693    do
     7694      case $ac_f in
     7695      -) ac_f="$tmp/stdin";;
     7696      *) # Look for the file first in the build tree, then in the source tree
     7697     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7698     # because $ac_f cannot contain `:'.
     7699     test -f "$ac_f" ||
     7700       case $ac_f in
     7701       [\\/$]*) false;;
     7702       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7703       esac ||
     7704       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7705      esac
     7706      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7707      as_fn_append ac_file_inputs " '$ac_f'"
     7708    done
     7709
     7710    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7711    # use $as_me), people would be surprised to read:
     7712    #    /* config.h.  Generated by config.status.  */
     7713    configure_input='Generated from '`
     7714      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7715    `' by configure.'
     7716    if test x"$ac_file" != x-; then
     7717      configure_input="$ac_file.  $configure_input"
     7718      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7719$as_echo "$as_me: creating $ac_file" >&6;}
    80457720    fi
    8046     if test ! -s $tmp/subs.frag; then
    8047       ac_more_lines=false
    8048     else
    8049       # The purpose of the label and of the branching condition is to
    8050       # speed up the sed processing (if there are no `@' at all, there
    8051       # is no need to browse any of the substitutions).
    8052       # These are the two extra sed commands mentioned above.
    8053       (echo ':t
    8054   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    8055       if test -z "$ac_sed_cmds"; then
    8056     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    8057       else
    8058     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    8059       fi
    8060       ac_sed_frag=`expr $ac_sed_frag + 1`
    8061       ac_beg=$ac_end
    8062       ac_end=`expr $ac_end + $ac_max_sed_lines`
    8063     fi
    8064   done
    8065   if test -z "$ac_sed_cmds"; then
    8066     ac_sed_cmds=cat
    8067   fi
    8068 fi # test -n "$CONFIG_FILES"
    8069 
    8070 _ACEOF
    8071 cat >>$CONFIG_STATUS <<\_ACEOF
    8072 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    8073   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8074   case $ac_file in
    8075   - | *:- | *:-:* ) # input from stdin
    8076     cat >$tmp/stdin
    8077     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8078     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8079   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8080     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8081   * )   ac_file_in=$ac_file.in ;;
     7721    # Neutralize special characters interpreted by sed in replacement strings.
     7722    case $configure_input in #(
     7723    *\&* | *\|* | *\\* )
     7724       ac_sed_conf_input=`$as_echo "$configure_input" |
     7725       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7726    *) ac_sed_conf_input=$configure_input;;
     7727    esac
     7728
     7729    case $ac_tag in
     7730    *:-:* | *:-) cat >"$tmp/stdin" \
     7731      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7732    esac
     7733    ;;
    80827734  esac
    80837735
    8084   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    8085   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7736  ac_dir=`$as_dirname -- "$ac_file" ||
    80867737$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    80877738     X"$ac_file" : 'X\(//\)[^/]' \| \
    80887739     X"$ac_file" : 'X\(//\)$' \| \
    8089      X"$ac_file" : 'X\(/\)' \| \
    8090      .     : '\(.\)' 2>/dev/null ||
    8091 echo X"$ac_file" |
    8092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8093       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8094       /^X\(\/\/\)$/{ s//\1/; q; }
    8095       /^X\(\/\).*/{ s//\1/; q; }
    8096       s/.*/./; q'`
    8097   { if $as_mkdir_p; then
    8098     mkdir -p "$ac_dir"
    8099   else
    8100     as_dir="$ac_dir"
    8101     as_dirs=
    8102     while test ! -d "$as_dir"; do
    8103       as_dirs="$as_dir $as_dirs"
    8104       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8106      X"$as_dir" : 'X\(//\)[^/]' \| \
    8107      X"$as_dir" : 'X\(//\)$' \| \
    8108      X"$as_dir" : 'X\(/\)' \| \
    8109      .     : '\(.\)' 2>/dev/null ||
    8110 echo X"$as_dir" |
    8111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8112       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8113       /^X\(\/\/\)$/{ s//\1/; q; }
    8114       /^X\(\/\).*/{ s//\1/; q; }
    8115       s/.*/./; q'`
    8116     done
    8117     test ! -n "$as_dirs" || mkdir $as_dirs
    8118   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8120    { (exit 1); exit 1; }; }; }
    8121 
     7740     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7741$as_echo X"$ac_file" |
     7742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7743        s//\1/
     7744        q
     7745      }
     7746      /^X\(\/\/\)[^/].*/{
     7747        s//\1/
     7748        q
     7749      }
     7750      /^X\(\/\/\)$/{
     7751        s//\1/
     7752        q
     7753      }
     7754      /^X\(\/\).*/{
     7755        s//\1/
     7756        q
     7757      }
     7758      s/.*/./; q'`
     7759  as_dir="$ac_dir"; as_fn_mkdir_p
    81227760  ac_builddir=.
    81237761
    8124 if test "$ac_dir" != .; then
    8125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8126   # A "../" for each directory in $ac_dir_suffix.
    8127   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8128 else
    8129   ac_dir_suffix= ac_top_builddir=
    8130 fi
     7762case "$ac_dir" in
     7763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7764*)
     7765  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7766  # A ".." for each directory in $ac_dir_suffix.
     7767  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7768  case $ac_top_builddir_sub in
     7769  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7770  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7771  esac ;;
     7772esac
     7773ac_abs_top_builddir=$ac_pwd
     7774ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7775# for backward compatibility:
     7776ac_top_builddir=$ac_top_build_prefix
    81317777
    81327778case $srcdir in
    8133   .)  # No --srcdir option.  We are building in place.
     7779  .)  # We are building in place.
    81347780    ac_srcdir=.
    8135     if test -z "$ac_top_builddir"; then
    8136        ac_top_srcdir=.
    8137     else
    8138        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8139     fi ;;
    8140   [\\/]* | ?:[\\/]* )  # Absolute path.
     7781    ac_top_srcdir=$ac_top_builddir_sub
     7782    ac_abs_top_srcdir=$ac_pwd ;;
     7783  [\\/]* | ?:[\\/]* )  # Absolute name.
    81417784    ac_srcdir=$srcdir$ac_dir_suffix;
    8142     ac_top_srcdir=$srcdir ;;
    8143   *) # Relative path.
    8144     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8145     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7785    ac_top_srcdir=$srcdir
     7786    ac_abs_top_srcdir=$srcdir ;;
     7787  *) # Relative name.
     7788    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7789    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7790    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    81467791esac
    8147 
    8148 # Do not use `cd foo && pwd` to compute absolute paths, because
    8149 # the directories may not exist.
    8150 case `pwd` in
    8151 .) ac_abs_builddir="$ac_dir";;
    8152 *)
    8153   case "$ac_dir" in
    8154   .) ac_abs_builddir=`pwd`;;
    8155   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8156   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8157   esac;;
    8158 esac
    8159 case $ac_abs_builddir in
    8160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8161 *)
    8162   case ${ac_top_builddir}. in
    8163   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8164   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8165   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8166   esac;;
    8167 esac
    8168 case $ac_abs_builddir in
    8169 .) ac_abs_srcdir=$ac_srcdir;;
    8170 *)
    8171   case $ac_srcdir in
    8172   .) ac_abs_srcdir=$ac_abs_builddir;;
    8173   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8174   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8175   esac;;
    8176 esac
    8177 case $ac_abs_builddir in
    8178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8179 *)
    8180   case $ac_top_srcdir in
    8181   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8182   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8183   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8184   esac;;
    8185 esac
    8186 
     7792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7793
     7794
     7795  case $ac_mode in
     7796  :F)
     7797  #
     7798  # CONFIG_FILE
     7799  #
    81877800
    81887801  case $INSTALL in
    81897802  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    8190   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7803  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    81917804  esac
    8192 
    8193   if test x"$ac_file" != x-; then
    8194     { echo "$as_me:$LINENO: creating $ac_file" >&5
    8195 echo "$as_me: creating $ac_file" >&6;}
    8196     rm -f "$ac_file"
    8197   fi
    8198   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8199   # use $as_me), people would be surprised to read:
    8200   #    /* config.h.  Generated by config.status.  */
    8201   if test x"$ac_file" = x-; then
    8202     configure_input=
    8203   else
    8204     configure_input="$ac_file.  "
    8205   fi
    8206   configure_input=$configure_input"Generated from `echo $ac_file_in |
    8207                      sed 's,.*/,,'` by configure."
    8208 
    8209   # First look for the input files in the build tree, otherwise in the
    8210   # src tree.
    8211   ac_file_inputs=`IFS=:
    8212     for f in $ac_file_in; do
    8213       case $f in
    8214       -) echo $tmp/stdin ;;
    8215       [\\/$]*)
    8216      # Absolute (can't be DOS-style, as IFS=:)
    8217      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8218 echo "$as_me: error: cannot find input file: $f" >&2;}
    8219    { (exit 1); exit 1; }; }
    8220      echo "$f";;
    8221       *) # Relative
    8222      if test -f "$f"; then
    8223        # Build tree
    8224        echo "$f"
    8225      elif test -f "$srcdir/$f"; then
    8226        # Source tree
    8227        echo "$srcdir/$f"
    8228      else
    8229        # /dev/null tree
    8230        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8231 echo "$as_me: error: cannot find input file: $f" >&2;}
    8232    { (exit 1); exit 1; }; }
    8233      fi;;
    8234       esac
    8235     done` || { (exit 1); exit 1; }
    8236 _ACEOF
    8237 cat >>$CONFIG_STATUS <<_ACEOF
    8238   sed "$ac_vpsub
     7805_ACEOF
     7806
     7807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7808# If the template does not know about datarootdir, expand it.
     7809# FIXME: This hack should be removed a few years after 2.60.
     7810ac_datarootdir_hack=; ac_datarootdir_seen=
     7811ac_sed_dataroot='
     7812/datarootdir/ {
     7813  p
     7814  q
     7815}
     7816/@datadir@/p
     7817/@docdir@/p
     7818/@infodir@/p
     7819/@localedir@/p
     7820/@mandir@/p'
     7821case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7822*datarootdir*) ac_datarootdir_seen=yes;;
     7823*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7824  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7825$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7826_ACEOF
     7827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7828  ac_datarootdir_hack='
     7829  s&@datadir@&$datadir&g
     7830  s&@docdir@&$docdir&g
     7831  s&@infodir@&$infodir&g
     7832  s&@localedir@&$localedir&g
     7833  s&@mandir@&$mandir&g
     7834  s&\\\${datarootdir}&$datarootdir&g' ;;
     7835esac
     7836_ACEOF
     7837
     7838# Neutralize VPATH when `$srcdir' = `.'.
     7839# Shell code in configure.ac might set extrasub.
     7840# FIXME: do we really want to maintain this feature?
     7841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7842ac_sed_extra="$ac_vpsub
    82397843$extrasub
    82407844_ACEOF
    8241 cat >>$CONFIG_STATUS <<\_ACEOF
     7845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    82427846:t
    82437847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    8244 s,@configure_input@,$configure_input,;t t
    8245 s,@srcdir@,$ac_srcdir,;t t
    8246 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    8247 s,@top_srcdir@,$ac_top_srcdir,;t t
    8248 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    8249 s,@builddir@,$ac_builddir,;t t
    8250 s,@abs_builddir@,$ac_abs_builddir,;t t
    8251 s,@top_builddir@,$ac_top_builddir,;t t
    8252 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    8253 s,@INSTALL@,$ac_INSTALL,;t t
    8254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    8255   rm -f $tmp/stdin
     7848s|@configure_input@|$ac_sed_conf_input|;t t
     7849s&@top_builddir@&$ac_top_builddir_sub&;t t
     7850s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7851s&@srcdir@&$ac_srcdir&;t t
     7852s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7853s&@top_srcdir@&$ac_top_srcdir&;t t
     7854s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7855s&@builddir@&$ac_builddir&;t t
     7856s&@abs_builddir@&$ac_abs_builddir&;t t
     7857s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7858s&@INSTALL@&$ac_INSTALL&;t t
     7859$ac_datarootdir_hack
     7860"
     7861eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7862  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7863
     7864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7865  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7866  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7868which seems to be undefined.  Please make sure it is defined" >&5
     7869$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7870which seems to be undefined.  Please make sure it is defined" >&2;}
     7871
     7872  rm -f "$tmp/stdin"
     7873  case $ac_file in
     7874  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7875  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7876  esac \
     7877  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7878 ;;
     7879  :H)
     7880  #
     7881  # CONFIG_HEADER
     7882  #
    82567883  if test x"$ac_file" != x-; then
    8257     mv $tmp/out $ac_file
    8258   else
    8259     cat $tmp/out
    8260     rm -f $tmp/out
    8261   fi
    8262 
    8263 done
    8264 _ACEOF
    8265 cat >>$CONFIG_STATUS <<\_ACEOF
    8266 
    8267 #
    8268 # CONFIG_HEADER section.
    8269 #
    8270 
    8271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    8272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    8273 #
    8274 # ac_d sets the value in "#define NAME VALUE" lines.
    8275 ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
    8276 ac_dB='[     ].*$,\1#\2'
    8277 ac_dC=' '
    8278 ac_dD=',;t'
    8279 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    8280 ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    8281 ac_uB='$,\1#\2define\3'
    8282 ac_uC=' '
    8283 ac_uD=',;t'
    8284 
    8285 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    8286   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8287   case $ac_file in
    8288   - | *:- | *:-:* ) # input from stdin
    8289     cat >$tmp/stdin
    8290     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8291     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8292   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8293     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8294   * )   ac_file_in=$ac_file.in ;;
    8295   esac
    8296 
    8297   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    8298 echo "$as_me: creating $ac_file" >&6;}
    8299 
    8300   # First look for the input files in the build tree, otherwise in the
    8301   # src tree.
    8302   ac_file_inputs=`IFS=:
    8303     for f in $ac_file_in; do
    8304       case $f in
    8305       -) echo $tmp/stdin ;;
    8306       [\\/$]*)
    8307      # Absolute (can't be DOS-style, as IFS=:)
    8308      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8309 echo "$as_me: error: cannot find input file: $f" >&2;}
    8310    { (exit 1); exit 1; }; }
    8311      # Do quote $f, to prevent DOS paths from being IFS'd.
    8312      echo "$f";;
    8313       *) # Relative
    8314      if test -f "$f"; then
    8315        # Build tree
    8316        echo "$f"
    8317      elif test -f "$srcdir/$f"; then
    8318        # Source tree
    8319        echo "$srcdir/$f"
    8320      else
    8321        # /dev/null tree
    8322        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8323 echo "$as_me: error: cannot find input file: $f" >&2;}
    8324    { (exit 1); exit 1; }; }
    8325      fi;;
    8326       esac
    8327     done` || { (exit 1); exit 1; }
    8328   # Remove the trailing spaces.
    8329   sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
    8330 
    8331 _ACEOF
    8332 
    8333 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    8334 # `conftest.undefs', that substitutes the proper values into
    8335 # config.h.in to produce config.h.  The first handles `#define'
    8336 # templates, and the second `#undef' templates.
    8337 # And first: Protect against being on the right side of a sed subst in
    8338 # config.status.  Protect against being in an unquoted here document
    8339 # in config.status.
    8340 rm -f conftest.defines conftest.undefs
    8341 # Using a here document instead of a string reduces the quoting nightmare.
    8342 # Putting comments in sed scripts is not portable.
    8343 #
    8344 # `end' is used to avoid that the second main sed command (meant for
    8345 # 0-ary CPP macros) applies to n-ary macro definitions.
    8346 # See the Autoconf documentation for `clear'.
    8347 cat >confdef2sed.sed <<\_ACEOF
    8348 s/[\\&,]/\\&/g
    8349 s,[\\$`],\\&,g
    8350 t clear
    8351 : clear
    8352 s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    8353 t end
    8354 s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    8355 : end
    8356 _ACEOF
    8357 # If some macros were called several times there might be several times
    8358 # the same #defines, which is useless.  Nevertheless, we may not want to
    8359 # sort them, since we want the *last* AC-DEFINE to be honored.
    8360 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    8361 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    8362 rm -f confdef2sed.sed
    8363 
    8364 # This sed command replaces #undef with comments.  This is necessary, for
    8365 # example, in the case of _POSIX_SOURCE, which is predefined and required
    8366 # on some systems where configure will not decide to define it.
    8367 cat >>conftest.undefs <<\_ACEOF
    8368 s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    8369 _ACEOF
    8370 
    8371 # Break up conftest.defines because some shells have a limit on the size
    8372 # of here documents, and old seds have small limits too (100 cmds).
    8373 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    8374 echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    8375 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    8376 echo '  :' >>$CONFIG_STATUS
    8377 rm -f conftest.tail
    8378 while grep . conftest.defines >/dev/null
    8379 do
    8380   # Write a limited-size here document to $tmp/defines.sed.
    8381   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    8382   # Speed up: don't consider the non `#define' lines.
    8383   echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    8384   # Work around the forget-to-reset-the-flag bug.
    8385   echo 't clr' >>$CONFIG_STATUS
    8386   echo ': clr' >>$CONFIG_STATUS
    8387   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    8388   echo 'CEOF
    8389   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    8390   rm -f $tmp/in
    8391   mv $tmp/out $tmp/in
    8392 ' >>$CONFIG_STATUS
    8393   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    8394   rm -f conftest.defines
    8395   mv conftest.tail conftest.defines
    8396 done
    8397 rm -f conftest.defines
    8398 echo '  fi # grep' >>$CONFIG_STATUS
    8399 echo >>$CONFIG_STATUS
    8400 
    8401 # Break up conftest.undefs because some shells have a limit on the size
    8402 # of here documents, and old seds have small limits too (100 cmds).
    8403 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    8404 rm -f conftest.tail
    8405 while grep . conftest.undefs >/dev/null
    8406 do
    8407   # Write a limited-size here document to $tmp/undefs.sed.
    8408   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    8409   # Speed up: don't consider the non `#undef'
    8410   echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    8411   # Work around the forget-to-reset-the-flag bug.
    8412   echo 't clr' >>$CONFIG_STATUS
    8413   echo ': clr' >>$CONFIG_STATUS
    8414   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    8415   echo 'CEOF
    8416   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    8417   rm -f $tmp/in
    8418   mv $tmp/out $tmp/in
    8419 ' >>$CONFIG_STATUS
    8420   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    8421   rm -f conftest.undefs
    8422   mv conftest.tail conftest.undefs
    8423 done
    8424 rm -f conftest.undefs
    8425 
    8426 cat >>$CONFIG_STATUS <<\_ACEOF
    8427   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8428   # use $as_me), people would be surprised to read:
    8429   #    /* config.h.  Generated by config.status.  */
    8430   if test x"$ac_file" = x-; then
    8431     echo "/* Generated by configure.  */" >$tmp/config.h
    8432   else
    8433     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    8434   fi
    8435   cat $tmp/in >>$tmp/config.h
    8436   rm -f $tmp/in
    8437   if test x"$ac_file" != x-; then
    8438     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    8439       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    8440 echo "$as_me: $ac_file is unchanged" >&6;}
     7884    {
     7885      $as_echo "/* $configure_input  */" \
     7886      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7887    } >"$tmp/config.h" \
     7888      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7889    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7890      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7891$as_echo "$as_me: $ac_file is unchanged" >&6;}
    84417892    else
    8442       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    8443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8444      X"$ac_file" : 'X\(//\)[^/]' \| \
    8445      X"$ac_file" : 'X\(//\)$' \| \
    8446      X"$ac_file" : 'X\(/\)' \| \
    8447      .     : '\(.\)' 2>/dev/null ||
    8448 echo X"$ac_file" |
    8449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8450       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8451       /^X\(\/\/\)$/{ s//\1/; q; }
    8452       /^X\(\/\).*/{ s//\1/; q; }
    8453       s/.*/./; q'`
    8454       { if $as_mkdir_p; then
    8455     mkdir -p "$ac_dir"
    8456   else
    8457     as_dir="$ac_dir"
    8458     as_dirs=
    8459     while test ! -d "$as_dir"; do
    8460       as_dirs="$as_dir $as_dirs"
    8461       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8463      X"$as_dir" : 'X\(//\)[^/]' \| \
    8464      X"$as_dir" : 'X\(//\)$' \| \
    8465      X"$as_dir" : 'X\(/\)' \| \
    8466      .     : '\(.\)' 2>/dev/null ||
    8467 echo X"$as_dir" |
    8468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8469       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8470       /^X\(\/\/\)$/{ s//\1/; q; }
    8471       /^X\(\/\).*/{ s//\1/; q; }
    8472       s/.*/./; q'`
    8473     done
    8474     test ! -n "$as_dirs" || mkdir $as_dirs
    8475   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8476 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8477    { (exit 1); exit 1; }; }; }
    8478 
    8479       rm -f $ac_file
    8480       mv $tmp/config.h $ac_file
     7893      rm -f "$ac_file"
     7894      mv "$tmp/config.h" "$ac_file" \
     7895    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    84817896    fi
    84827897  else
    8483     cat $tmp/config.h
    8484     rm -f $tmp/config.h
     7898    $as_echo "/* $configure_input  */" \
     7899      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7900      || as_fn_error $? "could not create -" "$LINENO" 5
    84857901  fi
    8486 done
    8487 _ACEOF
    8488 
    8489 cat >>$CONFIG_STATUS <<\_ACEOF
    8490 
    8491 { (exit 0); exit 0; }
    8492 _ACEOF
    8493 chmod +x $CONFIG_STATUS
     7902 ;;
     7903
     7904
     7905  esac
     7906
     7907done # for ac_tag
     7908
     7909
     7910as_fn_exit 0
     7911_ACEOF
    84947912ac_clean_files=$ac_clean_files_save
     7913
     7914test $ac_write_fail = 0 ||
     7915  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    84957916
    84967917
     
    85137934  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    85147935  # would make configure fail if this is the last instruction.
    8515   $ac_cs_success || { (exit 1); exit 1; }
     7936  $ac_cs_success || as_fn_exit 1
    85167937fi
    85177938
     
    85217942if test "$no_recursion" != yes; then
    85227943
    8523   # Remove --cache-file and --srcdir arguments so they do not pile up.
     7944  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
     7945  # so they do not pile up.
    85247946  ac_sub_configure_args=
    85257947  ac_prev=
    8526   for ac_arg in $ac_configure_args; do
     7948  eval "set x $ac_configure_args"
     7949  shift
     7950  for ac_arg
     7951  do
    85277952    if test -n "$ac_prev"; then
    85287953      ac_prev=
     
    85477972    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    85487973      ;;
    8549     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     7974    --disable-option-checking)
     7975      ;;
     7976    *)
     7977      case $ac_arg in
     7978      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7979      esac
     7980      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    85507981    esac
    85517982  done
     
    85537984  # Always prepend --prefix to ensure using the same prefix
    85547985  # in subdir configurations.
    8555   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     7986  ac_arg="--prefix=$prefix"
     7987  case $ac_arg in
     7988  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7989  esac
     7990  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
     7991
     7992  # Pass --silent
     7993  if test "$silent" = yes; then
     7994    ac_sub_configure_args="--silent $ac_sub_configure_args"
     7995  fi
     7996
     7997  # Always prepend --disable-option-checking to silence warnings, since
     7998  # different subdirs can have different --enable and --with options.
     7999  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
    85568000
    85578001  ac_popdir=`pwd`
     
    85608004    # Do not complain, so a configure script can configure whichever
    85618005    # parts of a large source tree are present.
    8562     test -d $srcdir/$ac_dir || continue
    8563 
    8564     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
    8565 echo "$as_me: configuring in $ac_dir" >&6;}
    8566     { if $as_mkdir_p; then
    8567     mkdir -p "$ac_dir"
    8568   else
    8569     as_dir="$ac_dir"
    8570     as_dirs=
    8571     while test ! -d "$as_dir"; do
    8572       as_dirs="$as_dir $as_dirs"
    8573       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8575      X"$as_dir" : 'X\(//\)[^/]' \| \
    8576      X"$as_dir" : 'X\(//\)$' \| \
    8577      X"$as_dir" : 'X\(/\)' \| \
    8578      .     : '\(.\)' 2>/dev/null ||
    8579 echo X"$as_dir" |
    8580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8581       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8582       /^X\(\/\/\)$/{ s//\1/; q; }
    8583       /^X\(\/\).*/{ s//\1/; q; }
    8584       s/.*/./; q'`
    8585     done
    8586     test ! -n "$as_dirs" || mkdir $as_dirs
    8587   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8589    { (exit 1); exit 1; }; }; }
    8590 
     8006    test -d "$srcdir/$ac_dir" || continue
     8007
     8008    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
     8009    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
     8010    $as_echo "$ac_msg" >&6
     8011    as_dir="$ac_dir"; as_fn_mkdir_p
    85918012    ac_builddir=.
    85928013
    8593 if test "$ac_dir" != .; then
    8594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8595   # A "../" for each directory in $ac_dir_suffix.
    8596   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8597 else
    8598   ac_dir_suffix= ac_top_builddir=
    8599 fi
     8014case "$ac_dir" in
     8015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8016*)
     8017  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     8018  # A ".." for each directory in $ac_dir_suffix.
     8019  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     8020  case $ac_top_builddir_sub in
     8021  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8022  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     8023  esac ;;
     8024esac
     8025ac_abs_top_builddir=$ac_pwd
     8026ac_abs_builddir=$ac_pwd$ac_dir_suffix
     8027# for backward compatibility:
     8028ac_top_builddir=$ac_top_build_prefix
    86008029
    86018030case $srcdir in
    8602   .)  # No --srcdir option.  We are building in place.
     8031  .)  # We are building in place.
    86038032    ac_srcdir=.
    8604     if test -z "$ac_top_builddir"; then
    8605        ac_top_srcdir=.
     8033    ac_top_srcdir=$ac_top_builddir_sub
     8034    ac_abs_top_srcdir=$ac_pwd ;;
     8035  [\\/]* | ?:[\\/]* )  # Absolute name.
     8036    ac_srcdir=$srcdir$ac_dir_suffix;
     8037    ac_top_srcdir=$srcdir
     8038    ac_abs_top_srcdir=$srcdir ;;
     8039  *) # Relative name.
     8040    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     8041    ac_top_srcdir=$ac_top_build_prefix$srcdir
     8042    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     8043esac
     8044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     8045
     8046
     8047    cd "$ac_dir"
     8048
     8049    # Check for guested configure; otherwise get Cygnus style configure.
     8050    if test -f "$ac_srcdir/configure.gnu"; then
     8051      ac_sub_configure=$ac_srcdir/configure.gnu
     8052    elif test -f "$ac_srcdir/configure"; then
     8053      ac_sub_configure=$ac_srcdir/configure
     8054    elif test -f "$ac_srcdir/configure.in"; then
     8055      # This should be Cygnus configure.
     8056      ac_sub_configure=$ac_aux_dir/configure
    86068057    else
    8607        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8608     fi ;;
    8609   [\\/]* | ?:[\\/]* )  # Absolute path.
    8610     ac_srcdir=$srcdir$ac_dir_suffix;
    8611     ac_top_srcdir=$srcdir ;;
    8612   *) # Relative path.
    8613     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8614     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    8615 esac
    8616 
    8617 # Do not use `cd foo && pwd` to compute absolute paths, because
    8618 # the directories may not exist.
    8619 case `pwd` in
    8620 .) ac_abs_builddir="$ac_dir";;
    8621 *)
    8622   case "$ac_dir" in
    8623   .) ac_abs_builddir=`pwd`;;
    8624   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8625   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8626   esac;;
    8627 esac
    8628 case $ac_abs_builddir in
    8629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8630 *)
    8631   case ${ac_top_builddir}. in
    8632   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8633   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8634   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8635   esac;;
    8636 esac
    8637 case $ac_abs_builddir in
    8638 .) ac_abs_srcdir=$ac_srcdir;;
    8639 *)
    8640   case $ac_srcdir in
    8641   .) ac_abs_srcdir=$ac_abs_builddir;;
    8642   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8643   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8644   esac;;
    8645 esac
    8646 case $ac_abs_builddir in
    8647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8648 *)
    8649   case $ac_top_srcdir in
    8650   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8651   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8652   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8653   esac;;
    8654 esac
    8655 
    8656 
    8657     cd $ac_dir
    8658 
    8659     # Check for guested configure; otherwise get Cygnus style configure.
    8660     if test -f $ac_srcdir/configure.gnu; then
    8661       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
    8662     elif test -f $ac_srcdir/configure; then
    8663       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
    8664     elif test -f $ac_srcdir/configure.in; then
    8665       ac_sub_configure=$ac_configure
    8666     else
    8667       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
    8668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
     8058      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
     8059$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    86698060      ac_sub_configure=
    86708061    fi
     
    86758066      case $cache_file in
    86768067      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    8677       *) # Relative path.
    8678     ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     8068      *) # Relative name.
     8069    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    86798070      esac
    86808071
    8681       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
    8682 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
     8072      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
     8073$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    86838074      # The eval makes quoting arguments work.
    8684       eval $ac_sub_configure $ac_sub_configure_args \
    8685        --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
    8686     { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
    8687 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
    8688    { (exit 1); exit 1; }; }
     8075      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
     8076       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
     8077    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    86898078    fi
    86908079
    8691     cd $ac_popdir
     8080    cd "$ac_popdir"
    86928081  done
    86938082fi
    8694 
    8695 
    8696 
     8083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     8084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     8085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     8086fi
     8087
     8088
     8089
  • main/trunk/greenstone2/runtime-src/configure.in

    r22068 r23356  
    88
    99PACKAGE=gsdl
    10 VERSION=2.82-svn
     10VERSION=2.x-svn
    1111AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    1212AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
     
    7373
    7474dnl
     75dnl Disable all Java compilation
     76dnl
     77AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     78if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     79  ENABLE_JAVA=1
     80  if test "x$JAVA_HOME" != "x" ; then
     81    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     82    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     83    echo "and JAVA respectively"
     84    export JAVA_HOME=
     85  fi
     86else
     87  ENABLE_JAVA=0
     88fi
     89AC_SUBST(ENABLE_JAVA)
     90
     91dnl
    7592dnl Set use of JDBM (enabled by default)
    7693dnl
    7794AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
    78 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     95if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    7996  USE_JDBM=1
    8097  AC_DEFINE(USE_JDBM,[])
     
    161178dnl
    162179AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
    163 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     180if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    164181  ENABLE_LUCENE=1
    165182  AC_DEFINE(ENABLE_LUCENE,[])
     
    181198AC_PROG_CC
    182199AC_PROG_CXX
     200if test $ENABLE_JAVA = "1" ; then
     201  AC_PROG_JAVAC
     202  AC_PROG_JAVA
     203fi
    183204AC_PROG_AWK
    184205AC_PROG_YACC
     
    461482         src/recpt/Makefile \
    462483         src/oaiservr/Makefile \
    463          src/z3950/Makefile"
     484         src/z3950/Makefile \
     485         src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
     486         src/java/org/nzdl/gsdl/Phind/Makefile"
    464487
    465488AC_OUTPUT(packages/Makefile Makefile $srclist $moduleDirs)
  • main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile.in

    r23347 r23356  
    1 
    2 
     1JAVAC = @JAVAC@
     2JAVACFLAGS = @JAVACFLAGS@
    33
    44CLASSES = CURL.class CollageImage.class DisplayImages.class \
     
    1818
    1919%.class : %.java
    20     javac -d . -classpath ../../../.. $<
     20    $(JAVAC) $(JAVACFLAGS) -d . -classpath ../../../.. $<
  • main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind/Makefile.in

    r23347 r23356  
    1 
    2 
     1JAVAC = @JAVAC@
     2JAVACFLAGS = @JAVACFLAGS@
    33
    44CLASSES = Phind.class ResultCanvas.class ResultItemDocument.class \
     
    1919
    2020%.class : %.java
    21     javac -target 1.1 -d . -classpath ../../../.. $<
     21    $(JAVAC) $(JAVACFLAGS) -d . -classpath ../../../.. $<
Note: See TracChangeset for help on using the changeset viewer.