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/build-src
Files:
3 edited
1 moved

Legend:

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

    r16571 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/build-src/configure

    r22058 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 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
     643USE_SQLITE
     644ENABLE_ACCENTFOLD
     645USE_GDBM
     646USE_JDBM
     647ENABLE_JAVA
     648USE_YAZ
     649USE_Z3950
     650MICO_DIR
     651USE_CORBA
     652USE_LANGACTION
     653USE_FASTCGI
     654VERSION
     655PACKAGE
     656target_alias
     657host_alias
     658build_alias
     659LIBS
     660ECHO_T
     661ECHO_N
     662ECHO_C
     663DEFS
     664mandir
     665localedir
     666libdir
     667psdir
     668pdfdir
     669dvidir
     670htmldir
     671infodir
     672docdir
     673oldincludedir
     674includedir
     675localstatedir
     676sharedstatedir
     677sysconfdir
     678datadir
     679datarootdir
     680libexecdir
     681sbindir
     682bindir
     683program_transform_name
     684prefix
     685exec_prefix
     686PACKAGE_URL
     687PACKAGE_BUGREPORT
     688PACKAGE_STRING
     689PACKAGE_VERSION
     690PACKAGE_TARNAME
     691PACKAGE_NAME
     692PATH_SEPARATOR
     693SHELL'
    313694ac_subst_files=''
     695ac_user_opts='
     696enable_option_checking
     697enable_corba
     698with_micodir
     699enable_z3950
     700enable_yaz
     701enable_java
     702enable_jdbm
     703enable_gdbm
     704enable_accentfold
     705enable_sqlite
     706with_dmalloc
     707with_regex
     708'
     709      ac_precious_vars='build_alias
     710host_alias
     711target_alias
     712CC
     713CFLAGS
     714LDFLAGS
     715LIBS
     716CPPFLAGS
     717CXX
     718CXXFLAGS
     719CCC
     720YACC
     721YFLAGS
     722CPP'
     723ac_subdirs_all='packages'
    314724
    315725# Initialize some variables set by options.
    316726ac_init_help=
    317727ac_init_version=false
     728ac_unrecognized_opts=
     729ac_unrecognized_sep=
    318730# The variables have the same names as the options, with
    319731# dashes changed to underlines.
     
    338750# by default will actually change.
    339751# Use braces instead of parens because sh, perl, etc. also accept them.
     752# (The list follows the same order as the GNU Coding Standards.)
    340753bindir='${exec_prefix}/bin'
    341754sbindir='${exec_prefix}/sbin'
    342755libexecdir='${exec_prefix}/libexec'
    343 datadir='${prefix}/share'
     756datarootdir='${prefix}/share'
     757datadir='${datarootdir}'
    344758sysconfdir='${prefix}/etc'
    345759sharedstatedir='${prefix}/com'
    346760localstatedir='${prefix}/var'
    347 libdir='${exec_prefix}/lib'
    348761includedir='${prefix}/include'
    349762oldincludedir='/usr/include'
    350 infodir='${prefix}/info'
    351 mandir='${prefix}/man'
     763docdir='${datarootdir}/doc/${PACKAGE}'
     764infodir='${datarootdir}/info'
     765htmldir='${docdir}'
     766dvidir='${docdir}'
     767pdfdir='${docdir}'
     768psdir='${docdir}'
     769libdir='${exec_prefix}/lib'
     770localedir='${datarootdir}/locale'
     771mandir='${datarootdir}/man'
    352772
    353773ac_prev=
     774ac_dashdash=
    354775for ac_option
    355776do
    356777  # If the previous option needs an argument, assign it.
    357778  if test -n "$ac_prev"; then
    358     eval "$ac_prev=\$ac_option"
     779    eval $ac_prev=\$ac_option
    359780    ac_prev=
    360781    continue
    361782  fi
    362783
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     784  case $ac_option in
     785  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     786  *=)   ac_optarg= ;;
     787  *)    ac_optarg=yes ;;
     788  esac
    364789
    365790  # Accept the important Cygnus configure options, so we can diagnose typos.
    366791
    367   case $ac_option in
     792  case $ac_dashdash$ac_option in
     793  --)
     794    ac_dashdash=yes ;;
    368795
    369796  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    387814    cache_file=config.cache ;;
    388815
    389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     816  -datadir | --datadir | --datadi | --datad)
    390817    ac_prev=datadir ;;
    391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392   | --da=*)
     818  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    393819    datadir=$ac_optarg ;;
    394820
     821  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     822  | --dataroo | --dataro | --datar)
     823    ac_prev=datarootdir ;;
     824  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     825  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     826    datarootdir=$ac_optarg ;;
     827
    395828  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     829    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    397830    # 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" ;;
     831    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     832      as_fn_error $? "invalid feature name: $ac_useropt"
     833    ac_useropt_orig=$ac_useropt
     834    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     835    case $ac_user_opts in
     836      *"
     837"enable_$ac_useropt"
     838"*) ;;
     839      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     840     ac_unrecognized_sep=', ';;
     841    esac
     842    eval enable_$ac_useropt=no ;;
     843
     844  -docdir | --docdir | --docdi | --doc | --do)
     845    ac_prev=docdir ;;
     846  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     847    docdir=$ac_optarg ;;
     848
     849  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     850    ac_prev=dvidir ;;
     851  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     852    dvidir=$ac_optarg ;;
    403853
    404854  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     855    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    406856    # 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 ;;
     857    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     858      as_fn_error $? "invalid feature name: $ac_useropt"
     859    ac_useropt_orig=$ac_useropt
     860    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     861    case $ac_user_opts in
     862      *"
     863"enable_$ac_useropt"
     864"*) ;;
     865      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     866     ac_unrecognized_sep=', ';;
    414867    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     868    eval enable_$ac_useropt=\$ac_optarg ;;
    416869
    417870  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    440893    host_alias=$ac_optarg ;;
    441894
     895  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     896    ac_prev=htmldir ;;
     897  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     898  | --ht=*)
     899    htmldir=$ac_optarg ;;
     900
    442901  -includedir | --includedir | --includedi | --included | --include \
    443902  | --includ | --inclu | --incl | --inc)
     
    464923    libexecdir=$ac_optarg ;;
    465924
     925  -localedir | --localedir | --localedi | --localed | --locale)
     926    ac_prev=localedir ;;
     927  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     928    localedir=$ac_optarg ;;
     929
    466930  -localstatedir | --localstatedir | --localstatedi | --localstated \
    467   | --localstate | --localstat | --localsta | --localst \
    468   | --locals | --local | --loca | --loc | --lo)
     931  | --localstate | --localstat | --localsta | --localst | --locals)
    469932    ac_prev=localstatedir ;;
    470933  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     934  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    473935    localstatedir=$ac_optarg ;;
    474936
     
    535997    program_transform_name=$ac_optarg ;;
    536998
     999  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     1000    ac_prev=pdfdir ;;
     1001  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     1002    pdfdir=$ac_optarg ;;
     1003
     1004  -psdir | --psdir | --psdi | --psd | --ps)
     1005    ac_prev=psdir ;;
     1006  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     1007    psdir=$ac_optarg ;;
     1008
    5371009  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    5381010  | -silent | --silent | --silen | --sile | --sil)
     
    5851057
    5861058  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1059    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5881060    # 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 ;;
     1061    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1062      as_fn_error $? "invalid package name: $ac_useropt"
     1063    ac_useropt_orig=$ac_useropt
     1064    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1065    case $ac_user_opts in
     1066      *"
     1067"with_$ac_useropt"
     1068"*) ;;
     1069      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1070     ac_unrecognized_sep=', ';;
    5961071    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     1072    eval with_$ac_useropt=\$ac_optarg ;;
    5981073
    5991074  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1075    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6011076    # 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" ;;
     1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1078      as_fn_error $? "invalid package name: $ac_useropt"
     1079    ac_useropt_orig=$ac_useropt
     1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1081    case $ac_user_opts in
     1082      *"
     1083"with_$ac_useropt"
     1084"*) ;;
     1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1086     ac_unrecognized_sep=', ';;
     1087    esac
     1088    eval with_$ac_useropt=no ;;
    6071089
    6081090  --x)
     
    6241106    x_libraries=$ac_optarg ;;
    6251107
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     1108  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1109Try \`$0 --help' for more information"
    6291110    ;;
    6301111
     
    6321113    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6331114    # 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'"
     1115    case $ac_envvar in #(
     1116      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1117      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1118    esac
     1119    eval $ac_envvar=\$ac_optarg
    6391120    export $ac_envvar ;;
    6401121
    6411122  *)
    6421123    # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1124    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6441125    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1126      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6461127    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6471128    ;;
     
    6521133if test -n "$ac_prev"; then
    6531134  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
     1135  as_fn_error $? "missing argument to $ac_option"
     1136fi
     1137
     1138if test -n "$ac_unrecognized_opts"; then
     1139  case $enable_option_checking in
     1140    no) ;;
     1141    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1142    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1143  esac
     1144fi
     1145
     1146# Check all directory arguments for consistency.
     1147for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1148        datadir sysconfdir sharedstatedir localstatedir includedir \
     1149        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1150        libdir localedir mandir
    6601151do
    661   eval ac_val=$`echo $ac_var`
     1152  eval ac_val=\$$ac_var
     1153  # Remove trailing slashes.
    6621154  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; }; };;
     1155    */ )
     1156      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1157      eval $ac_var=\$ac_val;;
    6661158  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`
     1159  # Be sure to have absolute directory names.
    6741160  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; }; };;
     1161    [\\/$]* | ?:[\\/]* )  continue;;
     1162    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6781163  esac
     1164  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6791165done
    6801166
     
    6901176  if test "x$build_alias" = x; then
    6911177    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
     1178    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1179    If a cross compiler is detected then cross compile mode will be used" >&2
    6941180  elif test "x$build_alias" != "x$host_alias"; then
    6951181    cross_compiling=yes
     
    7031189
    7041190
     1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1192ac_ls_di=`ls -di .` &&
     1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1194  as_fn_error $? "working directory cannot be determined"
     1195test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1196  as_fn_error $? "pwd does not report name of working directory"
     1197
     1198
    7051199# Find the source files, if location was not specified.
    7061200if test -z "$srcdir"; then
    7071201  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'`
     1202  # Try the directory containing this script, then the parent directory.
     1203  ac_confdir=`$as_dirname -- "$as_myself" ||
     1204$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1205     X"$as_myself" : 'X\(//\)[^/]' \| \
     1206     X"$as_myself" : 'X\(//\)$' \| \
     1207     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1208$as_echo X"$as_myself" |
     1209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1210        s//\1/
     1211        q
     1212      }
     1213      /^X\(\/\/\)[^/].*/{
     1214        s//\1/
     1215        q
     1216      }
     1217      /^X\(\/\/\)$/{
     1218        s//\1/
     1219        q
     1220      }
     1221      /^X\(\/\).*/{
     1222        s//\1/
     1223        q
     1224      }
     1225      s/.*/./; q'`
    7211226  srcdir=$ac_confdir
    722   if test ! -r $srcdir/$ac_unique_file; then
     1227  if test ! -r "$srcdir/$ac_unique_file"; then
    7231228    srcdir=..
    7241229  fi
     
    7261231  ac_srcdir_defaulted=no
    7271232fi
    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
     1233if test ! -r "$srcdir/$ac_unique_file"; then
     1234  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1235  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1236fi
     1237ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1238ac_abs_confdir=`(
     1239    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1240    pwd)`
     1241# When building in place, set srcdir=.
     1242if test "$ac_abs_confdir" = "$ac_pwd"; then
     1243  srcdir=.
     1244fi
     1245# Remove unnecessary trailing slashes from srcdir.
     1246# Double slashes in file names in object file debugging info
     1247# mess up M-x gdb in Emacs.
     1248case $srcdir in
     1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1250esac
     1251for ac_var in $ac_precious_vars; do
     1252  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1253  eval ac_env_${ac_var}_value=\$${ac_var}
     1254  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1255  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1256done
    7811257
    7821258#
     
    8011277      --help=recursive    display the short help of all the included packages
    8021278  -V, --version           display version information and exit
    803   -q, --quiet, --silent   do not print \`checking...' messages
     1279  -q, --quiet, --silent   do not print \`checking ...' messages
    8041280      --cache-file=FILE   cache test results in FILE [disabled]
    8051281  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8071283      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8081284
    809 _ACEOF
    810 
    811   cat <<_ACEOF
    8121285Installation directories:
    8131286  --prefix=PREFIX         install architecture-independent files in PREFIX
    814               [$ac_default_prefix]
     1287                          [$ac_default_prefix]
    8151288  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    816               [PREFIX]
     1289                          [PREFIX]
    8171290
    8181291By default, \`make install' will install all the files in
     
    8241297
    8251298Fine 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]
     1299  --bindir=DIR            user executables [EPREFIX/bin]
     1300  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1301  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1302  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1303  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1304  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1305  --libdir=DIR            object code libraries [EPREFIX/lib]
     1306  --includedir=DIR        C header files [PREFIX/include]
     1307  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1308  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1309  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1310  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1311  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1312  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1313  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1314  --htmldir=DIR           html documentation [DOCDIR]
     1315  --dvidir=DIR            dvi documentation [DOCDIR]
     1316  --pdfdir=DIR            pdf documentation [DOCDIR]
     1317  --psdir=DIR             ps documentation [DOCDIR]
    8381318_ACEOF
    8391319
     
    8521332
    8531333Optional Features:
     1334  --disable-option-checking  ignore unrecognized --enable/--with options
    8541335  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8551336  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     
    8571338  --enable-z3950          Enable Z39.50 client support
    8581339  --disable-yaz           Disable YAZ compilation
    859   --disable-jdbm        Disable JDBM compilation
    860   --disable-gdbm        Disable GDBM compilation
     1340  --disable-java          Disable Java compilation
     1341  --disable-jdbm          Disable JDBM compilation
     1342  --disable-gdbm          Disable GDBM compilation
    8611343  --disable-accentfold    Disable Accent Folding for MGPP
    8621344  --disable-sqlite        Disable SQLite support
     
    8751357  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8761358              nonstandard directory <lib dir>
    877   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    878               headers in a nonstandard directory <include dir>
     1359  LIBS        libraries to pass to the linker, e.g. -l<library>
     1360  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1361              you have headers in a nonstandard directory <include dir>
    8791362  CXX         C++ compiler command
    8801363  CXXFLAGS    C++ compiler flags
     1364  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1365              the first program found out of: `bison -y', `byacc', `yacc'.
     1366  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1367              This script will default YFLAGS to the empty string to avoid a
     1368              default value of `-d' given by some make applications.
    8811369  CPP         C preprocessor
    8821370
     
    8841372it to find libraries and programs with nonstandard names/locations.
    8851373
    886 _ACEOF
     1374Report bugs to the package provider.
     1375_ACEOF
     1376ac_status=$?
    8871377fi
    8881378
    8891379if test "$ac_init_help" = "recursive"; then
    8901380  # If there are subdirs, report their specific --help.
    891   ac_popdir=`pwd`
    8921381  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    893     test -d $ac_dir || continue
     1382    test -d "$ac_dir" ||
     1383      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1384      continue
    8941385    ac_builddir=.
    8951386
    896 if test "$ac_dir" != .; then
    897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    898   # A "../" for each directory in $ac_dir_suffix.
    899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    900 else
    901   ac_dir_suffix= ac_top_builddir=
    902 fi
     1387case "$ac_dir" in
     1388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1389*)
     1390  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1391  # A ".." for each directory in $ac_dir_suffix.
     1392  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1393  case $ac_top_builddir_sub in
     1394  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1395  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1396  esac ;;
     1397esac
     1398ac_abs_top_builddir=$ac_pwd
     1399ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1400# for backward compatibility:
     1401ac_top_builddir=$ac_top_build_prefix
    9031402
    9041403case $srcdir in
    905   .)  # No --srcdir option.  We are building in place.
     1404  .)  # We are building in place.
    9061405    ac_srcdir=.
    907     if test -z "$ac_top_builddir"; then
    908        ac_top_srcdir=.
     1406    ac_top_srcdir=$ac_top_builddir_sub
     1407    ac_abs_top_srcdir=$ac_pwd ;;
     1408  [\\/]* | ?:[\\/]* )  # Absolute name.
     1409    ac_srcdir=$srcdir$ac_dir_suffix;
     1410    ac_top_srcdir=$srcdir
     1411    ac_abs_top_srcdir=$srcdir ;;
     1412  *) # Relative name.
     1413    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1414    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1415    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1416esac
     1417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1418
     1419    cd "$ac_dir" || { ac_status=$?; continue; }
     1420    # Check for guested configure.
     1421    if test -f "$ac_srcdir/configure.gnu"; then
     1422      echo &&
     1423      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1424    elif test -f "$ac_srcdir/configure"; then
     1425      echo &&
     1426      $SHELL "$ac_srcdir/configure" --help=recursive
    9091427    else
    910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    911     fi ;;
    912   [\\/]* | ?:[\\/]* )  # Absolute path.
    913     ac_srcdir=$srcdir$ac_dir_suffix;
    914     ac_top_srcdir=$srcdir ;;
    915   *) # Relative path.
    916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    918 esac
    919 
    920 # Do not use `cd foo && pwd` to compute absolute paths, because
    921 # the directories may not exist.
    922 case `pwd` in
    923 .) ac_abs_builddir="$ac_dir";;
    924 *)
    925   case "$ac_dir" in
    926   .) ac_abs_builddir=`pwd`;;
    927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    929   esac;;
    930 esac
    931 case $ac_abs_builddir in
    932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    933 *)
    934   case ${ac_top_builddir}. in
    935   .) ac_abs_top_builddir=$ac_abs_builddir;;
    936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    938   esac;;
    939 esac
    940 case $ac_abs_builddir in
    941 .) ac_abs_srcdir=$ac_srcdir;;
    942 *)
    943   case $ac_srcdir in
    944   .) ac_abs_srcdir=$ac_abs_builddir;;
    945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    947   esac;;
    948 esac
    949 case $ac_abs_builddir in
    950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    951 *)
    952   case $ac_top_srcdir in
    953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    956   esac;;
    957 esac
    958 
    959     cd $ac_dir
    960     # Check for guested configure; otherwise get Cygnus style configure.
    961     if test -f $ac_srcdir/configure.gnu; then
    962       echo
    963       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    964     elif test -f $ac_srcdir/configure; then
    965       echo
    966       $SHELL $ac_srcdir/configure  --help=recursive
    967     elif test -f $ac_srcdir/configure.ac ||
    968        test -f $ac_srcdir/configure.in; then
    969       echo
    970       $ac_configure --help
    971     else
    972       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    973     fi
    974     cd $ac_popdir
     1428      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1429    fi || ac_status=$?
     1430    cd "$ac_pwd" || { ac_status=$?; break; }
    9751431  done
    9761432fi
    9771433
    978 test -n "$ac_init_help" && exit 0
     1434test -n "$ac_init_help" && exit $ac_status
    9791435if $ac_init_version; then
    9801436  cat <<\_ACEOF
    981 
    982 Copyright (C) 2003 Free Software Foundation, Inc.
     1437configure
     1438generated by GNU Autoconf 2.67
     1439
     1440Copyright (C) 2010 Free Software Foundation, Inc.
    9831441This configure script is free software; the Free Software Foundation
    9841442gives unlimited permission to copy, distribute and modify it.
    9851443_ACEOF
    986   exit 0
    987 fi
    988 exec 5>config.log
    989 cat >&5 <<_ACEOF
     1444  exit
     1445fi
     1446
     1447## ------------------------ ##
     1448## Autoconf initialization. ##
     1449## ------------------------ ##
     1450
     1451# ac_fn_c_try_compile LINENO
     1452# --------------------------
     1453# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1454ac_fn_c_try_compile ()
     1455{
     1456  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1457  rm -f conftest.$ac_objext
     1458  if { { ac_try="$ac_compile"
     1459case "(($ac_try" in
     1460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1461  *) ac_try_echo=$ac_try;;
     1462esac
     1463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1464$as_echo "$ac_try_echo"; } >&5
     1465  (eval "$ac_compile") 2>conftest.err
     1466  ac_status=$?
     1467  if test -s conftest.err; then
     1468    grep -v '^ *+' conftest.err >conftest.er1
     1469    cat conftest.er1 >&5
     1470    mv -f conftest.er1 conftest.err
     1471  fi
     1472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1473  test $ac_status = 0; } && {
     1474     test -z "$ac_c_werror_flag" ||
     1475     test ! -s conftest.err
     1476       } && test -s conftest.$ac_objext; then :
     1477  ac_retval=0
     1478else
     1479  $as_echo "$as_me: failed program was:" >&5
     1480sed 's/^/| /' conftest.$ac_ext >&5
     1481
     1482    ac_retval=1
     1483fi
     1484  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1485  as_fn_set_status $ac_retval
     1486
     1487} # ac_fn_c_try_compile
     1488
     1489# ac_fn_cxx_try_compile LINENO
     1490# ----------------------------
     1491# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1492ac_fn_cxx_try_compile ()
     1493{
     1494  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1495  rm -f conftest.$ac_objext
     1496  if { { ac_try="$ac_compile"
     1497case "(($ac_try" in
     1498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1499  *) ac_try_echo=$ac_try;;
     1500esac
     1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1502$as_echo "$ac_try_echo"; } >&5
     1503  (eval "$ac_compile") 2>conftest.err
     1504  ac_status=$?
     1505  if test -s conftest.err; then
     1506    grep -v '^ *+' conftest.err >conftest.er1
     1507    cat conftest.er1 >&5
     1508    mv -f conftest.er1 conftest.err
     1509  fi
     1510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1511  test $ac_status = 0; } && {
     1512     test -z "$ac_cxx_werror_flag" ||
     1513     test ! -s conftest.err
     1514       } && test -s conftest.$ac_objext; then :
     1515  ac_retval=0
     1516else
     1517  $as_echo "$as_me: failed program was:" >&5
     1518sed 's/^/| /' conftest.$ac_ext >&5
     1519
     1520    ac_retval=1
     1521fi
     1522  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1523  as_fn_set_status $ac_retval
     1524
     1525} # ac_fn_cxx_try_compile
     1526
     1527# ac_fn_c_try_cpp LINENO
     1528# ----------------------
     1529# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1530ac_fn_c_try_cpp ()
     1531{
     1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1533  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1534case "(($ac_try" in
     1535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1536  *) ac_try_echo=$ac_try;;
     1537esac
     1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1539$as_echo "$ac_try_echo"; } >&5
     1540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1541  ac_status=$?
     1542  if test -s conftest.err; then
     1543    grep -v '^ *+' conftest.err >conftest.er1
     1544    cat conftest.er1 >&5
     1545    mv -f conftest.er1 conftest.err
     1546  fi
     1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1548  test $ac_status = 0; } > conftest.i && {
     1549     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1550     test ! -s conftest.err
     1551       }; then :
     1552  ac_retval=0
     1553else
     1554  $as_echo "$as_me: failed program was:" >&5
     1555sed 's/^/| /' conftest.$ac_ext >&5
     1556
     1557    ac_retval=1
     1558fi
     1559  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1560  as_fn_set_status $ac_retval
     1561
     1562} # ac_fn_c_try_cpp
     1563
     1564# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1565# -------------------------------------------------------
     1566# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1567# the include files in INCLUDES and setting the cache variable VAR
     1568# accordingly.
     1569ac_fn_c_check_header_mongrel ()
     1570{
     1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1572  if eval "test \"\${$3+set}\"" = set; then :
     1573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1574$as_echo_n "checking for $2... " >&6; }
     1575if eval "test \"\${$3+set}\"" = set; then :
     1576  $as_echo_n "(cached) " >&6
     1577fi
     1578eval ac_res=\$$3
     1579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1580$as_echo "$ac_res" >&6; }
     1581else
     1582  # Is the header compilable?
     1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1584$as_echo_n "checking $2 usability... " >&6; }
     1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1586/* end confdefs.h.  */
     1587$4
     1588#include <$2>
     1589_ACEOF
     1590if ac_fn_c_try_compile "$LINENO"; then :
     1591  ac_header_compiler=yes
     1592else
     1593  ac_header_compiler=no
     1594fi
     1595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1597$as_echo "$ac_header_compiler" >&6; }
     1598
     1599# Is the header present?
     1600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1601$as_echo_n "checking $2 presence... " >&6; }
     1602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1603/* end confdefs.h.  */
     1604#include <$2>
     1605_ACEOF
     1606if ac_fn_c_try_cpp "$LINENO"; then :
     1607  ac_header_preproc=yes
     1608else
     1609  ac_header_preproc=no
     1610fi
     1611rm -f conftest.err conftest.i conftest.$ac_ext
     1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1613$as_echo "$ac_header_preproc" >&6; }
     1614
     1615# So?  What about this header?
     1616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1617  yes:no: )
     1618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1619$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1621$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1622    ;;
     1623  no:yes:* )
     1624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1625$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1627$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1629$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1631$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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    ;;
     1635esac
     1636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1637$as_echo_n "checking for $2... " >&6; }
     1638if eval "test \"\${$3+set}\"" = set; then :
     1639  $as_echo_n "(cached) " >&6
     1640else
     1641  eval "$3=\$ac_header_compiler"
     1642fi
     1643eval ac_res=\$$3
     1644           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1645$as_echo "$ac_res" >&6; }
     1646fi
     1647  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1648
     1649} # ac_fn_c_check_header_mongrel
     1650
     1651# ac_fn_c_try_run LINENO
     1652# ----------------------
     1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1654# that executables *can* be run.
     1655ac_fn_c_try_run ()
     1656{
     1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1658  if { { ac_try="$ac_link"
     1659case "(($ac_try" in
     1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1661  *) ac_try_echo=$ac_try;;
     1662esac
     1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1664$as_echo "$ac_try_echo"; } >&5
     1665  (eval "$ac_link") 2>&5
     1666  ac_status=$?
     1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1668  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1669  { { case "(($ac_try" in
     1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1671  *) ac_try_echo=$ac_try;;
     1672esac
     1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1674$as_echo "$ac_try_echo"; } >&5
     1675  (eval "$ac_try") 2>&5
     1676  ac_status=$?
     1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1678  test $ac_status = 0; }; }; then :
     1679  ac_retval=0
     1680else
     1681  $as_echo "$as_me: program exited with status $ac_status" >&5
     1682       $as_echo "$as_me: failed program was:" >&5
     1683sed 's/^/| /' conftest.$ac_ext >&5
     1684
     1685       ac_retval=$ac_status
     1686fi
     1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1688  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1689  as_fn_set_status $ac_retval
     1690
     1691} # ac_fn_c_try_run
     1692
     1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1694# -------------------------------------------------------
     1695# Tests whether HEADER exists and can be compiled using the include files in
     1696# INCLUDES, setting the cache variable VAR accordingly.
     1697ac_fn_c_check_header_compile ()
     1698{
     1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1701$as_echo_n "checking for $2... " >&6; }
     1702if eval "test \"\${$3+set}\"" = set; then :
     1703  $as_echo_n "(cached) " >&6
     1704else
     1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1706/* end confdefs.h.  */
     1707$4
     1708#include <$2>
     1709_ACEOF
     1710if ac_fn_c_try_compile "$LINENO"; then :
     1711  eval "$3=yes"
     1712else
     1713  eval "$3=no"
     1714fi
     1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1716fi
     1717eval ac_res=\$$3
     1718           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1719$as_echo "$ac_res" >&6; }
     1720  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1721
     1722} # ac_fn_c_check_header_compile
     1723
     1724# ac_fn_c_try_link LINENO
     1725# -----------------------
     1726# Try to link conftest.$ac_ext, and return whether this succeeded.
     1727ac_fn_c_try_link ()
     1728{
     1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1730  rm -f conftest.$ac_objext conftest$ac_exeext
     1731  if { { ac_try="$ac_link"
     1732case "(($ac_try" in
     1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1734  *) ac_try_echo=$ac_try;;
     1735esac
     1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1737$as_echo "$ac_try_echo"; } >&5
     1738  (eval "$ac_link") 2>conftest.err
     1739  ac_status=$?
     1740  if test -s conftest.err; then
     1741    grep -v '^ *+' conftest.err >conftest.er1
     1742    cat conftest.er1 >&5
     1743    mv -f conftest.er1 conftest.err
     1744  fi
     1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1746  test $ac_status = 0; } && {
     1747     test -z "$ac_c_werror_flag" ||
     1748     test ! -s conftest.err
     1749       } && test -s conftest$ac_exeext && {
     1750     test "$cross_compiling" = yes ||
     1751     $as_test_x conftest$ac_exeext
     1752       }; then :
     1753  ac_retval=0
     1754else
     1755  $as_echo "$as_me: failed program was:" >&5
     1756sed 's/^/| /' conftest.$ac_ext >&5
     1757
     1758    ac_retval=1
     1759fi
     1760  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1761  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1762  # interfere with the next link command; also delete a directory that is
     1763  # left behind by Apple's compiler.  We do this before executing the actions.
     1764  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1765  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1766  as_fn_set_status $ac_retval
     1767
     1768} # ac_fn_c_try_link
     1769
     1770# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1771# -------------------------------------------
     1772# Tests whether TYPE exists after having included INCLUDES, setting cache
     1773# variable VAR accordingly.
     1774ac_fn_c_check_type ()
     1775{
     1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1778$as_echo_n "checking for $2... " >&6; }
     1779if eval "test \"\${$3+set}\"" = set; then :
     1780  $as_echo_n "(cached) " >&6
     1781else
     1782  eval "$3=no"
     1783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1784/* end confdefs.h.  */
     1785$4
     1786int
     1787main ()
     1788{
     1789if (sizeof ($2))
     1790     return 0;
     1791  ;
     1792  return 0;
     1793}
     1794_ACEOF
     1795if ac_fn_c_try_compile "$LINENO"; then :
     1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1797/* end confdefs.h.  */
     1798$4
     1799int
     1800main ()
     1801{
     1802if (sizeof (($2)))
     1803        return 0;
     1804  ;
     1805  return 0;
     1806}
     1807_ACEOF
     1808if ac_fn_c_try_compile "$LINENO"; then :
     1809
     1810else
     1811  eval "$3=yes"
     1812fi
     1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1814fi
     1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1816fi
     1817eval ac_res=\$$3
     1818           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1819$as_echo "$ac_res" >&6; }
     1820  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1821
     1822} # ac_fn_c_check_type
     1823
     1824# ac_fn_c_check_func LINENO FUNC VAR
     1825# ----------------------------------
     1826# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1827ac_fn_c_check_func ()
     1828{
     1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1831$as_echo_n "checking for $2... " >&6; }
     1832if eval "test \"\${$3+set}\"" = set; then :
     1833  $as_echo_n "(cached) " >&6
     1834else
     1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1836/* end confdefs.h.  */
     1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1839#define $2 innocuous_$2
     1840
     1841/* System header to define __stub macros and hopefully few prototypes,
     1842    which can conflict with char $2 (); below.
     1843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1844    <limits.h> exists even on freestanding compilers.  */
     1845
     1846#ifdef __STDC__
     1847# include <limits.h>
     1848#else
     1849# include <assert.h>
     1850#endif
     1851
     1852#undef $2
     1853
     1854/* Override any GCC internal prototype to avoid an error.
     1855   Use char because int might match the return type of a GCC
     1856   builtin and then its argument prototype would still apply.  */
     1857#ifdef __cplusplus
     1858extern "C"
     1859#endif
     1860char $2 ();
     1861/* The GNU C library defines this for functions which it implements
     1862    to always fail with ENOSYS.  Some functions are actually named
     1863    something starting with __ and the normal name is an alias.  */
     1864#if defined __stub_$2 || defined __stub___$2
     1865choke me
     1866#endif
     1867
     1868int
     1869main ()
     1870{
     1871return $2 ();
     1872  ;
     1873  return 0;
     1874}
     1875_ACEOF
     1876if ac_fn_c_try_link "$LINENO"; then :
     1877  eval "$3=yes"
     1878else
     1879  eval "$3=no"
     1880fi
     1881rm -f core conftest.err conftest.$ac_objext \
     1882    conftest$ac_exeext conftest.$ac_ext
     1883fi
     1884eval ac_res=\$$3
     1885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1886$as_echo "$ac_res" >&6; }
     1887  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1888
     1889} # ac_fn_c_check_func
     1890
     1891# ac_fn_cxx_try_run LINENO
     1892# ------------------------
     1893# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1894# that executables *can* be run.
     1895ac_fn_cxx_try_run ()
     1896{
     1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1898  if { { ac_try="$ac_link"
     1899case "(($ac_try" in
     1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1901  *) ac_try_echo=$ac_try;;
     1902esac
     1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1904$as_echo "$ac_try_echo"; } >&5
     1905  (eval "$ac_link") 2>&5
     1906  ac_status=$?
     1907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1908  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1909  { { case "(($ac_try" in
     1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1911  *) ac_try_echo=$ac_try;;
     1912esac
     1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1914$as_echo "$ac_try_echo"; } >&5
     1915  (eval "$ac_try") 2>&5
     1916  ac_status=$?
     1917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1918  test $ac_status = 0; }; }; then :
     1919  ac_retval=0
     1920else
     1921  $as_echo "$as_me: program exited with status $ac_status" >&5
     1922       $as_echo "$as_me: failed program was:" >&5
     1923sed 's/^/| /' conftest.$ac_ext >&5
     1924
     1925       ac_retval=$ac_status
     1926fi
     1927  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1928  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1929  as_fn_set_status $ac_retval
     1930
     1931} # ac_fn_cxx_try_run
     1932cat >config.log <<_ACEOF
    9901933This file contains any messages produced by compilers while
    9911934running configure, to aid debugging if configure makes a mistake.
    9921935
    9931936It was created by $as_me, which was
    994 generated by GNU Autoconf 2.59.  Invocation command line was
     1937generated by GNU Autoconf 2.67.  Invocation command line was
    9951938
    9961939  $ $0 $@
    9971940
    9981941_ACEOF
     1942exec 5>>config.log
    9991943{
    10001944cat <<_ASUNAME
     
    10151959/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10161960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1961/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10181962/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10191963/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10271971  IFS=$as_save_IFS
    10281972  test -z "$as_dir" && as_dir=.
    1029   echo "PATH: $as_dir"
    1030 done
     1973    $as_echo "PATH: $as_dir"
     1974  done
     1975IFS=$as_save_IFS
    10311976
    10321977} >&5
     
    10501995ac_configure_args0=
    10511996ac_configure_args1=
    1052 ac_sep=
    10531997ac_must_keep_next=false
    10541998for ac_pass in 1 2
     
    10612005    | -silent | --silent | --silen | --sile | --sil)
    10622006      continue ;;
    1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2007    *\'*)
     2008      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10652009    esac
    10662010    case $ac_pass in
    1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2011    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10682012    2)
    1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2013      as_fn_append ac_configure_args1 " '$ac_arg'"
    10702014      if test $ac_must_keep_next = true; then
    10712015    ac_must_keep_next=false # Got value, back to normal.
     
    10832027    esac
    10842028      fi
    1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1086       # Get rid of the leading space.
    1087       ac_sep=" "
     2029      as_fn_append ac_configure_args " '$ac_arg'"
    10882030      ;;
    10892031    esac
    10902032  done
    10912033done
    1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2034{ ac_configure_args0=; unset ac_configure_args0;}
     2035{ ac_configure_args1=; unset ac_configure_args1;}
    10942036
    10952037# When interrupted or exit'd, cleanup temporary files, and complete
    10962038# config.log.  We remove comments because anyway the quotes in there
    10972039# would cause problems or look ugly.
    1098 # WARNING: Be sure not to use single quotes in there, as some shells,
    1099 # such as our DU 5.0 friend, will then `close' the trap.
     2040# WARNING: Use '\'' to represent an apostrophe within the trap.
     2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11002042trap 'exit_status=$?
    11012043  # Save into config.log some information that might help in debugging.
     
    11032045    echo
    11042046
    1105     cat <<\_ASBOX
    1106 ## ---------------- ##
     2047    $as_echo "## ---------------- ##
    11072048## Cache variables. ##
    1108 ## ---------------- ##
    1109 _ASBOX
     2049## ---------------- ##"
    11102050    echo
    11112051    # The following way of writing the cache mishandles newlines in values,
    1112 {
     2052(
     2053  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2054    eval ac_val=\$$ac_var
     2055    case $ac_val in #(
     2056    *${as_nl}*)
     2057      case $ac_var in #(
     2058      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2060      esac
     2061      case $ac_var in #(
     2062      _ | IFS | as_nl) ;; #(
     2063      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2064      *) { eval $ac_var=; unset $ac_var;} ;;
     2065      esac ;;
     2066    esac
     2067  done
    11132068  (set) 2>&1 |
    1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1115     *ac_space=\ *)
     2069    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2070    *${as_nl}ac_space=\ *)
    11162071      sed -n \
    1117     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1118       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2072    "s/'\''/'\''\\\\'\'''\''/g;
     2073      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2074      ;; #(
     2075    *)
     2076      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11192077      ;;
    1120     *)
    1121       sed -n \
    1122     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1123       ;;
    1124     esac;
    1125 }
     2078    esac |
     2079    sort
     2080)
    11262081    echo
    11272082
    1128     cat <<\_ASBOX
    1129 ## ----------------- ##
     2083    $as_echo "## ----------------- ##
    11302084## Output variables. ##
    1131 ## ----------------- ##
    1132 _ASBOX
     2085## ----------------- ##"
    11332086    echo
    11342087    for ac_var in $ac_subst_vars
    11352088    do
    1136       eval ac_val=$`echo $ac_var`
    1137       echo "$ac_var='"'"'$ac_val'"'"'"
     2089      eval ac_val=\$$ac_var
     2090      case $ac_val in
     2091      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2092      esac
     2093      $as_echo "$ac_var='\''$ac_val'\''"
    11382094    done | sort
    11392095    echo
    11402096
    11412097    if test -n "$ac_subst_files"; then
    1142       cat <<\_ASBOX
    1143 ## ------------- ##
    1144 ## Output files. ##
    1145 ## ------------- ##
    1146 _ASBOX
     2098      $as_echo "## ------------------- ##
     2099## File substitutions. ##
     2100## ------------------- ##"
    11472101      echo
    11482102      for ac_var in $ac_subst_files
    11492103      do
    1150     eval ac_val=$`echo $ac_var`
    1151     echo "$ac_var='"'"'$ac_val'"'"'"
     2104    eval ac_val=\$$ac_var
     2105    case $ac_val in
     2106    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2107    esac
     2108    $as_echo "$ac_var='\''$ac_val'\''"
    11522109      done | sort
    11532110      echo
     
    11552112
    11562113    if test -s confdefs.h; then
    1157       cat <<\_ASBOX
    1158 ## ----------- ##
     2114      $as_echo "## ----------- ##
    11592115## confdefs.h. ##
    1160 ## ----------- ##
    1161 _ASBOX
     2116## ----------- ##"
    11622117      echo
    1163       sed "/^$/d" confdefs.h | sort
     2118      cat confdefs.h
    11642119      echo
    11652120    fi
    11662121    test "$ac_signal" != 0 &&
    1167       echo "$as_me: caught signal $ac_signal"
    1168     echo "$as_me: exit $exit_status"
     2122      $as_echo "$as_me: caught signal $ac_signal"
     2123    $as_echo "$as_me: exit $exit_status"
    11692124  } >&5
    1170   rm -f core *.core &&
    1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2125  rm -f core *.core core.conftest.* &&
     2126    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11722127    exit $exit_status
    1173      ' 0
     2128' 0
    11742129for ac_signal in 1 2 13 15; do
    1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2130  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11762131done
    11772132ac_signal=0
    11782133
    11792134# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1180 rm -rf conftest* confdefs.h
    1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1182 echo >confdefs.h
     2135rm -f -r conftest* confdefs.h
     2136
     2137$as_echo "/* confdefs.h */" > confdefs.h
    11832138
    11842139# Predefined preprocessor variables.
     
    11882143_ACEOF
    11892144
    1190 
    11912145cat >>confdefs.h <<_ACEOF
    11922146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11932147_ACEOF
    11942148
    1195 
    11962149cat >>confdefs.h <<_ACEOF
    11972150#define PACKAGE_VERSION "$PACKAGE_VERSION"
    11982151_ACEOF
    11992152
    1200 
    12012153cat >>confdefs.h <<_ACEOF
    12022154#define PACKAGE_STRING "$PACKAGE_STRING"
    12032155_ACEOF
    12042156
    1205 
    12062157cat >>confdefs.h <<_ACEOF
    12072158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12082159_ACEOF
    12092160
     2161cat >>confdefs.h <<_ACEOF
     2162#define PACKAGE_URL "$PACKAGE_URL"
     2163_ACEOF
     2164
    12102165
    12112166# Let the site file select an alternate cache file if it wants to.
    1212 # Prefer explicitly selected file to automatically selected ones.
    1213 if test -z "$CONFIG_SITE"; then
    1214   if test "x$prefix" != xNONE; then
    1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1216   else
    1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1218   fi
    1219 fi
    1220 for ac_site_file in $CONFIG_SITE; do
    1221   if test -r "$ac_site_file"; then
    1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1223 echo "$as_me: loading site script $ac_site_file" >&6;}
     2167# Prefer an explicitly selected file to automatically selected ones.
     2168ac_site_file1=NONE
     2169ac_site_file2=NONE
     2170if test -n "$CONFIG_SITE"; then
     2171  # We do not want a PATH search for config.site.
     2172  case $CONFIG_SITE in #((
     2173    -*)  ac_site_file1=./$CONFIG_SITE;;
     2174    */*) ac_site_file1=$CONFIG_SITE;;
     2175    *)   ac_site_file1=./$CONFIG_SITE;;
     2176  esac
     2177elif test "x$prefix" != xNONE; then
     2178  ac_site_file1=$prefix/share/config.site
     2179  ac_site_file2=$prefix/etc/config.site
     2180else
     2181  ac_site_file1=$ac_default_prefix/share/config.site
     2182  ac_site_file2=$ac_default_prefix/etc/config.site
     2183fi
     2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2185do
     2186  test "x$ac_site_file" = xNONE && continue
     2187  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2188    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12242190    sed 's/^/| /' "$ac_site_file" >&5
    1225     . "$ac_site_file"
     2191    . "$ac_site_file" \
     2192      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2194as_fn_error $? "failed to load site script $ac_site_file
     2195See \`config.log' for more details" "$LINENO" 5 ; }
    12262196  fi
    12272197done
    12282198
    12292199if test -r "$cache_file"; then
    1230   # Some versions of bash will fail to source /dev/null (special
    1231   # files actually), so we avoid doing that.
    1232   if test -f "$cache_file"; then
    1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1234 echo "$as_me: loading cache $cache_file" >&6;}
     2200  # Some versions of bash will fail to source /dev/null (special files
     2201  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2202  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2203    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2204$as_echo "$as_me: loading cache $cache_file" >&6;}
    12352205    case $cache_file in
    1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1237       *)                      . ./$cache_file;;
     2206      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2207      *)                      . "./$cache_file";;
    12382208    esac
    12392209  fi
    12402210else
    1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1242 echo "$as_me: creating cache $cache_file" >&6;}
     2211  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2212$as_echo "$as_me: creating cache $cache_file" >&6;}
    12432213  >$cache_file
    12442214fi
     
    12472217# value.
    12482218ac_cache_corrupted=false
    1249 for ac_var in `(set) 2>&1 |
    1250            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2219for ac_var in $ac_precious_vars; do
    12512220  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12522221  eval ac_new_set=\$ac_env_${ac_var}_set
    1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1254   eval ac_new_val="\$ac_env_${ac_var}_value"
     2222  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2223  eval ac_new_val=\$ac_env_${ac_var}_value
    12552224  case $ac_old_set,$ac_new_set in
    12562225    set,)
    1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2226      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12592228      ac_cache_corrupted=: ;;
    12602229    ,set)
    1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2230      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12632232      ac_cache_corrupted=: ;;
    12642233    ,);;
    12652234    *)
    12662235      if test "x$ac_old_val" != "x$ac_new_val"; then
    1267     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1269     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1271     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1272 echo "$as_me:   current value: $ac_new_val" >&2;}
    1273     ac_cache_corrupted=:
     2236    # differences in whitespace do not lead to failure.
     2237    ac_old_val_w=`echo x $ac_old_val`
     2238    ac_new_val_w=`echo x $ac_new_val`
     2239    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2240      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2242      ac_cache_corrupted=:
     2243    else
     2244      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2246      eval $ac_var=\$ac_old_val
     2247    fi
     2248    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2249$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2250    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2251$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12742252      fi;;
    12752253  esac
     
    12772255  if test "$ac_new_set" = set; then
    12782256    case $ac_new_val in
    1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2257    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12812258    *) ac_arg=$ac_var=$ac_new_val ;;
    12822259    esac
    12832260    case " $ac_configure_args " in
    12842261      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2262      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12862263    esac
    12872264  fi
    12882265done
    12892266if $ac_cache_corrupted; then
    1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1294    { (exit 1); exit 1; }; }
    1295 fi
     2267  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2269  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2271  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2272fi
     2273## -------------------- ##
     2274## Main body of script. ##
     2275## -------------------- ##
    12962276
    12972277ac_ext=c
     
    13022282
    13032283
    1304 
    1305 
    1306 
    1307 
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321           ac_config_headers="$ac_config_headers config.h"
     2284ac_config_headers="$ac_config_headers config.h"
    13222285
    13232286
    13242287
    13252288PACKAGE=gsdl
    1326 VERSION=2.82-svn
     2289VERSION=2.x-svn
    13272290cat >>confdefs.h <<_ACEOF
    13282291#define PACKAGE "$PACKAGE"
     
    13382301USE_FASTCGI=0
    13392302if test USE_FASTCGI = 1; then
    1340 cat >>confdefs.h <<\_ACEOF
    1341 #define USE_FASTCGI 1
    1342 _ACEOF
     2303$as_echo "#define USE_FASTCGI 1" >>confdefs.h
    13432304
    13442305
     
    13462307
    13472308if test USE_LANGACTION = 1; then
    1348 cat >>confdefs.h <<\_ACEOF
    1349 #define USE_LANGACTION 1
    1350 _ACEOF
    1351 
    1352 
    1353 fi
    1354 
    1355 # Check whether --enable-corba or --disable-corba was given.
    1356 if test "${enable_corba+set}" = set; then
    1357   enableval="$enable_corba"
    1358   USE_CORBA=$enableval
     2309$as_echo "#define USE_LANGACTION 1" >>confdefs.h
     2310
     2311
     2312fi
     2313
     2314# Check whether --enable-corba was given.
     2315if test "${enable_corba+set}" = set; then :
     2316  enableval=$enable_corba; USE_CORBA=$enableval
    13592317else
    13602318  USE_CORBA=no
    1361 fi;
     2319fi
     2320
    13622321if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
    13632322  USE_CORBA=1
    1364   cat >>confdefs.h <<\_ACEOF
    1365 #define USE_CORBA
    1366 _ACEOF
     2323  $as_echo "#define USE_CORBA /**/" >>confdefs.h
    13672324
    13682325else
     
    13722329
    13732330
    1374 # Check whether --with-micodir or --without-micodir was given.
    1375 if test "${with_micodir+set}" = set; then
    1376   withval="$with_micodir"
    1377   MICO_DIR=$withval
     2331# Check whether --with-micodir was given.
     2332if test "${with_micodir+set}" = set; then :
     2333  withval=$with_micodir; MICO_DIR=$withval
    13782334else
    13792335  MICO_DIR="default"
    1380 fi;
     2336fi
     2337
    13812338cat >>confdefs.h <<_ACEOF
    13822339#define MICO_DIR "$MICO_DIR"
     
    13852342
    13862343
    1387 # Check whether --enable-z3950 or --disable-z3950 was given.
    1388 if test "${enable_z3950+set}" = set; then
    1389   enableval="$enable_z3950"
    1390   USE_Z3950=$enableval
     2344# Check whether --enable-z3950 was given.
     2345if test "${enable_z3950+set}" = set; then :
     2346  enableval=$enable_z3950; USE_Z3950=$enableval
    13912347else
    13922348  USE_Z3950=no
    1393 fi;
     2349fi
     2350
    13942351if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
    13952352  USE_Z3950=1
    1396   cat >>confdefs.h <<\_ACEOF
    1397 #define USE_Z3950
    1398 _ACEOF
     2353  $as_echo "#define USE_Z3950 /**/" >>confdefs.h
    13992354
    14002355else
     
    14032358
    14042359
    1405 # Check whether --enable-yaz or --disable-yaz was given.
    1406 if test "${enable_yaz+set}" = set; then
    1407   enableval="$enable_yaz"
    1408   USE_YAZ=$enableval
     2360# Check whether --enable-yaz was given.
     2361if test "${enable_yaz+set}" = set; then :
     2362  enableval=$enable_yaz; USE_YAZ=$enableval
    14092363else
    14102364  USE_YAZ=yes
    1411 fi;
     2365fi
     2366
    14122367if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
    14132368  USE_YAZ=1
    1414   cat >>confdefs.h <<\_ACEOF
    1415 #define USE_YAZ
    1416 _ACEOF
     2369  $as_echo "#define USE_YAZ /**/" >>confdefs.h
    14172370
    14182371else
     
    14212374
    14222375
    1423 # Check whether --enable-jdbm or --disable-jdbm was given.
    1424 if test "${enable_jdbm+set}" = set; then
    1425   enableval="$enable_jdbm"
    1426   USE_JDBM=$enableval
     2376# Check whether --enable-java was given.
     2377if test "${enable_java+set}" = set; then :
     2378  enableval=$enable_java; ENABLE_JAVA=$enableval
     2379else
     2380  ENABLE_JAVA=yes
     2381fi
     2382
     2383if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2384  ENABLE_JAVA=1
     2385  if test "x$JAVA_HOME" != "x" ; then
     2386    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2387    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2388    echo "and JAVA respectively"
     2389    export JAVA_HOME=
     2390  fi
     2391else
     2392  ENABLE_JAVA=0
     2393fi
     2394
     2395
     2396# Check whether --enable-jdbm was given.
     2397if test "${enable_jdbm+set}" = set; then :
     2398  enableval=$enable_jdbm; USE_JDBM=$enableval
    14272399else
    14282400  USE_JDBM=yes
    1429 fi;
    1430 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     2401fi
     2402
     2403if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    14312404  USE_JDBM=1
    1432   cat >>confdefs.h <<\_ACEOF
    1433 #define USE_JDBM
    1434 _ACEOF
     2405  $as_echo "#define USE_JDBM /**/" >>confdefs.h
    14352406
    14362407else
     
    14392410
    14402411
    1441 # Check whether --enable-gdbm or --disable-gdbm was given.
    1442 if test "${enable_gdbm+set}" = set; then
    1443   enableval="$enable_gdbm"
    1444   USE_GDBM=$enableval
     2412# Check whether --enable-gdbm was given.
     2413if test "${enable_gdbm+set}" = set; then :
     2414  enableval=$enable_gdbm; USE_GDBM=$enableval
    14452415else
    14462416  USE_GDBM=yes
    1447 fi;
     2417fi
     2418
    14482419if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
    14492420  USE_GDBM=1
    1450   cat >>confdefs.h <<\_ACEOF
    1451 #define USE_GDBM
    1452 _ACEOF
     2421  $as_echo "#define USE_GDBM /**/" >>confdefs.h
    14532422
    14542423else
     
    14572426
    14582427
    1459 # Check whether --enable-accentfold or --disable-accentfold was given.
    1460 if test "${enable_accentfold+set}" = set; then
    1461   enableval="$enable_accentfold"
    1462   ENABLE_ACCENTFOLD=$enableval
     2428# Check whether --enable-accentfold was given.
     2429if test "${enable_accentfold+set}" = set; then :
     2430  enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
    14632431else
    14642432  ENABLE_ACCENTFOLD=yes
    1465 fi;
     2433fi
     2434
    14662435if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
    14672436  ENABLE_ACCENTFOLD=1
    1468   cat >>confdefs.h <<\_ACEOF
    1469 #define ENABLE_ACCENTFOLD
    1470 _ACEOF
     2437  $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
    14712438
    14722439else
     
    14752442
    14762443
    1477 # Check whether --enable-sqlite or --disable-sqlite was given.
    1478 if test "${enable_sqlite+set}" = set; then
    1479   enableval="$enable_sqlite"
    1480   USE_SQLITE=$enableval
     2444# Check whether --enable-sqlite was given.
     2445if test "${enable_sqlite+set}" = set; then :
     2446  enableval=$enable_sqlite; USE_SQLITE=$enableval
    14812447else
    14822448  USE_SQLITE=yes
    1483 fi;
     2449fi
     2450
    14842451if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
    14852452  USE_SQLITE=1
    1486   cat >>confdefs.h <<\_ACEOF
    1487 #define USE_SQLITE
    1488 _ACEOF
     2453  $as_echo "#define USE_SQLITE /**/" >>confdefs.h
    14892454
    14902455else
     
    15092474  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    15102475set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1513 if test "${ac_cv_prog_CC+set}" = set; then
    1514   echo $ECHO_N "(cached) $ECHO_C" >&6
     2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2477$as_echo_n "checking for $ac_word... " >&6; }
     2478if test "${ac_cv_prog_CC+set}" = set; then :
     2479  $as_echo_n "(cached) " >&6
    15152480else
    15162481  if test -n "$CC"; then
     
    15222487  IFS=$as_save_IFS
    15232488  test -z "$as_dir" && as_dir=.
    1524   for ac_exec_ext in '' $ac_executable_extensions; do
    1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2489    for ac_exec_ext in '' $ac_executable_extensions; do
     2490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15262491    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15282493    break 2
    15292494  fi
    15302495done
    1531 done
     2496  done
     2497IFS=$as_save_IFS
    15322498
    15332499fi
     
    15352501CC=$ac_cv_prog_CC
    15362502if test -n "$CC"; then
    1537   echo "$as_me:$LINENO: result: $CC" >&5
    1538 echo "${ECHO_T}$CC" >&6
    1539 else
    1540   echo "$as_me:$LINENO: result: no" >&5
    1541 echo "${ECHO_T}no" >&6
    1542 fi
     2503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2504$as_echo "$CC" >&6; }
     2505else
     2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2507$as_echo "no" >&6; }
     2508fi
     2509
    15432510
    15442511fi
     
    15472514  # Extract the first word of "gcc", so it can be a program name with args.
    15482515set dummy gcc; ac_word=$2
    1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1552   echo $ECHO_N "(cached) $ECHO_C" >&6
     2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2517$as_echo_n "checking for $ac_word... " >&6; }
     2518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2519  $as_echo_n "(cached) " >&6
    15532520else
    15542521  if test -n "$ac_ct_CC"; then
     
    15602527  IFS=$as_save_IFS
    15612528  test -z "$as_dir" && as_dir=.
    1562   for ac_exec_ext in '' $ac_executable_extensions; do
    1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2529    for ac_exec_ext in '' $ac_executable_extensions; do
     2530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15642531    ac_cv_prog_ac_ct_CC="gcc"
    1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15662533    break 2
    15672534  fi
    15682535done
    1569 done
     2536  done
     2537IFS=$as_save_IFS
    15702538
    15712539fi
     
    15732541ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15742542if test -n "$ac_ct_CC"; then
    1575   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1576 echo "${ECHO_T}$ac_ct_CC" >&6
    1577 else
    1578   echo "$as_me:$LINENO: result: no" >&5
    1579 echo "${ECHO_T}no" >&6
    1580 fi
    1581 
    1582   CC=$ac_ct_CC
     2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2544$as_echo "$ac_ct_CC" >&6; }
     2545else
     2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2547$as_echo "no" >&6; }
     2548fi
     2549
     2550  if test "x$ac_ct_CC" = x; then
     2551    CC=""
     2552  else
     2553    case $cross_compiling:$ac_tool_warned in
     2554yes:)
     2555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2557ac_tool_warned=yes ;;
     2558esac
     2559    CC=$ac_ct_CC
     2560  fi
    15832561else
    15842562  CC="$ac_cv_prog_CC"
     
    15862564
    15872565if test -z "$CC"; then
    1588   if test -n "$ac_tool_prefix"; then
    1589   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2566          if test -n "$ac_tool_prefix"; then
     2567    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    15902568set dummy ${ac_tool_prefix}cc; ac_word=$2
    1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1593 if test "${ac_cv_prog_CC+set}" = set; then
    1594   echo $ECHO_N "(cached) $ECHO_C" >&6
     2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2570$as_echo_n "checking for $ac_word... " >&6; }
     2571if test "${ac_cv_prog_CC+set}" = set; then :
     2572  $as_echo_n "(cached) " >&6
    15952573else
    15962574  if test -n "$CC"; then
     
    16022580  IFS=$as_save_IFS
    16032581  test -z "$as_dir" && as_dir=.
    1604   for ac_exec_ext in '' $ac_executable_extensions; do
    1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2582    for ac_exec_ext in '' $ac_executable_extensions; do
     2583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16062584    ac_cv_prog_CC="${ac_tool_prefix}cc"
    1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16082586    break 2
    16092587  fi
    16102588done
    1611 done
     2589  done
     2590IFS=$as_save_IFS
    16122591
    16132592fi
     
    16152594CC=$ac_cv_prog_CC
    16162595if test -n "$CC"; then
    1617   echo "$as_me:$LINENO: result: $CC" >&5
    1618 echo "${ECHO_T}$CC" >&6
    1619 else
    1620   echo "$as_me:$LINENO: result: no" >&5
    1621 echo "${ECHO_T}no" >&6
    1622 fi
    1623 
    1624 fi
    1625 if test -z "$ac_cv_prog_CC"; then
    1626   ac_ct_CC=$CC
    1627   # Extract the first word of "cc", so it can be a program name with args.
    1628 set dummy cc; ac_word=$2
    1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1632   echo $ECHO_N "(cached) $ECHO_C" >&6
    1633 else
    1634   if test -n "$ac_ct_CC"; then
    1635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1636 else
    1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1638 for as_dir in $PATH
    1639 do
    1640   IFS=$as_save_IFS
    1641   test -z "$as_dir" && as_dir=.
    1642   for ac_exec_ext in '' $ac_executable_extensions; do
    1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1644     ac_cv_prog_ac_ct_CC="cc"
    1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1646     break 2
     2596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2597$as_echo "$CC" >&6; }
     2598else
     2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2600$as_echo "no" >&6; }
     2601fi
     2602
     2603
    16472604  fi
    1648 done
    1649 done
    1650 
    1651 fi
    1652 fi
    1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1654 if test -n "$ac_ct_CC"; then
    1655   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1656 echo "${ECHO_T}$ac_ct_CC" >&6
    1657 else
    1658   echo "$as_me:$LINENO: result: no" >&5
    1659 echo "${ECHO_T}no" >&6
    1660 fi
    1661 
    1662   CC=$ac_ct_CC
    1663 else
    1664   CC="$ac_cv_prog_CC"
    1665 fi
    1666 
    16672605fi
    16682606if test -z "$CC"; then
    16692607  # Extract the first word of "cc", so it can be a program name with args.
    16702608set dummy cc; ac_word=$2
    1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1673 if test "${ac_cv_prog_CC+set}" = set; then
    1674   echo $ECHO_N "(cached) $ECHO_C" >&6
     2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2610$as_echo_n "checking for $ac_word... " >&6; }
     2611if test "${ac_cv_prog_CC+set}" = set; then :
     2612  $as_echo_n "(cached) " >&6
    16752613else
    16762614  if test -n "$CC"; then
     
    16832621  IFS=$as_save_IFS
    16842622  test -z "$as_dir" && as_dir=.
    1685   for ac_exec_ext in '' $ac_executable_extensions; do
    1686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2623    for ac_exec_ext in '' $ac_executable_extensions; do
     2624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16872625    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    16882626       ac_prog_rejected=yes
     
    16902628     fi
    16912629    ac_cv_prog_CC="cc"
    1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16932631    break 2
    16942632  fi
    16952633done
    1696 done
     2634  done
     2635IFS=$as_save_IFS
    16972636
    16982637if test $ac_prog_rejected = yes; then
     
    17122651CC=$ac_cv_prog_CC
    17132652if test -n "$CC"; then
    1714   echo "$as_me:$LINENO: result: $CC" >&5
    1715 echo "${ECHO_T}$CC" >&6
    1716 else
    1717   echo "$as_me:$LINENO: result: no" >&5
    1718 echo "${ECHO_T}no" >&6
    1719 fi
     2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2654$as_echo "$CC" >&6; }
     2655else
     2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2657$as_echo "no" >&6; }
     2658fi
     2659
    17202660
    17212661fi
    17222662if test -z "$CC"; then
    17232663  if test -n "$ac_tool_prefix"; then
    1724   for ac_prog in cl
     2664  for ac_prog in cl.exe
    17252665  do
    17262666    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    17272667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1730 if test "${ac_cv_prog_CC+set}" = set; then
    1731   echo $ECHO_N "(cached) $ECHO_C" >&6
     2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2669$as_echo_n "checking for $ac_word... " >&6; }
     2670if test "${ac_cv_prog_CC+set}" = set; then :
     2671  $as_echo_n "(cached) " >&6
    17322672else
    17332673  if test -n "$CC"; then
     
    17392679  IFS=$as_save_IFS
    17402680  test -z "$as_dir" && as_dir=.
    1741   for ac_exec_ext in '' $ac_executable_extensions; do
    1742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2681    for ac_exec_ext in '' $ac_executable_extensions; do
     2682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17432683    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    17452685    break 2
    17462686  fi
    17472687done
    1748 done
     2688  done
     2689IFS=$as_save_IFS
    17492690
    17502691fi
     
    17522693CC=$ac_cv_prog_CC
    17532694if test -n "$CC"; then
    1754   echo "$as_me:$LINENO: result: $CC" >&5
    1755 echo "${ECHO_T}$CC" >&6
    1756 else
    1757   echo "$as_me:$LINENO: result: no" >&5
    1758 echo "${ECHO_T}no" >&6
    1759 fi
     2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2696$as_echo "$CC" >&6; }
     2697else
     2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2699$as_echo "no" >&6; }
     2700fi
     2701
    17602702
    17612703    test -n "$CC" && break
     
    17642706if test -z "$CC"; then
    17652707  ac_ct_CC=$CC
    1766   for ac_prog in cl
     2708  for ac_prog in cl.exe
    17672709do
    17682710  # Extract the first word of "$ac_prog", so it can be a program name with args.
    17692711set dummy $ac_prog; ac_word=$2
    1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1773   echo $ECHO_N "(cached) $ECHO_C" >&6
     2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2713$as_echo_n "checking for $ac_word... " >&6; }
     2714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2715  $as_echo_n "(cached) " >&6
    17742716else
    17752717  if test -n "$ac_ct_CC"; then
     
    17812723  IFS=$as_save_IFS
    17822724  test -z "$as_dir" && as_dir=.
    1783   for ac_exec_ext in '' $ac_executable_extensions; do
    1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2725    for ac_exec_ext in '' $ac_executable_extensions; do
     2726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17852727    ac_cv_prog_ac_ct_CC="$ac_prog"
    1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    17872729    break 2
    17882730  fi
    17892731done
    1790 done
     2732  done
     2733IFS=$as_save_IFS
    17912734
    17922735fi
     
    17942737ac_ct_CC=$ac_cv_prog_ac_ct_CC
    17952738if test -n "$ac_ct_CC"; then
    1796   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1797 echo "${ECHO_T}$ac_ct_CC" >&6
    1798 else
    1799   echo "$as_me:$LINENO: result: no" >&5
    1800 echo "${ECHO_T}no" >&6
    1801 fi
     2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2740$as_echo "$ac_ct_CC" >&6; }
     2741else
     2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2743$as_echo "no" >&6; }
     2744fi
     2745
    18022746
    18032747  test -n "$ac_ct_CC" && break
    18042748done
    18052749
    1806   CC=$ac_ct_CC
    1807 fi
    1808 
    1809 fi
    1810 
    1811 
    1812 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    1813 See \`config.log' for more details." >&5
    1814 echo "$as_me: error: no acceptable C compiler found in \$PATH
    1815 See \`config.log' for more details." >&2;}
    1816    { (exit 1); exit 1; }; }
     2750  if test "x$ac_ct_CC" = x; then
     2751    CC=""
     2752  else
     2753    case $cross_compiling:$ac_tool_warned in
     2754yes:)
     2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2757ac_tool_warned=yes ;;
     2758esac
     2759    CC=$ac_ct_CC
     2760  fi
     2761fi
     2762
     2763fi
     2764
     2765
     2766test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2768as_fn_error $? "no acceptable C compiler found in \$PATH
     2769See \`config.log' for more details" "$LINENO" 5 ; }
    18172770
    18182771# Provide some information about the compiler.
    1819 echo "$as_me:$LINENO:" \
    1820      "checking for C compiler version" >&5
    1821 ac_compiler=`set X $ac_compile; echo $2`
    1822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1823   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2772$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2773set X $ac_compile
     2774ac_compiler=$2
     2775for ac_option in --version -v -V -qversion; do
     2776  { { ac_try="$ac_compiler $ac_option >&5"
     2777case "(($ac_try" in
     2778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2779  *) ac_try_echo=$ac_try;;
     2780esac
     2781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2782$as_echo "$ac_try_echo"; } >&5
     2783  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    18242784  ac_status=$?
    1825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1826   (exit $ac_status); }
    1827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1828   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1829   ac_status=$?
    1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1831   (exit $ac_status); }
    1832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1833   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1834   ac_status=$?
    1835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1836   (exit $ac_status); }
    1837 
    1838 cat >conftest.$ac_ext <<_ACEOF
    1839 /* confdefs.h.  */
    1840 _ACEOF
    1841 cat confdefs.h >>conftest.$ac_ext
    1842 cat >>conftest.$ac_ext <<_ACEOF
     2785  if test -s conftest.err; then
     2786    sed '10a\
     2787... rest of stderr output deleted ...
     2788         10q' conftest.err >conftest.er1
     2789    cat conftest.er1 >&5
     2790  fi
     2791  rm -f conftest.er1 conftest.err
     2792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2793  test $ac_status = 0; }
     2794done
     2795
     2796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    18432797/* end confdefs.h.  */
    18442798
     
    18522806_ACEOF
    18532807ac_clean_files_save=$ac_clean_files
    1854 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2808ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    18552809# Try to create an executable without -o first, disregard a.out.
    18562810# It will help us diagnose broken compilers, and finding out an intuition
    18572811# of exeext.
    1858 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1859 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    1860 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1861 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1862   (eval $ac_link_default) 2>&5
     2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2813$as_echo_n "checking whether the C compiler works... " >&6; }
     2814ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2815
     2816# The possible output files:
     2817ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2818
     2819ac_rmfiles=
     2820for ac_file in $ac_files
     2821do
     2822  case $ac_file in
     2823    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2824    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2825  esac
     2826done
     2827rm -f $ac_rmfiles
     2828
     2829if { { ac_try="$ac_link_default"
     2830case "(($ac_try" in
     2831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2832  *) ac_try_echo=$ac_try;;
     2833esac
     2834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2835$as_echo "$ac_try_echo"; } >&5
     2836  (eval "$ac_link_default") 2>&5
    18632837  ac_status=$?
    1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1865   (exit $ac_status); }; then
    1866   # Find the output, starting from the most likely.  This scheme is
    1867 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1868 # resort.
    1869 
    1870 # Be careful to initialize this variable, since it used to be cached.
    1871 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1872 ac_cv_exeext=
    1873 # b.out is created by i960 compilers.
    1874 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2839  test $ac_status = 0; }; then :
     2840  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2841# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2842# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2843# so that the user can short-circuit this test for compilers unknown to
     2844# Autoconf.
     2845for ac_file in $ac_files ''
    18752846do
    18762847  test -f "$ac_file" || continue
    18772848  case $ac_file in
    1878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1879     ;;
    1880     conftest.$ac_ext )
    1881     # This is the source file.
     2849    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    18822850    ;;
    18832851    [ab].out )
     
    18862854    break;;
    18872855    *.* )
    1888     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1889     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1890     # but it would be cool to find out if it's true.  Does anybody
    1891     # maintain Libtool? --akim.
    1892     export ac_cv_exeext
     2856    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2857    then :; else
     2858       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2859    fi
     2860    # We set ac_cv_exeext here because the later test for it is not
     2861    # safe: cross compilers may not add the suffix if given an `-o'
     2862    # argument, so we may need to know it at that point already.
     2863    # Even if this section looks crufty: it has the advantage of
     2864    # actually working.
    18932865    break;;
    18942866    * )
     
    18962868  esac
    18972869done
    1898 else
    1899   echo "$as_me: failed program was:" >&5
     2870test "$ac_cv_exeext" = no && ac_cv_exeext=
     2871
     2872else
     2873  ac_file=''
     2874fi
     2875if test -z "$ac_file"; then :
     2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2877$as_echo "no" >&6; }
     2878$as_echo "$as_me: failed program was:" >&5
    19002879sed 's/^/| /' conftest.$ac_ext >&5
    19012880
    1902 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    1903 See \`config.log' for more details." >&5
    1904 echo "$as_me: error: C compiler cannot create executables
    1905 See \`config.log' for more details." >&2;}
    1906    { (exit 77); exit 77; }; }
    1907 fi
    1908 
     2881{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2883as_fn_error 77 "C compiler cannot create executables
     2884See \`config.log' for more details" "$LINENO" 5 ; }
     2885else
     2886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2887$as_echo "yes" >&6; }
     2888fi
     2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     2890$as_echo_n "checking for C compiler default output file name... " >&6; }
     2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2892$as_echo "$ac_file" >&6; }
    19092893ac_exeext=$ac_cv_exeext
    1910 echo "$as_me:$LINENO: result: $ac_file" >&5
    1911 echo "${ECHO_T}$ac_file" >&6
    1912 
    1913 # Check the compiler produces executables we can run.  If not, either
    1914 # the compiler is broken, or we cross compile.
    1915 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1916 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1917 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1918 # If not cross compiling, check that we can run a simple program.
    1919 if test "$cross_compiling" != yes; then
    1920   if { ac_try='./$ac_file'
    1921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1922   (eval $ac_try) 2>&5
     2894
     2895rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2896ac_clean_files=$ac_clean_files_save
     2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2898$as_echo_n "checking for suffix of executables... " >&6; }
     2899if { { ac_try="$ac_link"
     2900case "(($ac_try" in
     2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2902  *) ac_try_echo=$ac_try;;
     2903esac
     2904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2905$as_echo "$ac_try_echo"; } >&5
     2906  (eval "$ac_link") 2>&5
    19232907  ac_status=$?
    1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1925   (exit $ac_status); }; }; then
    1926     cross_compiling=no
    1927   else
    1928     if test "$cross_compiling" = maybe; then
    1929     cross_compiling=yes
    1930     else
    1931     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    1932 If you meant to cross compile, use \`--host'.
    1933 See \`config.log' for more details." >&5
    1934 echo "$as_me: error: cannot run C compiled programs.
    1935 If you meant to cross compile, use \`--host'.
    1936 See \`config.log' for more details." >&2;}
    1937    { (exit 1); exit 1; }; }
    1938     fi
    1939   fi
    1940 fi
    1941 echo "$as_me:$LINENO: result: yes" >&5
    1942 echo "${ECHO_T}yes" >&6
    1943 
    1944 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    1945 ac_clean_files=$ac_clean_files_save
    1946 # Check the compiler produces executables we can run.  If not, either
    1947 # the compiler is broken, or we cross compile.
    1948 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1949 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1950 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1951 echo "${ECHO_T}$cross_compiling" >&6
    1952 
    1953 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1954 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1956   (eval $ac_link) 2>&5
    1957   ac_status=$?
    1958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1959   (exit $ac_status); }; then
     2908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2909  test $ac_status = 0; }; then :
    19602910  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    19612911# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    19652915  test -f "$ac_file" || continue
    19662916  case $ac_file in
    1967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    19682918    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1969       export ac_cv_exeext
    19702919      break;;
    19712920    * ) break;;
     
    19732922done
    19742923else
    1975   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    1976 See \`config.log' for more details." >&5
    1977 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    1978 See \`config.log' for more details." >&2;}
    1979    { (exit 1); exit 1; }; }
    1980 fi
    1981 
    1982 rm -f conftest$ac_cv_exeext
    1983 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1984 echo "${ECHO_T}$ac_cv_exeext" >&6
     2924  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2926as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     2927See \`config.log' for more details" "$LINENO" 5 ; }
     2928fi
     2929rm -f conftest conftest$ac_cv_exeext
     2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2931$as_echo "$ac_cv_exeext" >&6; }
    19852932
    19862933rm -f conftest.$ac_ext
    19872934EXEEXT=$ac_cv_exeext
    19882935ac_exeext=$EXEEXT
    1989 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1990 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    1991 if test "${ac_cv_objext+set}" = set; then
    1992   echo $ECHO_N "(cached) $ECHO_C" >&6
    1993 else
    1994   cat >conftest.$ac_ext <<_ACEOF
    1995 /* confdefs.h.  */
    1996 _ACEOF
    1997 cat confdefs.h >>conftest.$ac_ext
    1998 cat >>conftest.$ac_ext <<_ACEOF
     2936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    19992937/* end confdefs.h.  */
    2000 
     2938#include <stdio.h>
    20012939int
    20022940main ()
    20032941{
     2942FILE *f = fopen ("conftest.out", "w");
     2943 return ferror (f) || fclose (f) != 0;
    20042944
    20052945  ;
     
    20072947}
    20082948_ACEOF
     2949ac_clean_files="$ac_clean_files conftest.out"
     2950# Check that the compiler produces executables we can run.  If not, either
     2951# the compiler is broken, or we cross compile.
     2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     2953$as_echo_n "checking whether we are cross compiling... " >&6; }
     2954if test "$cross_compiling" != yes; then
     2955  { { ac_try="$ac_link"
     2956case "(($ac_try" in
     2957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2958  *) ac_try_echo=$ac_try;;
     2959esac
     2960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2961$as_echo "$ac_try_echo"; } >&5
     2962  (eval "$ac_link") 2>&5
     2963  ac_status=$?
     2964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2965  test $ac_status = 0; }
     2966  if { ac_try='./conftest$ac_cv_exeext'
     2967  { { case "(($ac_try" in
     2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2969  *) ac_try_echo=$ac_try;;
     2970esac
     2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2972$as_echo "$ac_try_echo"; } >&5
     2973  (eval "$ac_try") 2>&5
     2974  ac_status=$?
     2975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2976  test $ac_status = 0; }; }; then
     2977    cross_compiling=no
     2978  else
     2979    if test "$cross_compiling" = maybe; then
     2980    cross_compiling=yes
     2981    else
     2982    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2984as_fn_error $? "cannot run C compiled programs.
     2985If you meant to cross compile, use \`--host'.
     2986See \`config.log' for more details" "$LINENO" 5 ; }
     2987    fi
     2988  fi
     2989fi
     2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     2991$as_echo "$cross_compiling" >&6; }
     2992
     2993rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     2994ac_clean_files=$ac_clean_files_save
     2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     2996$as_echo_n "checking for suffix of object files... " >&6; }
     2997if test "${ac_cv_objext+set}" = set; then :
     2998  $as_echo_n "(cached) " >&6
     2999else
     3000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3001/* end confdefs.h.  */
     3002
     3003int
     3004main ()
     3005{
     3006
     3007  ;
     3008  return 0;
     3009}
     3010_ACEOF
    20093011rm -f conftest.o conftest.obj
    2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2011   (eval $ac_compile) 2>&5
     3012if { { ac_try="$ac_compile"
     3013case "(($ac_try" in
     3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3015  *) ac_try_echo=$ac_try;;
     3016esac
     3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3018$as_echo "$ac_try_echo"; } >&5
     3019  (eval "$ac_compile") 2>&5
    20123020  ac_status=$?
    2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2014   (exit $ac_status); }; then
    2015   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     3021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3022  test $ac_status = 0; }; then :
     3023  for ac_file in conftest.o conftest.obj conftest.*; do
     3024  test -f "$ac_file" || continue;
    20163025  case $ac_file in
    2017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     3026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    20183027    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    20193028       break;;
     
    20213030done
    20223031else
    2023   echo "$as_me: failed program was:" >&5
     3032  $as_echo "$as_me: failed program was:" >&5
    20243033sed 's/^/| /' conftest.$ac_ext >&5
    20253034
    2026 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2027 See \`config.log' for more details." >&5
    2028 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2029 See \`config.log' for more details." >&2;}
    2030    { (exit 1); exit 1; }; }
    2031 fi
    2032 
     3035{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3037as_fn_error $? "cannot compute suffix of object files: cannot compile
     3038See \`config.log' for more details" "$LINENO" 5 ; }
     3039fi
    20333040rm -f conftest.$ac_cv_objext conftest.$ac_ext
    20343041fi
    2035 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2036 echo "${ECHO_T}$ac_cv_objext" >&6
     3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3043$as_echo "$ac_cv_objext" >&6; }
    20373044OBJEXT=$ac_cv_objext
    20383045ac_objext=$OBJEXT
    2039 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2040 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2041 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2042   echo $ECHO_N "(cached) $ECHO_C" >&6
    2043 else
    2044   cat >conftest.$ac_ext <<_ACEOF
    2045 /* confdefs.h.  */
    2046 _ACEOF
    2047 cat confdefs.h >>conftest.$ac_ext
    2048 cat >>conftest.$ac_ext <<_ACEOF
     3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3047$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3048if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3049  $as_echo_n "(cached) " >&6
     3050else
     3051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20493052/* end confdefs.h.  */
    20503053
     
    20603063}
    20613064_ACEOF
    2062 rm -f conftest.$ac_objext
    2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2064   (eval $ac_compile) 2>conftest.er1
    2065   ac_status=$?
    2066   grep -v '^ *+' conftest.er1 >conftest.err
    2067   rm -f conftest.er1
    2068   cat conftest.err >&5
    2069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2070   (exit $ac_status); } &&
    2071      { ac_try='test -z "$ac_c_werror_flag"
    2072              || test ! -s conftest.err'
    2073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2074   (eval $ac_try) 2>&5
    2075   ac_status=$?
    2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2077   (exit $ac_status); }; } &&
    2078      { ac_try='test -s conftest.$ac_objext'
    2079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2080   (eval $ac_try) 2>&5
    2081   ac_status=$?
    2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2083   (exit $ac_status); }; }; then
     3065if ac_fn_c_try_compile "$LINENO"; then :
    20843066  ac_compiler_gnu=yes
    20853067else
    2086   echo "$as_me: failed program was:" >&5
    2087 sed 's/^/| /' conftest.$ac_ext >&5
    2088 
    2089 ac_compiler_gnu=no
    2090 fi
    2091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3068  ac_compiler_gnu=no
     3069fi
     3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    20923071ac_cv_c_compiler_gnu=$ac_compiler_gnu
    20933072
    20943073fi
    2095 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2097 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3075$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3076if test $ac_compiler_gnu = yes; then
     3077  GCC=yes
     3078else
     3079  GCC=
     3080fi
    20983081ac_test_CFLAGS=${CFLAGS+set}
    20993082ac_save_CFLAGS=$CFLAGS
    2100 CFLAGS="-g"
    2101 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2103 if test "${ac_cv_prog_cc_g+set}" = set; then
    2104   echo $ECHO_N "(cached) $ECHO_C" >&6
    2105 else
    2106   cat >conftest.$ac_ext <<_ACEOF
    2107 /* confdefs.h.  */
    2108 _ACEOF
    2109 cat confdefs.h >>conftest.$ac_ext
    2110 cat >>conftest.$ac_ext <<_ACEOF
     3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3084$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3085if test "${ac_cv_prog_cc_g+set}" = set; then :
     3086  $as_echo_n "(cached) " >&6
     3087else
     3088  ac_save_c_werror_flag=$ac_c_werror_flag
     3089   ac_c_werror_flag=yes
     3090   ac_cv_prog_cc_g=no
     3091   CFLAGS="-g"
     3092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21113093/* end confdefs.h.  */
    21123094
     
    21193101}
    21203102_ACEOF
    2121 rm -f conftest.$ac_objext
    2122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2123   (eval $ac_compile) 2>conftest.er1
    2124   ac_status=$?
    2125   grep -v '^ *+' conftest.er1 >conftest.err
    2126   rm -f conftest.er1
    2127   cat conftest.err >&5
    2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2129   (exit $ac_status); } &&
    2130      { ac_try='test -z "$ac_c_werror_flag"
    2131              || test ! -s conftest.err'
    2132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2133   (eval $ac_try) 2>&5
    2134   ac_status=$?
    2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2136   (exit $ac_status); }; } &&
    2137      { ac_try='test -s conftest.$ac_objext'
    2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2139   (eval $ac_try) 2>&5
    2140   ac_status=$?
    2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2142   (exit $ac_status); }; }; then
     3103if ac_fn_c_try_compile "$LINENO"; then :
    21433104  ac_cv_prog_cc_g=yes
    21443105else
    2145   echo "$as_me: failed program was:" >&5
    2146 sed 's/^/| /' conftest.$ac_ext >&5
    2147 
    2148 ac_cv_prog_cc_g=no
    2149 fi
    2150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2151 fi
    2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3106  CFLAGS=""
     3107      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3108/* end confdefs.h.  */
     3109
     3110int
     3111main ()
     3112{
     3113
     3114  ;
     3115  return 0;
     3116}
     3117_ACEOF
     3118if ac_fn_c_try_compile "$LINENO"; then :
     3119
     3120else
     3121  ac_c_werror_flag=$ac_save_c_werror_flag
     3122     CFLAGS="-g"
     3123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3124/* end confdefs.h.  */
     3125
     3126int
     3127main ()
     3128{
     3129
     3130  ;
     3131  return 0;
     3132}
     3133_ACEOF
     3134if ac_fn_c_try_compile "$LINENO"; then :
     3135  ac_cv_prog_cc_g=yes
     3136fi
     3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3138fi
     3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3140fi
     3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3142   ac_c_werror_flag=$ac_save_c_werror_flag
     3143fi
     3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3145$as_echo "$ac_cv_prog_cc_g" >&6; }
    21543146if test "$ac_test_CFLAGS" = set; then
    21553147  CFLAGS=$ac_save_CFLAGS
     
    21673159  fi
    21683160fi
    2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2172   echo $ECHO_N "(cached) $ECHO_C" >&6
    2173 else
    2174   ac_cv_prog_cc_stdc=no
     3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3162$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3163if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3164  $as_echo_n "(cached) " >&6
     3165else
     3166  ac_cv_prog_cc_c89=no
    21753167ac_save_CC=$CC
    2176 cat >conftest.$ac_ext <<_ACEOF
    2177 /* confdefs.h.  */
    2178 _ACEOF
    2179 cat confdefs.h >>conftest.$ac_ext
    2180 cat >>conftest.$ac_ext <<_ACEOF
     3168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21813169/* end confdefs.h.  */
    21823170#include <stdarg.h>
     
    22063194   function prototypes and stuff, but not '\xHH' hex character constants.
    22073195   These don't provoke an error unfortunately, instead are silently treated
    2208    as 'x'.  The following induces an error, until -std1 is added to get
     3196   as 'x'.  The following induces an error, until -std is added to get
    22093197   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    22103198   array size at least.  It's necessary to write '\x00'==0 to get something
    2211    that's true only with -std1.  */
     3199   that's true only with -std.  */
    22123200int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3201
     3202/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3203   inside strings and character constants.  */
     3204#define FOO(x) 'x'
     3205int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    22133206
    22143207int test (int i, double x);
     
    22263219}
    22273220_ACEOF
    2228 # Don't try gcc -ansi; that turns off useful extensions and
    2229 # breaks some systems' header files.
    2230 # AIX           -qlanglvl=ansi
    2231 # Ultrix and OSF/1  -std1
    2232 # HP-UX 10.20 and later -Ae
    2233 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2234 # SVR4          -Xc -D__EXTENSIONS__
    2235 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3221for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3222    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    22363223do
    22373224  CC="$ac_save_CC $ac_arg"
    2238   rm -f conftest.$ac_objext
    2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2240   (eval $ac_compile) 2>conftest.er1
    2241   ac_status=$?
    2242   grep -v '^ *+' conftest.er1 >conftest.err
    2243   rm -f conftest.er1
    2244   cat conftest.err >&5
    2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2246   (exit $ac_status); } &&
    2247      { ac_try='test -z "$ac_c_werror_flag"
    2248              || test ! -s conftest.err'
    2249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2250   (eval $ac_try) 2>&5
    2251   ac_status=$?
    2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2253   (exit $ac_status); }; } &&
    2254      { ac_try='test -s conftest.$ac_objext'
    2255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2256   (eval $ac_try) 2>&5
    2257   ac_status=$?
    2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2259   (exit $ac_status); }; }; then
    2260   ac_cv_prog_cc_stdc=$ac_arg
    2261 break
    2262 else
    2263   echo "$as_me: failed program was:" >&5
    2264 sed 's/^/| /' conftest.$ac_ext >&5
    2265 
    2266 fi
    2267 rm -f conftest.err conftest.$ac_objext
     3225  if ac_fn_c_try_compile "$LINENO"; then :
     3226  ac_cv_prog_cc_c89=$ac_arg
     3227fi
     3228rm -f core conftest.err conftest.$ac_objext
     3229  test "x$ac_cv_prog_cc_c89" != "xno" && break
    22683230done
    2269 rm -f conftest.$ac_ext conftest.$ac_objext
     3231rm -f conftest.$ac_ext
    22703232CC=$ac_save_CC
    22713233
    22723234fi
    2273 
    2274 case "x$ac_cv_prog_cc_stdc" in
    2275   x|xno)
    2276     echo "$as_me:$LINENO: result: none needed" >&5
    2277 echo "${ECHO_T}none needed" >&6 ;;
     3235# AC_CACHE_VAL
     3236case "x$ac_cv_prog_cc_c89" in
     3237  x)
     3238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3239$as_echo "none needed" >&6; } ;;
     3240  xno)
     3241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3242$as_echo "unsupported" >&6; } ;;
    22783243  *)
    2279     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2280 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2281     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3244    CC="$CC $ac_cv_prog_cc_c89"
     3245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3246$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    22823247esac
    2283 
    2284 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2285 # in C++ we need to declare it.  In case someone uses the same compiler
    2286 # for both compiling C and C++ we need to have the C++ compiler decide
    2287 # the declaration of exit, since it's the most demanding environment.
    2288 cat >conftest.$ac_ext <<_ACEOF
    2289 #ifndef __cplusplus
    2290   choke me
    2291 #endif
    2292 _ACEOF
    2293 rm -f conftest.$ac_objext
    2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2295   (eval $ac_compile) 2>conftest.er1
    2296   ac_status=$?
    2297   grep -v '^ *+' conftest.er1 >conftest.err
    2298   rm -f conftest.er1
    2299   cat conftest.err >&5
    2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2301   (exit $ac_status); } &&
    2302      { ac_try='test -z "$ac_c_werror_flag"
    2303              || test ! -s conftest.err'
    2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2305   (eval $ac_try) 2>&5
    2306   ac_status=$?
    2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2308   (exit $ac_status); }; } &&
    2309      { ac_try='test -s conftest.$ac_objext'
    2310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2311   (eval $ac_try) 2>&5
    2312   ac_status=$?
    2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2314   (exit $ac_status); }; }; then
    2315   for ac_declaration in \
    2316    '' \
    2317    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2318    'extern "C" void std::exit (int); using std::exit;' \
    2319    'extern "C" void exit (int) throw ();' \
    2320    'extern "C" void exit (int);' \
    2321    'void exit (int);'
    2322 do
    2323   cat >conftest.$ac_ext <<_ACEOF
    2324 /* confdefs.h.  */
    2325 _ACEOF
    2326 cat confdefs.h >>conftest.$ac_ext
    2327 cat >>conftest.$ac_ext <<_ACEOF
    2328 /* end confdefs.h.  */
    2329 $ac_declaration
    2330 #include <stdlib.h>
    2331 int
    2332 main ()
    2333 {
    2334 exit (42);
    2335   ;
    2336   return 0;
    2337 }
    2338 _ACEOF
    2339 rm -f conftest.$ac_objext
    2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2341   (eval $ac_compile) 2>conftest.er1
    2342   ac_status=$?
    2343   grep -v '^ *+' conftest.er1 >conftest.err
    2344   rm -f conftest.er1
    2345   cat conftest.err >&5
    2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2347   (exit $ac_status); } &&
    2348      { ac_try='test -z "$ac_c_werror_flag"
    2349              || test ! -s conftest.err'
    2350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2351   (eval $ac_try) 2>&5
    2352   ac_status=$?
    2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2354   (exit $ac_status); }; } &&
    2355      { ac_try='test -s conftest.$ac_objext'
    2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2357   (eval $ac_try) 2>&5
    2358   ac_status=$?
    2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2360   (exit $ac_status); }; }; then
    2361   :
    2362 else
    2363   echo "$as_me: failed program was:" >&5
    2364 sed 's/^/| /' conftest.$ac_ext >&5
    2365 
    2366 continue
    2367 fi
    2368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2369   cat >conftest.$ac_ext <<_ACEOF
    2370 /* confdefs.h.  */
    2371 _ACEOF
    2372 cat confdefs.h >>conftest.$ac_ext
    2373 cat >>conftest.$ac_ext <<_ACEOF
    2374 /* end confdefs.h.  */
    2375 $ac_declaration
    2376 int
    2377 main ()
    2378 {
    2379 exit (42);
    2380   ;
    2381   return 0;
    2382 }
    2383 _ACEOF
    2384 rm -f conftest.$ac_objext
    2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2386   (eval $ac_compile) 2>conftest.er1
    2387   ac_status=$?
    2388   grep -v '^ *+' conftest.er1 >conftest.err
    2389   rm -f conftest.er1
    2390   cat conftest.err >&5
    2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2392   (exit $ac_status); } &&
    2393      { ac_try='test -z "$ac_c_werror_flag"
    2394              || test ! -s conftest.err'
    2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2396   (eval $ac_try) 2>&5
    2397   ac_status=$?
    2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2399   (exit $ac_status); }; } &&
    2400      { ac_try='test -s conftest.$ac_objext'
    2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2402   (eval $ac_try) 2>&5
    2403   ac_status=$?
    2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2405   (exit $ac_status); }; }; then
    2406   break
    2407 else
    2408   echo "$as_me: failed program was:" >&5
    2409 sed 's/^/| /' conftest.$ac_ext >&5
    2410 
    2411 fi
    2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2413 done
    2414 rm -f conftest*
    2415 if test -n "$ac_declaration"; then
    2416   echo '#ifdef __cplusplus' >>confdefs.h
    2417   echo $ac_declaration      >>confdefs.h
    2418   echo '#endif'             >>confdefs.h
    2419 fi
    2420 
    2421 else
    2422   echo "$as_me: failed program was:" >&5
    2423 sed 's/^/| /' conftest.$ac_ext >&5
    2424 
    2425 fi
    2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3248if test "x$ac_cv_prog_cc_c89" != xno; then :
     3249
     3250fi
     3251
    24273252ac_ext=c
    24283253ac_cpp='$CPP $CPPFLAGS'
     
    24313256ac_compiler_gnu=$ac_cv_c_compiler_gnu
    24323257
    2433 ac_ext=cc
     3258ac_ext=cpp
    24343259ac_cpp='$CXXCPP $CPPFLAGS'
    24353260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    24363261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    24373262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2438 if test -n "$ac_tool_prefix"; then
    2439   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3263if test -z "$CXX"; then
     3264  if test -n "$CCC"; then
     3265    CXX=$CCC
     3266  else
     3267    if test -n "$ac_tool_prefix"; then
     3268  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    24403269  do
    24413270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    24423271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2445 if test "${ac_cv_prog_CXX+set}" = set; then
    2446   echo $ECHO_N "(cached) $ECHO_C" >&6
     3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3273$as_echo_n "checking for $ac_word... " >&6; }
     3274if test "${ac_cv_prog_CXX+set}" = set; then :
     3275  $as_echo_n "(cached) " >&6
    24473276else
    24483277  if test -n "$CXX"; then
     
    24543283  IFS=$as_save_IFS
    24553284  test -z "$as_dir" && as_dir=.
    2456   for ac_exec_ext in '' $ac_executable_extensions; do
    2457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3285    for ac_exec_ext in '' $ac_executable_extensions; do
     3286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    24583287    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    24603289    break 2
    24613290  fi
    24623291done
    2463 done
     3292  done
     3293IFS=$as_save_IFS
    24643294
    24653295fi
     
    24673297CXX=$ac_cv_prog_CXX
    24683298if test -n "$CXX"; then
    2469   echo "$as_me:$LINENO: result: $CXX" >&5
    2470 echo "${ECHO_T}$CXX" >&6
    2471 else
    2472   echo "$as_me:$LINENO: result: no" >&5
    2473 echo "${ECHO_T}no" >&6
    2474 fi
     3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     3300$as_echo "$CXX" >&6; }
     3301else
     3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3303$as_echo "no" >&6; }
     3304fi
     3305
    24753306
    24763307    test -n "$CXX" && break
     
    24793310if test -z "$CXX"; then
    24803311  ac_ct_CXX=$CXX
    2481   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3312  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    24823313do
    24833314  # Extract the first word of "$ac_prog", so it can be a program name with args.
    24843315set dummy $ac_prog; ac_word=$2
    2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2487 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2488   echo $ECHO_N "(cached) $ECHO_C" >&6
     3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3317$as_echo_n "checking for $ac_word... " >&6; }
     3318if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     3319  $as_echo_n "(cached) " >&6
    24893320else
    24903321  if test -n "$ac_ct_CXX"; then
     
    24963327  IFS=$as_save_IFS
    24973328  test -z "$as_dir" && as_dir=.
    2498   for ac_exec_ext in '' $ac_executable_extensions; do
    2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3329    for ac_exec_ext in '' $ac_executable_extensions; do
     3330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25003331    ac_cv_prog_ac_ct_CXX="$ac_prog"
    2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25023333    break 2
    25033334  fi
    25043335done
    2505 done
     3336  done
     3337IFS=$as_save_IFS
    25063338
    25073339fi
     
    25093341ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    25103342if test -n "$ac_ct_CXX"; then
    2511   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2512 echo "${ECHO_T}$ac_ct_CXX" >&6
    2513 else
    2514   echo "$as_me:$LINENO: result: no" >&5
    2515 echo "${ECHO_T}no" >&6
    2516 fi
     3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     3344$as_echo "$ac_ct_CXX" >&6; }
     3345else
     3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3347$as_echo "no" >&6; }
     3348fi
     3349
    25173350
    25183351  test -n "$ac_ct_CXX" && break
    25193352done
    2520 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    2521 
    2522   CXX=$ac_ct_CXX
    2523 fi
    2524 
    2525 
     3353
     3354  if test "x$ac_ct_CXX" = x; then
     3355    CXX="g++"
     3356  else
     3357    case $cross_compiling:$ac_tool_warned in
     3358yes:)
     3359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3361ac_tool_warned=yes ;;
     3362esac
     3363    CXX=$ac_ct_CXX
     3364  fi
     3365fi
     3366
     3367  fi
     3368fi
    25263369# Provide some information about the compiler.
    2527 echo "$as_me:$LINENO:" \
    2528      "checking for C++ compiler version" >&5
    2529 ac_compiler=`set X $ac_compile; echo $2`
    2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2531   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3370$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     3371set X $ac_compile
     3372ac_compiler=$2
     3373for ac_option in --version -v -V -qversion; do
     3374  { { ac_try="$ac_compiler $ac_option >&5"
     3375case "(($ac_try" in
     3376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3377  *) ac_try_echo=$ac_try;;
     3378esac
     3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3380$as_echo "$ac_try_echo"; } >&5
     3381  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    25323382  ac_status=$?
    2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2534   (exit $ac_status); }
    2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2536   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2537   ac_status=$?
    2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2539   (exit $ac_status); }
    2540 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2541   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2542   ac_status=$?
    2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2544   (exit $ac_status); }
    2545 
    2546 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2547 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2549   echo $ECHO_N "(cached) $ECHO_C" >&6
    2550 else
    2551   cat >conftest.$ac_ext <<_ACEOF
    2552 /* confdefs.h.  */
    2553 _ACEOF
    2554 cat confdefs.h >>conftest.$ac_ext
    2555 cat >>conftest.$ac_ext <<_ACEOF
     3383  if test -s conftest.err; then
     3384    sed '10a\
     3385... rest of stderr output deleted ...
     3386         10q' conftest.err >conftest.er1
     3387    cat conftest.er1 >&5
     3388  fi
     3389  rm -f conftest.er1 conftest.err
     3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3391  test $ac_status = 0; }
     3392done
     3393
     3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     3395$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3396if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3397  $as_echo_n "(cached) " >&6
     3398else
     3399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25563400/* end confdefs.h.  */
    25573401
     
    25673411}
    25683412_ACEOF
    2569 rm -f conftest.$ac_objext
    2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2571   (eval $ac_compile) 2>conftest.er1
    2572   ac_status=$?
    2573   grep -v '^ *+' conftest.er1 >conftest.err
    2574   rm -f conftest.er1
    2575   cat conftest.err >&5
    2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2577   (exit $ac_status); } &&
    2578      { ac_try='test -z "$ac_cxx_werror_flag"
    2579              || test ! -s conftest.err'
    2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2581   (eval $ac_try) 2>&5
    2582   ac_status=$?
    2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2584   (exit $ac_status); }; } &&
    2585      { ac_try='test -s conftest.$ac_objext'
    2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2587   (eval $ac_try) 2>&5
    2588   ac_status=$?
    2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2590   (exit $ac_status); }; }; then
     3413if ac_fn_cxx_try_compile "$LINENO"; then :
    25913414  ac_compiler_gnu=yes
    25923415else
    2593   echo "$as_me: failed program was:" >&5
    2594 sed 's/^/| /' conftest.$ac_ext >&5
    2595 
    2596 ac_compiler_gnu=no
    2597 fi
    2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3416  ac_compiler_gnu=no
     3417fi
     3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    25993419ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    26003420
    26013421fi
    2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     3423$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3424if test $ac_compiler_gnu = yes; then
     3425  GXX=yes
     3426else
     3427  GXX=
     3428fi
    26053429ac_test_CXXFLAGS=${CXXFLAGS+set}
    26063430ac_save_CXXFLAGS=$CXXFLAGS
    2607 CXXFLAGS="-g"
    2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2611   echo $ECHO_N "(cached) $ECHO_C" >&6
    2612 else
    2613   cat >conftest.$ac_ext <<_ACEOF
    2614 /* confdefs.h.  */
    2615 _ACEOF
    2616 cat confdefs.h >>conftest.$ac_ext
    2617 cat >>conftest.$ac_ext <<_ACEOF
     3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     3432$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3433if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3434  $as_echo_n "(cached) " >&6
     3435else
     3436  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3437   ac_cxx_werror_flag=yes
     3438   ac_cv_prog_cxx_g=no
     3439   CXXFLAGS="-g"
     3440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26183441/* end confdefs.h.  */
    26193442
     
    26263449}
    26273450_ACEOF
    2628 rm -f conftest.$ac_objext
    2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2630   (eval $ac_compile) 2>conftest.er1
    2631   ac_status=$?
    2632   grep -v '^ *+' conftest.er1 >conftest.err
    2633   rm -f conftest.er1
    2634   cat conftest.err >&5
    2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2636   (exit $ac_status); } &&
    2637      { ac_try='test -z "$ac_cxx_werror_flag"
    2638              || test ! -s conftest.err'
    2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2640   (eval $ac_try) 2>&5
    2641   ac_status=$?
    2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2643   (exit $ac_status); }; } &&
    2644      { ac_try='test -s conftest.$ac_objext'
    2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2646   (eval $ac_try) 2>&5
    2647   ac_status=$?
    2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2649   (exit $ac_status); }; }; then
     3451if ac_fn_cxx_try_compile "$LINENO"; then :
    26503452  ac_cv_prog_cxx_g=yes
    26513453else
    2652   echo "$as_me: failed program was:" >&5
    2653 sed 's/^/| /' conftest.$ac_ext >&5
    2654 
    2655 ac_cv_prog_cxx_g=no
    2656 fi
    2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2658 fi
    2659 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2660 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3454  CXXFLAGS=""
     3455      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3456/* end confdefs.h.  */
     3457
     3458int
     3459main ()
     3460{
     3461
     3462  ;
     3463  return 0;
     3464}
     3465_ACEOF
     3466if ac_fn_cxx_try_compile "$LINENO"; then :
     3467
     3468else
     3469  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3470     CXXFLAGS="-g"
     3471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3472/* end confdefs.h.  */
     3473
     3474int
     3475main ()
     3476{
     3477
     3478  ;
     3479  return 0;
     3480}
     3481_ACEOF
     3482if ac_fn_cxx_try_compile "$LINENO"; then :
     3483  ac_cv_prog_cxx_g=yes
     3484fi
     3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3486fi
     3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3488fi
     3489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3490   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3491fi
     3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     3493$as_echo "$ac_cv_prog_cxx_g" >&6; }
    26613494if test "$ac_test_CXXFLAGS" = set; then
    26623495  CXXFLAGS=$ac_save_CXXFLAGS
     
    26743507  fi
    26753508fi
    2676 for ac_declaration in \
    2677    '' \
    2678    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2679    'extern "C" void std::exit (int); using std::exit;' \
    2680    'extern "C" void exit (int) throw ();' \
    2681    'extern "C" void exit (int);' \
    2682    'void exit (int);'
    2683 do
    2684   cat >conftest.$ac_ext <<_ACEOF
    2685 /* confdefs.h.  */
    2686 _ACEOF
    2687 cat confdefs.h >>conftest.$ac_ext
    2688 cat >>conftest.$ac_ext <<_ACEOF
    2689 /* end confdefs.h.  */
    2690 $ac_declaration
    2691 #include <stdlib.h>
    2692 int
    2693 main ()
    2694 {
    2695 exit (42);
    2696   ;
    2697   return 0;
    2698 }
    2699 _ACEOF
    2700 rm -f conftest.$ac_objext
    2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2702   (eval $ac_compile) 2>conftest.er1
    2703   ac_status=$?
    2704   grep -v '^ *+' conftest.er1 >conftest.err
    2705   rm -f conftest.er1
    2706   cat conftest.err >&5
    2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2708   (exit $ac_status); } &&
    2709      { ac_try='test -z "$ac_cxx_werror_flag"
    2710              || test ! -s conftest.err'
    2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2712   (eval $ac_try) 2>&5
    2713   ac_status=$?
    2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2715   (exit $ac_status); }; } &&
    2716      { ac_try='test -s conftest.$ac_objext'
    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); }; }; then
    2722   :
    2723 else
    2724   echo "$as_me: failed program was:" >&5
    2725 sed 's/^/| /' conftest.$ac_ext >&5
    2726 
    2727 continue
    2728 fi
    2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2730   cat >conftest.$ac_ext <<_ACEOF
    2731 /* confdefs.h.  */
    2732 _ACEOF
    2733 cat confdefs.h >>conftest.$ac_ext
    2734 cat >>conftest.$ac_ext <<_ACEOF
    2735 /* end confdefs.h.  */
    2736 $ac_declaration
    2737 int
    2738 main ()
    2739 {
    2740 exit (42);
    2741   ;
    2742   return 0;
    2743 }
    2744 _ACEOF
    2745 rm -f conftest.$ac_objext
    2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2747   (eval $ac_compile) 2>conftest.er1
    2748   ac_status=$?
    2749   grep -v '^ *+' conftest.er1 >conftest.err
    2750   rm -f conftest.er1
    2751   cat conftest.err >&5
    2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2753   (exit $ac_status); } &&
    2754      { ac_try='test -z "$ac_cxx_werror_flag"
    2755              || test ! -s conftest.err'
    2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2757   (eval $ac_try) 2>&5
    2758   ac_status=$?
    2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2760   (exit $ac_status); }; } &&
    2761      { ac_try='test -s conftest.$ac_objext'
    2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2763   (eval $ac_try) 2>&5
    2764   ac_status=$?
    2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2766   (exit $ac_status); }; }; then
    2767   break
    2768 else
    2769   echo "$as_me: failed program was:" >&5
    2770 sed 's/^/| /' conftest.$ac_ext >&5
    2771 
    2772 fi
    2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2774 done
    2775 rm -f conftest*
    2776 if test -n "$ac_declaration"; then
    2777   echo '#ifdef __cplusplus' >>confdefs.h
    2778   echo $ac_declaration      >>confdefs.h
    2779   echo '#endif'             >>confdefs.h
    2780 fi
    2781 
    27823509ac_ext=c
    27833510ac_cpp='$CPP $CPPFLAGS'
     
    27863513ac_compiler_gnu=$ac_cv_c_compiler_gnu
    27873514
    2788 for ac_prog in gawk mawk nawk awk
     3515if test $ENABLE_JAVA = "1" ; then
     3516
     3517
     3518if test "x$JAVAC" = x ; then
     3519    if test "x$JAVAPREFIX" = x; then
     3520    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    27893521do
    27903522  # Extract the first word of "$ac_prog", so it can be a program name with args.
    27913523set dummy $ac_prog; ac_word=$2
    2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2794 if test "${ac_cv_prog_AWK+set}" = set; then
    2795   echo $ECHO_N "(cached) $ECHO_C" >&6
    2796 else
    2797   if test -n "$AWK"; then
    2798   ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3525$as_echo_n "checking for $ac_word... " >&6; }
     3526if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3527  $as_echo_n "(cached) " >&6
     3528else
     3529  if test -n "$JAVAC"; then
     3530  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    27993531else
    28003532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28033535  IFS=$as_save_IFS
    28043536  test -z "$as_dir" && as_dir=.
    2805   for ac_exec_ext in '' $ac_executable_extensions; do
    2806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2807     ac_cv_prog_AWK="$ac_prog"
    2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3537    for ac_exec_ext in '' $ac_executable_extensions; do
     3538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3539    ac_cv_prog_JAVAC="$ac_prog"
     3540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28093541    break 2
    28103542  fi
    28113543done
     3544  done
     3545IFS=$as_save_IFS
     3546
     3547fi
     3548fi
     3549JAVAC=$ac_cv_prog_JAVAC
     3550if test -n "$JAVAC"; then
     3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3552$as_echo "$JAVAC" >&6; }
     3553else
     3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3555$as_echo "no" >&6; }
     3556fi
     3557
     3558
     3559  test -n "$JAVAC" && break
    28123560done
    28133561
    2814 fi
    2815 fi
    2816 AWK=$ac_cv_prog_AWK
    2817 if test -n "$AWK"; then
    2818   echo "$as_me:$LINENO: result: $AWK" >&5
    2819 echo "${ECHO_T}$AWK" >&6
    2820 else
    2821   echo "$as_me:$LINENO: result: no" >&5
    2822 echo "${ECHO_T}no" >&6
    2823 fi
    2824 
    2825   test -n "$AWK" && break
    2826 done
    2827 
    2828 for ac_prog in 'bison -y' byacc
     3562  else
     3563    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    28293564do
    28303565  # Extract the first word of "$ac_prog", so it can be a program name with args.
    28313566set dummy $ac_prog; ac_word=$2
    2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2834 if test "${ac_cv_prog_YACC+set}" = set; then
    2835   echo $ECHO_N "(cached) $ECHO_C" >&6
    2836 else
    2837   if test -n "$YACC"; then
    2838   ac_cv_prog_YACC="$YACC" # Let the user override the test.
     3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3568$as_echo_n "checking for $ac_word... " >&6; }
     3569if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3570  $as_echo_n "(cached) " >&6
     3571else
     3572  if test -n "$JAVAC"; then
     3573  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    28393574else
    28403575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28433578  IFS=$as_save_IFS
    28443579  test -z "$as_dir" && as_dir=.
    2845   for ac_exec_ext in '' $ac_executable_extensions; do
    2846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2847     ac_cv_prog_YACC="$ac_prog"
    2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3580    for ac_exec_ext in '' $ac_executable_extensions; do
     3581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3582    ac_cv_prog_JAVAC="$ac_prog"
     3583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28493584    break 2
    28503585  fi
    28513586done
     3587  done
     3588IFS=$as_save_IFS
     3589
     3590fi
     3591fi
     3592JAVAC=$ac_cv_prog_JAVAC
     3593if test -n "$JAVAC"; then
     3594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3595$as_echo "$JAVAC" >&6; }
     3596else
     3597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3598$as_echo "no" >&6; }
     3599fi
     3600
     3601
     3602  test -n "$JAVAC" && break
    28523603done
     3604test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3605
     3606  fi
     3607  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3608else
     3609  echo "Checking for javac... $JAVAC"
     3610fi
     3611
     3612
     3613
     3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3615$as_echo_n "checking if $JAVAC works... " >&6; }
     3616if test "${ac_cv_prog_javac_works+set}" = set; then :
     3617  $as_echo_n "(cached) " >&6
     3618else
     3619
     3620JAVA_TEST=Test.java
     3621CLASS_TEST=Test.class
     3622cat << \EOF > $JAVA_TEST
     3623/* #line 3623 "configure" */
     3624public class Test {
     3625}
     3626EOF
     3627if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3628  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3629  (eval $ac_try) 2>&5
     3630  ac_status=$?
     3631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3632  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3633  ac_cv_prog_javac_works=yes
     3634else
     3635  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3636  echo "configure: failed program was:" >&5
     3637  cat $JAVA_TEST >&5
     3638fi
     3639rm -f $JAVA_TEST $CLASS_TEST
     3640
     3641fi
     3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     3643$as_echo "$ac_cv_prog_javac_works" >&6; }
     3644if test "x$JAVACFLAGS" = x ; then
     3645  JAVACFLAGS="-source 1.4 -target 1.4"
     3646fi
     3647
     3648
     3649
     3650
     3651if test "x$JAVA" = x ; then
     3652        if test x$JAVAPREFIX = x; then
     3653        test x$JAVA = x && for ac_prog in java$EXEEXT
     3654do
     3655  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3656set dummy $ac_prog; ac_word=$2
     3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3658$as_echo_n "checking for $ac_word... " >&6; }
     3659if test "${ac_cv_prog_JAVA+set}" = set; then :
     3660  $as_echo_n "(cached) " >&6
     3661else
     3662  if test -n "$JAVA"; then
     3663  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3664else
     3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3666for as_dir in $PATH
     3667do
     3668  IFS=$as_save_IFS
     3669  test -z "$as_dir" && as_dir=.
     3670    for ac_exec_ext in '' $ac_executable_extensions; do
     3671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3672    ac_cv_prog_JAVA="$ac_prog"
     3673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3674    break 2
     3675  fi
     3676done
     3677  done
     3678IFS=$as_save_IFS
     3679
     3680fi
     3681fi
     3682JAVA=$ac_cv_prog_JAVA
     3683if test -n "$JAVA"; then
     3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3685$as_echo "$JAVA" >&6; }
     3686else
     3687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3688$as_echo "no" >&6; }
     3689fi
     3690
     3691
     3692  test -n "$JAVA" && break
     3693done
     3694
     3695    else
     3696        test x$JAVA = x && for ac_prog in java$EXEEXT
     3697do
     3698  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3699set dummy $ac_prog; ac_word=$2
     3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3701$as_echo_n "checking for $ac_word... " >&6; }
     3702if test "${ac_cv_prog_JAVA+set}" = set; then :
     3703  $as_echo_n "(cached) " >&6
     3704else
     3705  if test -n "$JAVA"; then
     3706  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3707else
     3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3709for as_dir in $PATH
     3710do
     3711  IFS=$as_save_IFS
     3712  test -z "$as_dir" && as_dir=.
     3713    for ac_exec_ext in '' $ac_executable_extensions; do
     3714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3715    ac_cv_prog_JAVA="$ac_prog"
     3716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3717    break 2
     3718  fi
     3719done
     3720  done
     3721IFS=$as_save_IFS
     3722
     3723fi
     3724fi
     3725JAVA=$ac_cv_prog_JAVA
     3726if test -n "$JAVA"; then
     3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3728$as_echo "$JAVA" >&6; }
     3729else
     3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3731$as_echo "no" >&6; }
     3732fi
     3733
     3734
     3735  test -n "$JAVA" && break
     3736done
     3737test -n "$JAVA" || JAVA="$JAVAPREFIX"
     3738
     3739    fi
     3740    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     3741fi
     3742
     3743
     3744# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     3745set dummy uudecode$EXEEXT; ac_word=$2
     3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3747$as_echo_n "checking for $ac_word... " >&6; }
     3748if test "${ac_cv_prog_uudecode+set}" = set; then :
     3749  $as_echo_n "(cached) " >&6
     3750else
     3751  if test -n "$uudecode"; then
     3752  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     3753else
     3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3755for as_dir in $PATH
     3756do
     3757  IFS=$as_save_IFS
     3758  test -z "$as_dir" && as_dir=.
     3759    for ac_exec_ext in '' $ac_executable_extensions; do
     3760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3761    ac_cv_prog_uudecode="yes"
     3762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3763    break 2
     3764  fi
     3765done
     3766  done
     3767IFS=$as_save_IFS
     3768
     3769fi
     3770fi
     3771uudecode=$ac_cv_prog_uudecode
     3772if test -n "$uudecode"; then
     3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     3774$as_echo "$uudecode" >&6; }
     3775else
     3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3777$as_echo "no" >&6; }
     3778fi
     3779
     3780
     3781if test x$uudecode = xyes; then
     3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     3783$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     3784if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     3785  $as_echo_n "(cached) " >&6
     3786else
     3787
     3788cat << \EOF > Test.uue
     3789begin-base64 644 Test.class
     3790yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     3791bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     3792bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     3793YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     3794aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     3795AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     3796AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     3797====
     3798EOF
     3799if uudecode$EXEEXT Test.uue; then
     3800        ac_cv_prog_uudecode_base64=yes
     3801else
     3802        echo "configure: 3802: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     3803        echo "configure: failed file was:" >&5
     3804        cat Test.uue >&5
     3805        ac_cv_prog_uudecode_base64=no
     3806fi
     3807rm -f Test.uue
     3808fi
     3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     3810$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     3811fi
     3812if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3813        rm -f Test.class
     3814        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     3815$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     3816        if test x$ac_cv_prog_javac_works = xno; then
     3817                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     3818        fi
     3819        if test x$ac_cv_prog_javac_works = x; then
     3820
     3821if test "x$JAVAC" = x ; then
     3822    if test "x$JAVAPREFIX" = x; then
     3823    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3824do
     3825  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3826set dummy $ac_prog; ac_word=$2
     3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3828$as_echo_n "checking for $ac_word... " >&6; }
     3829if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3830  $as_echo_n "(cached) " >&6
     3831else
     3832  if test -n "$JAVAC"; then
     3833  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3834else
     3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3836for as_dir in $PATH
     3837do
     3838  IFS=$as_save_IFS
     3839  test -z "$as_dir" && as_dir=.
     3840    for ac_exec_ext in '' $ac_executable_extensions; do
     3841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3842    ac_cv_prog_JAVAC="$ac_prog"
     3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3844    break 2
     3845  fi
     3846done
     3847  done
     3848IFS=$as_save_IFS
     3849
     3850fi
     3851fi
     3852JAVAC=$ac_cv_prog_JAVAC
     3853if test -n "$JAVAC"; then
     3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3855$as_echo "$JAVAC" >&6; }
     3856else
     3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3858$as_echo "no" >&6; }
     3859fi
     3860
     3861
     3862  test -n "$JAVAC" && break
     3863done
     3864
     3865  else
     3866    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3867do
     3868  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3869set dummy $ac_prog; ac_word=$2
     3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3871$as_echo_n "checking for $ac_word... " >&6; }
     3872if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3873  $as_echo_n "(cached) " >&6
     3874else
     3875  if test -n "$JAVAC"; then
     3876  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3877else
     3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3879for as_dir in $PATH
     3880do
     3881  IFS=$as_save_IFS
     3882  test -z "$as_dir" && as_dir=.
     3883    for ac_exec_ext in '' $ac_executable_extensions; do
     3884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3885    ac_cv_prog_JAVAC="$ac_prog"
     3886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3887    break 2
     3888  fi
     3889done
     3890  done
     3891IFS=$as_save_IFS
     3892
     3893fi
     3894fi
     3895JAVAC=$ac_cv_prog_JAVAC
     3896if test -n "$JAVAC"; then
     3897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3898$as_echo "$JAVAC" >&6; }
     3899else
     3900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3901$as_echo "no" >&6; }
     3902fi
     3903
     3904
     3905  test -n "$JAVAC" && break
     3906done
     3907test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3908
     3909  fi
     3910  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3911else
     3912  echo "Checking for javac... $JAVAC"
     3913fi
     3914
     3915
     3916
     3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3918$as_echo_n "checking if $JAVAC works... " >&6; }
     3919if test "${ac_cv_prog_javac_works+set}" = set; then :
     3920  $as_echo_n "(cached) " >&6
     3921else
     3922
     3923JAVA_TEST=Test.java
     3924CLASS_TEST=Test.class
     3925cat << \EOF > $JAVA_TEST
     3926/* #line 3926 "configure" */
     3927public class Test {
     3928}
     3929EOF
     3930if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3931  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3932  (eval $ac_try) 2>&5
     3933  ac_status=$?
     3934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3935  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3936  ac_cv_prog_javac_works=yes
     3937else
     3938  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3939  echo "configure: failed program was:" >&5
     3940  cat $JAVA_TEST >&5
     3941fi
     3942rm -f $JAVA_TEST $CLASS_TEST
     3943
     3944fi
     3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     3946$as_echo "$ac_cv_prog_javac_works" >&6; }
     3947if test "x$JAVACFLAGS" = x ; then
     3948  JAVACFLAGS="-source 1.4 -target 1.4"
     3949fi
     3950
     3951
     3952
     3953        fi
     3954fi
     3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     3956$as_echo_n "checking if $JAVA works... " >&6; }
     3957if test "${ac_cv_prog_java_works+set}" = set; then :
     3958  $as_echo_n "(cached) " >&6
     3959else
     3960
     3961JAVA_TEST=Test.java
     3962CLASS_TEST=Test.class
     3963TEST=Test
     3964cat << \EOF > $JAVA_TEST
     3965/* [#]line 3965 "configure" */
     3966public class Test {
     3967public static void main (String args[]) {
     3968        System.exit (0);
     3969} }
     3970EOF
     3971if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3972        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3973  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3974  (eval $ac_try) 2>&5
     3975  ac_status=$?
     3976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3977  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     3978                :
     3979        else
     3980          echo "configure: failed program was:" >&5
     3981          cat $JAVA_TEST >&5
     3982          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3983        fi
     3984fi
     3985if { ac_try='$JAVA $JAVAFLAGS $TEST'
     3986  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3987  (eval $ac_try) 2>&5
     3988  ac_status=$?
     3989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3990  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3991  ac_cv_prog_java_works=yes
     3992else
     3993  echo "configure: failed program was:" >&5
     3994  cat $JAVA_TEST >&5
     3995  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3996fi
     3997rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     3998
     3999fi
     4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     4001$as_echo "$ac_cv_prog_java_works" >&6; }
     4002
     4003
     4004
     4005fi
     4006for ac_prog in gawk mawk nawk awk
     4007do
     4008  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4009set dummy $ac_prog; ac_word=$2
     4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4011$as_echo_n "checking for $ac_word... " >&6; }
     4012if test "${ac_cv_prog_AWK+set}" = set; then :
     4013  $as_echo_n "(cached) " >&6
     4014else
     4015  if test -n "$AWK"; then
     4016  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     4017else
     4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4019for as_dir in $PATH
     4020do
     4021  IFS=$as_save_IFS
     4022  test -z "$as_dir" && as_dir=.
     4023    for ac_exec_ext in '' $ac_executable_extensions; do
     4024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4025    ac_cv_prog_AWK="$ac_prog"
     4026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4027    break 2
     4028  fi
     4029done
     4030  done
     4031IFS=$as_save_IFS
     4032
     4033fi
     4034fi
     4035AWK=$ac_cv_prog_AWK
     4036if test -n "$AWK"; then
     4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     4038$as_echo "$AWK" >&6; }
     4039else
     4040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4041$as_echo "no" >&6; }
     4042fi
     4043
     4044
     4045  test -n "$AWK" && break
     4046done
     4047
     4048for ac_prog in 'bison -y' byacc
     4049do
     4050  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4051set dummy $ac_prog; ac_word=$2
     4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4053$as_echo_n "checking for $ac_word... " >&6; }
     4054if test "${ac_cv_prog_YACC+set}" = set; then :
     4055  $as_echo_n "(cached) " >&6
     4056else
     4057  if test -n "$YACC"; then
     4058  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     4059else
     4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4061for as_dir in $PATH
     4062do
     4063  IFS=$as_save_IFS
     4064  test -z "$as_dir" && as_dir=.
     4065    for ac_exec_ext in '' $ac_executable_extensions; do
     4066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4067    ac_cv_prog_YACC="$ac_prog"
     4068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4069    break 2
     4070  fi
     4071done
     4072  done
     4073IFS=$as_save_IFS
    28534074
    28544075fi
     
    28564077YACC=$ac_cv_prog_YACC
    28574078if test -n "$YACC"; then
    2858   echo "$as_me:$LINENO: result: $YACC" >&5
    2859 echo "${ECHO_T}$YACC" >&6
    2860 else
    2861   echo "$as_me:$LINENO: result: no" >&5
    2862 echo "${ECHO_T}no" >&6
    2863 fi
     4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     4080$as_echo "$YACC" >&6; }
     4081else
     4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4083$as_echo "no" >&6; }
     4084fi
     4085
    28644086
    28654087  test -n "$YACC" && break
     
    28684090
    28694091ac_aux_dir=
    2870 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    2871   if test -f $ac_dir/install-sh; then
     4092for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     4093  if test -f "$ac_dir/install-sh"; then
    28724094    ac_aux_dir=$ac_dir
    28734095    ac_install_sh="$ac_aux_dir/install-sh -c"
    28744096    break
    2875   elif test -f $ac_dir/install.sh; then
     4097  elif test -f "$ac_dir/install.sh"; then
    28764098    ac_aux_dir=$ac_dir
    28774099    ac_install_sh="$ac_aux_dir/install.sh -c"
    28784100    break
    2879   elif test -f $ac_dir/shtool; then
     4101  elif test -f "$ac_dir/shtool"; then
    28804102    ac_aux_dir=$ac_dir
    28814103    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    28844106done
    28854107if test -z "$ac_aux_dir"; then
    2886   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2887 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2888    { (exit 1); exit 1; }; }
    2889 fi
    2890 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2891 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2892 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     4108  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     4109fi
     4110
     4111# These three variables are undocumented and unsupported,
     4112# and are intended to be withdrawn in a future Autoconf release.
     4113# They can cause serious problems if a builder's source tree is in a directory
     4114# whose full name contains unusual characters.
     4115ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     4116ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     4117ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     4118
    28934119
    28944120# Make sure we can run config.sub.
    2895 $ac_config_sub sun4 >/dev/null 2>&1 ||
    2896   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    2897 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2898    { (exit 1); exit 1; }; }
    2899 
    2900 echo "$as_me:$LINENO: checking build system type" >&5
    2901 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2902 if test "${ac_cv_build+set}" = set; then
    2903   echo $ECHO_N "(cached) $ECHO_C" >&6
    2904 else
    2905   ac_cv_build_alias=$build_alias
    2906 test -z "$ac_cv_build_alias" &&
    2907   ac_cv_build_alias=`$ac_config_guess`
    2908 test -z "$ac_cv_build_alias" &&
    2909   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    2910 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2911    { (exit 1); exit 1; }; }
    2912 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2913   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    2914 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    2915    { (exit 1); exit 1; }; }
    2916 
    2917 fi
    2918 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    2919 echo "${ECHO_T}$ac_cv_build" >&6
     4121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     4122  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     4123
     4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     4125$as_echo_n "checking build system type... " >&6; }
     4126if test "${ac_cv_build+set}" = set; then :
     4127  $as_echo_n "(cached) " >&6
     4128else
     4129  ac_build_alias=$build_alias
     4130test "x$ac_build_alias" = x &&
     4131  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     4132test "x$ac_build_alias" = x &&
     4133  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     4134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     4135  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     4136
     4137fi
     4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     4139$as_echo "$ac_cv_build" >&6; }
     4140case $ac_cv_build in
     4141*-*-*) ;;
     4142*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     4143esac
    29204144build=$ac_cv_build
    2921 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2922 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2923 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2924 
    2925 
    2926 echo "$as_me:$LINENO: checking host system type" >&5
    2927 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    2928 if test "${ac_cv_host+set}" = set; then
    2929   echo $ECHO_N "(cached) $ECHO_C" >&6
    2930 else
    2931   ac_cv_host_alias=$host_alias
    2932 test -z "$ac_cv_host_alias" &&
    2933   ac_cv_host_alias=$ac_cv_build_alias
    2934 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    2935   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    2936 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    2937    { (exit 1); exit 1; }; }
    2938 
    2939 fi
    2940 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    2941 echo "${ECHO_T}$ac_cv_host" >&6
     4145ac_save_IFS=$IFS; IFS='-'
     4146set x $ac_cv_build
     4147shift
     4148build_cpu=$1
     4149build_vendor=$2
     4150shift; shift
     4151# Remember, the first character of IFS is used to create $*,
     4152# except with old shells:
     4153build_os=$*
     4154IFS=$ac_save_IFS
     4155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     4156
     4157
     4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     4159$as_echo_n "checking host system type... " >&6; }
     4160if test "${ac_cv_host+set}" = set; then :
     4161  $as_echo_n "(cached) " >&6
     4162else
     4163  if test "x$host_alias" = x; then
     4164  ac_cv_host=$ac_cv_build
     4165else
     4166  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     4167    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     4168fi
     4169
     4170fi
     4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     4172$as_echo "$ac_cv_host" >&6; }
     4173case $ac_cv_host in
     4174*-*-*) ;;
     4175*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     4176esac
    29424177host=$ac_cv_host
    2943 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2944 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2945 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2946 
    2947 
    2948 echo "$as_me:$LINENO: checking target system type" >&5
    2949 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    2950 if test "${ac_cv_target+set}" = set; then
    2951   echo $ECHO_N "(cached) $ECHO_C" >&6
    2952 else
    2953   ac_cv_target_alias=$target_alias
    2954 test "x$ac_cv_target_alias" = "x" &&
    2955   ac_cv_target_alias=$ac_cv_host_alias
    2956 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    2957   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    2958 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    2959    { (exit 1); exit 1; }; }
    2960 
    2961 fi
    2962 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    2963 echo "${ECHO_T}$ac_cv_target" >&6
     4178ac_save_IFS=$IFS; IFS='-'
     4179set x $ac_cv_host
     4180shift
     4181host_cpu=$1
     4182host_vendor=$2
     4183shift; shift
     4184# Remember, the first character of IFS is used to create $*,
     4185# except with old shells:
     4186host_os=$*
     4187IFS=$ac_save_IFS
     4188case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     4189
     4190
     4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     4192$as_echo_n "checking target system type... " >&6; }
     4193if test "${ac_cv_target+set}" = set; then :
     4194  $as_echo_n "(cached) " >&6
     4195else
     4196  if test "x$target_alias" = x; then
     4197  ac_cv_target=$ac_cv_host
     4198else
     4199  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     4200    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     4201fi
     4202
     4203fi
     4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     4205$as_echo "$ac_cv_target" >&6; }
     4206case $ac_cv_target in
     4207*-*-*) ;;
     4208*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     4209esac
    29644210target=$ac_cv_target
    2965 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2966 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2967 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4211ac_save_IFS=$IFS; IFS='-'
     4212set x $ac_cv_target
     4213shift
     4214target_cpu=$1
     4215target_vendor=$2
     4216shift; shift
     4217# Remember, the first character of IFS is used to create $*,
     4218# except with old shells:
     4219target_os=$*
     4220IFS=$ac_save_IFS
     4221case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    29684222
    29694223
     
    29744228    NONENONEs,x,x, &&
    29754229  program_prefix=${target_alias}-
     4230
    29764231# Find a good install program.  We prefer a C program (faster),
    29774232# so one script is as good as another.  But avoid the broken or
     
    29874242# OS/2's system install, which has a completely different semantic
    29884243# ./install, which can be erroneously created by make from ./install.sh.
    2989 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     4244# Reject install programs that cannot install multiple files.
     4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     4246$as_echo_n "checking for a BSD-compatible install... " >&6; }
    29914247if test -z "$INSTALL"; then
    2992 if test "${ac_cv_path_install+set}" = set; then
    2993   echo $ECHO_N "(cached) $ECHO_C" >&6
     4248if test "${ac_cv_path_install+set}" = set; then :
     4249  $as_echo_n "(cached) " >&6
    29944250else
    29954251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    29984254  IFS=$as_save_IFS
    29994255  test -z "$as_dir" && as_dir=.
    3000   # Account for people who put trailing slashes in PATH elements.
    3001 case $as_dir/ in
    3002   ./ | .// | /cC/* | \
     4256    # Account for people who put trailing slashes in PATH elements.
     4257case $as_dir/ in #((
     4258  ./ | .// | /[cC]/* | \
    30034259  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     4260  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    30054261  /usr/ucb/* ) ;;
    30064262  *)
     
    30104266    for ac_prog in ginstall scoinst install; do
    30114267      for ac_exec_ext in '' $ac_executable_extensions; do
    3012     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4268    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    30134269      if test $ac_prog = install &&
    30144270        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    30204276        :
    30214277      else
    3022         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    3023         break 3
     4278        rm -rf conftest.one conftest.two conftest.dir
     4279        echo one > conftest.one
     4280        echo two > conftest.two
     4281        mkdir conftest.dir
     4282        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     4283          test -s conftest.one && test -s conftest.two &&
     4284          test -s conftest.dir/conftest.one &&
     4285          test -s conftest.dir/conftest.two
     4286        then
     4287          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     4288          break 3
     4289        fi
    30244290      fi
    30254291    fi
     
    30284294    ;;
    30294295esac
    3030 done
    3031 
     4296
     4297  done
     4298IFS=$as_save_IFS
     4299
     4300rm -rf conftest.one conftest.two conftest.dir
    30324301
    30334302fi
     
    30354304    INSTALL=$ac_cv_path_install
    30364305  else
    3037     # As a last resort, use the slow shell script.  We don't cache a
    3038     # path for INSTALL within a source directory, because that will
     4306    # As a last resort, use the slow shell script.  Don't cache a
     4307    # value for INSTALL within a source directory, because that will
    30394308    # break other packages using the cache if that directory is
    3040     # removed, or if the path is relative.
     4309    # removed, or if the value is a relative name.
    30414310    INSTALL=$ac_install_sh
    30424311  fi
    30434312fi
    3044 echo "$as_me:$LINENO: result: $INSTALL" >&5
    3045 echo "${ECHO_T}$INSTALL" >&6
     4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     4314$as_echo "$INSTALL" >&6; }
    30464315
    30474316# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    30534322test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    30544323
    3055 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     4325$as_echo_n "checking whether ln -s works... " >&6; }
    30574326LN_S=$as_ln_s
    30584327if test "$LN_S" = "ln -s"; then
    3059   echo "$as_me:$LINENO: result: yes" >&5
    3060 echo "${ECHO_T}yes" >&6
    3061 else
    3062   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3063 echo "${ECHO_T}no, using $LN_S" >&6
    3064 fi
    3065 
    3066 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    3068 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    3069 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    3070   echo $ECHO_N "(cached) $ECHO_C" >&6
     4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4329$as_echo "yes" >&6; }
     4330else
     4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     4332$as_echo "no, using $LN_S" >&6; }
     4333fi
     4334
     4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4336$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     4337set x ${MAKE-make}
     4338ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     4339if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     4340  $as_echo_n "(cached) " >&6
    30714341else
    30724342  cat >conftest.make <<\_ACEOF
     4343SHELL = /bin/sh
    30734344all:
    3074     @echo 'ac_maketemp="$(MAKE)"'
    3075 _ACEOF
    3076 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3077 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    3078 if test -n "$ac_maketemp"; then
    3079   eval ac_cv_prog_make_${ac_make}_set=yes
    3080 else
    3081   eval ac_cv_prog_make_${ac_make}_set=no
    3082 fi
     4345    @echo '@@@%%%=$(MAKE)=@@@%%%'
     4346_ACEOF
     4347# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4348case `${MAKE-make} -f conftest.make 2>/dev/null` in
     4349  *@@@%%%=?*=@@@%%%*)
     4350    eval ac_cv_prog_make_${ac_make}_set=yes;;
     4351  *)
     4352    eval ac_cv_prog_make_${ac_make}_set=no;;
     4353esac
    30834354rm -f conftest.make
    30844355fi
    3085 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    3086   echo "$as_me:$LINENO: result: yes" >&5
    3087 echo "${ECHO_T}yes" >&6
     4356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4358$as_echo "yes" >&6; }
    30884359  SET_MAKE=
    30894360else
    3090   echo "$as_me:$LINENO: result: no" >&5
    3091 echo "${ECHO_T}no" >&6
     4361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4362$as_echo "no" >&6; }
    30924363  SET_MAKE="MAKE=${MAKE-make}"
    30934364fi
     
    30964367  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    30974368set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3100 if test "${ac_cv_prog_RANLIB+set}" = set; then
    3101   echo $ECHO_N "(cached) $ECHO_C" >&6
     4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4370$as_echo_n "checking for $ac_word... " >&6; }
     4371if test "${ac_cv_prog_RANLIB+set}" = set; then :
     4372  $as_echo_n "(cached) " >&6
    31024373else
    31034374  if test -n "$RANLIB"; then
     
    31094380  IFS=$as_save_IFS
    31104381  test -z "$as_dir" && as_dir=.
    3111   for ac_exec_ext in '' $ac_executable_extensions; do
    3112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4382    for ac_exec_ext in '' $ac_executable_extensions; do
     4383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    31134384    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31154386    break 2
    31164387  fi
    31174388done
    3118 done
     4389  done
     4390IFS=$as_save_IFS
    31194391
    31204392fi
     
    31224394RANLIB=$ac_cv_prog_RANLIB
    31234395if test -n "$RANLIB"; then
    3124   echo "$as_me:$LINENO: result: $RANLIB" >&5
    3125 echo "${ECHO_T}$RANLIB" >&6
    3126 else
    3127   echo "$as_me:$LINENO: result: no" >&5
    3128 echo "${ECHO_T}no" >&6
    3129 fi
     4396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     4397$as_echo "$RANLIB" >&6; }
     4398else
     4399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4400$as_echo "no" >&6; }
     4401fi
     4402
    31304403
    31314404fi
     
    31344407  # Extract the first word of "ranlib", so it can be a program name with args.
    31354408set dummy ranlib; ac_word=$2
    3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3139   echo $ECHO_N "(cached) $ECHO_C" >&6
     4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4410$as_echo_n "checking for $ac_word... " >&6; }
     4411if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     4412  $as_echo_n "(cached) " >&6
    31404413else
    31414414  if test -n "$ac_ct_RANLIB"; then
     
    31474420  IFS=$as_save_IFS
    31484421  test -z "$as_dir" && as_dir=.
    3149   for ac_exec_ext in '' $ac_executable_extensions; do
    3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4422    for ac_exec_ext in '' $ac_executable_extensions; do
     4423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    31514424    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31534426    break 2
    31544427  fi
    31554428done
    3156 done
    3157 
    3158   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     4429  done
     4430IFS=$as_save_IFS
     4431
    31594432fi
    31604433fi
    31614434ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    31624435if test -n "$ac_ct_RANLIB"; then
    3163   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3165 else
    3166   echo "$as_me:$LINENO: result: no" >&5
    3167 echo "${ECHO_T}no" >&6
    3168 fi
    3169 
    3170   RANLIB=$ac_ct_RANLIB
     4436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     4437$as_echo "$ac_ct_RANLIB" >&6; }
     4438else
     4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4440$as_echo "no" >&6; }
     4441fi
     4442
     4443  if test "x$ac_ct_RANLIB" = x; then
     4444    RANLIB=":"
     4445  else
     4446    case $cross_compiling:$ac_tool_warned in
     4447yes:)
     4448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4450ac_tool_warned=yes ;;
     4451esac
     4452    RANLIB=$ac_ct_RANLIB
     4453  fi
    31714454else
    31724455  RANLIB="$ac_cv_prog_RANLIB"
     
    31744457
    31754458
    3176 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    3177 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     4460$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    31784461arch_64bit=no
    31794462case "$host_cpu" in
     
    31824465
    31834466if test "$arch_64bit" = yes; then
    3184   echo "$as_me:$LINENO: result: yes" >&5
    3185 echo "${ECHO_T}yes" >&6
     4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4468$as_echo "yes" >&6; }
    31864469  if test -z "$COMPAT32BITFLAGS" ; then
    31874470    COMPAT32BITFLAGS="-m32"
    31884471  fi
    31894472else
    3190   echo "$as_me:$LINENO: result: no" >&5
    3191 echo "${ECHO_T}no" >&6
     4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4474$as_echo "no" >&6; }
    31924475  if test -z "$COMPAT32BITFLAGS" ; then
    31934476    COMPAT32BITFLAGS=
     
    31964479
    31974480# Only need compat32bitflag if using MG or MGPP
    3198 if test "$ENABLE_MG" = "0" ; then
     4481if test "$ENABLE_MG" = "0" -a "$ENABLE_MGPP" = "0" ; then
    31994482  COMPAT32BITFLAGS=
    3200 else
    3201   if test "$ENABLE_MGPP" = "0" ; then
    3202     COMPAT32BITFLAGS=
    3203   fi
    32044483fi
    32054484
     
    32314510#do test of MICO_VER
    32324511if test MICO_VER != 0; then
    3233 cat >>confdefs.h <<\_ACEOF
    3234 #define MICO_VER 1
    3235 _ACEOF
     4512$as_echo "#define MICO_VER 1" >>confdefs.h
    32364513
    32374514
     
    32464523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    32474524ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3248 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3249 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4526$as_echo_n "checking how to run the C preprocessor... " >&6; }
    32504527# On Suns, sometimes $CPP names a directory.
    32514528if test -n "$CPP" && test -d "$CPP"; then
     
    32534530fi
    32544531if test -z "$CPP"; then
    3255   if test "${ac_cv_prog_CPP+set}" = set; then
    3256   echo $ECHO_N "(cached) $ECHO_C" >&6
     4532  if test "${ac_cv_prog_CPP+set}" = set; then :
     4533  $as_echo_n "(cached) " >&6
    32574534else
    32584535      # Double quotes because CPP needs to be expanded
     
    32684545  # On the NeXT, cc -E runs the code through the compiler's parser,
    32694546  # not just through cpp. "Syntax error" is here to catch this case.
    3270   cat >conftest.$ac_ext <<_ACEOF
    3271 /* confdefs.h.  */
    3272 _ACEOF
    3273 cat confdefs.h >>conftest.$ac_ext
    3274 cat >>conftest.$ac_ext <<_ACEOF
     4547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32754548/* end confdefs.h.  */
    32764549#ifdef __STDC__
     
    32814554             Syntax error
    32824555_ACEOF
    3283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3285   ac_status=$?
    3286   grep -v '^ *+' conftest.er1 >conftest.err
    3287   rm -f conftest.er1
    3288   cat conftest.err >&5
    3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3290   (exit $ac_status); } >/dev/null; then
    3291   if test -s conftest.err; then
    3292     ac_cpp_err=$ac_c_preproc_warn_flag
    3293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3294   else
    3295     ac_cpp_err=
    3296   fi
    3297 else
    3298   ac_cpp_err=yes
    3299 fi
    3300 if test -z "$ac_cpp_err"; then
    3301   :
    3302 else
    3303   echo "$as_me: failed program was:" >&5
    3304 sed 's/^/| /' conftest.$ac_ext >&5
    3305 
     4556if ac_fn_c_try_cpp "$LINENO"; then :
     4557
     4558else
    33064559  # Broken: fails on valid input.
    33074560continue
    33084561fi
    3309 rm -f conftest.err conftest.$ac_ext
    3310 
    3311   # OK, works on sane cases.  Now check whether non-existent headers
     4562rm -f conftest.err conftest.i conftest.$ac_ext
     4563
     4564  # OK, works on sane cases.  Now check whether nonexistent headers
    33124565  # can be detected and how.
    3313   cat >conftest.$ac_ext <<_ACEOF
    3314 /* confdefs.h.  */
    3315 _ACEOF
    3316 cat confdefs.h >>conftest.$ac_ext
    3317 cat >>conftest.$ac_ext <<_ACEOF
     4566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33184567/* end confdefs.h.  */
    33194568#include <ac_nonexistent.h>
    33204569_ACEOF
    3321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3323   ac_status=$?
    3324   grep -v '^ *+' conftest.er1 >conftest.err
    3325   rm -f conftest.er1
    3326   cat conftest.err >&5
    3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3328   (exit $ac_status); } >/dev/null; then
    3329   if test -s conftest.err; then
    3330     ac_cpp_err=$ac_c_preproc_warn_flag
    3331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3332   else
    3333     ac_cpp_err=
    3334   fi
    3335 else
    3336   ac_cpp_err=yes
    3337 fi
    3338 if test -z "$ac_cpp_err"; then
     4570if ac_fn_c_try_cpp "$LINENO"; then :
    33394571  # Broken: success on invalid input.
    33404572continue
    33414573else
    3342   echo "$as_me: failed program was:" >&5
    3343 sed 's/^/| /' conftest.$ac_ext >&5
    3344 
    33454574  # Passes both tests.
    33464575ac_preproc_ok=:
    33474576break
    33484577fi
    3349 rm -f conftest.err conftest.$ac_ext
     4578rm -f conftest.err conftest.i conftest.$ac_ext
    33504579
    33514580done
    33524581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3353 rm -f conftest.err conftest.$ac_ext
    3354 if $ac_preproc_ok; then
     4582rm -f conftest.i conftest.err conftest.$ac_ext
     4583if $ac_preproc_ok; then :
    33554584  break
    33564585fi
     
    33644593  ac_cv_prog_CPP=$CPP
    33654594fi
    3366 echo "$as_me:$LINENO: result: $CPP" >&5
    3367 echo "${ECHO_T}$CPP" >&6
     4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4596$as_echo "$CPP" >&6; }
    33684597ac_preproc_ok=false
    33694598for ac_c_preproc_warn_flag in '' yes
     
    33754604  # On the NeXT, cc -E runs the code through the compiler's parser,
    33764605  # not just through cpp. "Syntax error" is here to catch this case.
    3377   cat >conftest.$ac_ext <<_ACEOF
    3378 /* confdefs.h.  */
    3379 _ACEOF
    3380 cat confdefs.h >>conftest.$ac_ext
    3381 cat >>conftest.$ac_ext <<_ACEOF
     4606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33824607/* end confdefs.h.  */
    33834608#ifdef __STDC__
     
    33884613             Syntax error
    33894614_ACEOF
    3390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3392   ac_status=$?
    3393   grep -v '^ *+' conftest.er1 >conftest.err
    3394   rm -f conftest.er1
    3395   cat conftest.err >&5
    3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3397   (exit $ac_status); } >/dev/null; then
    3398   if test -s conftest.err; then
    3399     ac_cpp_err=$ac_c_preproc_warn_flag
    3400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3401   else
    3402     ac_cpp_err=
    3403   fi
    3404 else
    3405   ac_cpp_err=yes
    3406 fi
    3407 if test -z "$ac_cpp_err"; then
    3408   :
    3409 else
    3410   echo "$as_me: failed program was:" >&5
    3411 sed 's/^/| /' conftest.$ac_ext >&5
    3412 
     4615if ac_fn_c_try_cpp "$LINENO"; then :
     4616
     4617else
    34134618  # Broken: fails on valid input.
    34144619continue
    34154620fi
    3416 rm -f conftest.err conftest.$ac_ext
    3417 
    3418   # OK, works on sane cases.  Now check whether non-existent headers
     4621rm -f conftest.err conftest.i conftest.$ac_ext
     4622
     4623  # OK, works on sane cases.  Now check whether nonexistent headers
    34194624  # can be detected and how.
    3420   cat >conftest.$ac_ext <<_ACEOF
    3421 /* confdefs.h.  */
    3422 _ACEOF
    3423 cat confdefs.h >>conftest.$ac_ext
    3424 cat >>conftest.$ac_ext <<_ACEOF
     4625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34254626/* end confdefs.h.  */
    34264627#include <ac_nonexistent.h>
    34274628_ACEOF
    3428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3430   ac_status=$?
    3431   grep -v '^ *+' conftest.er1 >conftest.err
    3432   rm -f conftest.er1
    3433   cat conftest.err >&5
    3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3435   (exit $ac_status); } >/dev/null; then
    3436   if test -s conftest.err; then
    3437     ac_cpp_err=$ac_c_preproc_warn_flag
    3438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3439   else
    3440     ac_cpp_err=
    3441   fi
    3442 else
    3443   ac_cpp_err=yes
    3444 fi
    3445 if test -z "$ac_cpp_err"; then
     4629if ac_fn_c_try_cpp "$LINENO"; then :
    34464630  # Broken: success on invalid input.
    34474631continue
    34484632else
    3449   echo "$as_me: failed program was:" >&5
    3450 sed 's/^/| /' conftest.$ac_ext >&5
    3451 
    34524633  # Passes both tests.
    34534634ac_preproc_ok=:
    34544635break
    34554636fi
    3456 rm -f conftest.err conftest.$ac_ext
     4637rm -f conftest.err conftest.i conftest.$ac_ext
    34574638
    34584639done
    34594640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3460 rm -f conftest.err conftest.$ac_ext
    3461 if $ac_preproc_ok; then
    3462   :
    3463 else
    3464   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3465 See \`config.log' for more details." >&5
    3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3467 See \`config.log' for more details." >&2;}
    3468    { (exit 1); exit 1; }; }
     4641rm -f conftest.i conftest.err conftest.$ac_ext
     4642if $ac_preproc_ok; then :
     4643
     4644else
     4645  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4647as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4648See \`config.log' for more details" "$LINENO" 5 ; }
    34694649fi
    34704650
     
    34764656
    34774657
    3478 echo "$as_me:$LINENO: checking for egrep" >&5
    3479 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3480 if test "${ac_cv_prog_egrep+set}" = set; then
    3481   echo $ECHO_N "(cached) $ECHO_C" >&6
    3482 else
    3483   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3484     then ac_cv_prog_egrep='grep -E'
    3485     else ac_cv_prog_egrep='egrep'
     4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4659$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4660if test "${ac_cv_path_GREP+set}" = set; then :
     4661  $as_echo_n "(cached) " >&6
     4662else
     4663  if test -z "$GREP"; then
     4664  ac_path_GREP_found=false
     4665  # Loop through the user's path and test for each of PROGNAME-LIST
     4666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4668do
     4669  IFS=$as_save_IFS
     4670  test -z "$as_dir" && as_dir=.
     4671    for ac_prog in grep ggrep; do
     4672    for ac_exec_ext in '' $ac_executable_extensions; do
     4673      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4674      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4675# Check for GNU ac_path_GREP and select it if it is found.
     4676  # Check for GNU $ac_path_GREP
     4677case `"$ac_path_GREP" --version 2>&1` in
     4678*GNU*)
     4679  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4680*)
     4681  ac_count=0
     4682  $as_echo_n 0123456789 >"conftest.in"
     4683  while :
     4684  do
     4685    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4686    mv "conftest.tmp" "conftest.in"
     4687    cp "conftest.in" "conftest.nl"
     4688    $as_echo 'GREP' >> "conftest.nl"
     4689    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4690    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4691    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4692    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4693      # Best one so far, save it but keep looking for a better one
     4694      ac_cv_path_GREP="$ac_path_GREP"
     4695      ac_path_GREP_max=$ac_count
    34864696    fi
    3487 fi
    3488 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3489 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3490  EGREP=$ac_cv_prog_egrep
    3491 
    3492 
    3493 
    3494 echo "$as_me:$LINENO: checking for AIX" >&5
    3495 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3496 cat >conftest.$ac_ext <<_ACEOF
    3497 /* confdefs.h.  */
    3498 _ACEOF
    3499 cat confdefs.h >>conftest.$ac_ext
    3500 cat >>conftest.$ac_ext <<_ACEOF
    3501 /* end confdefs.h.  */
    3502 #ifdef _AIX
    3503   yes
    3504 #endif
    3505 
    3506 _ACEOF
    3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3508   $EGREP "yes" >/dev/null 2>&1; then
    3509   echo "$as_me:$LINENO: result: yes" >&5
    3510 echo "${ECHO_T}yes" >&6
    3511 cat >>confdefs.h <<\_ACEOF
    3512 #define _ALL_SOURCE 1
    3513 _ACEOF
    3514 
    3515 else
    3516   echo "$as_me:$LINENO: result: no" >&5
    3517 echo "${ECHO_T}no" >&6
    3518 fi
    3519 rm -f conftest*
    3520 
    3521 
    3522 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3523 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3524 if test "${ac_cv_search_strerror+set}" = set; then
    3525   echo $ECHO_N "(cached) $ECHO_C" >&6
    3526 else
    3527   ac_func_search_save_LIBS=$LIBS
    3528 ac_cv_search_strerror=no
    3529 cat >conftest.$ac_ext <<_ACEOF
    3530 /* confdefs.h.  */
    3531 _ACEOF
    3532 cat confdefs.h >>conftest.$ac_ext
    3533 cat >>conftest.$ac_ext <<_ACEOF
    3534 /* end confdefs.h.  */
    3535 
    3536 /* Override any gcc2 internal prototype to avoid an error.  */
    3537 #ifdef __cplusplus
    3538 extern "C"
    3539 #endif
    3540 /* We use char because int might match the return type of a gcc2
    3541    builtin and then its argument prototype would still apply.  */
    3542 char strerror ();
    3543 int
    3544 main ()
    3545 {
    3546 strerror ();
    3547   ;
    3548   return 0;
    3549 }
    3550 _ACEOF
    3551 rm -f conftest.$ac_objext conftest$ac_exeext
    3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3553   (eval $ac_link) 2>conftest.er1
    3554   ac_status=$?
    3555   grep -v '^ *+' conftest.er1 >conftest.err
    3556   rm -f conftest.er1
    3557   cat conftest.err >&5
    3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3559   (exit $ac_status); } &&
    3560      { ac_try='test -z "$ac_c_werror_flag"
    3561              || test ! -s conftest.err'
    3562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3563   (eval $ac_try) 2>&5
    3564   ac_status=$?
    3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3566   (exit $ac_status); }; } &&
    3567      { ac_try='test -s conftest$ac_exeext'
    3568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3569   (eval $ac_try) 2>&5
    3570   ac_status=$?
    3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3572   (exit $ac_status); }; }; then
    3573   ac_cv_search_strerror="none required"
    3574 else
    3575   echo "$as_me: failed program was:" >&5
    3576 sed 's/^/| /' conftest.$ac_ext >&5
    3577 
    3578 fi
    3579 rm -f conftest.err conftest.$ac_objext \
    3580       conftest$ac_exeext conftest.$ac_ext
    3581 if test "$ac_cv_search_strerror" = no; then
    3582   for ac_lib in cposix; do
    3583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3584     cat >conftest.$ac_ext <<_ACEOF
    3585 /* confdefs.h.  */
    3586 _ACEOF
    3587 cat confdefs.h >>conftest.$ac_ext
    3588 cat >>conftest.$ac_ext <<_ACEOF
    3589 /* end confdefs.h.  */
    3590 
    3591 /* Override any gcc2 internal prototype to avoid an error.  */
    3592 #ifdef __cplusplus
    3593 extern "C"
    3594 #endif
    3595 /* We use char because int might match the return type of a gcc2
    3596    builtin and then its argument prototype would still apply.  */
    3597 char strerror ();
    3598 int
    3599 main ()
    3600 {
    3601 strerror ();
    3602   ;
    3603   return 0;
    3604 }
    3605 _ACEOF
    3606 rm -f conftest.$ac_objext conftest$ac_exeext
    3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3608   (eval $ac_link) 2>conftest.er1
    3609   ac_status=$?
    3610   grep -v '^ *+' conftest.er1 >conftest.err
    3611   rm -f conftest.er1
    3612   cat conftest.err >&5
    3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3614   (exit $ac_status); } &&
    3615      { ac_try='test -z "$ac_c_werror_flag"
    3616              || test ! -s conftest.err'
    3617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3618   (eval $ac_try) 2>&5
    3619   ac_status=$?
    3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3621   (exit $ac_status); }; } &&
    3622      { ac_try='test -s conftest$ac_exeext'
    3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3624   (eval $ac_try) 2>&5
    3625   ac_status=$?
    3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3627   (exit $ac_status); }; }; then
    3628   ac_cv_search_strerror="-l$ac_lib"
    3629 break
    3630 else
    3631   echo "$as_me: failed program was:" >&5
    3632 sed 's/^/| /' conftest.$ac_ext >&5
    3633 
    3634 fi
    3635 rm -f conftest.err conftest.$ac_objext \
    3636       conftest$ac_exeext conftest.$ac_ext
     4697    # 10*(2^10) chars as input seems more than enough
     4698    test $ac_count -gt 10 && break
    36374699  done
    3638 fi
    3639 LIBS=$ac_func_search_save_LIBS
    3640 fi
    3641 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3642 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3643 if test "$ac_cv_search_strerror" != no; then
    3644   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3645 
    3646 fi
    3647 
    3648 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3650 if test "${ac_cv_header_stdc+set}" = set; then
    3651   echo $ECHO_N "(cached) $ECHO_C" >&6
    3652 else
    3653   cat >conftest.$ac_ext <<_ACEOF
    3654 /* confdefs.h.  */
    3655 _ACEOF
    3656 cat confdefs.h >>conftest.$ac_ext
    3657 cat >>conftest.$ac_ext <<_ACEOF
     4700  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4701esac
     4702
     4703      $ac_path_GREP_found && break 3
     4704    done
     4705  done
     4706  done
     4707IFS=$as_save_IFS
     4708  if test -z "$ac_cv_path_GREP"; then
     4709    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4710  fi
     4711else
     4712  ac_cv_path_GREP=$GREP
     4713fi
     4714
     4715fi
     4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4717$as_echo "$ac_cv_path_GREP" >&6; }
     4718 GREP="$ac_cv_path_GREP"
     4719
     4720
     4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4722$as_echo_n "checking for egrep... " >&6; }
     4723if test "${ac_cv_path_EGREP+set}" = set; then :
     4724  $as_echo_n "(cached) " >&6
     4725else
     4726  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4727   then ac_cv_path_EGREP="$GREP -E"
     4728   else
     4729     if test -z "$EGREP"; then
     4730  ac_path_EGREP_found=false
     4731  # Loop through the user's path and test for each of PROGNAME-LIST
     4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4734do
     4735  IFS=$as_save_IFS
     4736  test -z "$as_dir" && as_dir=.
     4737    for ac_prog in egrep; do
     4738    for ac_exec_ext in '' $ac_executable_extensions; do
     4739      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4740      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4741# Check for GNU ac_path_EGREP and select it if it is found.
     4742  # Check for GNU $ac_path_EGREP
     4743case `"$ac_path_EGREP" --version 2>&1` in
     4744*GNU*)
     4745  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4746*)
     4747  ac_count=0
     4748  $as_echo_n 0123456789 >"conftest.in"
     4749  while :
     4750  do
     4751    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4752    mv "conftest.tmp" "conftest.in"
     4753    cp "conftest.in" "conftest.nl"
     4754    $as_echo 'EGREP' >> "conftest.nl"
     4755    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4756    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4757    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4758    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4759      # Best one so far, save it but keep looking for a better one
     4760      ac_cv_path_EGREP="$ac_path_EGREP"
     4761      ac_path_EGREP_max=$ac_count
     4762    fi
     4763    # 10*(2^10) chars as input seems more than enough
     4764    test $ac_count -gt 10 && break
     4765  done
     4766  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4767esac
     4768
     4769      $ac_path_EGREP_found && break 3
     4770    done
     4771  done
     4772  done
     4773IFS=$as_save_IFS
     4774  if test -z "$ac_cv_path_EGREP"; then
     4775    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4776  fi
     4777else
     4778  ac_cv_path_EGREP=$EGREP
     4779fi
     4780
     4781   fi
     4782fi
     4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4784$as_echo "$ac_cv_path_EGREP" >&6; }
     4785 EGREP="$ac_cv_path_EGREP"
     4786
     4787
     4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4789$as_echo_n "checking for ANSI C header files... " >&6; }
     4790if test "${ac_cv_header_stdc+set}" = set; then :
     4791  $as_echo_n "(cached) " >&6
     4792else
     4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    36584794/* end confdefs.h.  */
    36594795#include <stdlib.h>
     
    36704806}
    36714807_ACEOF
    3672 rm -f conftest.$ac_objext
    3673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3674   (eval $ac_compile) 2>conftest.er1
    3675   ac_status=$?
    3676   grep -v '^ *+' conftest.er1 >conftest.err
    3677   rm -f conftest.er1
    3678   cat conftest.err >&5
    3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3680   (exit $ac_status); } &&
    3681      { ac_try='test -z "$ac_c_werror_flag"
    3682              || test ! -s conftest.err'
    3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3684   (eval $ac_try) 2>&5
    3685   ac_status=$?
    3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3687   (exit $ac_status); }; } &&
    3688      { ac_try='test -s conftest.$ac_objext'
    3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3690   (eval $ac_try) 2>&5
    3691   ac_status=$?
    3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3693   (exit $ac_status); }; }; then
     4808if ac_fn_c_try_compile "$LINENO"; then :
    36944809  ac_cv_header_stdc=yes
    36954810else
    3696   echo "$as_me: failed program was:" >&5
    3697 sed 's/^/| /' conftest.$ac_ext >&5
    3698 
    3699 ac_cv_header_stdc=no
    3700 fi
    3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4811  ac_cv_header_stdc=no
     4812fi
     4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    37024814
    37034815if test $ac_cv_header_stdc = yes; then
    37044816  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3705   cat >conftest.$ac_ext <<_ACEOF
    3706 /* confdefs.h.  */
    3707 _ACEOF
    3708 cat confdefs.h >>conftest.$ac_ext
    3709 cat >>conftest.$ac_ext <<_ACEOF
     4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37104818/* end confdefs.h.  */
    37114819#include <string.h>
     
    37134821_ACEOF
    37144822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3715   $EGREP "memchr" >/dev/null 2>&1; then
    3716   :
     4823  $EGREP "memchr" >/dev/null 2>&1; then :
     4824
    37174825else
    37184826  ac_cv_header_stdc=no
     
    37244832if test $ac_cv_header_stdc = yes; then
    37254833  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3726   cat >conftest.$ac_ext <<_ACEOF
    3727 /* confdefs.h.  */
    3728 _ACEOF
    3729 cat confdefs.h >>conftest.$ac_ext
    3730 cat >>conftest.$ac_ext <<_ACEOF
     4834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37314835/* end confdefs.h.  */
    37324836#include <stdlib.h>
     
    37344838_ACEOF
    37354839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3736   $EGREP "free" >/dev/null 2>&1; then
    3737   :
     4840  $EGREP "free" >/dev/null 2>&1; then :
     4841
    37384842else
    37394843  ac_cv_header_stdc=no
     
    37454849if test $ac_cv_header_stdc = yes; then
    37464850  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3747   if test "$cross_compiling" = yes; then
     4851  if test "$cross_compiling" = yes; then :
    37484852  :
    37494853else
    3750   cat >conftest.$ac_ext <<_ACEOF
    3751 /* confdefs.h.  */
    3752 _ACEOF
    3753 cat confdefs.h >>conftest.$ac_ext
    3754 cat >>conftest.$ac_ext <<_ACEOF
     4854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37554855/* end confdefs.h.  */
    37564856#include <ctype.h>
     4857#include <stdlib.h>
    37574858#if ((' ' & 0x0FF) == 0x020)
    37584859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    37744875    if (XOR (islower (i), ISLOWER (i))
    37754876    || toupper (i) != TOUPPER (i))
    3776       exit(2);
    3777   exit (0);
     4877      return 2;
     4878  return 0;
    37784879}
    37794880_ACEOF
    3780 rm -f conftest$ac_exeext
    3781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3782   (eval $ac_link) 2>&5
    3783   ac_status=$?
    3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3787   (eval $ac_try) 2>&5
    3788   ac_status=$?
    3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3790   (exit $ac_status); }; }; then
    3791   :
    3792 else
    3793   echo "$as_me: program exited with status $ac_status" >&5
    3794 echo "$as_me: failed program was:" >&5
    3795 sed 's/^/| /' conftest.$ac_ext >&5
    3796 
    3797 ( exit $ac_status )
    3798 ac_cv_header_stdc=no
    3799 fi
    3800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3801 fi
    3802 fi
    3803 fi
    3804 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3805 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4881if ac_fn_c_try_run "$LINENO"; then :
     4882
     4883else
     4884  ac_cv_header_stdc=no
     4885fi
     4886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4887  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4888fi
     4889
     4890fi
     4891fi
     4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4893$as_echo "$ac_cv_header_stdc" >&6; }
    38064894if test $ac_cv_header_stdc = yes; then
    38074895
    3808 cat >>confdefs.h <<\_ACEOF
    3809 #define STDC_HEADERS 1
    3810 _ACEOF
     4896$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    38114897
    38124898fi
    38134899
    38144900# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3815 
    3816 
    3817 
    3818 
    3819 
    3820 
    3821 
    3822 
    3823 
    38244901for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    38254902          inttypes.h stdint.h unistd.h
    3826 do
    3827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3828 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3831   echo $ECHO_N "(cached) $ECHO_C" >&6
    3832 else
    3833   cat >conftest.$ac_ext <<_ACEOF
    3834 /* confdefs.h.  */
    3835 _ACEOF
    3836 cat confdefs.h >>conftest.$ac_ext
    3837 cat >>conftest.$ac_ext <<_ACEOF
     4903do :
     4904  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4905ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4906"
     4907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4908  cat >>confdefs.h <<_ACEOF
     4909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4910_ACEOF
     4911
     4912fi
     4913
     4914done
     4915
     4916
     4917
     4918  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     4919if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     4920  MINIX=yes
     4921else
     4922  MINIX=
     4923fi
     4924
     4925
     4926  if test "$MINIX" = yes; then
     4927
     4928$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     4929
     4930
     4931$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     4932
     4933
     4934$as_echo "#define _MINIX 1" >>confdefs.h
     4935
     4936  fi
     4937
     4938
     4939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     4940$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     4941if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     4942  $as_echo_n "(cached) " >&6
     4943else
     4944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38384945/* end confdefs.h.  */
    3839 $ac_includes_default
    3840 
    3841 #include <$ac_header>
    3842 _ACEOF
    3843 rm -f conftest.$ac_objext
    3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3845   (eval $ac_compile) 2>conftest.er1
    3846   ac_status=$?
    3847   grep -v '^ *+' conftest.er1 >conftest.err
    3848   rm -f conftest.er1
    3849   cat conftest.err >&5
    3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3851   (exit $ac_status); } &&
    3852      { ac_try='test -z "$ac_c_werror_flag"
    3853              || test ! -s conftest.err'
    3854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3855   (eval $ac_try) 2>&5
    3856   ac_status=$?
    3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3858   (exit $ac_status); }; } &&
    3859      { ac_try='test -s conftest.$ac_objext'
    3860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3861   (eval $ac_try) 2>&5
    3862   ac_status=$?
    3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3864   (exit $ac_status); }; }; then
    3865   eval "$as_ac_Header=yes"
    3866 else
    3867   echo "$as_me: failed program was:" >&5
    3868 sed 's/^/| /' conftest.$ac_ext >&5
    3869 
    3870 eval "$as_ac_Header=no"
    3871 fi
    3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3873 fi
    3874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3877   cat >>confdefs.h <<_ACEOF
    3878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3879 _ACEOF
    3880 
    3881 fi
    3882 
     4946
     4947#     define __EXTENSIONS__ 1
     4948      $ac_includes_default
     4949int
     4950main ()
     4951{
     4952
     4953  ;
     4954  return 0;
     4955}
     4956_ACEOF
     4957if ac_fn_c_try_compile "$LINENO"; then :
     4958  ac_cv_safe_to_define___extensions__=yes
     4959else
     4960  ac_cv_safe_to_define___extensions__=no
     4961fi
     4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4963fi
     4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     4965$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     4966  test $ac_cv_safe_to_define___extensions__ = yes &&
     4967    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     4968
     4969  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     4970
     4971  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     4972
     4973  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     4974
     4975  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     4976
     4977
     4978
     4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     4980$as_echo_n "checking for library containing strerror... " >&6; }
     4981if test "${ac_cv_search_strerror+set}" = set; then :
     4982  $as_echo_n "(cached) " >&6
     4983else
     4984  ac_func_search_save_LIBS=$LIBS
     4985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4986/* end confdefs.h.  */
     4987
     4988/* Override any GCC internal prototype to avoid an error.
     4989   Use char because int might match the return type of a GCC
     4990   builtin and then its argument prototype would still apply.  */
     4991#ifdef __cplusplus
     4992extern "C"
     4993#endif
     4994char strerror ();
     4995int
     4996main ()
     4997{
     4998return strerror ();
     4999  ;
     5000  return 0;
     5001}
     5002_ACEOF
     5003for ac_lib in '' cposix; do
     5004  if test -z "$ac_lib"; then
     5005    ac_res="none required"
     5006  else
     5007    ac_res=-l$ac_lib
     5008    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5009  fi
     5010  if ac_fn_c_try_link "$LINENO"; then :
     5011  ac_cv_search_strerror=$ac_res
     5012fi
     5013rm -f core conftest.err conftest.$ac_objext \
     5014    conftest$ac_exeext
     5015  if test "${ac_cv_search_strerror+set}" = set; then :
     5016  break
     5017fi
    38835018done
    3884 
    3885 
    3886 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3887   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3888 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3889 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3890   echo $ECHO_N "(cached) $ECHO_C" >&6
    3891 fi
    3892 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3893 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3894 else
    3895   # Is the header compilable?
    3896 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3897 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3898 cat >conftest.$ac_ext <<_ACEOF
    3899 /* confdefs.h.  */
    3900 _ACEOF
    3901 cat confdefs.h >>conftest.$ac_ext
    3902 cat >>conftest.$ac_ext <<_ACEOF
    3903 /* end confdefs.h.  */
    3904 $ac_includes_default
    3905 #include <minix/config.h>
    3906 _ACEOF
    3907 rm -f conftest.$ac_objext
    3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3909   (eval $ac_compile) 2>conftest.er1
    3910   ac_status=$?
    3911   grep -v '^ *+' conftest.er1 >conftest.err
    3912   rm -f conftest.er1
    3913   cat conftest.err >&5
    3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3915   (exit $ac_status); } &&
    3916      { ac_try='test -z "$ac_c_werror_flag"
    3917              || test ! -s conftest.err'
    3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3919   (eval $ac_try) 2>&5
    3920   ac_status=$?
    3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3922   (exit $ac_status); }; } &&
    3923      { ac_try='test -s conftest.$ac_objext'
    3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3925   (eval $ac_try) 2>&5
    3926   ac_status=$?
    3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3928   (exit $ac_status); }; }; then
    3929   ac_header_compiler=yes
    3930 else
    3931   echo "$as_me: failed program was:" >&5
    3932 sed 's/^/| /' conftest.$ac_ext >&5
    3933 
    3934 ac_header_compiler=no
    3935 fi
    3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3938 echo "${ECHO_T}$ac_header_compiler" >&6
    3939 
    3940 # Is the header present?
    3941 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    3942 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    3943 cat >conftest.$ac_ext <<_ACEOF
    3944 /* confdefs.h.  */
    3945 _ACEOF
    3946 cat confdefs.h >>conftest.$ac_ext
    3947 cat >>conftest.$ac_ext <<_ACEOF
    3948 /* end confdefs.h.  */
    3949 #include <minix/config.h>
    3950 _ACEOF
    3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3953   ac_status=$?
    3954   grep -v '^ *+' conftest.er1 >conftest.err
    3955   rm -f conftest.er1
    3956   cat conftest.err >&5
    3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3958   (exit $ac_status); } >/dev/null; then
    3959   if test -s conftest.err; then
    3960     ac_cpp_err=$ac_c_preproc_warn_flag
    3961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3962   else
    3963     ac_cpp_err=
    3964   fi
    3965 else
    3966   ac_cpp_err=yes
    3967 fi
    3968 if test -z "$ac_cpp_err"; then
    3969   ac_header_preproc=yes
    3970 else
    3971   echo "$as_me: failed program was:" >&5
    3972 sed 's/^/| /' conftest.$ac_ext >&5
    3973 
    3974   ac_header_preproc=no
    3975 fi
    3976 rm -f conftest.err conftest.$ac_ext
    3977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3978 echo "${ECHO_T}$ac_header_preproc" >&6
    3979 
    3980 # So?  What about this header?
    3981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3982   yes:no: )
    3983     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    3984 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3985     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    3986 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    3987     ac_header_preproc=yes
    3988     ;;
    3989   no:yes:* )
    3990     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    3991 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    3992     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    3993 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    3994     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    3995 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    3996     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    3997 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    3998     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    3999 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    4000     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    4001 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    4002     (
    4003       cat <<\_ASBOX
    4004 ## ------------------------------------------ ##
    4005 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4006 ## ------------------------------------------ ##
    4007 _ASBOX
    4008     ) |
    4009       sed "s/^/$as_me: WARNING:     /" >&2
    4010     ;;
    4011 esac
    4012 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    4013 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    4014 if test "${ac_cv_header_minix_config_h+set}" = set; then
    4015   echo $ECHO_N "(cached) $ECHO_C" >&6
    4016 else
    4017   ac_cv_header_minix_config_h=$ac_header_preproc
    4018 fi
    4019 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    4020 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    4021 
    4022 fi
    4023 if test $ac_cv_header_minix_config_h = yes; then
    4024   MINIX=yes
    4025 else
    4026   MINIX=
    4027 fi
    4028 
    4029 
    4030 if test "$MINIX" = yes; then
    4031 
    4032 cat >>confdefs.h <<\_ACEOF
    4033 #define _POSIX_SOURCE 1
    4034 _ACEOF
    4035 
    4036 
    4037 cat >>confdefs.h <<\_ACEOF
    4038 #define _POSIX_1_SOURCE 2
    4039 _ACEOF
    4040 
    4041 
    4042 cat >>confdefs.h <<\_ACEOF
    4043 #define _MINIX 1
    4044 _ACEOF
    4045 
    4046 fi
    4047 
    4048 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    4049 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    4050 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    4051   echo $ECHO_N "(cached) $ECHO_C" >&6
     5019if test "${ac_cv_search_strerror+set}" = set; then :
     5020
     5021else
     5022  ac_cv_search_strerror=no
     5023fi
     5024rm conftest.$ac_ext
     5025LIBS=$ac_func_search_save_LIBS
     5026fi
     5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     5028$as_echo "$ac_cv_search_strerror" >&6; }
     5029ac_res=$ac_cv_search_strerror
     5030if test "$ac_res" != no; then :
     5031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5032
     5033fi
     5034
     5035
     5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     5037$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     5038if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     5039  $as_echo_n "(cached) " >&6
    40525040else
    40535041  ac_cv_prog_cc_stdc=no
     
    40625050do
    40635051  CFLAGS="$ac_save_CFLAGS $ac_arg"
    4064   cat >conftest.$ac_ext <<_ACEOF
    4065 /* confdefs.h.  */
    4066 _ACEOF
    4067 cat confdefs.h >>conftest.$ac_ext
    4068 cat >>conftest.$ac_ext <<_ACEOF
     5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    40695053/* end confdefs.h.  */
    40705054#if !defined(__STDC__) || __STDC__ != 1
     
    40825066}
    40835067_ACEOF
    4084 rm -f conftest.$ac_objext
    4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4086   (eval $ac_compile) 2>conftest.er1
    4087   ac_status=$?
    4088   grep -v '^ *+' conftest.er1 >conftest.err
    4089   rm -f conftest.er1
    4090   cat conftest.err >&5
    4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4092   (exit $ac_status); } &&
    4093      { ac_try='test -z "$ac_c_werror_flag"
    4094              || test ! -s conftest.err'
    4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4096   (eval $ac_try) 2>&5
    4097   ac_status=$?
    4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4099   (exit $ac_status); }; } &&
    4100      { ac_try='test -s conftest.$ac_objext'
    4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4102   (eval $ac_try) 2>&5
    4103   ac_status=$?
    4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4105   (exit $ac_status); }; }; then
     5068if ac_fn_c_try_compile "$LINENO"; then :
    41065069  ac_cv_prog_cc_stdc="$ac_arg"; break
    4107 else
    4108   echo "$as_me: failed program was:" >&5
    4109 sed 's/^/| /' conftest.$ac_ext >&5
    4110 
    4111 fi
    4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5070fi
     5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    41135072done
    41145073CFLAGS="$ac_save_CFLAGS"
     
    41165075fi
    41175076
    4118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    4119 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     5078$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    41205079case "x$ac_cv_prog_cc_stdc" in
    41215080  x|xno) ;;
     
    41245083
    41255084
    4126 echo "$as_me:$LINENO: checking for function prototypes" >&5
    4127 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     5086$as_echo_n "checking for function prototypes... " >&6; }
    41285087if test "$ac_cv_prog_cc_stdc" != no; then
    4129   echo "$as_me:$LINENO: result: yes" >&5
    4130 echo "${ECHO_T}yes" >&6
    4131   cat >>confdefs.h <<\_ACEOF
    4132 #define PROTOTYPES 1
    4133 _ACEOF
     5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5089$as_echo "yes" >&6; }
     5090  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    41345091
    41355092  U= ANSI2KNR=
    41365093else
    4137   echo "$as_me:$LINENO: result: no" >&5
    4138 echo "${ECHO_T}no" >&6
     5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5095$as_echo "no" >&6; }
    41395096  U=_ ANSI2KNR=ansi2knr
    41405097fi
    41415098
    4142 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4143 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4144 if test "${ac_cv_c_const+set}" = set; then
    4145   echo $ECHO_N "(cached) $ECHO_C" >&6
    4146 else
    4147   cat >conftest.$ac_ext <<_ACEOF
    4148 /* confdefs.h.  */
    4149 _ACEOF
    4150 cat confdefs.h >>conftest.$ac_ext
    4151 cat >>conftest.$ac_ext <<_ACEOF
     5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     5100$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     5101if test "${ac_cv_c_const+set}" = set; then :
     5102  $as_echo_n "(cached) " >&6
     5103else
     5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    41525105/* end confdefs.h.  */
    41535106
     
    41595112  /* Ultrix mips cc rejects this.  */
    41605113  typedef int charset[2];
    4161   const charset x;
     5114  const charset cs;
    41625115  /* SunOS 4.1.1 cc rejects this.  */
    4163   char const *const *ccp;
    4164   char **p;
     5116  char const *const *pcpcc;
     5117  char **ppc;
    41655118  /* NEC SVR4.0.2 mips cc rejects this.  */
    41665119  struct point {int x, y;};
     
    41715124     expression */
    41725125  const char *g = "string";
    4173   ccp = &g + (g ? g-g : 0);
     5126  pcpcc = &g + (g ? g-g : 0);
    41745127  /* HPUX 7.0 cc rejects these. */
    4175   ++ccp;
    4176   p = (char**) ccp;
    4177   ccp = (char const *const *) p;
     5128  ++pcpcc;
     5129  ppc = (char**) pcpcc;
     5130  pcpcc = (char const *const *) ppc;
    41785131  { /* SCO 3.2v4 cc rejects this.  */
    41795132    char *t;
     
    41815134
    41825135    *t++ = 0;
     5136    if (s) return 0;
    41835137  }
    41845138  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    41995153  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    42005154    const int foo = 10;
     5155    if (!foo) return 0;
    42015156  }
     5157  return !cs[0] && !zero.x;
    42025158#endif
    42035159
     
    42065162}
    42075163_ACEOF
    4208 rm -f conftest.$ac_objext
    4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4210   (eval $ac_compile) 2>conftest.er1
    4211   ac_status=$?
    4212   grep -v '^ *+' conftest.er1 >conftest.err
    4213   rm -f conftest.er1
    4214   cat conftest.err >&5
    4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4216   (exit $ac_status); } &&
    4217      { ac_try='test -z "$ac_c_werror_flag"
    4218              || test ! -s conftest.err'
    4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4220   (eval $ac_try) 2>&5
    4221   ac_status=$?
    4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4223   (exit $ac_status); }; } &&
    4224      { ac_try='test -s conftest.$ac_objext'
    4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4226   (eval $ac_try) 2>&5
    4227   ac_status=$?
    4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4229   (exit $ac_status); }; }; then
     5164if ac_fn_c_try_compile "$LINENO"; then :
    42305165  ac_cv_c_const=yes
    42315166else
    4232   echo "$as_me: failed program was:" >&5
    4233 sed 's/^/| /' conftest.$ac_ext >&5
    4234 
    4235 ac_cv_c_const=no
    4236 fi
    4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4238 fi
    4239 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4240 echo "${ECHO_T}$ac_cv_c_const" >&6
     5167  ac_cv_c_const=no
     5168fi
     5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5170fi
     5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     5172$as_echo "$ac_cv_c_const" >&6; }
    42415173if test $ac_cv_c_const = no; then
    42425174
    4243 cat >>confdefs.h <<\_ACEOF
    4244 #define const
    4245 _ACEOF
    4246 
    4247 fi
    4248 
    4249 echo "$as_me:$LINENO: checking for off_t" >&5
    4250 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4251 if test "${ac_cv_type_off_t+set}" = set; then
    4252   echo $ECHO_N "(cached) $ECHO_C" >&6
    4253 else
    4254   cat >conftest.$ac_ext <<_ACEOF
    4255 /* confdefs.h.  */
    4256 _ACEOF
    4257 cat confdefs.h >>conftest.$ac_ext
    4258 cat >>conftest.$ac_ext <<_ACEOF
    4259 /* end confdefs.h.  */
    4260 $ac_includes_default
    4261 int
    4262 main ()
    4263 {
    4264 if ((off_t *) 0)
    4265   return 0;
    4266 if (sizeof (off_t))
    4267   return 0;
    4268   ;
    4269   return 0;
    4270 }
    4271 _ACEOF
    4272 rm -f conftest.$ac_objext
    4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4274   (eval $ac_compile) 2>conftest.er1
    4275   ac_status=$?
    4276   grep -v '^ *+' conftest.er1 >conftest.err
    4277   rm -f conftest.er1
    4278   cat conftest.err >&5
    4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4280   (exit $ac_status); } &&
    4281      { ac_try='test -z "$ac_c_werror_flag"
    4282              || test ! -s conftest.err'
    4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4284   (eval $ac_try) 2>&5
    4285   ac_status=$?
    4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4287   (exit $ac_status); }; } &&
    4288      { ac_try='test -s conftest.$ac_objext'
    4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4290   (eval $ac_try) 2>&5
    4291   ac_status=$?
    4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4293   (exit $ac_status); }; }; then
    4294   ac_cv_type_off_t=yes
    4295 else
    4296   echo "$as_me: failed program was:" >&5
    4297 sed 's/^/| /' conftest.$ac_ext >&5
    4298 
    4299 ac_cv_type_off_t=no
    4300 fi
    4301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4302 fi
    4303 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4304 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4305 if test $ac_cv_type_off_t = yes; then
    4306   :
     5175$as_echo "#define const /**/" >>confdefs.h
     5176
     5177fi
     5178
     5179ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     5180if test "x$ac_cv_type_off_t" = x""yes; then :
     5181
    43075182else
    43085183
    43095184cat >>confdefs.h <<_ACEOF
    4310 #define off_t long
    4311 _ACEOF
    4312 
    4313 fi
    4314 
    4315 echo "$as_me:$LINENO: checking for size_t" >&5
    4316 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4317 if test "${ac_cv_type_size_t+set}" = set; then
    4318   echo $ECHO_N "(cached) $ECHO_C" >&6
    4319 else
    4320   cat >conftest.$ac_ext <<_ACEOF
    4321 /* confdefs.h.  */
    4322 _ACEOF
    4323 cat confdefs.h >>conftest.$ac_ext
    4324 cat >>conftest.$ac_ext <<_ACEOF
    4325 /* end confdefs.h.  */
    4326 $ac_includes_default
    4327 int
    4328 main ()
    4329 {
    4330 if ((size_t *) 0)
    4331   return 0;
    4332 if (sizeof (size_t))
    4333   return 0;
    4334   ;
    4335   return 0;
    4336 }
    4337 _ACEOF
    4338 rm -f conftest.$ac_objext
    4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4340   (eval $ac_compile) 2>conftest.er1
    4341   ac_status=$?
    4342   grep -v '^ *+' conftest.er1 >conftest.err
    4343   rm -f conftest.er1
    4344   cat conftest.err >&5
    4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4346   (exit $ac_status); } &&
    4347      { ac_try='test -z "$ac_c_werror_flag"
    4348              || test ! -s conftest.err'
    4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4350   (eval $ac_try) 2>&5
    4351   ac_status=$?
    4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4353   (exit $ac_status); }; } &&
    4354      { ac_try='test -s conftest.$ac_objext'
    4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4356   (eval $ac_try) 2>&5
    4357   ac_status=$?
    4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4359   (exit $ac_status); }; }; then
    4360   ac_cv_type_size_t=yes
    4361 else
    4362   echo "$as_me: failed program was:" >&5
    4363 sed 's/^/| /' conftest.$ac_ext >&5
    4364 
    4365 ac_cv_type_size_t=no
    4366 fi
    4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4368 fi
    4369 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4370 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4371 if test $ac_cv_type_size_t = yes; then
    4372   :
     5185#define off_t long int
     5186_ACEOF
     5187
     5188fi
     5189
     5190ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     5191if test "x$ac_cv_type_size_t" = x""yes; then :
     5192
    43735193else
    43745194
    43755195cat >>confdefs.h <<_ACEOF
    4376 #define size_t unsigned
    4377 _ACEOF
    4378 
    4379 fi
    4380 
    4381 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4382 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4383 if test "${ac_cv_header_time+set}" = set; then
    4384   echo $ECHO_N "(cached) $ECHO_C" >&6
    4385 else
    4386   cat >conftest.$ac_ext <<_ACEOF
    4387 /* confdefs.h.  */
    4388 _ACEOF
    4389 cat confdefs.h >>conftest.$ac_ext
    4390 cat >>conftest.$ac_ext <<_ACEOF
     5196#define size_t unsigned int
     5197_ACEOF
     5198
     5199fi
     5200
     5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     5202$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     5203if test "${ac_cv_header_time+set}" = set; then :
     5204  $as_echo_n "(cached) " >&6
     5205else
     5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43915207/* end confdefs.h.  */
    43925208#include <sys/types.h>
     
    44035219}
    44045220_ACEOF
    4405 rm -f conftest.$ac_objext
    4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4407   (eval $ac_compile) 2>conftest.er1
    4408   ac_status=$?
    4409   grep -v '^ *+' conftest.er1 >conftest.err
    4410   rm -f conftest.er1
    4411   cat conftest.err >&5
    4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4413   (exit $ac_status); } &&
    4414      { ac_try='test -z "$ac_c_werror_flag"
    4415              || test ! -s conftest.err'
    4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4417   (eval $ac_try) 2>&5
    4418   ac_status=$?
    4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4420   (exit $ac_status); }; } &&
    4421      { ac_try='test -s conftest.$ac_objext'
    4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4423   (eval $ac_try) 2>&5
    4424   ac_status=$?
    4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4426   (exit $ac_status); }; }; then
     5221if ac_fn_c_try_compile "$LINENO"; then :
    44275222  ac_cv_header_time=yes
    44285223else
    4429   echo "$as_me: failed program was:" >&5
    4430 sed 's/^/| /' conftest.$ac_ext >&5
    4431 
    4432 ac_cv_header_time=no
    4433 fi
    4434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4435 fi
    4436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4437 echo "${ECHO_T}$ac_cv_header_time" >&6
     5224  ac_cv_header_time=no
     5225fi
     5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5227fi
     5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     5229$as_echo "$ac_cv_header_time" >&6; }
    44385230if test $ac_cv_header_time = yes; then
    44395231
    4440 cat >>confdefs.h <<\_ACEOF
    4441 #define TIME_WITH_SYS_TIME 1
    4442 _ACEOF
    4443 
    4444 fi
    4445 
    4446 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4447 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4448 if test "${ac_cv_struct_tm+set}" = set; then
    4449   echo $ECHO_N "(cached) $ECHO_C" >&6
    4450 else
    4451   cat >conftest.$ac_ext <<_ACEOF
    4452 /* confdefs.h.  */
    4453 _ACEOF
    4454 cat confdefs.h >>conftest.$ac_ext
    4455 cat >>conftest.$ac_ext <<_ACEOF
     5232$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     5233
     5234fi
     5235
     5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     5237$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     5238if test "${ac_cv_struct_tm+set}" = set; then :
     5239  $as_echo_n "(cached) " >&6
     5240else
     5241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44565242/* end confdefs.h.  */
    44575243#include <sys/types.h>
     
    44615247main ()
    44625248{
    4463 struct tm *tp; tp->tm_sec;
     5249struct tm tm;
     5250                     int *p = &tm.tm_sec;
     5251                     return !p;
    44645252  ;
    44655253  return 0;
    44665254}
    44675255_ACEOF
    4468 rm -f conftest.$ac_objext
    4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4470   (eval $ac_compile) 2>conftest.er1
    4471   ac_status=$?
    4472   grep -v '^ *+' conftest.er1 >conftest.err
    4473   rm -f conftest.er1
    4474   cat conftest.err >&5
    4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4476   (exit $ac_status); } &&
    4477      { ac_try='test -z "$ac_c_werror_flag"
    4478              || test ! -s conftest.err'
    4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4480   (eval $ac_try) 2>&5
    4481   ac_status=$?
    4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4483   (exit $ac_status); }; } &&
    4484      { ac_try='test -s conftest.$ac_objext'
    4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4486   (eval $ac_try) 2>&5
    4487   ac_status=$?
    4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4489   (exit $ac_status); }; }; then
     5256if ac_fn_c_try_compile "$LINENO"; then :
    44905257  ac_cv_struct_tm=time.h
    44915258else
    4492   echo "$as_me: failed program was:" >&5
    4493 sed 's/^/| /' conftest.$ac_ext >&5
    4494 
    4495 ac_cv_struct_tm=sys/time.h
    4496 fi
    4497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4498 fi
    4499 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4500 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5259  ac_cv_struct_tm=sys/time.h
     5260fi
     5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5262fi
     5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5264$as_echo "$ac_cv_struct_tm" >&6; }
    45015265if test $ac_cv_struct_tm = sys/time.h; then
    45025266
    4503 cat >>confdefs.h <<\_ACEOF
    4504 #define TM_IN_SYS_TIME 1
    4505 _ACEOF
     5267$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    45065268
    45075269fi
     
    45095271
    45105272if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4511 cat >conftest.$ac_ext <<_ACEOF
    4512 /* confdefs.h.  */
    4513 _ACEOF
    4514 cat confdefs.h >>conftest.$ac_ext
    4515 cat >>conftest.$ac_ext <<_ACEOF
     5273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45165274/* end confdefs.h.  */
    45175275#include <stdio.h>
     
    45255283}
    45265284_ACEOF
    4527 rm -f conftest.$ac_objext
    4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4529   (eval $ac_compile) 2>conftest.er1
    4530   ac_status=$?
    4531   grep -v '^ *+' conftest.er1 >conftest.err
    4532   rm -f conftest.er1
    4533   cat conftest.err >&5
    4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4535   (exit $ac_status); } &&
    4536      { ac_try='test -z "$ac_c_werror_flag"
    4537              || test ! -s conftest.err'
    4538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4539   (eval $ac_try) 2>&5
    4540   ac_status=$?
    4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4542   (exit $ac_status); }; } &&
    4543      { ac_try='test -s conftest.$ac_objext'
    4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4545   (eval $ac_try) 2>&5
    4546   ac_status=$?
    4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4548   (exit $ac_status); }; }; then
    4549   :
    4550 else
    4551   echo "$as_me: failed program was:" >&5
    4552 sed 's/^/| /' conftest.$ac_ext >&5
    4553 
    4554 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4555 fi
    4556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4557 fi
    4558 
    4559 
    4560 
    4561 echo "$as_me:$LINENO: checking for main in -lg" >&5
    4562 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    4563 if test "${ac_cv_lib_g_main+set}" = set; then
    4564   echo $ECHO_N "(cached) $ECHO_C" >&6
     5285if ac_fn_c_try_compile "$LINENO"; then :
     5286
     5287else
     5288  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5289fi
     5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5291fi
     5292
     5293
     5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
     5295$as_echo_n "checking for main in -lg... " >&6; }
     5296if test "${ac_cv_lib_g_main+set}" = set; then :
     5297  $as_echo_n "(cached) " >&6
    45655298else
    45665299  ac_check_lib_save_LIBS=$LIBS
    45675300LIBS="-lg  $LIBS"
    4568 cat >conftest.$ac_ext <<_ACEOF
    4569 /* confdefs.h.  */
    4570 _ACEOF
    4571 cat confdefs.h >>conftest.$ac_ext
    4572 cat >>conftest.$ac_ext <<_ACEOF
     5301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45735302/* end confdefs.h.  */
    45745303
     
    45775306main ()
    45785307{
    4579 main ();
     5308return main ();
    45805309  ;
    45815310  return 0;
    45825311}
    45835312_ACEOF
    4584 rm -f conftest.$ac_objext conftest$ac_exeext
    4585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4586   (eval $ac_link) 2>conftest.er1
    4587   ac_status=$?
    4588   grep -v '^ *+' conftest.er1 >conftest.err
    4589   rm -f conftest.er1
    4590   cat conftest.err >&5
    4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4592   (exit $ac_status); } &&
    4593      { ac_try='test -z "$ac_c_werror_flag"
    4594              || test ! -s conftest.err'
    4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4596   (eval $ac_try) 2>&5
    4597   ac_status=$?
    4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4599   (exit $ac_status); }; } &&
    4600      { ac_try='test -s conftest$ac_exeext'
    4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4602   (eval $ac_try) 2>&5
    4603   ac_status=$?
    4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4605   (exit $ac_status); }; }; then
     5313if ac_fn_c_try_link "$LINENO"; then :
    46065314  ac_cv_lib_g_main=yes
    46075315else
    4608   echo "$as_me: failed program was:" >&5
    4609 sed 's/^/| /' conftest.$ac_ext >&5
    4610 
    4611 ac_cv_lib_g_main=no
    4612 fi
    4613 rm -f conftest.err conftest.$ac_objext \
    4614       conftest$ac_exeext conftest.$ac_ext
     5316  ac_cv_lib_g_main=no
     5317fi
     5318rm -f core conftest.err conftest.$ac_objext \
     5319    conftest$ac_exeext conftest.$ac_ext
    46155320LIBS=$ac_check_lib_save_LIBS
    46165321fi
    4617 echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
    4618 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    4619 if test $ac_cv_lib_g_main = yes; then
     5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
     5323$as_echo "$ac_cv_lib_g_main" >&6; }
     5324if test "x$ac_cv_lib_g_main" = x""yes; then :
    46205325  cat >>confdefs.h <<_ACEOF
    46215326#define HAVE_LIBG 1
     
    46275332ac_cv_lib_g=ac_cv_lib_g_main
    46285333
    4629 
    4630 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4631 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4632 if test "${ac_cv_lib_m_main+set}" = set; then
    4633   echo $ECHO_N "(cached) $ECHO_C" >&6
     5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5335$as_echo_n "checking for main in -lm... " >&6; }
     5336if test "${ac_cv_lib_m_main+set}" = set; then :
     5337  $as_echo_n "(cached) " >&6
    46345338else
    46355339  ac_check_lib_save_LIBS=$LIBS
    46365340LIBS="-lm  $LIBS"
    4637 cat >conftest.$ac_ext <<_ACEOF
    4638 /* confdefs.h.  */
    4639 _ACEOF
    4640 cat confdefs.h >>conftest.$ac_ext
    4641 cat >>conftest.$ac_ext <<_ACEOF
     5341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46425342/* end confdefs.h.  */
    46435343
     
    46465346main ()
    46475347{
    4648 main ();
     5348return main ();
    46495349  ;
    46505350  return 0;
    46515351}
    46525352_ACEOF
    4653 rm -f conftest.$ac_objext conftest$ac_exeext
    4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4655   (eval $ac_link) 2>conftest.er1
    4656   ac_status=$?
    4657   grep -v '^ *+' conftest.er1 >conftest.err
    4658   rm -f conftest.er1
    4659   cat conftest.err >&5
    4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4661   (exit $ac_status); } &&
    4662      { ac_try='test -z "$ac_c_werror_flag"
    4663              || test ! -s conftest.err'
    4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4665   (eval $ac_try) 2>&5
    4666   ac_status=$?
    4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4668   (exit $ac_status); }; } &&
    4669      { ac_try='test -s conftest$ac_exeext'
    4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4671   (eval $ac_try) 2>&5
    4672   ac_status=$?
    4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4674   (exit $ac_status); }; }; then
     5353if ac_fn_c_try_link "$LINENO"; then :
    46755354  ac_cv_lib_m_main=yes
    46765355else
    4677   echo "$as_me: failed program was:" >&5
    4678 sed 's/^/| /' conftest.$ac_ext >&5
    4679 
    4680 ac_cv_lib_m_main=no
    4681 fi
    4682 rm -f conftest.err conftest.$ac_objext \
    4683       conftest$ac_exeext conftest.$ac_ext
     5356  ac_cv_lib_m_main=no
     5357fi
     5358rm -f core conftest.err conftest.$ac_objext \
     5359    conftest$ac_exeext conftest.$ac_ext
    46845360LIBS=$ac_check_lib_save_LIBS
    46855361fi
    4686 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4687 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4688 if test $ac_cv_lib_m_main = yes; then
     5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5363$as_echo "$ac_cv_lib_m_main" >&6; }
     5364if test "x$ac_cv_lib_m_main" = x""yes; then :
    46895365  cat >>confdefs.h <<_ACEOF
    46905366#define HAVE_LIBM 1
     
    46965372ac_cv_lib_m=ac_cv_lib_m_main
    46975373
    4698 
    4699 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
    4700 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    4701 if test "${ac_cv_lib_crypt_main+set}" = set; then
    4702   echo $ECHO_N "(cached) $ECHO_C" >&6
     5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
     5375$as_echo_n "checking for main in -lcrypt... " >&6; }
     5376if test "${ac_cv_lib_crypt_main+set}" = set; then :
     5377  $as_echo_n "(cached) " >&6
    47035378else
    47045379  ac_check_lib_save_LIBS=$LIBS
    47055380LIBS="-lcrypt  $LIBS"
    4706 cat >conftest.$ac_ext <<_ACEOF
    4707 /* confdefs.h.  */
    4708 _ACEOF
    4709 cat confdefs.h >>conftest.$ac_ext
    4710 cat >>conftest.$ac_ext <<_ACEOF
     5381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47115382/* end confdefs.h.  */
    47125383
     
    47155386main ()
    47165387{
    4717 main ();
     5388return main ();
    47185389  ;
    47195390  return 0;
    47205391}
    47215392_ACEOF
    4722 rm -f conftest.$ac_objext conftest$ac_exeext
    4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4724   (eval $ac_link) 2>conftest.er1
    4725   ac_status=$?
    4726   grep -v '^ *+' conftest.er1 >conftest.err
    4727   rm -f conftest.er1
    4728   cat conftest.err >&5
    4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4730   (exit $ac_status); } &&
    4731      { ac_try='test -z "$ac_c_werror_flag"
    4732              || test ! -s conftest.err'
    4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4734   (eval $ac_try) 2>&5
    4735   ac_status=$?
    4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4737   (exit $ac_status); }; } &&
    4738      { ac_try='test -s conftest$ac_exeext'
    4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4740   (eval $ac_try) 2>&5
    4741   ac_status=$?
    4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4743   (exit $ac_status); }; }; then
     5393if ac_fn_c_try_link "$LINENO"; then :
    47445394  ac_cv_lib_crypt_main=yes
    47455395else
    4746   echo "$as_me: failed program was:" >&5
    4747 sed 's/^/| /' conftest.$ac_ext >&5
    4748 
    4749 ac_cv_lib_crypt_main=no
    4750 fi
    4751 rm -f conftest.err conftest.$ac_objext \
    4752       conftest$ac_exeext conftest.$ac_ext
     5396  ac_cv_lib_crypt_main=no
     5397fi
     5398rm -f core conftest.err conftest.$ac_objext \
     5399    conftest$ac_exeext conftest.$ac_ext
    47535400LIBS=$ac_check_lib_save_LIBS
    47545401fi
    4755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
    4756 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    4757 if test $ac_cv_lib_crypt_main = yes; then
     5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
     5403$as_echo "$ac_cv_lib_crypt_main" >&6; }
     5404if test "x$ac_cv_lib_crypt_main" = x""yes; then :
    47585405  cat >>confdefs.h <<_ACEOF
    47595406#define HAVE_LIBCRYPT 1
     
    47665413
    47675414if test $ENABLE_ACCENTFOLD = 1; then
    4768 
    4769 echo "$as_me:$LINENO: checking for main in -liconv" >&5
    4770 echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
    4771 if test "${ac_cv_lib_iconv_main+set}" = set; then
    4772   echo $ECHO_N "(cached) $ECHO_C" >&6
     5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5
     5416$as_echo_n "checking for main in -liconv... " >&6; }
     5417if test "${ac_cv_lib_iconv_main+set}" = set; then :
     5418  $as_echo_n "(cached) " >&6
    47735419else
    47745420  ac_check_lib_save_LIBS=$LIBS
    47755421LIBS="-liconv  $LIBS"
    4776 cat >conftest.$ac_ext <<_ACEOF
    4777 /* confdefs.h.  */
    4778 _ACEOF
    4779 cat confdefs.h >>conftest.$ac_ext
    4780 cat >>conftest.$ac_ext <<_ACEOF
     5422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47815423/* end confdefs.h.  */
    47825424
     
    47855427main ()
    47865428{
    4787 main ();
     5429return main ();
    47885430  ;
    47895431  return 0;
    47905432}
    47915433_ACEOF
    4792 rm -f conftest.$ac_objext conftest$ac_exeext
    4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4794   (eval $ac_link) 2>conftest.er1
    4795   ac_status=$?
    4796   grep -v '^ *+' conftest.er1 >conftest.err
    4797   rm -f conftest.er1
    4798   cat conftest.err >&5
    4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4800   (exit $ac_status); } &&
    4801      { ac_try='test -z "$ac_c_werror_flag"
    4802              || test ! -s conftest.err'
    4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4804   (eval $ac_try) 2>&5
    4805   ac_status=$?
    4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4807   (exit $ac_status); }; } &&
    4808      { ac_try='test -s conftest$ac_exeext'
    4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4810   (eval $ac_try) 2>&5
    4811   ac_status=$?
    4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4813   (exit $ac_status); }; }; then
     5434if ac_fn_c_try_link "$LINENO"; then :
    48145435  ac_cv_lib_iconv_main=yes
    48155436else
    4816   echo "$as_me: failed program was:" >&5
    4817 sed 's/^/| /' conftest.$ac_ext >&5
    4818 
    4819 ac_cv_lib_iconv_main=no
    4820 fi
    4821 rm -f conftest.err conftest.$ac_objext \
    4822       conftest$ac_exeext conftest.$ac_ext
     5437  ac_cv_lib_iconv_main=no
     5438fi
     5439rm -f core conftest.err conftest.$ac_objext \
     5440    conftest$ac_exeext conftest.$ac_ext
    48235441LIBS=$ac_check_lib_save_LIBS
    48245442fi
    4825 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
    4826 echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
    4827 if test $ac_cv_lib_iconv_main = yes; then
     5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5
     5444$as_echo "$ac_cv_lib_iconv_main" >&6; }
     5445if test "x$ac_cv_lib_iconv_main" = x""yes; then :
    48285446  cat >>confdefs.h <<_ACEOF
    48295447#define HAVE_LIBICONV 1
     
    48375455fi
    48385456
    4839 
    4840 
    4841 
    4842 
    4843 
    48445457ac_header_dirent=no
    48455458for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4846   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4847 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4848 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4850   echo $ECHO_N "(cached) $ECHO_C" >&6
    4851 else
    4852   cat >conftest.$ac_ext <<_ACEOF
    4853 /* confdefs.h.  */
    4854 _ACEOF
    4855 cat confdefs.h >>conftest.$ac_ext
    4856 cat >>conftest.$ac_ext <<_ACEOF
     5459  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5461$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5462if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5463  $as_echo_n "(cached) " >&6
     5464else
     5465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48575466/* end confdefs.h.  */
    48585467#include <sys/types.h>
     
    48685477}
    48695478_ACEOF
    4870 rm -f conftest.$ac_objext
    4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4872   (eval $ac_compile) 2>conftest.er1
    4873   ac_status=$?
    4874   grep -v '^ *+' conftest.er1 >conftest.err
    4875   rm -f conftest.er1
    4876   cat conftest.err >&5
    4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4878   (exit $ac_status); } &&
    4879      { ac_try='test -z "$ac_c_werror_flag"
    4880              || test ! -s conftest.err'
    4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4882   (eval $ac_try) 2>&5
    4883   ac_status=$?
    4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4885   (exit $ac_status); }; } &&
    4886      { ac_try='test -s conftest.$ac_objext'
    4887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4888   (eval $ac_try) 2>&5
    4889   ac_status=$?
    4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4891   (exit $ac_status); }; }; then
     5479if ac_fn_c_try_compile "$LINENO"; then :
    48925480  eval "$as_ac_Header=yes"
    48935481else
    4894   echo "$as_me: failed program was:" >&5
    4895 sed 's/^/| /' conftest.$ac_ext >&5
    4896 
    4897 eval "$as_ac_Header=no"
    4898 fi
    4899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4900 fi
    4901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5482  eval "$as_ac_Header=no"
     5483fi
     5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5485fi
     5486eval ac_res=\$$as_ac_Header
     5487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5488$as_echo "$ac_res" >&6; }
     5489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    49045490  cat >>confdefs.h <<_ACEOF
    4905 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5491#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    49065492_ACEOF
    49075493
     
    49125498# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    49135499if test $ac_header_dirent = dirent.h; then
    4914   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4916 if test "${ac_cv_search_opendir+set}" = set; then
    4917   echo $ECHO_N "(cached) $ECHO_C" >&6
     5500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5501$as_echo_n "checking for library containing opendir... " >&6; }
     5502if test "${ac_cv_search_opendir+set}" = set; then :
     5503  $as_echo_n "(cached) " >&6
    49185504else
    49195505  ac_func_search_save_LIBS=$LIBS
    4920 ac_cv_search_opendir=no
    4921 cat >conftest.$ac_ext <<_ACEOF
    4922 /* confdefs.h.  */
    4923 _ACEOF
    4924 cat confdefs.h >>conftest.$ac_ext
    4925 cat >>conftest.$ac_ext <<_ACEOF
     5506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49265507/* end confdefs.h.  */
    49275508
    4928 /* Override any gcc2 internal prototype to avoid an error.  */
     5509/* Override any GCC internal prototype to avoid an error.
     5510   Use char because int might match the return type of a GCC
     5511   builtin and then its argument prototype would still apply.  */
    49295512#ifdef __cplusplus
    49305513extern "C"
    49315514#endif
    4932 /* We use char because int might match the return type of a gcc2
    4933    builtin and then its argument prototype would still apply.  */
    49345515char opendir ();
    49355516int
    49365517main ()
    49375518{
    4938 opendir ();
     5519return opendir ();
    49395520  ;
    49405521  return 0;
    49415522}
    49425523_ACEOF
    4943 rm -f conftest.$ac_objext conftest$ac_exeext
    4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4945   (eval $ac_link) 2>conftest.er1
    4946   ac_status=$?
    4947   grep -v '^ *+' conftest.er1 >conftest.err
    4948   rm -f conftest.er1
    4949   cat conftest.err >&5
    4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4951   (exit $ac_status); } &&
    4952      { ac_try='test -z "$ac_c_werror_flag"
    4953              || test ! -s conftest.err'
    4954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4955   (eval $ac_try) 2>&5
    4956   ac_status=$?
    4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4958   (exit $ac_status); }; } &&
    4959      { ac_try='test -s conftest$ac_exeext'
    4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4961   (eval $ac_try) 2>&5
    4962   ac_status=$?
    4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4964   (exit $ac_status); }; }; then
    4965   ac_cv_search_opendir="none required"
    4966 else
    4967   echo "$as_me: failed program was:" >&5
    4968 sed 's/^/| /' conftest.$ac_ext >&5
    4969 
    4970 fi
    4971 rm -f conftest.err conftest.$ac_objext \
    4972       conftest$ac_exeext conftest.$ac_ext
    4973 if test "$ac_cv_search_opendir" = no; then
    4974   for ac_lib in dir; do
     5524for ac_lib in '' dir; do
     5525  if test -z "$ac_lib"; then
     5526    ac_res="none required"
     5527  else
     5528    ac_res=-l$ac_lib
    49755529    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4976     cat >conftest.$ac_ext <<_ACEOF
    4977 /* confdefs.h.  */
    4978 _ACEOF
    4979 cat confdefs.h >>conftest.$ac_ext
    4980 cat >>conftest.$ac_ext <<_ACEOF
     5530  fi
     5531  if ac_fn_c_try_link "$LINENO"; then :
     5532  ac_cv_search_opendir=$ac_res
     5533fi
     5534rm -f core conftest.err conftest.$ac_objext \
     5535    conftest$ac_exeext
     5536  if test "${ac_cv_search_opendir+set}" = set; then :
     5537  break
     5538fi
     5539done
     5540if test "${ac_cv_search_opendir+set}" = set; then :
     5541
     5542else
     5543  ac_cv_search_opendir=no
     5544fi
     5545rm conftest.$ac_ext
     5546LIBS=$ac_func_search_save_LIBS
     5547fi
     5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5549$as_echo "$ac_cv_search_opendir" >&6; }
     5550ac_res=$ac_cv_search_opendir
     5551if test "$ac_res" != no; then :
     5552  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5553
     5554fi
     5555
     5556else
     5557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5558$as_echo_n "checking for library containing opendir... " >&6; }
     5559if test "${ac_cv_search_opendir+set}" = set; then :
     5560  $as_echo_n "(cached) " >&6
     5561else
     5562  ac_func_search_save_LIBS=$LIBS
     5563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49815564/* end confdefs.h.  */
    49825565
    4983 /* Override any gcc2 internal prototype to avoid an error.  */
     5566/* Override any GCC internal prototype to avoid an error.
     5567   Use char because int might match the return type of a GCC
     5568   builtin and then its argument prototype would still apply.  */
    49845569#ifdef __cplusplus
    49855570extern "C"
    49865571#endif
    4987 /* We use char because int might match the return type of a gcc2
    4988    builtin and then its argument prototype would still apply.  */
    49895572char opendir ();
    49905573int
    49915574main ()
    49925575{
    4993 opendir ();
     5576return opendir ();
    49945577  ;
    49955578  return 0;
    49965579}
    49975580_ACEOF
    4998 rm -f conftest.$ac_objext conftest$ac_exeext
    4999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5000   (eval $ac_link) 2>conftest.er1
    5001   ac_status=$?
    5002   grep -v '^ *+' conftest.er1 >conftest.err
    5003   rm -f conftest.er1
    5004   cat conftest.err >&5
    5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5006   (exit $ac_status); } &&
    5007      { ac_try='test -z "$ac_c_werror_flag"
    5008              || test ! -s conftest.err'
    5009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5010   (eval $ac_try) 2>&5
    5011   ac_status=$?
    5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5013   (exit $ac_status); }; } &&
    5014      { ac_try='test -s conftest$ac_exeext'
    5015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5016   (eval $ac_try) 2>&5
    5017   ac_status=$?
    5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5019   (exit $ac_status); }; }; then
    5020   ac_cv_search_opendir="-l$ac_lib"
    5021 break
    5022 else
    5023   echo "$as_me: failed program was:" >&5
    5024 sed 's/^/| /' conftest.$ac_ext >&5
    5025 
    5026 fi
    5027 rm -f conftest.err conftest.$ac_objext \
    5028       conftest$ac_exeext conftest.$ac_ext
    5029   done
    5030 fi
     5581for ac_lib in '' x; do
     5582  if test -z "$ac_lib"; then
     5583    ac_res="none required"
     5584  else
     5585    ac_res=-l$ac_lib
     5586    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5587  fi
     5588  if ac_fn_c_try_link "$LINENO"; then :
     5589  ac_cv_search_opendir=$ac_res
     5590fi
     5591rm -f core conftest.err conftest.$ac_objext \
     5592    conftest$ac_exeext
     5593  if test "${ac_cv_search_opendir+set}" = set; then :
     5594  break
     5595fi
     5596done
     5597if test "${ac_cv_search_opendir+set}" = set; then :
     5598
     5599else
     5600  ac_cv_search_opendir=no
     5601fi
     5602rm conftest.$ac_ext
    50315603LIBS=$ac_func_search_save_LIBS
    50325604fi
    5033 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5034 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5035 if test "$ac_cv_search_opendir" != no; then
    5036   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5037 
    5038 fi
    5039 
    5040 else
    5041   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    5042 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    5043 if test "${ac_cv_search_opendir+set}" = set; then
    5044   echo $ECHO_N "(cached) $ECHO_C" >&6
    5045 else
    5046   ac_func_search_save_LIBS=$LIBS
    5047 ac_cv_search_opendir=no
    5048 cat >conftest.$ac_ext <<_ACEOF
    5049 /* confdefs.h.  */
    5050 _ACEOF
    5051 cat confdefs.h >>conftest.$ac_ext
    5052 cat >>conftest.$ac_ext <<_ACEOF
    5053 /* end confdefs.h.  */
    5054 
    5055 /* Override any gcc2 internal prototype to avoid an error.  */
    5056 #ifdef __cplusplus
    5057 extern "C"
    5058 #endif
    5059 /* We use char because int might match the return type of a gcc2
    5060    builtin and then its argument prototype would still apply.  */
    5061 char opendir ();
    5062 int
    5063 main ()
    5064 {
    5065 opendir ();
    5066   ;
    5067   return 0;
    5068 }
    5069 _ACEOF
    5070 rm -f conftest.$ac_objext conftest$ac_exeext
    5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5072   (eval $ac_link) 2>conftest.er1
    5073   ac_status=$?
    5074   grep -v '^ *+' conftest.er1 >conftest.err
    5075   rm -f conftest.er1
    5076   cat conftest.err >&5
    5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5078   (exit $ac_status); } &&
    5079      { ac_try='test -z "$ac_c_werror_flag"
    5080              || test ! -s conftest.err'
    5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5082   (eval $ac_try) 2>&5
    5083   ac_status=$?
    5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5085   (exit $ac_status); }; } &&
    5086      { ac_try='test -s conftest$ac_exeext'
    5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5088   (eval $ac_try) 2>&5
    5089   ac_status=$?
    5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5091   (exit $ac_status); }; }; then
    5092   ac_cv_search_opendir="none required"
    5093 else
    5094   echo "$as_me: failed program was:" >&5
    5095 sed 's/^/| /' conftest.$ac_ext >&5
    5096 
    5097 fi
    5098 rm -f conftest.err conftest.$ac_objext \
    5099       conftest$ac_exeext conftest.$ac_ext
    5100 if test "$ac_cv_search_opendir" = no; then
    5101   for ac_lib in x; do
    5102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    5103     cat >conftest.$ac_ext <<_ACEOF
    5104 /* confdefs.h.  */
    5105 _ACEOF
    5106 cat confdefs.h >>conftest.$ac_ext
    5107 cat >>conftest.$ac_ext <<_ACEOF
    5108 /* end confdefs.h.  */
    5109 
    5110 /* Override any gcc2 internal prototype to avoid an error.  */
    5111 #ifdef __cplusplus
    5112 extern "C"
    5113 #endif
    5114 /* We use char because int might match the return type of a gcc2
    5115    builtin and then its argument prototype would still apply.  */
    5116 char opendir ();
    5117 int
    5118 main ()
    5119 {
    5120 opendir ();
    5121   ;
    5122   return 0;
    5123 }
    5124 _ACEOF
    5125 rm -f conftest.$ac_objext conftest$ac_exeext
    5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5127   (eval $ac_link) 2>conftest.er1
    5128   ac_status=$?
    5129   grep -v '^ *+' conftest.er1 >conftest.err
    5130   rm -f conftest.er1
    5131   cat conftest.err >&5
    5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5133   (exit $ac_status); } &&
    5134      { ac_try='test -z "$ac_c_werror_flag"
    5135              || test ! -s conftest.err'
    5136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5137   (eval $ac_try) 2>&5
    5138   ac_status=$?
    5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5140   (exit $ac_status); }; } &&
    5141      { ac_try='test -s conftest$ac_exeext'
    5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5143   (eval $ac_try) 2>&5
    5144   ac_status=$?
    5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5146   (exit $ac_status); }; }; then
    5147   ac_cv_search_opendir="-l$ac_lib"
    5148 break
    5149 else
    5150   echo "$as_me: failed program was:" >&5
    5151 sed 's/^/| /' conftest.$ac_ext >&5
    5152 
    5153 fi
    5154 rm -f conftest.err conftest.$ac_objext \
    5155       conftest$ac_exeext conftest.$ac_ext
    5156   done
    5157 fi
    5158 LIBS=$ac_func_search_save_LIBS
    5159 fi
    5160 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5161 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5162 if test "$ac_cv_search_opendir" != no; then
    5163   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5164 
    5165 fi
    5166 
    5167 fi
    5168 
    5169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5171 if test "${ac_cv_header_stdc+set}" = set; then
    5172   echo $ECHO_N "(cached) $ECHO_C" >&6
    5173 else
    5174   cat >conftest.$ac_ext <<_ACEOF
    5175 /* confdefs.h.  */
    5176 _ACEOF
    5177 cat confdefs.h >>conftest.$ac_ext
    5178 cat >>conftest.$ac_ext <<_ACEOF
     5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5606$as_echo "$ac_cv_search_opendir" >&6; }
     5607ac_res=$ac_cv_search_opendir
     5608if test "$ac_res" != no; then :
     5609  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5610
     5611fi
     5612
     5613fi
     5614
     5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5616$as_echo_n "checking for ANSI C header files... " >&6; }
     5617if test "${ac_cv_header_stdc+set}" = set; then :
     5618  $as_echo_n "(cached) " >&6
     5619else
     5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51795621/* end confdefs.h.  */
    51805622#include <stdlib.h>
     
    51915633}
    51925634_ACEOF
    5193 rm -f conftest.$ac_objext
    5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5195   (eval $ac_compile) 2>conftest.er1
    5196   ac_status=$?
    5197   grep -v '^ *+' conftest.er1 >conftest.err
    5198   rm -f conftest.er1
    5199   cat conftest.err >&5
    5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5201   (exit $ac_status); } &&
    5202      { ac_try='test -z "$ac_c_werror_flag"
    5203              || test ! -s conftest.err'
    5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5205   (eval $ac_try) 2>&5
    5206   ac_status=$?
    5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5208   (exit $ac_status); }; } &&
    5209      { ac_try='test -s conftest.$ac_objext'
    5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5211   (eval $ac_try) 2>&5
    5212   ac_status=$?
    5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5214   (exit $ac_status); }; }; then
     5635if ac_fn_c_try_compile "$LINENO"; then :
    52155636  ac_cv_header_stdc=yes
    52165637else
    5217   echo "$as_me: failed program was:" >&5
    5218 sed 's/^/| /' conftest.$ac_ext >&5
    5219 
    5220 ac_cv_header_stdc=no
    5221 fi
    5222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5638  ac_cv_header_stdc=no
     5639fi
     5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    52235641
    52245642if test $ac_cv_header_stdc = yes; then
    52255643  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5226   cat >conftest.$ac_ext <<_ACEOF
    5227 /* confdefs.h.  */
    5228 _ACEOF
    5229 cat confdefs.h >>conftest.$ac_ext
    5230 cat >>conftest.$ac_ext <<_ACEOF
     5644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52315645/* end confdefs.h.  */
    52325646#include <string.h>
     
    52345648_ACEOF
    52355649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5236   $EGREP "memchr" >/dev/null 2>&1; then
    5237   :
     5650  $EGREP "memchr" >/dev/null 2>&1; then :
     5651
    52385652else
    52395653  ac_cv_header_stdc=no
     
    52455659if test $ac_cv_header_stdc = yes; then
    52465660  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5247   cat >conftest.$ac_ext <<_ACEOF
    5248 /* confdefs.h.  */
    5249 _ACEOF
    5250 cat confdefs.h >>conftest.$ac_ext
    5251 cat >>conftest.$ac_ext <<_ACEOF
     5661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52525662/* end confdefs.h.  */
    52535663#include <stdlib.h>
     
    52555665_ACEOF
    52565666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5257   $EGREP "free" >/dev/null 2>&1; then
    5258   :
     5667  $EGREP "free" >/dev/null 2>&1; then :
     5668
    52595669else
    52605670  ac_cv_header_stdc=no
     
    52665676if test $ac_cv_header_stdc = yes; then
    52675677  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5268   if test "$cross_compiling" = yes; then
     5678  if test "$cross_compiling" = yes; then :
    52695679  :
    52705680else
    5271   cat >conftest.$ac_ext <<_ACEOF
    5272 /* confdefs.h.  */
    5273 _ACEOF
    5274 cat confdefs.h >>conftest.$ac_ext
    5275 cat >>conftest.$ac_ext <<_ACEOF
     5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52765682/* end confdefs.h.  */
    52775683#include <ctype.h>
     5684#include <stdlib.h>
    52785685#if ((' ' & 0x0FF) == 0x020)
    52795686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    52955702    if (XOR (islower (i), ISLOWER (i))
    52965703    || toupper (i) != TOUPPER (i))
    5297       exit(2);
    5298   exit (0);
     5704      return 2;
     5705  return 0;
    52995706}
    53005707_ACEOF
    5301 rm -f conftest$ac_exeext
    5302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5303   (eval $ac_link) 2>&5
    5304   ac_status=$?
    5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5308   (eval $ac_try) 2>&5
    5309   ac_status=$?
    5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5311   (exit $ac_status); }; }; then
    5312   :
    5313 else
    5314   echo "$as_me: program exited with status $ac_status" >&5
    5315 echo "$as_me: failed program was:" >&5
    5316 sed 's/^/| /' conftest.$ac_ext >&5
    5317 
    5318 ( exit $ac_status )
    5319 ac_cv_header_stdc=no
    5320 fi
    5321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5322 fi
    5323 fi
    5324 fi
    5325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5708if ac_fn_c_try_run "$LINENO"; then :
     5709
     5710else
     5711  ac_cv_header_stdc=no
     5712fi
     5713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5714  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5715fi
     5716
     5717fi
     5718fi
     5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5720$as_echo "$ac_cv_header_stdc" >&6; }
    53275721if test $ac_cv_header_stdc = yes; then
    53285722
    5329 cat >>confdefs.h <<\_ACEOF
    5330 #define STDC_HEADERS 1
    5331 _ACEOF
    5332 
    5333 fi
    5334 
    5335 
    5336 
    5337 
    5338 
    5339 
    5340 
    5341 
    5342 
     5723$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5724
     5725fi
    53435726
    53445727for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
    5345 do
    5346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5348   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5351   echo $ECHO_N "(cached) $ECHO_C" >&6
    5352 fi
    5353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5355 else
    5356   # Is the header compilable?
    5357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5359 cat >conftest.$ac_ext <<_ACEOF
    5360 /* confdefs.h.  */
    5361 _ACEOF
    5362 cat confdefs.h >>conftest.$ac_ext
    5363 cat >>conftest.$ac_ext <<_ACEOF
    5364 /* end confdefs.h.  */
    5365 $ac_includes_default
    5366 #include <$ac_header>
    5367 _ACEOF
    5368 rm -f conftest.$ac_objext
    5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5370   (eval $ac_compile) 2>conftest.er1
    5371   ac_status=$?
    5372   grep -v '^ *+' conftest.er1 >conftest.err
    5373   rm -f conftest.er1
    5374   cat conftest.err >&5
    5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5376   (exit $ac_status); } &&
    5377      { ac_try='test -z "$ac_c_werror_flag"
    5378              || test ! -s conftest.err'
    5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5380   (eval $ac_try) 2>&5
    5381   ac_status=$?
    5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5383   (exit $ac_status); }; } &&
    5384      { ac_try='test -s conftest.$ac_objext'
    5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5386   (eval $ac_try) 2>&5
    5387   ac_status=$?
    5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5389   (exit $ac_status); }; }; then
    5390   ac_header_compiler=yes
    5391 else
    5392   echo "$as_me: failed program was:" >&5
    5393 sed 's/^/| /' conftest.$ac_ext >&5
    5394 
    5395 ac_header_compiler=no
    5396 fi
    5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5399 echo "${ECHO_T}$ac_header_compiler" >&6
    5400 
    5401 # Is the header present?
    5402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5404 cat >conftest.$ac_ext <<_ACEOF
    5405 /* confdefs.h.  */
    5406 _ACEOF
    5407 cat confdefs.h >>conftest.$ac_ext
    5408 cat >>conftest.$ac_ext <<_ACEOF
    5409 /* end confdefs.h.  */
    5410 #include <$ac_header>
    5411 _ACEOF
    5412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5414   ac_status=$?
    5415   grep -v '^ *+' conftest.er1 >conftest.err
    5416   rm -f conftest.er1
    5417   cat conftest.err >&5
    5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5419   (exit $ac_status); } >/dev/null; then
    5420   if test -s conftest.err; then
    5421     ac_cpp_err=$ac_c_preproc_warn_flag
    5422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5423   else
    5424     ac_cpp_err=
    5425   fi
    5426 else
    5427   ac_cpp_err=yes
    5428 fi
    5429 if test -z "$ac_cpp_err"; then
    5430   ac_header_preproc=yes
    5431 else
    5432   echo "$as_me: failed program was:" >&5
    5433 sed 's/^/| /' conftest.$ac_ext >&5
    5434 
    5435   ac_header_preproc=no
    5436 fi
    5437 rm -f conftest.err conftest.$ac_ext
    5438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5439 echo "${ECHO_T}$ac_header_preproc" >&6
    5440 
    5441 # So?  What about this header?
    5442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5443   yes:no: )
    5444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5448     ac_header_preproc=yes
    5449     ;;
    5450   no:yes:* )
    5451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5463     (
    5464       cat <<\_ASBOX
    5465 ## ------------------------------------------ ##
    5466 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5467 ## ------------------------------------------ ##
    5468 _ASBOX
    5469     ) |
    5470       sed "s/^/$as_me: WARNING:     /" >&2
    5471     ;;
    5472 esac
    5473 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5476   echo $ECHO_N "(cached) $ECHO_C" >&6
    5477 else
    5478   eval "$as_ac_Header=\$ac_header_preproc"
    5479 fi
    5480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5482 
    5483 fi
    5484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5728do :
     5729  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5730ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    54855732  cat >>confdefs.h <<_ACEOF
    5486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    54875734_ACEOF
    54885735
     
    54915738done
    54925739
    5493 cat >conftest.$ac_ext <<_ACEOF
    5494 /* confdefs.h.  */
    5495 _ACEOF
    5496 cat confdefs.h >>conftest.$ac_ext
    5497 cat >>conftest.$ac_ext <<_ACEOF
     5740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54985741/* end confdefs.h.  */
    54995742#include <stdio.h>
     
    55015744_ACEOF
    55025745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5503   $EGREP "fread" >/dev/null 2>&1; then
    5504   cat >>confdefs.h <<\_ACEOF
    5505 #define HAVE_FREAD_DECL 1
    5506 _ACEOF
     5746  $EGREP "fread" >/dev/null 2>&1; then :
     5747  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    55075748
    55085749fi
    55095750rm -f conftest*
    55105751
    5511 cat >conftest.$ac_ext <<_ACEOF
    5512 /* confdefs.h.  */
    5513 _ACEOF
    5514 cat confdefs.h >>conftest.$ac_ext
    5515 cat >>conftest.$ac_ext <<_ACEOF
     5752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55165753/* end confdefs.h.  */
    55175754#include <stdio.h>
     
    55195756_ACEOF
    55205757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5521   $EGREP "fgetc" >/dev/null 2>&1; then
    5522   cat >>confdefs.h <<\_ACEOF
    5523 #define HAVE_FGETC_DECL 1
    5524 _ACEOF
     5758  $EGREP "fgetc" >/dev/null 2>&1; then :
     5759  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    55255760
    55265761fi
    55275762rm -f conftest*
    55285763
    5529 cat >conftest.$ac_ext <<_ACEOF
    5530 /* confdefs.h.  */
    5531 _ACEOF
    5532 cat confdefs.h >>conftest.$ac_ext
    5533 cat >>conftest.$ac_ext <<_ACEOF
     5764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55345765/* end confdefs.h.  */
    55355766#include <sys/procfs.h>
     
    55375768_ACEOF
    55385769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5539   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5540   cat >>confdefs.h <<\_ACEOF
    5541 #define HAVE_PR_BRKSIZE 1
    5542 _ACEOF
     5770  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5771  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    55435772
    55445773fi
     
    55485777# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    55495778# for constant arguments.  Useless!
    5550 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5552 if test "${ac_cv_working_alloca_h+set}" = set; then
    5553   echo $ECHO_N "(cached) $ECHO_C" >&6
    5554 else
    5555   cat >conftest.$ac_ext <<_ACEOF
    5556 /* confdefs.h.  */
    5557 _ACEOF
    5558 cat confdefs.h >>conftest.$ac_ext
    5559 cat >>conftest.$ac_ext <<_ACEOF
     5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5780$as_echo_n "checking for working alloca.h... " >&6; }
     5781if test "${ac_cv_working_alloca_h+set}" = set; then :
     5782  $as_echo_n "(cached) " >&6
     5783else
     5784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55605785/* end confdefs.h.  */
    55615786#include <alloca.h>
     
    55645789{
    55655790char *p = (char *) alloca (2 * sizeof (int));
     5791              if (p) return 0;
    55665792  ;
    55675793  return 0;
    55685794}
    55695795_ACEOF
    5570 rm -f conftest.$ac_objext conftest$ac_exeext
    5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5572   (eval $ac_link) 2>conftest.er1
    5573   ac_status=$?
    5574   grep -v '^ *+' conftest.er1 >conftest.err
    5575   rm -f conftest.er1
    5576   cat conftest.err >&5
    5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5578   (exit $ac_status); } &&
    5579      { ac_try='test -z "$ac_c_werror_flag"
    5580              || test ! -s conftest.err'
    5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5582   (eval $ac_try) 2>&5
    5583   ac_status=$?
    5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5585   (exit $ac_status); }; } &&
    5586      { ac_try='test -s conftest$ac_exeext'
    5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5588   (eval $ac_try) 2>&5
    5589   ac_status=$?
    5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5591   (exit $ac_status); }; }; then
     5796if ac_fn_c_try_link "$LINENO"; then :
    55925797  ac_cv_working_alloca_h=yes
    55935798else
    5594   echo "$as_me: failed program was:" >&5
    5595 sed 's/^/| /' conftest.$ac_ext >&5
    5596 
    5597 ac_cv_working_alloca_h=no
    5598 fi
    5599 rm -f conftest.err conftest.$ac_objext \
    5600       conftest$ac_exeext conftest.$ac_ext
    5601 fi
    5602 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5603 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5799  ac_cv_working_alloca_h=no
     5800fi
     5801rm -f core conftest.err conftest.$ac_objext \
     5802    conftest$ac_exeext conftest.$ac_ext
     5803fi
     5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5805$as_echo "$ac_cv_working_alloca_h" >&6; }
    56045806if test $ac_cv_working_alloca_h = yes; then
    56055807
    5606 cat >>confdefs.h <<\_ACEOF
    5607 #define HAVE_ALLOCA_H 1
    5608 _ACEOF
    5609 
    5610 fi
    5611 
    5612 echo "$as_me:$LINENO: checking for alloca" >&5
    5613 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5614 if test "${ac_cv_func_alloca_works+set}" = set; then
    5615   echo $ECHO_N "(cached) $ECHO_C" >&6
    5616 else
    5617   cat >conftest.$ac_ext <<_ACEOF
    5618 /* confdefs.h.  */
    5619 _ACEOF
    5620 cat confdefs.h >>conftest.$ac_ext
    5621 cat >>conftest.$ac_ext <<_ACEOF
     5808$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5809
     5810fi
     5811
     5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5813$as_echo_n "checking for alloca... " >&6; }
     5814if test "${ac_cv_func_alloca_works+set}" = set; then :
     5815  $as_echo_n "(cached) " >&6
     5816else
     5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56225818/* end confdefs.h.  */
    56235819#ifdef __GNUC__
     
    56285824#  define alloca _alloca
    56295825# else
    5630 #  if HAVE_ALLOCA_H
     5826#  ifdef HAVE_ALLOCA_H
    56315827#   include <alloca.h>
    56325828#  else
     
    56465842{
    56475843char *p = (char *) alloca (1);
     5844                    if (p) return 0;
    56485845  ;
    56495846  return 0;
    56505847}
    56515848_ACEOF
    5652 rm -f conftest.$ac_objext conftest$ac_exeext
    5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5654   (eval $ac_link) 2>conftest.er1
    5655   ac_status=$?
    5656   grep -v '^ *+' conftest.er1 >conftest.err
    5657   rm -f conftest.er1
    5658   cat conftest.err >&5
    5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5660   (exit $ac_status); } &&
    5661      { ac_try='test -z "$ac_c_werror_flag"
    5662              || test ! -s conftest.err'
    5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5664   (eval $ac_try) 2>&5
    5665   ac_status=$?
    5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5667   (exit $ac_status); }; } &&
    5668      { ac_try='test -s conftest$ac_exeext'
    5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5670   (eval $ac_try) 2>&5
    5671   ac_status=$?
    5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5673   (exit $ac_status); }; }; then
     5849if ac_fn_c_try_link "$LINENO"; then :
    56745850  ac_cv_func_alloca_works=yes
    56755851else
    5676   echo "$as_me: failed program was:" >&5
    5677 sed 's/^/| /' conftest.$ac_ext >&5
    5678 
    5679 ac_cv_func_alloca_works=no
    5680 fi
    5681 rm -f conftest.err conftest.$ac_objext \
    5682       conftest$ac_exeext conftest.$ac_ext
    5683 fi
    5684 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5685 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5852  ac_cv_func_alloca_works=no
     5853fi
     5854rm -f core conftest.err conftest.$ac_objext \
     5855    conftest$ac_exeext conftest.$ac_ext
     5856fi
     5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5858$as_echo "$ac_cv_func_alloca_works" >&6; }
    56865859
    56875860if test $ac_cv_func_alloca_works = yes; then
    56885861
    5689 cat >>confdefs.h <<\_ACEOF
    5690 #define HAVE_ALLOCA 1
    5691 _ACEOF
     5862$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    56925863
    56935864else
     
    56975868# use ar to extract alloca.o from them instead of compiling alloca.c.
    56985869
    5699 ALLOCA=alloca.$ac_objext
    5700 
    5701 cat >>confdefs.h <<\_ACEOF
    5702 #define C_ALLOCA 1
    5703 _ACEOF
    5704 
    5705 
    5706 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5707 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5708 if test "${ac_cv_os_cray+set}" = set; then
    5709   echo $ECHO_N "(cached) $ECHO_C" >&6
    5710 else
    5711   cat >conftest.$ac_ext <<_ACEOF
    5712 /* confdefs.h.  */
    5713 _ACEOF
    5714 cat confdefs.h >>conftest.$ac_ext
    5715 cat >>conftest.$ac_ext <<_ACEOF
     5870ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5871
     5872$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5873
     5874
     5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5876$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5877if test "${ac_cv_os_cray+set}" = set; then :
     5878  $as_echo_n "(cached) " >&6
     5879else
     5880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57165881/* end confdefs.h.  */
    5717 #if defined(CRAY) && ! defined(CRAY2)
     5882#if defined CRAY && ! defined CRAY2
    57185883webecray
    57195884#else
     
    57235888_ACEOF
    57245889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5725   $EGREP "webecray" >/dev/null 2>&1; then
     5890  $EGREP "webecray" >/dev/null 2>&1; then :
    57265891  ac_cv_os_cray=yes
    57275892else
     
    57315896
    57325897fi
    5733 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5734 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5899$as_echo "$ac_cv_os_cray" >&6; }
    57355900if test $ac_cv_os_cray = yes; then
    57365901  for ac_func in _getb67 GETB67 getb67; do
    5737     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5738 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5740 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5741   echo $ECHO_N "(cached) $ECHO_C" >&6
    5742 else
    5743   cat >conftest.$ac_ext <<_ACEOF
    5744 /* confdefs.h.  */
    5745 _ACEOF
    5746 cat confdefs.h >>conftest.$ac_ext
    5747 cat >>conftest.$ac_ext <<_ACEOF
    5748 /* end confdefs.h.  */
    5749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5751 #define $ac_func innocuous_$ac_func
    5752 
    5753 /* System header to define __stub macros and hopefully few prototypes,
    5754     which can conflict with char $ac_func (); below.
    5755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5756     <limits.h> exists even on freestanding compilers.  */
    5757 
    5758 #ifdef __STDC__
    5759 # include <limits.h>
    5760 #else
    5761 # include <assert.h>
    5762 #endif
    5763 
    5764 #undef $ac_func
    5765 
    5766 /* Override any gcc2 internal prototype to avoid an error.  */
    5767 #ifdef __cplusplus
    5768 extern "C"
    5769 {
    5770 #endif
    5771 /* We use char because int might match the return type of a gcc2
    5772    builtin and then its argument prototype would still apply.  */
    5773 char $ac_func ();
    5774 /* The GNU C library defines this for functions which it implements
    5775     to always fail with ENOSYS.  Some functions are actually named
    5776     something starting with __ and the normal name is an alias.  */
    5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5778 choke me
    5779 #else
    5780 char (*f) () = $ac_func;
    5781 #endif
    5782 #ifdef __cplusplus
    5783 }
    5784 #endif
    5785 
    5786 int
    5787 main ()
    5788 {
    5789 return f != $ac_func;
    5790   ;
    5791   return 0;
    5792 }
    5793 _ACEOF
    5794 rm -f conftest.$ac_objext conftest$ac_exeext
    5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5796   (eval $ac_link) 2>conftest.er1
    5797   ac_status=$?
    5798   grep -v '^ *+' conftest.er1 >conftest.err
    5799   rm -f conftest.er1
    5800   cat conftest.err >&5
    5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5802   (exit $ac_status); } &&
    5803      { ac_try='test -z "$ac_c_werror_flag"
    5804              || test ! -s conftest.err'
    5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5806   (eval $ac_try) 2>&5
    5807   ac_status=$?
    5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5809   (exit $ac_status); }; } &&
    5810      { ac_try='test -s conftest$ac_exeext'
    5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5812   (eval $ac_try) 2>&5
    5813   ac_status=$?
    5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5815   (exit $ac_status); }; }; then
    5816   eval "$as_ac_var=yes"
    5817 else
    5818   echo "$as_me: failed program was:" >&5
    5819 sed 's/^/| /' conftest.$ac_ext >&5
    5820 
    5821 eval "$as_ac_var=no"
    5822 fi
    5823 rm -f conftest.err conftest.$ac_objext \
    5824       conftest$ac_exeext conftest.$ac_ext
    5825 fi
    5826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5828 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5902    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5903ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5904if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    58295905
    58305906cat >>confdefs.h <<_ACEOF
     
    58385914fi
    58395915
    5840 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5841 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5842 if test "${ac_cv_c_stack_direction+set}" = set; then
    5843   echo $ECHO_N "(cached) $ECHO_C" >&6
    5844 else
    5845   if test "$cross_compiling" = yes; then
     5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5917$as_echo_n "checking stack direction for C alloca... " >&6; }
     5918if test "${ac_cv_c_stack_direction+set}" = set; then :
     5919  $as_echo_n "(cached) " >&6
     5920else
     5921  if test "$cross_compiling" = yes; then :
    58465922  ac_cv_c_stack_direction=0
    58475923else
    5848   cat >conftest.$ac_ext <<_ACEOF
    5849 /* confdefs.h.  */
    5850 _ACEOF
    5851 cat confdefs.h >>conftest.$ac_ext
    5852 cat >>conftest.$ac_ext <<_ACEOF
     5924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58535925/* end confdefs.h.  */
     5926$ac_includes_default
    58545927int
    58555928find_stack_direction ()
     
    58695942main ()
    58705943{
    5871   exit (find_stack_direction () < 0);
     5944  return find_stack_direction () < 0;
    58725945}
    58735946_ACEOF
    5874 rm -f conftest$ac_exeext
    5875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5876   (eval $ac_link) 2>&5
    5877   ac_status=$?
    5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5881   (eval $ac_try) 2>&5
    5882   ac_status=$?
    5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5884   (exit $ac_status); }; }; then
     5947if ac_fn_c_try_run "$LINENO"; then :
    58855948  ac_cv_c_stack_direction=1
    58865949else
    5887   echo "$as_me: program exited with status $ac_status" >&5
    5888 echo "$as_me: failed program was:" >&5
    5889 sed 's/^/| /' conftest.$ac_ext >&5
    5890 
    5891 ( exit $ac_status )
    5892 ac_cv_c_stack_direction=-1
    5893 fi
    5894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5895 fi
    5896 fi
    5897 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5898 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5899 
     5950  ac_cv_c_stack_direction=-1
     5951fi
     5952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5953  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5954fi
     5955
     5956fi
     5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     5958$as_echo "$ac_cv_c_stack_direction" >&6; }
    59005959cat >>confdefs.h <<_ACEOF
    59015960#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    59065965
    59075966if test $ac_cv_c_compiler_gnu = yes; then
    5908     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5909 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5910 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5911   echo $ECHO_N "(cached) $ECHO_C" >&6
     5967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     5968$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     5969if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     5970  $as_echo_n "(cached) " >&6
    59125971else
    59135972    ac_pattern="Autoconf.*'x'"
    5914   cat >conftest.$ac_ext <<_ACEOF
    5915 /* confdefs.h.  */
    5916 _ACEOF
    5917 cat confdefs.h >>conftest.$ac_ext
    5918 cat >>conftest.$ac_ext <<_ACEOF
     5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59195974/* end confdefs.h.  */
    59205975#include <sgtty.h>
     
    59225977_ACEOF
    59235978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5924   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5979  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59255980  ac_cv_prog_gcc_traditional=yes
    59265981else
     
    59315986
    59325987  if test $ac_cv_prog_gcc_traditional = no; then
    5933     cat >conftest.$ac_ext <<_ACEOF
    5934 /* confdefs.h.  */
    5935 _ACEOF
    5936 cat confdefs.h >>conftest.$ac_ext
    5937 cat >>conftest.$ac_ext <<_ACEOF
     5988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59385989/* end confdefs.h.  */
    59395990#include <termio.h>
     
    59415992_ACEOF
    59425993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5943   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5994  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59445995  ac_cv_prog_gcc_traditional=yes
    59455996fi
     
    59485999  fi
    59496000fi
    5950 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5951 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     6002$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    59526003  if test $ac_cv_prog_gcc_traditional = yes; then
    59536004    CC="$CC -traditional"
     
    59556006fi
    59566007
    5957 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5958 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5959 if test "${ac_cv_type_signal+set}" = set; then
    5960   echo $ECHO_N "(cached) $ECHO_C" >&6
    5961 else
    5962   cat >conftest.$ac_ext <<_ACEOF
    5963 /* confdefs.h.  */
    5964 _ACEOF
    5965 cat confdefs.h >>conftest.$ac_ext
    5966 cat >>conftest.$ac_ext <<_ACEOF
     6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     6009$as_echo_n "checking return type of signal handlers... " >&6; }
     6010if test "${ac_cv_type_signal+set}" = set; then :
     6011  $as_echo_n "(cached) " >&6
     6012else
     6013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59676014/* end confdefs.h.  */
    59686015#include <sys/types.h>
    59696016#include <signal.h>
    5970 #ifdef signal
    5971 # undef signal
    5972 #endif
    5973 #ifdef __cplusplus
    5974 extern "C" void (*signal (int, void (*)(int)))(int);
    5975 #else
    5976 void (*signal ()) ();
    5977 #endif
    59786017
    59796018int
    59806019main ()
    59816020{
    5982 int i;
     6021return *(signal (0, 0)) (0) == 1;
    59836022  ;
    59846023  return 0;
    59856024}
    59866025_ACEOF
    5987 rm -f conftest.$ac_objext
    5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5989   (eval $ac_compile) 2>conftest.er1
    5990   ac_status=$?
    5991   grep -v '^ *+' conftest.er1 >conftest.err
    5992   rm -f conftest.er1
    5993   cat conftest.err >&5
    5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5995   (exit $ac_status); } &&
    5996      { ac_try='test -z "$ac_c_werror_flag"
    5997              || test ! -s conftest.err'
    5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5999   (eval $ac_try) 2>&5
    6000   ac_status=$?
    6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6002   (exit $ac_status); }; } &&
    6003      { ac_try='test -s conftest.$ac_objext'
    6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6005   (eval $ac_try) 2>&5
    6006   ac_status=$?
    6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6008   (exit $ac_status); }; }; then
     6026if ac_fn_c_try_compile "$LINENO"; then :
     6027  ac_cv_type_signal=int
     6028else
    60096029  ac_cv_type_signal=void
    6010 else
    6011   echo "$as_me: failed program was:" >&5
    6012 sed 's/^/| /' conftest.$ac_ext >&5
    6013 
    6014 ac_cv_type_signal=int
    6015 fi
    6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6017 fi
    6018 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    6019 echo "${ECHO_T}$ac_cv_type_signal" >&6
     6030fi
     6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6032fi
     6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     6034$as_echo "$ac_cv_type_signal" >&6; }
    60206035
    60216036cat >>confdefs.h <<_ACEOF
     
    60246039
    60256040
    6026 
    60276041for ac_func in vprintf
    6028 do
    6029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6030 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6032 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6033   echo $ECHO_N "(cached) $ECHO_C" >&6
    6034 else
    6035   cat >conftest.$ac_ext <<_ACEOF
    6036 /* confdefs.h.  */
    6037 _ACEOF
    6038 cat confdefs.h >>conftest.$ac_ext
    6039 cat >>conftest.$ac_ext <<_ACEOF
    6040 /* end confdefs.h.  */
    6041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6043 #define $ac_func innocuous_$ac_func
    6044 
    6045 /* System header to define __stub macros and hopefully few prototypes,
    6046     which can conflict with char $ac_func (); below.
    6047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6048     <limits.h> exists even on freestanding compilers.  */
    6049 
    6050 #ifdef __STDC__
    6051 # include <limits.h>
    6052 #else
    6053 # include <assert.h>
    6054 #endif
    6055 
    6056 #undef $ac_func
    6057 
    6058 /* Override any gcc2 internal prototype to avoid an error.  */
    6059 #ifdef __cplusplus
    6060 extern "C"
    6061 {
    6062 #endif
    6063 /* We use char because int might match the return type of a gcc2
    6064    builtin and then its argument prototype would still apply.  */
    6065 char $ac_func ();
    6066 /* The GNU C library defines this for functions which it implements
    6067     to always fail with ENOSYS.  Some functions are actually named
    6068     something starting with __ and the normal name is an alias.  */
    6069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6070 choke me
    6071 #else
    6072 char (*f) () = $ac_func;
    6073 #endif
    6074 #ifdef __cplusplus
    6075 }
    6076 #endif
    6077 
    6078 int
    6079 main ()
    6080 {
    6081 return f != $ac_func;
    6082   ;
    6083   return 0;
    6084 }
    6085 _ACEOF
    6086 rm -f conftest.$ac_objext conftest$ac_exeext
    6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6088   (eval $ac_link) 2>conftest.er1
    6089   ac_status=$?
    6090   grep -v '^ *+' conftest.er1 >conftest.err
    6091   rm -f conftest.er1
    6092   cat conftest.err >&5
    6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6094   (exit $ac_status); } &&
    6095      { ac_try='test -z "$ac_c_werror_flag"
    6096              || test ! -s conftest.err'
    6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6098   (eval $ac_try) 2>&5
    6099   ac_status=$?
    6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6101   (exit $ac_status); }; } &&
    6102      { ac_try='test -s conftest$ac_exeext'
    6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6104   (eval $ac_try) 2>&5
    6105   ac_status=$?
    6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6107   (exit $ac_status); }; }; then
    6108   eval "$as_ac_var=yes"
    6109 else
    6110   echo "$as_me: failed program was:" >&5
    6111 sed 's/^/| /' conftest.$ac_ext >&5
    6112 
    6113 eval "$as_ac_var=no"
    6114 fi
    6115 rm -f conftest.err conftest.$ac_objext \
    6116       conftest$ac_exeext conftest.$ac_ext
    6117 fi
    6118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6120 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6042do :
     6043  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     6044if test "x$ac_cv_func_vprintf" = x""yes; then :
    61216045  cat >>confdefs.h <<_ACEOF
    6122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6123 _ACEOF
    6124 
    6125 echo "$as_me:$LINENO: checking for _doprnt" >&5
    6126 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    6127 if test "${ac_cv_func__doprnt+set}" = set; then
    6128   echo $ECHO_N "(cached) $ECHO_C" >&6
    6129 else
    6130   cat >conftest.$ac_ext <<_ACEOF
    6131 /* confdefs.h.  */
    6132 _ACEOF
    6133 cat confdefs.h >>conftest.$ac_ext
    6134 cat >>conftest.$ac_ext <<_ACEOF
    6135 /* end confdefs.h.  */
    6136 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    6137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6138 #define _doprnt innocuous__doprnt
    6139 
    6140 /* System header to define __stub macros and hopefully few prototypes,
    6141     which can conflict with char _doprnt (); below.
    6142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6143     <limits.h> exists even on freestanding compilers.  */
    6144 
    6145 #ifdef __STDC__
    6146 # include <limits.h>
    6147 #else
    6148 # include <assert.h>
    6149 #endif
    6150 
    6151 #undef _doprnt
    6152 
    6153 /* Override any gcc2 internal prototype to avoid an error.  */
    6154 #ifdef __cplusplus
    6155 extern "C"
    6156 {
    6157 #endif
    6158 /* We use char because int might match the return type of a gcc2
    6159    builtin and then its argument prototype would still apply.  */
    6160 char _doprnt ();
    6161 /* The GNU C library defines this for functions which it implements
    6162     to always fail with ENOSYS.  Some functions are actually named
    6163     something starting with __ and the normal name is an alias.  */
    6164 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    6165 choke me
    6166 #else
    6167 char (*f) () = _doprnt;
    6168 #endif
    6169 #ifdef __cplusplus
    6170 }
    6171 #endif
    6172 
    6173 int
    6174 main ()
    6175 {
    6176 return f != _doprnt;
    6177   ;
    6178   return 0;
    6179 }
    6180 _ACEOF
    6181 rm -f conftest.$ac_objext conftest$ac_exeext
    6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6183   (eval $ac_link) 2>conftest.er1
    6184   ac_status=$?
    6185   grep -v '^ *+' conftest.er1 >conftest.err
    6186   rm -f conftest.er1
    6187   cat conftest.err >&5
    6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6189   (exit $ac_status); } &&
    6190      { ac_try='test -z "$ac_c_werror_flag"
    6191              || test ! -s conftest.err'
    6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6193   (eval $ac_try) 2>&5
    6194   ac_status=$?
    6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6196   (exit $ac_status); }; } &&
    6197      { ac_try='test -s conftest$ac_exeext'
    6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6199   (eval $ac_try) 2>&5
    6200   ac_status=$?
    6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6202   (exit $ac_status); }; }; then
    6203   ac_cv_func__doprnt=yes
    6204 else
    6205   echo "$as_me: failed program was:" >&5
    6206 sed 's/^/| /' conftest.$ac_ext >&5
    6207 
    6208 ac_cv_func__doprnt=no
    6209 fi
    6210 rm -f conftest.err conftest.$ac_objext \
    6211       conftest$ac_exeext conftest.$ac_ext
    6212 fi
    6213 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    6214 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    6215 if test $ac_cv_func__doprnt = yes; then
    6216 
    6217 cat >>confdefs.h <<\_ACEOF
    6218 #define HAVE_DOPRNT 1
    6219 _ACEOF
     6046#define HAVE_VPRINTF 1
     6047_ACEOF
     6048
     6049ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     6050if test "x$ac_cv_func__doprnt" = x""yes; then :
     6051
     6052$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    62206053
    62216054fi
     
    62256058
    62266059
    6227 
    6228 
    6229 
    6230 
    6231 
    6232 
    6233 
    6234 
    6235 
    6236 
    62376060for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    6238 do
    6239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6240 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6242 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6243   echo $ECHO_N "(cached) $ECHO_C" >&6
    6244 else
    6245   cat >conftest.$ac_ext <<_ACEOF
    6246 /* confdefs.h.  */
    6247 _ACEOF
    6248 cat confdefs.h >>conftest.$ac_ext
    6249 cat >>conftest.$ac_ext <<_ACEOF
    6250 /* end confdefs.h.  */
    6251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6253 #define $ac_func innocuous_$ac_func
    6254 
    6255 /* System header to define __stub macros and hopefully few prototypes,
    6256     which can conflict with char $ac_func (); below.
    6257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6258     <limits.h> exists even on freestanding compilers.  */
    6259 
    6260 #ifdef __STDC__
    6261 # include <limits.h>
    6262 #else
    6263 # include <assert.h>
    6264 #endif
    6265 
    6266 #undef $ac_func
    6267 
    6268 /* Override any gcc2 internal prototype to avoid an error.  */
    6269 #ifdef __cplusplus
    6270 extern "C"
    6271 {
    6272 #endif
    6273 /* We use char because int might match the return type of a gcc2
    6274    builtin and then its argument prototype would still apply.  */
    6275 char $ac_func ();
    6276 /* The GNU C library defines this for functions which it implements
    6277     to always fail with ENOSYS.  Some functions are actually named
    6278     something starting with __ and the normal name is an alias.  */
    6279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6280 choke me
    6281 #else
    6282 char (*f) () = $ac_func;
    6283 #endif
    6284 #ifdef __cplusplus
    6285 }
    6286 #endif
    6287 
    6288 int
    6289 main ()
    6290 {
    6291 return f != $ac_func;
    6292   ;
    6293   return 0;
    6294 }
    6295 _ACEOF
    6296 rm -f conftest.$ac_objext conftest$ac_exeext
    6297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6298   (eval $ac_link) 2>conftest.er1
    6299   ac_status=$?
    6300   grep -v '^ *+' conftest.er1 >conftest.err
    6301   rm -f conftest.er1
    6302   cat conftest.err >&5
    6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6304   (exit $ac_status); } &&
    6305      { ac_try='test -z "$ac_c_werror_flag"
    6306              || test ! -s conftest.err'
    6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6308   (eval $ac_try) 2>&5
    6309   ac_status=$?
    6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6311   (exit $ac_status); }; } &&
    6312      { ac_try='test -s conftest$ac_exeext'
    6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6314   (eval $ac_try) 2>&5
    6315   ac_status=$?
    6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6317   (exit $ac_status); }; }; then
    6318   eval "$as_ac_var=yes"
    6319 else
    6320   echo "$as_me: failed program was:" >&5
    6321 sed 's/^/| /' conftest.$ac_ext >&5
    6322 
    6323 eval "$as_ac_var=no"
    6324 fi
    6325 rm -f conftest.err conftest.$ac_objext \
    6326       conftest$ac_exeext conftest.$ac_ext
    6327 fi
    6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6330 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6061do :
     6062  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6063ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6064if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    63316065  cat >>confdefs.h <<_ACEOF
    6332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6066#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    63336067_ACEOF
    63346068
     
    63366070done
    63376071
    6338 
    6339 
    6340 
    6341 for ac_func in ftruncate strstr strcasecmp
    6342 do
    6343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6344 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6346 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6347   echo $ECHO_N "(cached) $ECHO_C" >&6
    6348 else
    6349   cat >conftest.$ac_ext <<_ACEOF
    6350 /* confdefs.h.  */
    6351 _ACEOF
    6352 cat confdefs.h >>conftest.$ac_ext
    6353 cat >>conftest.$ac_ext <<_ACEOF
    6354 /* end confdefs.h.  */
    6355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6357 #define $ac_func innocuous_$ac_func
    6358 
    6359 /* System header to define __stub macros and hopefully few prototypes,
    6360     which can conflict with char $ac_func (); below.
    6361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6362     <limits.h> exists even on freestanding compilers.  */
    6363 
    6364 #ifdef __STDC__
    6365 # include <limits.h>
    6366 #else
    6367 # include <assert.h>
    6368 #endif
    6369 
    6370 #undef $ac_func
    6371 
    6372 /* Override any gcc2 internal prototype to avoid an error.  */
    6373 #ifdef __cplusplus
    6374 extern "C"
    6375 {
    6376 #endif
    6377 /* We use char because int might match the return type of a gcc2
    6378    builtin and then its argument prototype would still apply.  */
    6379 char $ac_func ();
    6380 /* The GNU C library defines this for functions which it implements
    6381     to always fail with ENOSYS.  Some functions are actually named
    6382     something starting with __ and the normal name is an alias.  */
    6383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6384 choke me
    6385 #else
    6386 char (*f) () = $ac_func;
    6387 #endif
    6388 #ifdef __cplusplus
    6389 }
    6390 #endif
    6391 
    6392 int
    6393 main ()
    6394 {
    6395 return f != $ac_func;
    6396   ;
    6397   return 0;
    6398 }
    6399 _ACEOF
    6400 rm -f conftest.$ac_objext conftest$ac_exeext
    6401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6402   (eval $ac_link) 2>conftest.er1
    6403   ac_status=$?
    6404   grep -v '^ *+' conftest.er1 >conftest.err
    6405   rm -f conftest.er1
    6406   cat conftest.err >&5
    6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6408   (exit $ac_status); } &&
    6409      { ac_try='test -z "$ac_c_werror_flag"
    6410              || test ! -s conftest.err'
    6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6412   (eval $ac_try) 2>&5
    6413   ac_status=$?
    6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6415   (exit $ac_status); }; } &&
    6416      { ac_try='test -s conftest$ac_exeext'
    6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6418   (eval $ac_try) 2>&5
    6419   ac_status=$?
    6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6421   (exit $ac_status); }; }; then
    6422   eval "$as_ac_var=yes"
    6423 else
    6424   echo "$as_me: failed program was:" >&5
    6425 sed 's/^/| /' conftest.$ac_ext >&5
    6426 
    6427 eval "$as_ac_var=no"
    6428 fi
    6429 rm -f conftest.err conftest.$ac_objext \
    6430       conftest$ac_exeext conftest.$ac_ext
    6431 fi
    6432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6434 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6435   cat >>confdefs.h <<_ACEOF
    6436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6437 _ACEOF
    6438 
    6439 else
    6440   case $LIBOBJS in
    6441     "$ac_func.$ac_objext"   | \
    6442   *" $ac_func.$ac_objext"   | \
    6443     "$ac_func.$ac_objext "* | \
    6444   *" $ac_func.$ac_objext "* ) ;;
    6445   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6072ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     6073if test "x$ac_cv_func_ftruncate" = x""yes; then :
     6074  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6075
     6076else
     6077  case " $LIBOBJS " in
     6078  *" ftruncate.$ac_objext "* ) ;;
     6079  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6080 ;;
    64466081esac
    64476082
    64486083fi
    6449 done
    6450 
    6451 
    6452 
    6453 echo "$as_me:$LINENO: checking for textdomain" >&5
    6454 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
    6455 if test "${ac_cv_func_textdomain+set}" = set; then
    6456   echo $ECHO_N "(cached) $ECHO_C" >&6
    6457 else
    6458   cat >conftest.$ac_ext <<_ACEOF
    6459 /* confdefs.h.  */
    6460 _ACEOF
    6461 cat confdefs.h >>conftest.$ac_ext
    6462 cat >>conftest.$ac_ext <<_ACEOF
    6463 /* end confdefs.h.  */
    6464 /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
    6465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6466 #define textdomain innocuous_textdomain
    6467 
    6468 /* System header to define __stub macros and hopefully few prototypes,
    6469     which can conflict with char textdomain (); below.
    6470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6471     <limits.h> exists even on freestanding compilers.  */
    6472 
    6473 #ifdef __STDC__
    6474 # include <limits.h>
    6475 #else
    6476 # include <assert.h>
    6477 #endif
    6478 
    6479 #undef textdomain
    6480 
    6481 /* Override any gcc2 internal prototype to avoid an error.  */
    6482 #ifdef __cplusplus
    6483 extern "C"
    6484 {
    6485 #endif
    6486 /* We use char because int might match the return type of a gcc2
    6487    builtin and then its argument prototype would still apply.  */
    6488 char textdomain ();
    6489 /* The GNU C library defines this for functions which it implements
    6490     to always fail with ENOSYS.  Some functions are actually named
    6491     something starting with __ and the normal name is an alias.  */
    6492 #if defined (__stub_textdomain) || defined (__stub___textdomain)
    6493 choke me
    6494 #else
    6495 char (*f) () = textdomain;
    6496 #endif
    6497 #ifdef __cplusplus
    6498 }
    6499 #endif
    6500 
    6501 int
    6502 main ()
    6503 {
    6504 return f != textdomain;
    6505   ;
    6506   return 0;
    6507 }
    6508 _ACEOF
    6509 rm -f conftest.$ac_objext conftest$ac_exeext
    6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6511   (eval $ac_link) 2>conftest.er1
    6512   ac_status=$?
    6513   grep -v '^ *+' conftest.er1 >conftest.err
    6514   rm -f conftest.er1
    6515   cat conftest.err >&5
    6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6517   (exit $ac_status); } &&
    6518      { ac_try='test -z "$ac_c_werror_flag"
    6519              || test ! -s conftest.err'
    6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6521   (eval $ac_try) 2>&5
    6522   ac_status=$?
    6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6524   (exit $ac_status); }; } &&
    6525      { ac_try='test -s conftest$ac_exeext'
    6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6527   (eval $ac_try) 2>&5
    6528   ac_status=$?
    6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6530   (exit $ac_status); }; }; then
    6531   ac_cv_func_textdomain=yes
    6532 else
    6533   echo "$as_me: failed program was:" >&5
    6534 sed 's/^/| /' conftest.$ac_ext >&5
    6535 
    6536 ac_cv_func_textdomain=no
    6537 fi
    6538 rm -f conftest.err conftest.$ac_objext \
    6539       conftest$ac_exeext conftest.$ac_ext
    6540 fi
    6541 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
    6542 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
    6543 if test $ac_cv_func_textdomain = yes; then
    6544   cat >>confdefs.h <<\_ACEOF
    6545 #define ENABLE_NLS  1
    6546 _ACEOF
     6084
     6085ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     6086if test "x$ac_cv_func_strstr" = x""yes; then :
     6087  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     6088
     6089else
     6090  case " $LIBOBJS " in
     6091  *" strstr.$ac_objext "* ) ;;
     6092  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     6093 ;;
     6094esac
     6095
     6096fi
     6097
     6098ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     6099if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     6100  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     6101
     6102else
     6103  case " $LIBOBJS " in
     6104  *" strcasecmp.$ac_objext "* ) ;;
     6105  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     6106 ;;
     6107esac
     6108
     6109fi
     6110
     6111
     6112
     6113ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
     6114if test "x$ac_cv_func_textdomain" = x""yes; then :
     6115  $as_echo "#define ENABLE_NLS  1" >>confdefs.h
    65476116
    65486117fi
     
    65516120# *** Custom checking (based on GNU tar configure.in) ***
    65526121# ---------------------------------------------------------------------------
    6553 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6554 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     6123$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    65556124if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6556   echo "$as_me:$LINENO: result: yes" >&5
    6557 echo "${ECHO_T}yes" >&6
    6558   case $LIBOBJS in
    6559     "gmalloc.$ac_objext"   | \
    6560   *" gmalloc.$ac_objext"   | \
    6561     "gmalloc.$ac_objext "* | \
     6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6126$as_echo "yes" >&6; }
     6127  case " $LIBOBJS " in
    65626128  *" gmalloc.$ac_objext "* ) ;;
    6563   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6129  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     6130 ;;
    65646131esac
    65656132
    6566   cat >>confdefs.h <<\_ACEOF
     6133  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     6134
     6135else
     6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6137$as_echo "no" >&6; }
     6138  for ac_func in valloc
     6139do :
     6140  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     6141if test "x$ac_cv_func_valloc" = x""yes; then :
     6142  cat >>confdefs.h <<_ACEOF
    65676143#define HAVE_VALLOC 1
    65686144_ACEOF
    65696145
    6570 else
    6571   echo "$as_me:$LINENO: result: no" >&5
    6572 echo "${ECHO_T}no" >&6
    6573 
    6574 for ac_func in valloc
    6575 do
    6576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6577 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6579 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6580   echo $ECHO_N "(cached) $ECHO_C" >&6
    6581 else
    6582   cat >conftest.$ac_ext <<_ACEOF
    6583 /* confdefs.h.  */
    6584 _ACEOF
    6585 cat confdefs.h >>conftest.$ac_ext
    6586 cat >>conftest.$ac_ext <<_ACEOF
    6587 /* end confdefs.h.  */
    6588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6590 #define $ac_func innocuous_$ac_func
    6591 
    6592 /* System header to define __stub macros and hopefully few prototypes,
    6593     which can conflict with char $ac_func (); below.
    6594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6595     <limits.h> exists even on freestanding compilers.  */
    6596 
    6597 #ifdef __STDC__
    6598 # include <limits.h>
    6599 #else
    6600 # include <assert.h>
    6601 #endif
    6602 
    6603 #undef $ac_func
    6604 
    6605 /* Override any gcc2 internal prototype to avoid an error.  */
    6606 #ifdef __cplusplus
    6607 extern "C"
    6608 {
    6609 #endif
    6610 /* We use char because int might match the return type of a gcc2
    6611    builtin and then its argument prototype would still apply.  */
    6612 char $ac_func ();
    6613 /* The GNU C library defines this for functions which it implements
    6614     to always fail with ENOSYS.  Some functions are actually named
    6615     something starting with __ and the normal name is an alias.  */
    6616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6617 choke me
    6618 #else
    6619 char (*f) () = $ac_func;
    6620 #endif
    6621 #ifdef __cplusplus
    6622 }
    6623 #endif
    6624 
    6625 int
    6626 main ()
    6627 {
    6628 return f != $ac_func;
    6629   ;
    6630   return 0;
    6631 }
    6632 _ACEOF
    6633 rm -f conftest.$ac_objext conftest$ac_exeext
    6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6635   (eval $ac_link) 2>conftest.er1
    6636   ac_status=$?
    6637   grep -v '^ *+' conftest.er1 >conftest.err
    6638   rm -f conftest.er1
    6639   cat conftest.err >&5
    6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6641   (exit $ac_status); } &&
    6642      { ac_try='test -z "$ac_c_werror_flag"
    6643              || test ! -s conftest.err'
    6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6645   (eval $ac_try) 2>&5
    6646   ac_status=$?
    6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6648   (exit $ac_status); }; } &&
    6649      { ac_try='test -s conftest$ac_exeext'
    6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6651   (eval $ac_try) 2>&5
    6652   ac_status=$?
    6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6654   (exit $ac_status); }; }; then
    6655   eval "$as_ac_var=yes"
    6656 else
    6657   echo "$as_me: failed program was:" >&5
    6658 sed 's/^/| /' conftest.$ac_ext >&5
    6659 
    6660 eval "$as_ac_var=no"
    6661 fi
    6662 rm -f conftest.err conftest.$ac_objext \
    6663       conftest$ac_exeext conftest.$ac_ext
    6664 fi
    6665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6667 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6668   cat >>confdefs.h <<_ACEOF
    6669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6670 _ACEOF
    6671 
    66726146fi
    66736147done
     
    66766150
    66776151# we cannot generate static libraries under Darwin
    6678 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6679 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
     6153$as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
    66806154if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6681   echo "$as_me:$LINENO: result: yes" >&5
    6682 echo "${ECHO_T}yes" >&6
     6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6156$as_echo "yes" >&6; }
    66836157  STATIC=""
    66846158else
    6685   echo "$as_me:$LINENO: result: no" >&5
    6686 echo "${ECHO_T}no" >&6
     6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6160$as_echo "no" >&6; }
    66876161  STATIC="-static "
    66886162fi
    66896163
    66906164
    6691 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6692 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6693 
    6694 # Check whether --with-dmalloc or --without-dmalloc was given.
    6695 if test "${with_dmalloc+set}" = set; then
    6696   withval="$with_dmalloc"
    6697   if test "$withval" = yes; then
    6698   echo "$as_me:$LINENO: result: yes" >&5
    6699 echo "${ECHO_T}yes" >&6
    6700   cat >>confdefs.h <<\_ACEOF
    6701 #define WITH_DMALLOC 1
    6702 _ACEOF
     6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     6166$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     6167
     6168# Check whether --with-dmalloc was given.
     6169if test "${with_dmalloc+set}" = set; then :
     6170  withval=$with_dmalloc; if test "$withval" = yes; then
     6171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6172$as_echo "yes" >&6; }
     6173  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
    67036174
    67046175  LIBS="$LIBS -ldmalloc"
    67056176  LDFLAGS="$LDFLAGS -g"
    67066177else
    6707   echo "$as_me:$LINENO: result: no" >&5
    6708 echo "${ECHO_T}no" >&6
    6709 fi
    6710 else
    6711   echo "$as_me:$LINENO: result: no" >&5
    6712 echo "${ECHO_T}no" >&6
    6713 fi;
    6714 
    6715 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6716 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6717 
    6718 # Check whether --with-regex or --without-regex was given.
    6719 if test "${with_regex+set}" = set; then
    6720   withval="$with_regex"
    6721   if test "$withval" = yes; then
     6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6179$as_echo "no" >&6; }
     6180fi
     6181else
     6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6183$as_echo "no" >&6; }
     6184fi
     6185
     6186
     6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     6188$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     6189
     6190# Check whether --with-regex was given.
     6191if test "${with_regex+set}" = set; then :
     6192  withval=$with_regex; if test "$withval" = yes; then
    67226193  ac_with_regex=1
    6723   echo "$as_me:$LINENO: result: regex" >&5
    6724 echo "${ECHO_T}regex" >&6
    6725   cat >>confdefs.h <<\_ACEOF
    6726 #define WITH_REGEX 1
    6727 _ACEOF
    6728 
    6729   case $LIBOBJS in
    6730     "regex.$ac_objext"   | \
    6731   *" regex.$ac_objext"   | \
    6732     "regex.$ac_objext "* | \
     6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     6195$as_echo "regex" >&6; }
     6196  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     6197
     6198  case " $LIBOBJS " in
    67336199  *" regex.$ac_objext "* ) ;;
    6734   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6200  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6201 ;;
    67356202esac
    67366203
    67376204fi
    6738 fi;
     6205fi
     6206
    67396207if test -z "$ac_with_regex"; then
    6740   echo "$as_me:$LINENO: result: rx" >&5
    6741 echo "${ECHO_T}rx" >&6
    6742   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6743 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6744 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6745   echo $ECHO_N "(cached) $ECHO_C" >&6
    6746 else
    6747   cat >conftest.$ac_ext <<_ACEOF
    6748 /* confdefs.h.  */
    6749 _ACEOF
    6750 cat confdefs.h >>conftest.$ac_ext
    6751 cat >>conftest.$ac_ext <<_ACEOF
    6752 /* end confdefs.h.  */
    6753 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6755 #define re_rx_search innocuous_re_rx_search
    6756 
    6757 /* System header to define __stub macros and hopefully few prototypes,
    6758     which can conflict with char re_rx_search (); below.
    6759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6760     <limits.h> exists even on freestanding compilers.  */
    6761 
    6762 #ifdef __STDC__
    6763 # include <limits.h>
    6764 #else
    6765 # include <assert.h>
    6766 #endif
    6767 
    6768 #undef re_rx_search
    6769 
    6770 /* Override any gcc2 internal prototype to avoid an error.  */
    6771 #ifdef __cplusplus
    6772 extern "C"
    6773 {
    6774 #endif
    6775 /* We use char because int might match the return type of a gcc2
    6776    builtin and then its argument prototype would still apply.  */
    6777 char re_rx_search ();
    6778 /* The GNU C library defines this for functions which it implements
    6779     to always fail with ENOSYS.  Some functions are actually named
    6780     something starting with __ and the normal name is an alias.  */
    6781 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6782 choke me
    6783 #else
    6784 char (*f) () = re_rx_search;
    6785 #endif
    6786 #ifdef __cplusplus
    6787 }
    6788 #endif
    6789 
    6790 int
    6791 main ()
    6792 {
    6793 return f != re_rx_search;
    6794   ;
    6795   return 0;
    6796 }
    6797 _ACEOF
    6798 rm -f conftest.$ac_objext conftest$ac_exeext
    6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6800   (eval $ac_link) 2>conftest.er1
    6801   ac_status=$?
    6802   grep -v '^ *+' conftest.er1 >conftest.err
    6803   rm -f conftest.er1
    6804   cat conftest.err >&5
    6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6806   (exit $ac_status); } &&
    6807      { ac_try='test -z "$ac_c_werror_flag"
    6808              || test ! -s conftest.err'
    6809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6810   (eval $ac_try) 2>&5
    6811   ac_status=$?
    6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6813   (exit $ac_status); }; } &&
    6814      { ac_try='test -s conftest$ac_exeext'
    6815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6816   (eval $ac_try) 2>&5
    6817   ac_status=$?
    6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6819   (exit $ac_status); }; }; then
    6820   ac_cv_func_re_rx_search=yes
    6821 else
    6822   echo "$as_me: failed program was:" >&5
    6823 sed 's/^/| /' conftest.$ac_ext >&5
    6824 
    6825 ac_cv_func_re_rx_search=no
    6826 fi
    6827 rm -f conftest.err conftest.$ac_objext \
    6828       conftest$ac_exeext conftest.$ac_ext
    6829 fi
    6830 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6831 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6832 if test $ac_cv_func_re_rx_search = yes; then
    6833   :
    6834 else
    6835   case $LIBOBJS in
    6836     "rx.$ac_objext"   | \
    6837   *" rx.$ac_objext"   | \
    6838     "rx.$ac_objext "* | \
     6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     6209$as_echo "rx" >&6; }
     6210  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     6211if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     6212
     6213else
     6214  case " $LIBOBJS " in
    68396215  *" rx.$ac_objext "* ) ;;
    6840   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6216  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     6217 ;;
    68416218esac
    68426219
     
    68486225# ---------------------------------------------------------------------------
    68496226if test "$ac_cv_func_alloca" = 'no'; then
    6850   case $LIBOBJS in
    6851     "xmalloc.$ac_objext"   | \
    6852   *" xmalloc.$ac_objext"   | \
    6853     "xmalloc.$ac_objext "* | \
     6227  case " $LIBOBJS " in
    68546228  *" xmalloc.$ac_objext "* ) ;;
    6855   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6229  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6230 ;;
    68566231esac
    68576232
    6858   case $LIBOBJS in
    6859     "error.$ac_objext"   | \
    6860   *" error.$ac_objext"   | \
    6861     "error.$ac_objext "* | \
     6233  case " $LIBOBJS " in
    68626234  *" error.$ac_objext "* ) ;;
    6863   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6235  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6236 ;;
    68646237esac
    68656238
     
    68696242# ---------------------------------------------------------------------------
    68706243
    6871 ac_ext=cc
     6244ac_ext=cpp
    68726245ac_cpp='$CXXCPP $CPPFLAGS'
    68736246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    68766249
    68776250
    6878 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
    6879 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
     6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
     6252$as_echo_n "checking that Perl 5 is available... " >&6; }
    68806253success="no"
    68816254pl_path="$PATH"
     
    68946267try=`expr $try \> 5.000`
    68956268if test $try = "1"; then
    6896 echo "$as_me:$LINENO: result: \"yes\"" >&5
    6897 echo "${ECHO_T}\"yes\"" >&6
     6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6270$as_echo "\"yes\"" >&6; }
    68986271else
    68996272success="no"
     
    69026275
    69036276if test $success = "no"; then
    6904 echo "$as_me:$LINENO: result: \"no\"" >&5
    6905 echo "${ECHO_T}\"no\"" >&6
    6906 { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
    6907 echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
    6908    { (exit 1); exit 1; }; }
     6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6278$as_echo "\"no\"" >&6; }
     6279as_fn_error $? "\"Perl 5 not available - cannot install\"" "$LINENO" 5
    69096280fi
    69106281
    69116282success=no
    6912 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
    6913 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
    6914 
    6915 
    6916 cat >conftest.$ac_ext <<_ACEOF
    6917 /* confdefs.h.  */
    6918 _ACEOF
    6919 cat confdefs.h >>conftest.$ac_ext
    6920 cat >>conftest.$ac_ext <<_ACEOF
     6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
     6284$as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
     6285
     6286
     6287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69216288/* end confdefs.h.  */
    69226289#include <vector>
     
    69306297}
    69316298_ACEOF
    6932 rm -f conftest.$ac_objext
    6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6934   (eval $ac_compile) 2>conftest.er1
    6935   ac_status=$?
    6936   grep -v '^ *+' conftest.er1 >conftest.err
    6937   rm -f conftest.er1
    6938   cat conftest.err >&5
    6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6940   (exit $ac_status); } &&
    6941      { ac_try='test -z "$ac_cxx_werror_flag"
    6942              || test ! -s conftest.err'
    6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6944   (eval $ac_try) 2>&5
    6945   ac_status=$?
    6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6947   (exit $ac_status); }; } &&
    6948      { ac_try='test -s conftest.$ac_objext'
    6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6950   (eval $ac_try) 2>&5
    6951   ac_status=$?
    6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6953   (exit $ac_status); }; }; then
     6299if ac_fn_cxx_try_compile "$LINENO"; then :
    69546300  success=yes
    6955 else
    6956   echo "$as_me: failed program was:" >&5
    6957 sed 's/^/| /' conftest.$ac_ext >&5
    6958 
    6959 fi
    6960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6301fi
     6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69616303
    69626304if test $success = "no"; then
    6963 cat >conftest.$ac_ext <<_ACEOF
    6964 /* confdefs.h.  */
    6965 _ACEOF
    6966 cat confdefs.h >>conftest.$ac_ext
    6967 cat >>conftest.$ac_ext <<_ACEOF
     6305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69686306/* end confdefs.h.  */
    69696307#include <vector.h>
     
    69776315}
    69786316_ACEOF
    6979 rm -f conftest.$ac_objext
    6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6981   (eval $ac_compile) 2>conftest.er1
    6982   ac_status=$?
    6983   grep -v '^ *+' conftest.er1 >conftest.err
    6984   rm -f conftest.er1
    6985   cat conftest.err >&5
    6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6987   (exit $ac_status); } &&
    6988      { ac_try='test -z "$ac_cxx_werror_flag"
    6989              || test ! -s conftest.err'
    6990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6991   (eval $ac_try) 2>&5
    6992   ac_status=$?
    6993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6994   (exit $ac_status); }; } &&
    6995      { ac_try='test -s conftest.$ac_objext'
    6996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6997   (eval $ac_try) 2>&5
    6998   ac_status=$?
    6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7000   (exit $ac_status); }; }; then
     6317if ac_fn_cxx_try_compile "$LINENO"; then :
    70016318  success="yes"
    7002 else
    7003   echo "$as_me: failed program was:" >&5
    7004 sed 's/^/| /' conftest.$ac_ext >&5
    7005 
    7006 fi
    7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6319fi
     6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    70086321fi
    70096322
    70106323if test $success = "no"; then
    7011 cat >conftest.$ac_ext <<_ACEOF
    7012 /* confdefs.h.  */
    7013 _ACEOF
    7014 cat confdefs.h >>conftest.$ac_ext
    7015 cat >>conftest.$ac_ext <<_ACEOF
     6324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70166325/* end confdefs.h.  */
    70176326#include <ospace\\std\\vector>
     
    70256334}
    70266335_ACEOF
    7027 rm -f conftest.$ac_objext
    7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7029   (eval $ac_compile) 2>conftest.er1
    7030   ac_status=$?
    7031   grep -v '^ *+' conftest.er1 >conftest.err
    7032   rm -f conftest.er1
    7033   cat conftest.err >&5
    7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7035   (exit $ac_status); } &&
    7036      { ac_try='test -z "$ac_cxx_werror_flag"
    7037              || test ! -s conftest.err'
    7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7039   (eval $ac_try) 2>&5
    7040   ac_status=$?
    7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7042   (exit $ac_status); }; } &&
    7043      { ac_try='test -s conftest.$ac_objext'
    7044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7045   (eval $ac_try) 2>&5
    7046   ac_status=$?
    7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7048   (exit $ac_status); }; }; then
     6336if ac_fn_cxx_try_compile "$LINENO"; then :
    70496337  success="yes"
    7050 else
    7051   echo "$as_me: failed program was:" >&5
    7052 sed 's/^/| /' conftest.$ac_ext >&5
    7053 
    7054 fi
    7055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6338fi
     6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    70566340fi
    70576341
    70586342if test $success = yes; then
    7059 echo "$as_me:$LINENO: result: \"no\"" >&5
    7060 echo "${ECHO_T}\"no\"" >&6
    7061 else
    7062 echo "$as_me:$LINENO: result: \"yes\"" >&5
    7063 echo "${ECHO_T}\"yes\"" >&6
    7064 { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
    7065 echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
    7066    { (exit 1); exit 1; }; }
     6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6344$as_echo "\"no\"" >&6; }
     6345else
     6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6347$as_echo "\"yes\"" >&6; }
     6348as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
    70676349fi
    70686350
     
    70766358
    70776359# check for endianness
    7078 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    7079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    7080 if test "${ac_cv_c_bigendian+set}" = set; then
    7081   echo $ECHO_N "(cached) $ECHO_C" >&6
    7082 else
    7083   # See if sys/param.h defines the BYTE_ORDER macro.
    7084 cat >conftest.$ac_ext <<_ACEOF
    7085 /* confdefs.h.  */
    7086 _ACEOF
    7087 cat confdefs.h >>conftest.$ac_ext
    7088 cat >>conftest.$ac_ext <<_ACEOF
     6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6361$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6362if test "${ac_cv_c_bigendian+set}" = set; then :
     6363  $as_echo_n "(cached) " >&6
     6364else
     6365  ac_cv_c_bigendian=unknown
     6366    # See if we're dealing with a universal compiler.
     6367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6368/* end confdefs.h.  */
     6369#ifndef __APPLE_CC__
     6370           not a universal capable compiler
     6371         #endif
     6372         typedef int dummy;
     6373
     6374_ACEOF
     6375if ac_fn_cxx_try_compile "$LINENO"; then :
     6376
     6377    # Check for potential -arch flags.  It is not universal unless
     6378    # there are at least two -arch flags with different values.
     6379    ac_arch=
     6380    ac_prev=
     6381    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     6382     if test -n "$ac_prev"; then
     6383       case $ac_word in
     6384         i?86 | x86_64 | ppc | ppc64)
     6385           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     6386         ac_arch=$ac_word
     6387           else
     6388         ac_cv_c_bigendian=universal
     6389         break
     6390           fi
     6391           ;;
     6392       esac
     6393       ac_prev=
     6394     elif test "x$ac_word" = "x-arch"; then
     6395       ac_prev=arch
     6396     fi
     6397       done
     6398fi
     6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6400    if test $ac_cv_c_bigendian = unknown; then
     6401      # See if sys/param.h defines the BYTE_ORDER macro.
     6402      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70896403/* end confdefs.h.  */
    70906404#include <sys/types.h>
    7091 #include <sys/param.h>
     6405         #include <sys/param.h>
    70926406
    70936407int
    70946408main ()
    70956409{
    7096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    7097  bogus endian macros
    7098 #endif
     6410#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     6411             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     6412             && LITTLE_ENDIAN)
     6413          bogus endian macros
     6414         #endif
    70996415
    71006416  ;
     
    71026418}
    71036419_ACEOF
    7104 rm -f conftest.$ac_objext
    7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7106   (eval $ac_compile) 2>conftest.er1
    7107   ac_status=$?
    7108   grep -v '^ *+' conftest.er1 >conftest.err
    7109   rm -f conftest.er1
    7110   cat conftest.err >&5
    7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7112   (exit $ac_status); } &&
    7113      { ac_try='test -z "$ac_cxx_werror_flag"
    7114              || test ! -s conftest.err'
    7115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7116   (eval $ac_try) 2>&5
    7117   ac_status=$?
    7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7119   (exit $ac_status); }; } &&
    7120      { ac_try='test -s conftest.$ac_objext'
    7121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7122   (eval $ac_try) 2>&5
    7123   ac_status=$?
    7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7125   (exit $ac_status); }; }; then
     6420if ac_fn_cxx_try_compile "$LINENO"; then :
    71266421  # It does; now see whether it defined to BIG_ENDIAN or not.
    7127 cat >conftest.$ac_ext <<_ACEOF
    7128 /* confdefs.h.  */
    7129 _ACEOF
    7130 cat confdefs.h >>conftest.$ac_ext
    7131 cat >>conftest.$ac_ext <<_ACEOF
     6422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71326423/* end confdefs.h.  */
    71336424#include <sys/types.h>
    7134 #include <sys/param.h>
     6425        #include <sys/param.h>
    71356426
    71366427int
     
    71386429{
    71396430#if BYTE_ORDER != BIG_ENDIAN
    7140  not big endian
    7141 #endif
     6431        not big endian
     6432        #endif
    71426433
    71436434  ;
     
    71456436}
    71466437_ACEOF
    7147 rm -f conftest.$ac_objext
    7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7149   (eval $ac_compile) 2>conftest.er1
    7150   ac_status=$?
    7151   grep -v '^ *+' conftest.er1 >conftest.err
    7152   rm -f conftest.er1
    7153   cat conftest.err >&5
    7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7155   (exit $ac_status); } &&
    7156      { ac_try='test -z "$ac_cxx_werror_flag"
    7157              || test ! -s conftest.err'
    7158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7159   (eval $ac_try) 2>&5
    7160   ac_status=$?
    7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7162   (exit $ac_status); }; } &&
    7163      { ac_try='test -s conftest.$ac_objext'
    7164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7165   (eval $ac_try) 2>&5
    7166   ac_status=$?
    7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7168   (exit $ac_status); }; }; then
     6438if ac_fn_cxx_try_compile "$LINENO"; then :
    71696439  ac_cv_c_bigendian=yes
    71706440else
    7171   echo "$as_me: failed program was:" >&5
    7172 sed 's/^/| /' conftest.$ac_ext >&5
    7173 
    7174 ac_cv_c_bigendian=no
    7175 fi
    7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7177 else
    7178   echo "$as_me: failed program was:" >&5
    7179 sed 's/^/| /' conftest.$ac_ext >&5
    7180 
    7181 # It does not; compile a test program.
    7182 if test "$cross_compiling" = yes; then
    7183   # try to guess the endianness by grepping values into an object file
    7184   ac_cv_c_bigendian=unknown
    7185   cat >conftest.$ac_ext <<_ACEOF
    7186 /* confdefs.h.  */
    7187 _ACEOF
    7188 cat confdefs.h >>conftest.$ac_ext
    7189 cat >>conftest.$ac_ext <<_ACEOF
     6441  ac_cv_c_bigendian=no
     6442fi
     6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6444fi
     6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6446    fi
     6447    if test $ac_cv_c_bigendian = unknown; then
     6448      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     6449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71906450/* end confdefs.h.  */
    7191 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    7192 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    7193 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    7194 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    7195 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    7196 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6451#include <limits.h>
     6452
    71976453int
    71986454main ()
    71996455{
    7200  _ascii (); _ebcdic ();
     6456#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     6457          bogus endian macros
     6458         #endif
     6459
    72016460  ;
    72026461  return 0;
    72036462}
    72046463_ACEOF
    7205 rm -f conftest.$ac_objext
    7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7207   (eval $ac_compile) 2>conftest.er1
    7208   ac_status=$?
    7209   grep -v '^ *+' conftest.er1 >conftest.err
    7210   rm -f conftest.er1
    7211   cat conftest.err >&5
    7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7213   (exit $ac_status); } &&
    7214      { ac_try='test -z "$ac_cxx_werror_flag"
    7215              || test ! -s conftest.err'
    7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7217   (eval $ac_try) 2>&5
    7218   ac_status=$?
    7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7220   (exit $ac_status); }; } &&
    7221      { ac_try='test -s conftest.$ac_objext'
    7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7223   (eval $ac_try) 2>&5
    7224   ac_status=$?
    7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7226   (exit $ac_status); }; }; then
    7227   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    7228   ac_cv_c_bigendian=yes
    7229 fi
    7230 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    7231   if test "$ac_cv_c_bigendian" = unknown; then
    7232     ac_cv_c_bigendian=no
    7233   else
    7234     # finding both strings is unlikely to happen, but who knows?
    7235     ac_cv_c_bigendian=unknown
    7236   fi
    7237 fi
    7238 else
    7239   echo "$as_me: failed program was:" >&5
    7240 sed 's/^/| /' conftest.$ac_ext >&5
    7241 
    7242 fi
    7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7244 else
    7245   cat >conftest.$ac_ext <<_ACEOF
    7246 /* confdefs.h.  */
    7247 _ACEOF
    7248 cat confdefs.h >>conftest.$ac_ext
    7249 cat >>conftest.$ac_ext <<_ACEOF
     6464if ac_fn_cxx_try_compile "$LINENO"; then :
     6465  # It does; now see whether it defined to _BIG_ENDIAN or not.
     6466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    72506467/* end confdefs.h.  */
     6468#include <limits.h>
     6469
    72516470int
    72526471main ()
    72536472{
    7254   /* Are we little or big endian?  From Harbison&Steele.  */
    7255   union
    7256   {
    7257     long l;
    7258     char c[sizeof (long)];
    7259   } u;
    7260   u.l = 1;
    7261   exit (u.c[sizeof (long) - 1] == 1);
     6473#ifndef _BIG_ENDIAN
     6474         not big endian
     6475        #endif
     6476
     6477  ;
     6478  return 0;
    72626479}
    72636480_ACEOF
    7264 rm -f conftest$ac_exeext
    7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7266   (eval $ac_link) 2>&5
    7267   ac_status=$?
    7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7271   (eval $ac_try) 2>&5
    7272   ac_status=$?
    7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7274   (exit $ac_status); }; }; then
     6481if ac_fn_cxx_try_compile "$LINENO"; then :
     6482  ac_cv_c_bigendian=yes
     6483else
    72756484  ac_cv_c_bigendian=no
    7276 else
    7277   echo "$as_me: program exited with status $ac_status" >&5
    7278 echo "$as_me: failed program was:" >&5
    7279 sed 's/^/| /' conftest.$ac_ext >&5
    7280 
    7281 ( exit $ac_status )
    7282 ac_cv_c_bigendian=yes
    7283 fi
    7284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7285 fi
    7286 fi
    7287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7288 fi
    7289 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    7290 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    7291 case $ac_cv_c_bigendian in
    7292   yes)
    7293 
    7294 cat >>confdefs.h <<\_ACEOF
    7295 #define WORDS_BIGENDIAN 1
    7296 _ACEOF
    7297  ;;
    7298   no)
    7299      ;;
    7300   *)
    7301     { { echo "$as_me:$LINENO: error: unknown endianness
    7302 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    7303 echo "$as_me: error: unknown endianness
    7304 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    7305    { (exit 1); exit 1; }; } ;;
    7306 esac
     6485fi
     6486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6487fi
     6488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6489    fi
     6490    if test $ac_cv_c_bigendian = unknown; then
     6491      # Compile a test program.
     6492      if test "$cross_compiling" = yes; then :
     6493  # Try to guess by grepping values from an object file.
     6494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6495/* end confdefs.h.  */
     6496short int ascii_mm[] =
     6497          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6498        short int ascii_ii[] =
     6499          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6500        int use_ascii (int i) {
     6501          return ascii_mm[i] + ascii_ii[i];
     6502        }
     6503        short int ebcdic_ii[] =
     6504          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6505        short int ebcdic_mm[] =
     6506          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6507        int use_ebcdic (int i) {
     6508          return ebcdic_mm[i] + ebcdic_ii[i];
     6509        }
     6510        extern int foo;
     6511
     6512int
     6513main ()
     6514{
     6515return use_ascii (foo) == use_ebcdic (foo);
     6516  ;
     6517  return 0;
     6518}
     6519_ACEOF
     6520if ac_fn_cxx_try_compile "$LINENO"; then :
     6521  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6522          ac_cv_c_bigendian=yes
     6523        fi
     6524        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6525          if test "$ac_cv_c_bigendian" = unknown; then
     6526        ac_cv_c_bigendian=no
     6527          else
     6528        # finding both strings is unlikely to happen, but who knows?
     6529        ac_cv_c_bigendian=unknown
     6530          fi
     6531        fi
     6532fi
     6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6534else
     6535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6536/* end confdefs.h.  */
     6537$ac_includes_default
     6538int
     6539main ()
     6540{
     6541
     6542         /* Are we little or big endian?  From Harbison&Steele.  */
     6543         union
     6544         {
     6545           long int l;
     6546           char c[sizeof (long int)];
     6547         } u;
     6548         u.l = 1;
     6549         return u.c[sizeof (long int) - 1] == 1;
     6550
     6551  ;
     6552  return 0;
     6553}
     6554_ACEOF
     6555if ac_fn_cxx_try_run "$LINENO"; then :
     6556  ac_cv_c_bigendian=no
     6557else
     6558  ac_cv_c_bigendian=yes
     6559fi
     6560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6561  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6562fi
     6563
     6564    fi
     6565fi
     6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6567$as_echo "$ac_cv_c_bigendian" >&6; }
     6568 case $ac_cv_c_bigendian in #(
     6569   yes)
     6570     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6571;; #(
     6572   no)
     6573      ;; #(
     6574   universal)
     6575
     6576$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6577
     6578     ;; #(
     6579   *)
     6580     as_fn_error $? "unknown endianness
     6581 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6582 esac
    73076583
    73086584# ---------------------------------------------------------------------------
    73096585if test "$ac_cv_func_alloca" = 'no'; then
    7310   case $LIBOBJS in
    7311     "xmalloc.o.$ac_objext"   | \
    7312   *" xmalloc.o.$ac_objext"   | \
    7313     "xmalloc.o.$ac_objext "* | \
     6586  case " $LIBOBJS " in
    73146587  *" xmalloc.o.$ac_objext "* ) ;;
    7315   *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
     6588  *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
     6589 ;;
    73166590esac
    73176591
    7318   case $LIBOBJS in
    7319     "error.$ac_objext"   | \
    7320   *" error.$ac_objext"   | \
    7321     "error.$ac_objext "* | \
     6592  case " $LIBOBJS " in
    73226593  *" error.$ac_objext "* ) ;;
    7323   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6594  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6595 ;;
    73246596esac
    73256597
     
    73536625# the list of folders in the src folder
    73546626srclist="src/hashfile/Makefile \
    7355          src/phind/generate/Makefile"
    7356 
    7357                                         ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6627         src/phind/generate/Makefile \
     6628     src/java/org/nzdl/gsdl/Makefile"
     6629
     6630ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6631
    73586632cat >confcache <<\_ACEOF
    73596633# This file is a shell script that caches the results of configure
     
    73746648# The following way of writing the cache mishandles newlines in values,
    73756649# but we know of no workaround that is simple, portable, and efficient.
    7376 # So, don't put newlines in cache variables' values.
     6650# So, we kill variables containing newlines.
    73776651# Ultrix sh set writes to stderr and can't be redirected directly,
    73786652# and sets the high bit in the cache file unless we assign to the vars.
    7379 {
     6653(
     6654  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6655    eval ac_val=\$$ac_var
     6656    case $ac_val in #(
     6657    *${as_nl}*)
     6658      case $ac_var in #(
     6659      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6661      esac
     6662      case $ac_var in #(
     6663      _ | IFS | as_nl) ;; #(
     6664      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6665      *) { eval $ac_var=; unset $ac_var;} ;;
     6666      esac ;;
     6667    esac
     6668  done
     6669
    73806670  (set) 2>&1 |
    7381     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    7382     *ac_space=\ *)
    7383       # `set' does not quote correctly, so add quotes (double-quote
    7384       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6671    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6672    *${as_nl}ac_space=\ *)
     6673      # `set' does not quote correctly, so add quotes: double-quote
     6674      # substitution turns \\\\ into \\, and sed turns \\ into \.
    73856675      sed -n \
    73866676    "s/'/'\\\\''/g;
    73876677      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    7388       ;;
     6678      ;; #(
    73896679    *)
    73906680      # `set' quotes correctly as required by POSIX, so do not add quotes.
    7391       sed -n \
    7392     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6681      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    73936682      ;;
    7394     esac;
    7395 } |
     6683    esac |
     6684    sort
     6685) |
    73966686  sed '
     6687     /^ac_cv_env_/b end
    73976688     t clear
    7398      : clear
     6689     :clear
    73996690     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    74006691     t end
    7401      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    7402      : end' >>confcache
    7403 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    7404   if test -w $cache_file; then
    7405     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6692     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6693     :end' >>confcache
     6694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6695  if test -w "$cache_file"; then
     6696    test "x$cache_file" != "x/dev/null" &&
     6697      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6698$as_echo "$as_me: updating cache $cache_file" >&6;}
    74066699    cat confcache >$cache_file
    74076700  else
    7408     echo "not updating unwritable cache $cache_file"
     6701    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6702$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    74096703  fi
    74106704fi
     
    74156709test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    74166710
    7417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    7419 # trailing colons and then remove the whole line if VPATH becomes empty
    7420 # (actually we leave an empty line to preserve line numbers).
    7421 if test "x$srcdir" = x.; then
    7422   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7423 s/:*\$(srcdir):*/:/;
    7424 s/:*\${srcdir}:*/:/;
    7425 s/:*@srcdir@:*/:/;
    7426 s/^\([^=]*=[     ]*\):*/\1/;
    7427 s/:*$//;
    7428 s/^[^=]*=[   ]*$//;
    7429 }'
    7430 fi
    7431 
    74326711DEFS=-DHAVE_CONFIG_H
    74336712
    74346713ac_libobjs=
    74356714ac_ltlibobjs=
     6715U=
    74366716for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    74376717  # 1. Remove the extension, and $U if already installed.
    7438   ac_i=`echo "$ac_i" |
    7439      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    7440   # 2. Add them.
    7441   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    7442   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6718  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6719  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6720  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6721  #    will be set to the directory where LIBOBJS objects are built.
     6722  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6723  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    74436724done
    74446725LIBOBJS=$ac_libobjs
     
    74486729
    74496730
     6731
    74506732: ${CONFIG_STATUS=./config.status}
     6733ac_write_fail=0
    74516734ac_clean_files_save=$ac_clean_files
    74526735ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    7453 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    7454 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    7455 cat >$CONFIG_STATUS <<_ACEOF
     6736{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6737$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6738as_write_fail=0
     6739cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    74566740#! $SHELL
    74576741# Generated by $as_me.
     
    74636747ac_cs_recheck=false
    74646748ac_cs_silent=false
     6749
    74656750SHELL=\${CONFIG_SHELL-$SHELL}
    7466 _ACEOF
    7467 
    7468 cat >>$CONFIG_STATUS <<\_ACEOF
    7469 ## --------------------- ##
    7470 ## M4sh Initialization.  ##
    7471 ## --------------------- ##
    7472 
    7473 # Be Bourne compatible
    7474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6751export SHELL
     6752_ASEOF
     6753cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6754## -------------------- ##
     6755## M4sh Initialization. ##
     6756## -------------------- ##
     6757
     6758# Be more Bourne compatible
     6759DUALCASE=1; export DUALCASE # for MKS sh
     6760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    74756761  emulate sh
    74766762  NULLCMD=:
    7477   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6763  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    74786764  # is contrary to our usage.  Disable this feature.
    74796765  alias -g '${1+"$@"}'='"$@"'
    7480 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    7481   set -o posix
    7482 fi
    7483 DUALCASE=1; export DUALCASE # for MKS sh
    7484 
    7485 # Support unset when possible.
    7486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    7487   as_unset=unset
    7488 else
    7489   as_unset=false
    7490 fi
    7491 
    7492 
    7493 # Work around bugs in pre-3.0 UWIN ksh.
    7494 $as_unset ENV MAIL MAILPATH
     6766  setopt NO_GLOB_SUBST
     6767else
     6768  case `(set -o) 2>/dev/null` in #(
     6769  *posix*) :
     6770    set -o posix ;; #(
     6771  *) :
     6772     ;;
     6773esac
     6774fi
     6775
     6776
     6777as_nl='
     6778'
     6779export as_nl
     6780# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6781as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6784# Prefer a ksh shell builtin over an external printf program on Solaris,
     6785# but without wasting forks for bash or zsh.
     6786if test -z "$BASH_VERSION$ZSH_VERSION" \
     6787    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6788  as_echo='print -r --'
     6789  as_echo_n='print -rn --'
     6790elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6791  as_echo='printf %s\n'
     6792  as_echo_n='printf %s'
     6793else
     6794  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6795    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6796    as_echo_n='/usr/ucb/echo -n'
     6797  else
     6798    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6799    as_echo_n_body='eval
     6800      arg=$1;
     6801      case $arg in #(
     6802      *"$as_nl"*)
     6803    expr "X$arg" : "X\\(.*\\)$as_nl";
     6804    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6805      esac;
     6806      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6807    '
     6808    export as_echo_n_body
     6809    as_echo_n='sh -c $as_echo_n_body as_echo'
     6810  fi
     6811  export as_echo_body
     6812  as_echo='sh -c $as_echo_body as_echo'
     6813fi
     6814
     6815# The user is always right.
     6816if test "${PATH_SEPARATOR+set}" != set; then
     6817  PATH_SEPARATOR=:
     6818  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6819    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6820      PATH_SEPARATOR=';'
     6821  }
     6822fi
     6823
     6824
     6825# IFS
     6826# We need space, tab and new line, in precisely that order.  Quoting is
     6827# there to prevent editors from complaining about space-tab.
     6828# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6829# splitting by setting IFS to empty value.)
     6830IFS=" ""    $as_nl"
     6831
     6832# Find who we are.  Look in the path if we contain no directory separator.
     6833case $0 in #((
     6834  *[\\/]* ) as_myself=$0 ;;
     6835  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6836for as_dir in $PATH
     6837do
     6838  IFS=$as_save_IFS
     6839  test -z "$as_dir" && as_dir=.
     6840    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6841  done
     6842IFS=$as_save_IFS
     6843
     6844     ;;
     6845esac
     6846# We did not find ourselves, most probably we were run as `sh COMMAND'
     6847# in which case we are not to be found in the path.
     6848if test "x$as_myself" = x; then
     6849  as_myself=$0
     6850fi
     6851if test ! -f "$as_myself"; then
     6852  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6853  exit 1
     6854fi
     6855
     6856# Unset variables that we do not need and which cause bugs (e.g. in
     6857# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6858# suppresses any "Segmentation fault" message there.  '((' could
     6859# trigger a bug in pdksh 5.2.14.
     6860for as_var in BASH_ENV ENV MAIL MAILPATH
     6861do eval test x\${$as_var+set} = xset \
     6862  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6863done
    74956864PS1='$ '
    74966865PS2='> '
     
    74986867
    74996868# NLS nuisances.
    7500 for as_var in \
    7501   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    7502   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    7503   LC_TELEPHONE LC_TIME
    7504 do
    7505   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    7506     eval $as_var=C; export $as_var
    7507   else
    7508     $as_unset $as_var
     6869LC_ALL=C
     6870export LC_ALL
     6871LANGUAGE=C
     6872export LANGUAGE
     6873
     6874# CDPATH.
     6875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6876
     6877
     6878# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6879# ----------------------------------------
     6880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6882# script with STATUS, using 1 if that was 0.
     6883as_fn_error ()
     6884{
     6885  as_status=$1; test $as_status -eq 0 && as_status=1
     6886  if test "$4"; then
     6887    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6888    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    75096889  fi
    7510 done
    7511 
    7512 # Required to use basename.
    7513 if expr a : '\(a\)' >/dev/null 2>&1; then
     6890  $as_echo "$as_me: error: $2" >&2
     6891  as_fn_exit $as_status
     6892} # as_fn_error
     6893
     6894
     6895# as_fn_set_status STATUS
     6896# -----------------------
     6897# Set $? to STATUS, without forking.
     6898as_fn_set_status ()
     6899{
     6900  return $1
     6901} # as_fn_set_status
     6902
     6903# as_fn_exit STATUS
     6904# -----------------
     6905# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6906as_fn_exit ()
     6907{
     6908  set +e
     6909  as_fn_set_status $1
     6910  exit $1
     6911} # as_fn_exit
     6912
     6913# as_fn_unset VAR
     6914# ---------------
     6915# Portably unset VAR.
     6916as_fn_unset ()
     6917{
     6918  { eval $1=; unset $1;}
     6919}
     6920as_unset=as_fn_unset
     6921# as_fn_append VAR VALUE
     6922# ----------------------
     6923# Append the text in VALUE to the end of the definition contained in VAR. Take
     6924# advantage of any shell optimizations that allow amortized linear growth over
     6925# repeated appends, instead of the typical quadratic growth present in naive
     6926# implementations.
     6927if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6928  eval 'as_fn_append ()
     6929  {
     6930    eval $1+=\$2
     6931  }'
     6932else
     6933  as_fn_append ()
     6934  {
     6935    eval $1=\$$1\$2
     6936  }
     6937fi # as_fn_append
     6938
     6939# as_fn_arith ARG...
     6940# ------------------
     6941# Perform arithmetic evaluation on the ARGs, and store the result in the
     6942# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6943# must be portable across $(()) and expr.
     6944if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6945  eval 'as_fn_arith ()
     6946  {
     6947    as_val=$(( $* ))
     6948  }'
     6949else
     6950  as_fn_arith ()
     6951  {
     6952    as_val=`expr "$@" || test $? -eq 1`
     6953  }
     6954fi # as_fn_arith
     6955
     6956
     6957if expr a : '\(a\)' >/dev/null 2>&1 &&
     6958   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    75146959  as_expr=expr
    75156960else
     
    75176962fi
    75186963
    7519 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6964if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    75206965  as_basename=basename
    75216966else
     
    75236968fi
    75246969
    7525 
    7526 # Name of the executable.
    7527 as_me=`$as_basename "$0" ||
     6970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     6971  as_dirname=dirname
     6972else
     6973  as_dirname=false
     6974fi
     6975
     6976as_me=`$as_basename -- "$0" ||
    75286977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    75296978     X"$0" : 'X\(//\)$' \| \
    7530      X"$0" : 'X\(/\)$' \| \
    7531      .     : '\(.\)' 2>/dev/null ||
    7532 echo X/"$0" |
    7533     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    7534       /^X\/\(\/\/\)$/{ s//\1/; q; }
    7535       /^X\/\(\/\).*/{ s//\1/; q; }
    7536       s/.*/./; q'`
    7537 
    7538 
    7539 # PATH needs CR, and LINENO needs CR and PATH.
     6979     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     6980$as_echo X/"$0" |
     6981    sed '/^.*\/\([^/][^/]*\)\/*$/{
     6982        s//\1/
     6983        q
     6984      }
     6985      /^X\/\(\/\/\)$/{
     6986        s//\1/
     6987        q
     6988      }
     6989      /^X\/\(\/\).*/{
     6990        s//\1/
     6991        q
     6992      }
     6993      s/.*/./; q'`
     6994
    75406995# Avoid depending upon Character Ranges.
    75416996as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    75457000as_cr_alnum=$as_cr_Letters$as_cr_digits
    75467001
    7547 # The user is always right.
    7548 if test "${PATH_SEPARATOR+set}" != set; then
    7549   echo "#! /bin/sh" >conf$$.sh
    7550   echo  "exit 0"   >>conf$$.sh
    7551   chmod +x conf$$.sh
    7552   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    7553     PATH_SEPARATOR=';'
     7002ECHO_C= ECHO_N= ECHO_T=
     7003case `echo -n x` in #(((((
     7004-n*)
     7005  case `echo 'xy\c'` in
     7006  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     7007  xy)  ECHO_C='\c';;
     7008  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     7009       ECHO_T=' ';;
     7010  esac;;
     7011*)
     7012  ECHO_N='-n';;
     7013esac
     7014
     7015rm -f conf$$ conf$$.exe conf$$.file
     7016if test -d conf$$.dir; then
     7017  rm -f conf$$.dir/conf$$.file
     7018else
     7019  rm -f conf$$.dir
     7020  mkdir conf$$.dir 2>/dev/null
     7021fi
     7022if (echo >conf$$.file) 2>/dev/null; then
     7023  if ln -s conf$$.file conf$$ 2>/dev/null; then
     7024    as_ln_s='ln -s'
     7025    # ... but there are two gotchas:
     7026    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     7027    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     7028    # In both cases, we have to default to `cp -p'.
     7029    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     7030      as_ln_s='cp -p'
     7031  elif ln conf$$.file conf$$ 2>/dev/null; then
     7032    as_ln_s=ln
    75547033  else
    7555     PATH_SEPARATOR=:
     7034    as_ln_s='cp -p'
    75567035  fi
    7557   rm -f conf$$.sh
    7558 fi
    7559 
    7560 
    7561   as_lineno_1=$LINENO
    7562   as_lineno_2=$LINENO
    7563   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7564   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7565   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    7566   # Find who we are.  Look in the path if we contain no path at all
    7567   # relative or not.
    7568   case $0 in
    7569     *[\\/]* ) as_myself=$0 ;;
    7570     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7571 for as_dir in $PATH
    7572 do
    7573   IFS=$as_save_IFS
    7574   test -z "$as_dir" && as_dir=.
    7575   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    7576 done
    7577 
    7578        ;;
     7036else
     7037  as_ln_s='cp -p'
     7038fi
     7039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     7040rmdir conf$$.dir 2>/dev/null
     7041
     7042
     7043# as_fn_mkdir_p
     7044# -------------
     7045# Create "$as_dir" as a directory, including parents if necessary.
     7046as_fn_mkdir_p ()
     7047{
     7048
     7049  case $as_dir in #(
     7050  -*) as_dir=./$as_dir;;
    75797051  esac
    7580   # We did not find ourselves, most probably we were run as `sh COMMAND'
    7581   # in which case we are not to be found in the path.
    7582   if test "x$as_myself" = x; then
    7583     as_myself=$0
    7584   fi
    7585   if test ! -f "$as_myself"; then
    7586     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    7587 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    7588    { (exit 1); exit 1; }; }
    7589   fi
    7590   case $CONFIG_SHELL in
    7591   '')
    7592     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7593 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    7594 do
    7595   IFS=$as_save_IFS
    7596   test -z "$as_dir" && as_dir=.
    7597   for as_base in sh bash ksh sh5; do
    7598      case $as_dir in
    7599      /*)
    7600        if ("$as_dir/$as_base" -c '
    7601   as_lineno_1=$LINENO
    7602   as_lineno_2=$LINENO
    7603   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7604   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7605   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    7606          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    7607          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    7608          CONFIG_SHELL=$as_dir/$as_base
    7609          export CONFIG_SHELL
    7610          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    7611        fi;;
    7612      esac
    7613        done
    7614 done
    7615 ;;
    7616   esac
    7617 
    7618   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    7619   # uniformly replaced by the line number.  The first 'sed' inserts a
    7620   # line-number line before each line; the second 'sed' does the real
    7621   # work.  The second script uses 'N' to pair each line-number line
    7622   # with the numbered line, and appends trailing '-' during
    7623   # substitution so that $LINENO is not a special case at line end.
    7624   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    7625   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    7626   sed '=' <$as_myself |
    7627     sed '
    7628       N
    7629       s,$,-,
    7630       : loop
    7631       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    7632       t loop
    7633       s,-$,,
    7634       s,^['$as_cr_digits']*\n,,
    7635     ' >$as_me.lineno &&
    7636   chmod +x $as_me.lineno ||
    7637     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    7638 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    7639    { (exit 1); exit 1; }; }
    7640 
    7641   # Don't try to exec as it changes $[0], causing all sort of problems
    7642   # (the dirname of $[0] is not the place where we might find the
    7643   # original and so on.  Autoconf is especially sensible to this).
    7644   . ./$as_me.lineno
    7645   # Exit status is that of the last command.
    7646   exit
    7647 }
    7648 
    7649 
    7650 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    7651   *c*,-n*) ECHO_N= ECHO_C='
    7652 ' ECHO_T='  ' ;;
    7653   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    7654   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    7655 esac
    7656 
    7657 if expr a : '\(a\)' >/dev/null 2>&1; then
    7658   as_expr=expr
    7659 else
    7660   as_expr=false
    7661 fi
    7662 
    7663 rm -f conf$$ conf$$.exe conf$$.file
    7664 echo >conf$$.file
    7665 if ln -s conf$$.file conf$$ 2>/dev/null; then
    7666   # We could just check for DJGPP; but this test a) works b) is more generic
    7667   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    7668   if test -f conf$$.exe; then
    7669     # Don't use ln at all; we don't have any links
    7670     as_ln_s='cp -p'
    7671   else
    7672     as_ln_s='ln -s'
    7673   fi
    7674 elif ln conf$$.file conf$$ 2>/dev/null; then
    7675   as_ln_s=ln
    7676 else
    7677   as_ln_s='cp -p'
    7678 fi
    7679 rm -f conf$$ conf$$.exe conf$$.file
    7680 
     7052  test -d "$as_dir" || eval $as_mkdir_p || {
     7053    as_dirs=
     7054    while :; do
     7055      case $as_dir in #(
     7056      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     7057      *) as_qdir=$as_dir;;
     7058      esac
     7059      as_dirs="'$as_qdir' $as_dirs"
     7060      as_dir=`$as_dirname -- "$as_dir" ||
     7061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7062     X"$as_dir" : 'X\(//\)[^/]' \| \
     7063     X"$as_dir" : 'X\(//\)$' \| \
     7064     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     7065$as_echo X"$as_dir" |
     7066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7067        s//\1/
     7068        q
     7069      }
     7070      /^X\(\/\/\)[^/].*/{
     7071        s//\1/
     7072        q
     7073      }
     7074      /^X\(\/\/\)$/{
     7075        s//\1/
     7076        q
     7077      }
     7078      /^X\(\/\).*/{
     7079        s//\1/
     7080        q
     7081      }
     7082      s/.*/./; q'`
     7083      test -d "$as_dir" && break
     7084    done
     7085    test -z "$as_dirs" || eval "mkdir $as_dirs"
     7086  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7087
     7088
     7089} # as_fn_mkdir_p
    76817090if mkdir -p . 2>/dev/null; then
    7682   as_mkdir_p=:
     7091  as_mkdir_p='mkdir -p "$as_dir"'
    76837092else
    76847093  test -d ./-p && rmdir ./-p
     
    76867095fi
    76877096
    7688 as_executable_p="test -f"
     7097if test -x / >/dev/null 2>&1; then
     7098  as_test_x='test -x'
     7099else
     7100  if ls -dL / >/dev/null 2>&1; then
     7101    as_ls_L_option=L
     7102  else
     7103    as_ls_L_option=
     7104  fi
     7105  as_test_x='
     7106    eval sh -c '\''
     7107      if test -d "$1"; then
     7108    test -d "$1/.";
     7109      else
     7110    case $1 in #(
     7111    -*)set "./$1";;
     7112    esac;
     7113    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     7114    ???[sx]*):;;*)false;;esac;fi
     7115    '\'' sh
     7116  '
     7117fi
     7118as_executable_p=$as_test_x
    76897119
    76907120# Sed expression to map a string onto a valid CPP name.
     
    76957125
    76967126
    7697 # IFS
    7698 # We need space, tab and new line, in precisely that order.
    7699 as_nl='
    7700 '
    7701 IFS="   $as_nl"
    7702 
    7703 # CDPATH.
    7704 $as_unset CDPATH
    7705 
    77067127exec 6>&1
    7707 
    7708 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     7128## ----------------------------------- ##
     7129## Main body of $CONFIG_STATUS script. ##
     7130## ----------------------------------- ##
     7131_ASEOF
     7132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     7133
     7134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7135# Save the log message, to keep $0 and so on meaningful, and to
    77097136# report actual input values of CONFIG_FILES etc. instead of their
    7710 # values after options handling.  Logging --version etc. is OK.
     7137# values after options handling.
     7138ac_log="
     7139This file was extended by $as_me, which was
     7140generated by GNU Autoconf 2.67.  Invocation command line was
     7141
     7142  CONFIG_FILES    = $CONFIG_FILES
     7143  CONFIG_HEADERS  = $CONFIG_HEADERS
     7144  CONFIG_LINKS    = $CONFIG_LINKS
     7145  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7146  $ $0 $@
     7147
     7148on `(hostname || uname -n) 2>/dev/null | sed 1q`
     7149"
     7150
     7151_ACEOF
     7152
     7153case $ac_config_files in *"
     7154"*) set x $ac_config_files; shift; ac_config_files=$*;;
     7155esac
     7156
     7157case $ac_config_headers in *"
     7158"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     7159esac
     7160
     7161
     7162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7163# Files that config.status was made for.
     7164config_files="$ac_config_files"
     7165config_headers="$ac_config_headers"
     7166
     7167_ACEOF
     7168
     7169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7170ac_cs_usage="\
     7171\`$as_me' instantiates files and other configuration actions
     7172from templates according to the current configuration.  Unless the files
     7173and actions are specified as TAGs, all are instantiated by default.
     7174
     7175Usage: $0 [OPTION]... [TAG]...
     7176
     7177  -h, --help       print this help, then exit
     7178  -V, --version    print version number and configuration settings, then exit
     7179      --config     print configuration, then exit
     7180  -q, --quiet, --silent
     7181                   do not print progress messages
     7182  -d, --debug      don't remove temporary files
     7183      --recheck    update $as_me by reconfiguring in the same conditions
     7184      --file=FILE[:TEMPLATE]
     7185                   instantiate the configuration file FILE
     7186      --header=FILE[:TEMPLATE]
     7187                   instantiate the configuration header FILE
     7188
     7189Configuration files:
     7190$config_files
     7191
     7192Configuration headers:
     7193$config_headers
     7194
     7195Report bugs to the package provider."
     7196
     7197_ACEOF
     7198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7199ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     7200ac_cs_version="\\
     7201config.status
     7202configured by $0, generated by GNU Autoconf 2.67,
     7203  with options \\"\$ac_cs_config\\"
     7204
     7205Copyright (C) 2010 Free Software Foundation, Inc.
     7206This config.status script is free software; the Free Software Foundation
     7207gives unlimited permission to copy, distribute and modify it."
     7208
     7209ac_pwd='$ac_pwd'
     7210srcdir='$srcdir'
     7211INSTALL='$INSTALL'
     7212AWK='$AWK'
     7213test -n "\$AWK" || AWK=awk
     7214_ACEOF
     7215
     7216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7217# The default lists apply if the user does not specify any file.
     7218ac_need_defaults=:
     7219while test $# != 0
     7220do
     7221  case $1 in
     7222  --*=?*)
     7223    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7224    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     7225    ac_shift=:
     7226    ;;
     7227  --*=)
     7228    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7229    ac_optarg=
     7230    ac_shift=:
     7231    ;;
     7232  *)
     7233    ac_option=$1
     7234    ac_optarg=$2
     7235    ac_shift=shift
     7236    ;;
     7237  esac
     7238
     7239  case $ac_option in
     7240  # Handling of the options.
     7241  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     7242    ac_cs_recheck=: ;;
     7243  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     7244    $as_echo "$ac_cs_version"; exit ;;
     7245  --config | --confi | --conf | --con | --co | --c )
     7246    $as_echo "$ac_cs_config"; exit ;;
     7247  --debug | --debu | --deb | --de | --d | -d )
     7248    debug=: ;;
     7249  --file | --fil | --fi | --f )
     7250    $ac_shift
     7251    case $ac_optarg in
     7252    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7253    '') as_fn_error $? "missing file argument" ;;
     7254    esac
     7255    as_fn_append CONFIG_FILES " '$ac_optarg'"
     7256    ac_need_defaults=false;;
     7257  --header | --heade | --head | --hea )
     7258    $ac_shift
     7259    case $ac_optarg in
     7260    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7261    esac
     7262    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     7263    ac_need_defaults=false;;
     7264  --he | --h)
     7265    # Conflict between --help and --header
     7266    as_fn_error $? "ambiguous option: \`$1'
     7267Try \`$0 --help' for more information.";;
     7268  --help | --hel | -h )
     7269    $as_echo "$ac_cs_usage"; exit ;;
     7270  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7271  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7272    ac_cs_silent=: ;;
     7273
     7274  # This is an error.
     7275  -*) as_fn_error $? "unrecognized option: \`$1'
     7276Try \`$0 --help' for more information." ;;
     7277
     7278  *) as_fn_append ac_config_targets " $1"
     7279     ac_need_defaults=false ;;
     7280
     7281  esac
     7282  shift
     7283done
     7284
     7285ac_configure_extra_args=
     7286
     7287if $ac_cs_silent; then
     7288  exec 6>/dev/null
     7289  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7290fi
     7291
     7292_ACEOF
     7293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7294if \$ac_cs_recheck; then
     7295  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7296  shift
     7297  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     7298  CONFIG_SHELL='$SHELL'
     7299  export CONFIG_SHELL
     7300  exec "\$@"
     7301fi
     7302
     7303_ACEOF
     7304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    77117305exec 5>>config.log
    77127306{
     
    77157309## Running $as_me. ##
    77167310_ASBOX
     7311  $as_echo "$ac_log"
    77177312} >&5
    7718 cat >&5 <<_CSEOF
    7719 
    7720 This file was extended by $as_me, which was
    7721 generated by GNU Autoconf 2.59.  Invocation command line was
    7722 
    7723   CONFIG_FILES    = $CONFIG_FILES
    7724   CONFIG_HEADERS  = $CONFIG_HEADERS
    7725   CONFIG_LINKS    = $CONFIG_LINKS
    7726   CONFIG_COMMANDS = $CONFIG_COMMANDS
    7727   $ $0 $@
    7728 
    7729 _CSEOF
    7730 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    7731 echo >&5
    7732 _ACEOF
    7733 
    7734 # Files that config.status was made for.
    7735 if test -n "$ac_config_files"; then
    7736   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    7737 fi
    7738 
    7739 if test -n "$ac_config_headers"; then
    7740   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    7741 fi
    7742 
    7743 if test -n "$ac_config_links"; then
    7744   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    7745 fi
    7746 
    7747 if test -n "$ac_config_commands"; then
    7748   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    7749 fi
    7750 
    7751 cat >>$CONFIG_STATUS <<\_ACEOF
    7752 
    7753 ac_cs_usage="\
    7754 \`$as_me' instantiates files from templates according to the
    7755 current configuration.
    7756 
    7757 Usage: $0 [OPTIONS] [FILE]...
    7758 
    7759   -h, --help       print this help, then exit
    7760   -V, --version    print version number, then exit
    7761   -q, --quiet      do not print progress messages
    7762   -d, --debug      don't remove temporary files
    7763       --recheck    update $as_me by reconfiguring in the same conditions
    7764   --file=FILE[:TEMPLATE]
    7765            instantiate the configuration file FILE
    7766   --header=FILE[:TEMPLATE]
    7767            instantiate the configuration header FILE
    7768 
    7769 Configuration files:
    7770 $config_files
    7771 
    7772 Configuration headers:
    7773 $config_headers
    7774 
    7775 Report bugs to <[email protected]>."
    7776 _ACEOF
    7777 
    7778 cat >>$CONFIG_STATUS <<_ACEOF
    7779 ac_cs_version="\\
    7780 config.status
    7781 configured by $0, generated by GNU Autoconf 2.59,
    7782   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    7783 
    7784 Copyright (C) 2003 Free Software Foundation, Inc.
    7785 This config.status script is free software; the Free Software Foundation
    7786 gives unlimited permission to copy, distribute and modify it."
    7787 srcdir=$srcdir
    7788 INSTALL="$INSTALL"
    7789 _ACEOF
    7790 
    7791 cat >>$CONFIG_STATUS <<\_ACEOF
    7792 # If no file are specified by the user, then we need to provide default
    7793 # value.  By we need to know if files were specified by the user.
    7794 ac_need_defaults=:
    7795 while test $# != 0
    7796 do
    7797   case $1 in
    7798   --*=*)
    7799     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    7800     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    7801     ac_shift=:
    7802     ;;
    7803   -*)
    7804     ac_option=$1
    7805     ac_optarg=$2
    7806     ac_shift=shift
    7807     ;;
    7808   *) # This is not an option, so the user has probably given explicit
    7809      # arguments.
    7810      ac_option=$1
    7811      ac_need_defaults=false;;
    7812   esac
    7813 
    7814   case $ac_option in
    7815   # Handling of the options.
    7816 _ACEOF
    7817 cat >>$CONFIG_STATUS <<\_ACEOF
    7818   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    7819     ac_cs_recheck=: ;;
    7820   --version | --vers* | -V )
    7821     echo "$ac_cs_version"; exit 0 ;;
    7822   --he | --h)
    7823     # Conflict between --help and --header
    7824     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    7825 Try \`$0 --help' for more information." >&5
    7826 echo "$as_me: error: ambiguous option: $1
    7827 Try \`$0 --help' for more information." >&2;}
    7828    { (exit 1); exit 1; }; };;
    7829   --help | --hel | -h )
    7830     echo "$ac_cs_usage"; exit 0 ;;
    7831   --debug | --d* | -d )
    7832     debug=: ;;
    7833   --file | --fil | --fi | --f )
    7834     $ac_shift
    7835     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    7836     ac_need_defaults=false;;
    7837   --header | --heade | --head | --hea )
    7838     $ac_shift
    7839     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    7840     ac_need_defaults=false;;
    7841   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    7842   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    7843     ac_cs_silent=: ;;
    7844 
    7845   # This is an error.
    7846   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    7847 Try \`$0 --help' for more information." >&5
    7848 echo "$as_me: error: unrecognized option: $1
    7849 Try \`$0 --help' for more information." >&2;}
    7850    { (exit 1); exit 1; }; } ;;
    7851 
    7852   *) ac_config_targets="$ac_config_targets $1" ;;
    7853 
    7854   esac
    7855   shift
    7856 done
    7857 
    7858 ac_configure_extra_args=
    7859 
    7860 if $ac_cs_silent; then
    7861   exec 6>/dev/null
    7862   ac_configure_extra_args="$ac_configure_extra_args --silent"
    7863 fi
    7864 
    7865 _ACEOF
    7866 cat >>$CONFIG_STATUS <<_ACEOF
    7867 if \$ac_cs_recheck; then
    7868   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    7869   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    7870 fi
    7871 
    7872 _ACEOF
    7873 
    7874 
    7875 
    7876 
    7877 
    7878 cat >>$CONFIG_STATUS <<\_ACEOF
     7313
     7314_ACEOF
     7315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7316_ACEOF
     7317
     7318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7319
     7320# Handling of arguments.
    78797321for ac_config_target in $ac_config_targets
    78807322do
    7881   case "$ac_config_target" in
    7882   # Handling of arguments.
    7883   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    7884   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7885   "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
    7886   "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    7887   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    7888   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    7889 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    7890    { (exit 1); exit 1; }; };;
     7323  case $ac_config_target in
     7324    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7325    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     7326    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7327    "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     7328    "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     7329
     7330  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    78917331  esac
    78927332done
     7333
    78937334
    78947335# If the user did not use the arguments to specify the items to instantiate,
     
    79027343
    79037344# Have a temporary directory for convenience.  Make it in the build tree
    7904 # simply because there is no reason to put it here, and in addition,
     7345# simply because there is no reason against having it here, and in addition,
    79057346# creating and moving files from /tmp can sometimes cause problems.
    7906 # Create a temporary directory, and hook for its removal unless debugging.
     7347# Hook for its removal unless debugging.
     7348# Note that there is a small window in which the directory will not be cleaned:
     7349# after its creation but before its name has been assigned to `$tmp'.
    79077350$debug ||
    79087351{
    7909   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    7910   trap '{ (exit 1); exit 1; }' 1 2 13 15
     7352  tmp=
     7353  trap 'exit_status=$?
     7354  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     7355' 0
     7356  trap 'as_fn_exit 1' 1 2 13 15
    79117357}
    7912 
    79137358# Create a (secure) tmp directory for tmp files.
    79147359
    79157360{
    7916   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7361  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    79177362  test -n "$tmp" && test -d "$tmp"
    79187363}  ||
    79197364{
    7920   tmp=./confstat$$-$RANDOM
    7921   (umask 077 && mkdir $tmp)
    7922 } ||
     7365  tmp=./conf$$-$RANDOM
     7366  (umask 077 && mkdir "$tmp")
     7367} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7368
     7369# Set up the scripts for CONFIG_FILES section.
     7370# No need to generate them if there are no CONFIG_FILES.
     7371# This happens for instance with `./config.status config.h'.
     7372if test -n "$CONFIG_FILES"; then
     7373
     7374
     7375ac_cr=`echo X | tr X '\015'`
     7376# On cygwin, bash can eat \r inside `` if the user requested igncr.
     7377# But we know of no other shell where ac_cr would be empty at this
     7378# point, so we can use a bashism as a fallback.
     7379if test "x$ac_cr" = x; then
     7380  eval ac_cr=\$\'\\r\'
     7381fi
     7382ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     7383if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     7384  ac_cs_awk_cr='\\r'
     7385else
     7386  ac_cs_awk_cr=$ac_cr
     7387fi
     7388
     7389echo 'BEGIN {' >"$tmp/subs1.awk" &&
     7390_ACEOF
     7391
     7392
    79237393{
    7924    echo "$me: cannot create a temporary directory in ." >&2
    7925    { (exit 1); exit 1; }
     7394  echo "cat >conf$$subs.awk <<_ACEOF" &&
     7395  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     7396  echo "_ACEOF"
     7397} >conf$$subs.sh ||
     7398  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7399ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7400ac_delim='%!_!# '
     7401for ac_last_try in false false false false false :; do
     7402  . ./conf$$subs.sh ||
     7403    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7404
     7405  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     7406  if test $ac_delim_n = $ac_delim_num; then
     7407    break
     7408  elif $ac_last_try; then
     7409    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7410  else
     7411    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7412  fi
     7413done
     7414rm -f conf$$subs.sh
     7415
     7416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7417cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     7418_ACEOF
     7419sed -n '
     7420h
     7421s/^/S["/; s/!.*/"]=/
     7422p
     7423g
     7424s/^[^!]*!//
     7425:repl
     7426t repl
     7427s/'"$ac_delim"'$//
     7428t delim
     7429:nl
     7430h
     7431s/\(.\{148\}\)..*/\1/
     7432t more1
     7433s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     7434p
     7435n
     7436b repl
     7437:more1
     7438s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7439p
     7440g
     7441s/.\{148\}//
     7442t nl
     7443:delim
     7444h
     7445s/\(.\{148\}\)..*/\1/
     7446t more2
     7447s/["\\]/\\&/g; s/^/"/; s/$/"/
     7448p
     7449b
     7450:more2
     7451s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7452p
     7453g
     7454s/.\{148\}//
     7455t delim
     7456' <conf$$subs.awk | sed '
     7457/^[^""]/{
     7458  N
     7459  s/\n//
    79267460}
    7927 
    7928 _ACEOF
    7929 
    7930 cat >>$CONFIG_STATUS <<_ACEOF
    7931 
    7932 #
    7933 # CONFIG_FILES section.
    7934 #
    7935 
    7936 # No need to generate the scripts if there are no CONFIG_FILES.
    7937 # This happens for instance when ./config.status config.h
    7938 if test -n "\$CONFIG_FILES"; then
    7939   # Protect against being on the right side of a sed subst in config.status.
    7940   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    7941    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    7942 s,@SHELL@,$SHELL,;t t
    7943 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    7944 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    7945 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    7946 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    7947 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    7948 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    7949 s,@exec_prefix@,$exec_prefix,;t t
    7950 s,@prefix@,$prefix,;t t
    7951 s,@program_transform_name@,$program_transform_name,;t t
    7952 s,@bindir@,$bindir,;t t
    7953 s,@sbindir@,$sbindir,;t t
    7954 s,@libexecdir@,$libexecdir,;t t
    7955 s,@datadir@,$datadir,;t t
    7956 s,@sysconfdir@,$sysconfdir,;t t
    7957 s,@sharedstatedir@,$sharedstatedir,;t t
    7958 s,@localstatedir@,$localstatedir,;t t
    7959 s,@libdir@,$libdir,;t t
    7960 s,@includedir@,$includedir,;t t
    7961 s,@oldincludedir@,$oldincludedir,;t t
    7962 s,@infodir@,$infodir,;t t
    7963 s,@mandir@,$mandir,;t t
    7964 s,@build_alias@,$build_alias,;t t
    7965 s,@host_alias@,$host_alias,;t t
    7966 s,@target_alias@,$target_alias,;t t
    7967 s,@DEFS@,$DEFS,;t t
    7968 s,@ECHO_C@,$ECHO_C,;t t
    7969 s,@ECHO_N@,$ECHO_N,;t t
    7970 s,@ECHO_T@,$ECHO_T,;t t
    7971 s,@LIBS@,$LIBS,;t t
    7972 s,@PACKAGE@,$PACKAGE,;t t
    7973 s,@VERSION@,$VERSION,;t t
    7974 s,@USE_FASTCGI@,$USE_FASTCGI,;t t
    7975 s,@USE_LANGACTION@,$USE_LANGACTION,;t t
    7976 s,@USE_CORBA@,$USE_CORBA,;t t
    7977 s,@MICO_DIR@,$MICO_DIR,;t t
    7978 s,@USE_Z3950@,$USE_Z3950,;t t
    7979 s,@USE_YAZ@,$USE_YAZ,;t t
    7980 s,@USE_JDBM@,$USE_JDBM,;t t
    7981 s,@USE_GDBM@,$USE_GDBM,;t t
    7982 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    7983 s,@USE_SQLITE@,$USE_SQLITE,;t t
    7984 s,@LDFLAGS@,$LDFLAGS,;t t
    7985 s,@CFLAGS@,$CFLAGS,;t t
    7986 s,@CC@,$CC,;t t
    7987 s,@CPPFLAGS@,$CPPFLAGS,;t t
    7988 s,@ac_ct_CC@,$ac_ct_CC,;t t
    7989 s,@EXEEXT@,$EXEEXT,;t t
    7990 s,@OBJEXT@,$OBJEXT,;t t
    7991 s,@CXX@,$CXX,;t t
    7992 s,@CXXFLAGS@,$CXXFLAGS,;t t
    7993 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    7994 s,@AWK@,$AWK,;t t
    7995 s,@YACC@,$YACC,;t t
    7996 s,@build@,$build,;t t
    7997 s,@build_cpu@,$build_cpu,;t t
    7998 s,@build_vendor@,$build_vendor,;t t
    7999 s,@build_os@,$build_os,;t t
    8000 s,@host@,$host,;t t
    8001 s,@host_cpu@,$host_cpu,;t t
    8002 s,@host_vendor@,$host_vendor,;t t
    8003 s,@host_os@,$host_os,;t t
    8004 s,@target@,$target,;t t
    8005 s,@target_cpu@,$target_cpu,;t t
    8006 s,@target_vendor@,$target_vendor,;t t
    8007 s,@target_os@,$target_os,;t t
    8008 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    8009 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    8010 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    8011 s,@LN_S@,$LN_S,;t t
    8012 s,@SET_MAKE@,$SET_MAKE,;t t
    8013 s,@RANLIB@,$RANLIB,;t t
    8014 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    8015 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    8016 s,@MICO_VER@,$MICO_VER,;t t
    8017 s,@CPP@,$CPP,;t t
    8018 s,@EGREP@,$EGREP,;t t
    8019 s,@U@,$U,;t t
    8020 s,@ANSI2KNR@,$ANSI2KNR,;t t
    8021 s,@ALLOCA@,$ALLOCA,;t t
    8022 s,@LIBOBJS@,$LIBOBJS,;t t
    8023 s,@STATIC@,$STATIC,;t t
    8024 s,@gsdlos@,$gsdlos,;t t
    8025 s,@MODULEDIRS@,$MODULEDIRS,;t t
    8026 s,@subdirs@,$subdirs,;t t
    8027 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    8028 CEOF
    8029 
    8030 _ACEOF
    8031 
    8032   cat >>$CONFIG_STATUS <<\_ACEOF
    8033   # Split the substitutions into bite-sized pieces for seds with
    8034   # small command number limits, like on Digital OSF/1 and HP-UX.
    8035   ac_max_sed_lines=48
    8036   ac_sed_frag=1 # Number of current file.
    8037   ac_beg=1 # First line for current file.
    8038   ac_end=$ac_max_sed_lines # Line after last line for current file.
    8039   ac_more_lines=:
    8040   ac_sed_cmds=
    8041   while $ac_more_lines; do
    8042     if test $ac_beg -gt 1; then
    8043       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    8044     else
    8045       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7461' >>$CONFIG_STATUS || ac_write_fail=1
     7462rm -f conf$$subs.awk
     7463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7464_ACAWK
     7465cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     7466  for (key in S) S_is_set[key] = 1
     7467  FS = ""
     7468
     7469}
     7470{
     7471  line = $ 0
     7472  nfields = split(line, field, "@")
     7473  substed = 0
     7474  len = length(field[1])
     7475  for (i = 2; i < nfields; i++) {
     7476    key = field[i]
     7477    keylen = length(key)
     7478    if (S_is_set[key]) {
     7479      value = S[key]
     7480      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     7481      len += length(value) + length(field[++i])
     7482      substed = 1
     7483    } else
     7484      len += 1 + keylen
     7485  }
     7486
     7487  print line
     7488}
     7489
     7490_ACAWK
     7491_ACEOF
     7492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7493if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     7494  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     7495else
     7496  cat
     7497fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     7498  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7499_ACEOF
     7500
     7501# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7502# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7503# trailing colons and then remove the whole line if VPATH becomes empty
     7504# (actually we leave an empty line to preserve line numbers).
     7505if test "x$srcdir" = x.; then
     7506  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7507h
     7508s///
     7509s/^/:/
     7510s/[  ]*$/:/
     7511s/:\$(srcdir):/:/g
     7512s/:\${srcdir}:/:/g
     7513s/:@srcdir@:/:/g
     7514s/^:*//
     7515s/:*$//
     7516x
     7517s/\(=[   ]*\).*/\1/
     7518G
     7519s/\n//
     7520s/^[^=]*=[   ]*$//
     7521}'
     7522fi
     7523
     7524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7525fi # test -n "$CONFIG_FILES"
     7526
     7527# Set up the scripts for CONFIG_HEADERS section.
     7528# No need to generate them if there are no CONFIG_HEADERS.
     7529# This happens for instance with `./config.status Makefile'.
     7530if test -n "$CONFIG_HEADERS"; then
     7531cat >"$tmp/defines.awk" <<\_ACAWK ||
     7532BEGIN {
     7533_ACEOF
     7534
     7535# Transform confdefs.h into an awk script `defines.awk', embedded as
     7536# here-document in config.status, that substitutes the proper values into
     7537# config.h.in to produce config.h.
     7538
     7539# Create a delimiter string that does not exist in confdefs.h, to ease
     7540# handling of long lines.
     7541ac_delim='%!_!# '
     7542for ac_last_try in false false :; do
     7543  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7544  if test -z "$ac_t"; then
     7545    break
     7546  elif $ac_last_try; then
     7547    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7548  else
     7549    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7550  fi
     7551done
     7552
     7553# For the awk script, D is an array of macro values keyed by name,
     7554# likewise P contains macro parameters if any.  Preserve backslash
     7555# newline sequences.
     7556
     7557ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7558sed -n '
     7559s/.\{148\}/&'"$ac_delim"'/g
     7560t rset
     7561:rset
     7562s/^[     ]*#[    ]*define[   ][  ]*/ /
     7563t def
     7564d
     7565:def
     7566s/\\$//
     7567t bsnl
     7568s/["\\]/\\&/g
     7569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7570D["\1"]=" \3"/p
     7571s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7572d
     7573:bsnl
     7574s/["\\]/\\&/g
     7575s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7576D["\1"]=" \3\\\\\\n"\\/p
     7577t cont
     7578s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7579t cont
     7580d
     7581:cont
     7582n
     7583s/.\{148\}/&'"$ac_delim"'/g
     7584t clear
     7585:clear
     7586s/\\$//
     7587t bsnlc
     7588s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7589d
     7590:bsnlc
     7591s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7592b cont
     7593' <confdefs.h | sed '
     7594s/'"$ac_delim"'/"\\\
     7595"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7596
     7597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7598  for (key in D) D_is_set[key] = 1
     7599  FS = ""
     7600}
     7601/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7602  line = \$ 0
     7603  split(line, arg, " ")
     7604  if (arg[1] == "#") {
     7605    defundef = arg[2]
     7606    mac1 = arg[3]
     7607  } else {
     7608    defundef = substr(arg[1], 2)
     7609    mac1 = arg[2]
     7610  }
     7611  split(mac1, mac2, "(") #)
     7612  macro = mac2[1]
     7613  prefix = substr(line, 1, index(line, defundef) - 1)
     7614  if (D_is_set[macro]) {
     7615    # Preserve the white space surrounding the "#".
     7616    print prefix "define", macro P[macro] D[macro]
     7617    next
     7618  } else {
     7619    # Replace #undef with comments.  This is necessary, for example,
     7620    # in the case of _POSIX_SOURCE, which is predefined and required
     7621    # on some systems where configure will not decide to define it.
     7622    if (defundef == "undef") {
     7623      print "/*", prefix defundef, macro, "*/"
     7624      next
     7625    }
     7626  }
     7627}
     7628{ print }
     7629_ACAWK
     7630_ACEOF
     7631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7632  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7633fi # test -n "$CONFIG_HEADERS"
     7634
     7635
     7636eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
     7637shift
     7638for ac_tag
     7639do
     7640  case $ac_tag in
     7641  :[FHLC]) ac_mode=$ac_tag; continue;;
     7642  esac
     7643  case $ac_mode$ac_tag in
     7644  :[FHL]*:*);;
     7645  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7646  :[FH]-) ac_tag=-:-;;
     7647  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7648  esac
     7649  ac_save_IFS=$IFS
     7650  IFS=:
     7651  set x $ac_tag
     7652  IFS=$ac_save_IFS
     7653  shift
     7654  ac_file=$1
     7655  shift
     7656
     7657  case $ac_mode in
     7658  :L) ac_source=$1;;
     7659  :[FH])
     7660    ac_file_inputs=
     7661    for ac_f
     7662    do
     7663      case $ac_f in
     7664      -) ac_f="$tmp/stdin";;
     7665      *) # Look for the file first in the build tree, then in the source tree
     7666     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7667     # because $ac_f cannot contain `:'.
     7668     test -f "$ac_f" ||
     7669       case $ac_f in
     7670       [\\/$]*) false;;
     7671       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7672       esac ||
     7673       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7674      esac
     7675      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7676      as_fn_append ac_file_inputs " '$ac_f'"
     7677    done
     7678
     7679    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7680    # use $as_me), people would be surprised to read:
     7681    #    /* config.h.  Generated by config.status.  */
     7682    configure_input='Generated from '`
     7683      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7684    `' by configure.'
     7685    if test x"$ac_file" != x-; then
     7686      configure_input="$ac_file.  $configure_input"
     7687      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7688$as_echo "$as_me: creating $ac_file" >&6;}
    80467689    fi
    8047     if test ! -s $tmp/subs.frag; then
    8048       ac_more_lines=false
    8049     else
    8050       # The purpose of the label and of the branching condition is to
    8051       # speed up the sed processing (if there are no `@' at all, there
    8052       # is no need to browse any of the substitutions).
    8053       # These are the two extra sed commands mentioned above.
    8054       (echo ':t
    8055   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    8056       if test -z "$ac_sed_cmds"; then
    8057     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    8058       else
    8059     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    8060       fi
    8061       ac_sed_frag=`expr $ac_sed_frag + 1`
    8062       ac_beg=$ac_end
    8063       ac_end=`expr $ac_end + $ac_max_sed_lines`
    8064     fi
    8065   done
    8066   if test -z "$ac_sed_cmds"; then
    8067     ac_sed_cmds=cat
    8068   fi
    8069 fi # test -n "$CONFIG_FILES"
    8070 
    8071 _ACEOF
    8072 cat >>$CONFIG_STATUS <<\_ACEOF
    8073 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    8074   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8075   case $ac_file in
    8076   - | *:- | *:-:* ) # input from stdin
    8077     cat >$tmp/stdin
    8078     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8079     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8080   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8081     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8082   * )   ac_file_in=$ac_file.in ;;
     7690    # Neutralize special characters interpreted by sed in replacement strings.
     7691    case $configure_input in #(
     7692    *\&* | *\|* | *\\* )
     7693       ac_sed_conf_input=`$as_echo "$configure_input" |
     7694       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7695    *) ac_sed_conf_input=$configure_input;;
     7696    esac
     7697
     7698    case $ac_tag in
     7699    *:-:* | *:-) cat >"$tmp/stdin" \
     7700      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7701    esac
     7702    ;;
    80837703  esac
    80847704
    8085   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    8086   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7705  ac_dir=`$as_dirname -- "$ac_file" ||
    80877706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    80887707     X"$ac_file" : 'X\(//\)[^/]' \| \
    80897708     X"$ac_file" : 'X\(//\)$' \| \
    8090      X"$ac_file" : 'X\(/\)' \| \
    8091      .     : '\(.\)' 2>/dev/null ||
    8092 echo X"$ac_file" |
    8093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8094       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8095       /^X\(\/\/\)$/{ s//\1/; q; }
    8096       /^X\(\/\).*/{ s//\1/; q; }
    8097       s/.*/./; q'`
    8098   { if $as_mkdir_p; then
    8099     mkdir -p "$ac_dir"
    8100   else
    8101     as_dir="$ac_dir"
    8102     as_dirs=
    8103     while test ! -d "$as_dir"; do
    8104       as_dirs="$as_dir $as_dirs"
    8105       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8107      X"$as_dir" : 'X\(//\)[^/]' \| \
    8108      X"$as_dir" : 'X\(//\)$' \| \
    8109      X"$as_dir" : 'X\(/\)' \| \
    8110      .     : '\(.\)' 2>/dev/null ||
    8111 echo X"$as_dir" |
    8112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8113       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8114       /^X\(\/\/\)$/{ s//\1/; q; }
    8115       /^X\(\/\).*/{ s//\1/; q; }
    8116       s/.*/./; q'`
    8117     done
    8118     test ! -n "$as_dirs" || mkdir $as_dirs
    8119   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8121    { (exit 1); exit 1; }; }; }
    8122 
     7709     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7710$as_echo X"$ac_file" |
     7711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7712        s//\1/
     7713        q
     7714      }
     7715      /^X\(\/\/\)[^/].*/{
     7716        s//\1/
     7717        q
     7718      }
     7719      /^X\(\/\/\)$/{
     7720        s//\1/
     7721        q
     7722      }
     7723      /^X\(\/\).*/{
     7724        s//\1/
     7725        q
     7726      }
     7727      s/.*/./; q'`
     7728  as_dir="$ac_dir"; as_fn_mkdir_p
    81237729  ac_builddir=.
    81247730
    8125 if test "$ac_dir" != .; then
    8126   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8127   # A "../" for each directory in $ac_dir_suffix.
    8128   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8129 else
    8130   ac_dir_suffix= ac_top_builddir=
    8131 fi
     7731case "$ac_dir" in
     7732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7733*)
     7734  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7735  # A ".." for each directory in $ac_dir_suffix.
     7736  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7737  case $ac_top_builddir_sub in
     7738  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7739  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7740  esac ;;
     7741esac
     7742ac_abs_top_builddir=$ac_pwd
     7743ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7744# for backward compatibility:
     7745ac_top_builddir=$ac_top_build_prefix
    81327746
    81337747case $srcdir in
    8134   .)  # No --srcdir option.  We are building in place.
     7748  .)  # We are building in place.
    81357749    ac_srcdir=.
    8136     if test -z "$ac_top_builddir"; then
    8137        ac_top_srcdir=.
    8138     else
    8139        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8140     fi ;;
    8141   [\\/]* | ?:[\\/]* )  # Absolute path.
     7750    ac_top_srcdir=$ac_top_builddir_sub
     7751    ac_abs_top_srcdir=$ac_pwd ;;
     7752  [\\/]* | ?:[\\/]* )  # Absolute name.
    81427753    ac_srcdir=$srcdir$ac_dir_suffix;
    8143     ac_top_srcdir=$srcdir ;;
    8144   *) # Relative path.
    8145     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8146     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7754    ac_top_srcdir=$srcdir
     7755    ac_abs_top_srcdir=$srcdir ;;
     7756  *) # Relative name.
     7757    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7758    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7759    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    81477760esac
    8148 
    8149 # Do not use `cd foo && pwd` to compute absolute paths, because
    8150 # the directories may not exist.
    8151 case `pwd` in
    8152 .) ac_abs_builddir="$ac_dir";;
    8153 *)
    8154   case "$ac_dir" in
    8155   .) ac_abs_builddir=`pwd`;;
    8156   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8157   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8158   esac;;
    8159 esac
    8160 case $ac_abs_builddir in
    8161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8162 *)
    8163   case ${ac_top_builddir}. in
    8164   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8165   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8166   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8167   esac;;
    8168 esac
    8169 case $ac_abs_builddir in
    8170 .) ac_abs_srcdir=$ac_srcdir;;
    8171 *)
    8172   case $ac_srcdir in
    8173   .) ac_abs_srcdir=$ac_abs_builddir;;
    8174   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8175   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8176   esac;;
    8177 esac
    8178 case $ac_abs_builddir in
    8179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8180 *)
    8181   case $ac_top_srcdir in
    8182   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8183   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8184   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8185   esac;;
    8186 esac
    8187 
     7761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7762
     7763
     7764  case $ac_mode in
     7765  :F)
     7766  #
     7767  # CONFIG_FILE
     7768  #
    81887769
    81897770  case $INSTALL in
    81907771  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    8191   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7772  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    81927773  esac
    8193 
    8194   if test x"$ac_file" != x-; then
    8195     { echo "$as_me:$LINENO: creating $ac_file" >&5
    8196 echo "$as_me: creating $ac_file" >&6;}
    8197     rm -f "$ac_file"
    8198   fi
    8199   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8200   # use $as_me), people would be surprised to read:
    8201   #    /* config.h.  Generated by config.status.  */
    8202   if test x"$ac_file" = x-; then
    8203     configure_input=
    8204   else
    8205     configure_input="$ac_file.  "
    8206   fi
    8207   configure_input=$configure_input"Generated from `echo $ac_file_in |
    8208                      sed 's,.*/,,'` by configure."
    8209 
    8210   # First look for the input files in the build tree, otherwise in the
    8211   # src tree.
    8212   ac_file_inputs=`IFS=:
    8213     for f in $ac_file_in; do
    8214       case $f in
    8215       -) echo $tmp/stdin ;;
    8216       [\\/$]*)
    8217      # Absolute (can't be DOS-style, as IFS=:)
    8218      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8219 echo "$as_me: error: cannot find input file: $f" >&2;}
    8220    { (exit 1); exit 1; }; }
    8221      echo "$f";;
    8222       *) # Relative
    8223      if test -f "$f"; then
    8224        # Build tree
    8225        echo "$f"
    8226      elif test -f "$srcdir/$f"; then
    8227        # Source tree
    8228        echo "$srcdir/$f"
    8229      else
    8230        # /dev/null tree
    8231        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8232 echo "$as_me: error: cannot find input file: $f" >&2;}
    8233    { (exit 1); exit 1; }; }
    8234      fi;;
    8235       esac
    8236     done` || { (exit 1); exit 1; }
    8237 _ACEOF
    8238 cat >>$CONFIG_STATUS <<_ACEOF
    8239   sed "$ac_vpsub
     7774_ACEOF
     7775
     7776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7777# If the template does not know about datarootdir, expand it.
     7778# FIXME: This hack should be removed a few years after 2.60.
     7779ac_datarootdir_hack=; ac_datarootdir_seen=
     7780ac_sed_dataroot='
     7781/datarootdir/ {
     7782  p
     7783  q
     7784}
     7785/@datadir@/p
     7786/@docdir@/p
     7787/@infodir@/p
     7788/@localedir@/p
     7789/@mandir@/p'
     7790case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7791*datarootdir*) ac_datarootdir_seen=yes;;
     7792*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7793  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7794$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7795_ACEOF
     7796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7797  ac_datarootdir_hack='
     7798  s&@datadir@&$datadir&g
     7799  s&@docdir@&$docdir&g
     7800  s&@infodir@&$infodir&g
     7801  s&@localedir@&$localedir&g
     7802  s&@mandir@&$mandir&g
     7803  s&\\\${datarootdir}&$datarootdir&g' ;;
     7804esac
     7805_ACEOF
     7806
     7807# Neutralize VPATH when `$srcdir' = `.'.
     7808# Shell code in configure.ac might set extrasub.
     7809# FIXME: do we really want to maintain this feature?
     7810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7811ac_sed_extra="$ac_vpsub
    82407812$extrasub
    82417813_ACEOF
    8242 cat >>$CONFIG_STATUS <<\_ACEOF
     7814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    82437815:t
    82447816/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    8245 s,@configure_input@,$configure_input,;t t
    8246 s,@srcdir@,$ac_srcdir,;t t
    8247 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    8248 s,@top_srcdir@,$ac_top_srcdir,;t t
    8249 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    8250 s,@builddir@,$ac_builddir,;t t
    8251 s,@abs_builddir@,$ac_abs_builddir,;t t
    8252 s,@top_builddir@,$ac_top_builddir,;t t
    8253 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    8254 s,@INSTALL@,$ac_INSTALL,;t t
    8255 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    8256   rm -f $tmp/stdin
     7817s|@configure_input@|$ac_sed_conf_input|;t t
     7818s&@top_builddir@&$ac_top_builddir_sub&;t t
     7819s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7820s&@srcdir@&$ac_srcdir&;t t
     7821s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7822s&@top_srcdir@&$ac_top_srcdir&;t t
     7823s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7824s&@builddir@&$ac_builddir&;t t
     7825s&@abs_builddir@&$ac_abs_builddir&;t t
     7826s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7827s&@INSTALL@&$ac_INSTALL&;t t
     7828$ac_datarootdir_hack
     7829"
     7830eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7831  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7832
     7833test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7834  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7835  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7836  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7837which seems to be undefined.  Please make sure it is defined" >&5
     7838$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7839which seems to be undefined.  Please make sure it is defined" >&2;}
     7840
     7841  rm -f "$tmp/stdin"
     7842  case $ac_file in
     7843  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7844  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7845  esac \
     7846  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7847 ;;
     7848  :H)
     7849  #
     7850  # CONFIG_HEADER
     7851  #
    82577852  if test x"$ac_file" != x-; then
    8258     mv $tmp/out $ac_file
    8259   else
    8260     cat $tmp/out
    8261     rm -f $tmp/out
    8262   fi
    8263 
    8264 done
    8265 _ACEOF
    8266 cat >>$CONFIG_STATUS <<\_ACEOF
    8267 
    8268 #
    8269 # CONFIG_HEADER section.
    8270 #
    8271 
    8272 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    8273 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    8274 #
    8275 # ac_d sets the value in "#define NAME VALUE" lines.
    8276 ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
    8277 ac_dB='[     ].*$,\1#\2'
    8278 ac_dC=' '
    8279 ac_dD=',;t'
    8280 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    8281 ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    8282 ac_uB='$,\1#\2define\3'
    8283 ac_uC=' '
    8284 ac_uD=',;t'
    8285 
    8286 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    8287   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8288   case $ac_file in
    8289   - | *:- | *:-:* ) # input from stdin
    8290     cat >$tmp/stdin
    8291     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8292     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8293   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8294     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8295   * )   ac_file_in=$ac_file.in ;;
    8296   esac
    8297 
    8298   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    8299 echo "$as_me: creating $ac_file" >&6;}
    8300 
    8301   # First look for the input files in the build tree, otherwise in the
    8302   # src tree.
    8303   ac_file_inputs=`IFS=:
    8304     for f in $ac_file_in; do
    8305       case $f in
    8306       -) echo $tmp/stdin ;;
    8307       [\\/$]*)
    8308      # Absolute (can't be DOS-style, as IFS=:)
    8309      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8310 echo "$as_me: error: cannot find input file: $f" >&2;}
    8311    { (exit 1); exit 1; }; }
    8312      # Do quote $f, to prevent DOS paths from being IFS'd.
    8313      echo "$f";;
    8314       *) # Relative
    8315      if test -f "$f"; then
    8316        # Build tree
    8317        echo "$f"
    8318      elif test -f "$srcdir/$f"; then
    8319        # Source tree
    8320        echo "$srcdir/$f"
    8321      else
    8322        # /dev/null tree
    8323        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8324 echo "$as_me: error: cannot find input file: $f" >&2;}
    8325    { (exit 1); exit 1; }; }
    8326      fi;;
    8327       esac
    8328     done` || { (exit 1); exit 1; }
    8329   # Remove the trailing spaces.
    8330   sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
    8331 
    8332 _ACEOF
    8333 
    8334 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    8335 # `conftest.undefs', that substitutes the proper values into
    8336 # config.h.in to produce config.h.  The first handles `#define'
    8337 # templates, and the second `#undef' templates.
    8338 # And first: Protect against being on the right side of a sed subst in
    8339 # config.status.  Protect against being in an unquoted here document
    8340 # in config.status.
    8341 rm -f conftest.defines conftest.undefs
    8342 # Using a here document instead of a string reduces the quoting nightmare.
    8343 # Putting comments in sed scripts is not portable.
    8344 #
    8345 # `end' is used to avoid that the second main sed command (meant for
    8346 # 0-ary CPP macros) applies to n-ary macro definitions.
    8347 # See the Autoconf documentation for `clear'.
    8348 cat >confdef2sed.sed <<\_ACEOF
    8349 s/[\\&,]/\\&/g
    8350 s,[\\$`],\\&,g
    8351 t clear
    8352 : clear
    8353 s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    8354 t end
    8355 s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    8356 : end
    8357 _ACEOF
    8358 # If some macros were called several times there might be several times
    8359 # the same #defines, which is useless.  Nevertheless, we may not want to
    8360 # sort them, since we want the *last* AC-DEFINE to be honored.
    8361 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    8362 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    8363 rm -f confdef2sed.sed
    8364 
    8365 # This sed command replaces #undef with comments.  This is necessary, for
    8366 # example, in the case of _POSIX_SOURCE, which is predefined and required
    8367 # on some systems where configure will not decide to define it.
    8368 cat >>conftest.undefs <<\_ACEOF
    8369 s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    8370 _ACEOF
    8371 
    8372 # Break up conftest.defines because some shells have a limit on the size
    8373 # of here documents, and old seds have small limits too (100 cmds).
    8374 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    8375 echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    8376 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    8377 echo '  :' >>$CONFIG_STATUS
    8378 rm -f conftest.tail
    8379 while grep . conftest.defines >/dev/null
    8380 do
    8381   # Write a limited-size here document to $tmp/defines.sed.
    8382   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    8383   # Speed up: don't consider the non `#define' lines.
    8384   echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    8385   # Work around the forget-to-reset-the-flag bug.
    8386   echo 't clr' >>$CONFIG_STATUS
    8387   echo ': clr' >>$CONFIG_STATUS
    8388   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    8389   echo 'CEOF
    8390   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    8391   rm -f $tmp/in
    8392   mv $tmp/out $tmp/in
    8393 ' >>$CONFIG_STATUS
    8394   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    8395   rm -f conftest.defines
    8396   mv conftest.tail conftest.defines
    8397 done
    8398 rm -f conftest.defines
    8399 echo '  fi # grep' >>$CONFIG_STATUS
    8400 echo >>$CONFIG_STATUS
    8401 
    8402 # Break up conftest.undefs because some shells have a limit on the size
    8403 # of here documents, and old seds have small limits too (100 cmds).
    8404 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    8405 rm -f conftest.tail
    8406 while grep . conftest.undefs >/dev/null
    8407 do
    8408   # Write a limited-size here document to $tmp/undefs.sed.
    8409   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    8410   # Speed up: don't consider the non `#undef'
    8411   echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    8412   # Work around the forget-to-reset-the-flag bug.
    8413   echo 't clr' >>$CONFIG_STATUS
    8414   echo ': clr' >>$CONFIG_STATUS
    8415   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    8416   echo 'CEOF
    8417   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    8418   rm -f $tmp/in
    8419   mv $tmp/out $tmp/in
    8420 ' >>$CONFIG_STATUS
    8421   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    8422   rm -f conftest.undefs
    8423   mv conftest.tail conftest.undefs
    8424 done
    8425 rm -f conftest.undefs
    8426 
    8427 cat >>$CONFIG_STATUS <<\_ACEOF
    8428   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8429   # use $as_me), people would be surprised to read:
    8430   #    /* config.h.  Generated by config.status.  */
    8431   if test x"$ac_file" = x-; then
    8432     echo "/* Generated by configure.  */" >$tmp/config.h
    8433   else
    8434     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    8435   fi
    8436   cat $tmp/in >>$tmp/config.h
    8437   rm -f $tmp/in
    8438   if test x"$ac_file" != x-; then
    8439     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    8440       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    8441 echo "$as_me: $ac_file is unchanged" >&6;}
     7853    {
     7854      $as_echo "/* $configure_input  */" \
     7855      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7856    } >"$tmp/config.h" \
     7857      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7858    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7859      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7860$as_echo "$as_me: $ac_file is unchanged" >&6;}
    84427861    else
    8443       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    8444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8445      X"$ac_file" : 'X\(//\)[^/]' \| \
    8446      X"$ac_file" : 'X\(//\)$' \| \
    8447      X"$ac_file" : 'X\(/\)' \| \
    8448      .     : '\(.\)' 2>/dev/null ||
    8449 echo X"$ac_file" |
    8450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8451       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8452       /^X\(\/\/\)$/{ s//\1/; q; }
    8453       /^X\(\/\).*/{ s//\1/; q; }
    8454       s/.*/./; q'`
    8455       { if $as_mkdir_p; then
    8456     mkdir -p "$ac_dir"
    8457   else
    8458     as_dir="$ac_dir"
    8459     as_dirs=
    8460     while test ! -d "$as_dir"; do
    8461       as_dirs="$as_dir $as_dirs"
    8462       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8464      X"$as_dir" : 'X\(//\)[^/]' \| \
    8465      X"$as_dir" : 'X\(//\)$' \| \
    8466      X"$as_dir" : 'X\(/\)' \| \
    8467      .     : '\(.\)' 2>/dev/null ||
    8468 echo X"$as_dir" |
    8469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8470       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8471       /^X\(\/\/\)$/{ s//\1/; q; }
    8472       /^X\(\/\).*/{ s//\1/; q; }
    8473       s/.*/./; q'`
    8474     done
    8475     test ! -n "$as_dirs" || mkdir $as_dirs
    8476   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8477 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8478    { (exit 1); exit 1; }; }; }
    8479 
    8480       rm -f $ac_file
    8481       mv $tmp/config.h $ac_file
     7862      rm -f "$ac_file"
     7863      mv "$tmp/config.h" "$ac_file" \
     7864    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    84827865    fi
    84837866  else
    8484     cat $tmp/config.h
    8485     rm -f $tmp/config.h
     7867    $as_echo "/* $configure_input  */" \
     7868      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7869      || as_fn_error $? "could not create -" "$LINENO" 5
    84867870  fi
    8487 done
    8488 _ACEOF
    8489 
    8490 cat >>$CONFIG_STATUS <<\_ACEOF
    8491 
    8492 { (exit 0); exit 0; }
    8493 _ACEOF
    8494 chmod +x $CONFIG_STATUS
     7871 ;;
     7872
     7873
     7874  esac
     7875
     7876done # for ac_tag
     7877
     7878
     7879as_fn_exit 0
     7880_ACEOF
    84957881ac_clean_files=$ac_clean_files_save
     7882
     7883test $ac_write_fail = 0 ||
     7884  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    84967885
    84977886
     
    85147903  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    85157904  # would make configure fail if this is the last instruction.
    8516   $ac_cs_success || { (exit 1); exit 1; }
     7905  $ac_cs_success || as_fn_exit 1
    85177906fi
    85187907
     
    85227911if test "$no_recursion" != yes; then
    85237912
    8524   # Remove --cache-file and --srcdir arguments so they do not pile up.
     7913  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
     7914  # so they do not pile up.
    85257915  ac_sub_configure_args=
    85267916  ac_prev=
    8527   for ac_arg in $ac_configure_args; do
     7917  eval "set x $ac_configure_args"
     7918  shift
     7919  for ac_arg
     7920  do
    85287921    if test -n "$ac_prev"; then
    85297922      ac_prev=
     
    85487941    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    85497942      ;;
    8550     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     7943    --disable-option-checking)
     7944      ;;
     7945    *)
     7946      case $ac_arg in
     7947      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7948      esac
     7949      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    85517950    esac
    85527951  done
     
    85547953  # Always prepend --prefix to ensure using the same prefix
    85557954  # in subdir configurations.
    8556   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     7955  ac_arg="--prefix=$prefix"
     7956  case $ac_arg in
     7957  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7958  esac
     7959  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
     7960
     7961  # Pass --silent
     7962  if test "$silent" = yes; then
     7963    ac_sub_configure_args="--silent $ac_sub_configure_args"
     7964  fi
     7965
     7966  # Always prepend --disable-option-checking to silence warnings, since
     7967  # different subdirs can have different --enable and --with options.
     7968  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
    85577969
    85587970  ac_popdir=`pwd`
     
    85617973    # Do not complain, so a configure script can configure whichever
    85627974    # parts of a large source tree are present.
    8563     test -d $srcdir/$ac_dir || continue
    8564 
    8565     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
    8566 echo "$as_me: configuring in $ac_dir" >&6;}
    8567     { if $as_mkdir_p; then
    8568     mkdir -p "$ac_dir"
    8569   else
    8570     as_dir="$ac_dir"
    8571     as_dirs=
    8572     while test ! -d "$as_dir"; do
    8573       as_dirs="$as_dir $as_dirs"
    8574       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8576      X"$as_dir" : 'X\(//\)[^/]' \| \
    8577      X"$as_dir" : 'X\(//\)$' \| \
    8578      X"$as_dir" : 'X\(/\)' \| \
    8579      .     : '\(.\)' 2>/dev/null ||
    8580 echo X"$as_dir" |
    8581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8582       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8583       /^X\(\/\/\)$/{ s//\1/; q; }
    8584       /^X\(\/\).*/{ s//\1/; q; }
    8585       s/.*/./; q'`
    8586     done
    8587     test ! -n "$as_dirs" || mkdir $as_dirs
    8588   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8590    { (exit 1); exit 1; }; }; }
    8591 
     7975    test -d "$srcdir/$ac_dir" || continue
     7976
     7977    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
     7978    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
     7979    $as_echo "$ac_msg" >&6
     7980    as_dir="$ac_dir"; as_fn_mkdir_p
    85927981    ac_builddir=.
    85937982
    8594 if test "$ac_dir" != .; then
    8595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8596   # A "../" for each directory in $ac_dir_suffix.
    8597   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8598 else
    8599   ac_dir_suffix= ac_top_builddir=
    8600 fi
     7983case "$ac_dir" in
     7984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7985*)
     7986  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7987  # A ".." for each directory in $ac_dir_suffix.
     7988  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7989  case $ac_top_builddir_sub in
     7990  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7991  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7992  esac ;;
     7993esac
     7994ac_abs_top_builddir=$ac_pwd
     7995ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7996# for backward compatibility:
     7997ac_top_builddir=$ac_top_build_prefix
    86017998
    86027999case $srcdir in
    8603   .)  # No --srcdir option.  We are building in place.
     8000  .)  # We are building in place.
    86048001    ac_srcdir=.
    8605     if test -z "$ac_top_builddir"; then
    8606        ac_top_srcdir=.
     8002    ac_top_srcdir=$ac_top_builddir_sub
     8003    ac_abs_top_srcdir=$ac_pwd ;;
     8004  [\\/]* | ?:[\\/]* )  # Absolute name.
     8005    ac_srcdir=$srcdir$ac_dir_suffix;
     8006    ac_top_srcdir=$srcdir
     8007    ac_abs_top_srcdir=$srcdir ;;
     8008  *) # Relative name.
     8009    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     8010    ac_top_srcdir=$ac_top_build_prefix$srcdir
     8011    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     8012esac
     8013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     8014
     8015
     8016    cd "$ac_dir"
     8017
     8018    # Check for guested configure; otherwise get Cygnus style configure.
     8019    if test -f "$ac_srcdir/configure.gnu"; then
     8020      ac_sub_configure=$ac_srcdir/configure.gnu
     8021    elif test -f "$ac_srcdir/configure"; then
     8022      ac_sub_configure=$ac_srcdir/configure
     8023    elif test -f "$ac_srcdir/configure.in"; then
     8024      # This should be Cygnus configure.
     8025      ac_sub_configure=$ac_aux_dir/configure
    86078026    else
    8608        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8609     fi ;;
    8610   [\\/]* | ?:[\\/]* )  # Absolute path.
    8611     ac_srcdir=$srcdir$ac_dir_suffix;
    8612     ac_top_srcdir=$srcdir ;;
    8613   *) # Relative path.
    8614     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8615     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    8616 esac
    8617 
    8618 # Do not use `cd foo && pwd` to compute absolute paths, because
    8619 # the directories may not exist.
    8620 case `pwd` in
    8621 .) ac_abs_builddir="$ac_dir";;
    8622 *)
    8623   case "$ac_dir" in
    8624   .) ac_abs_builddir=`pwd`;;
    8625   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8626   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8627   esac;;
    8628 esac
    8629 case $ac_abs_builddir in
    8630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8631 *)
    8632   case ${ac_top_builddir}. in
    8633   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8634   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8635   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8636   esac;;
    8637 esac
    8638 case $ac_abs_builddir in
    8639 .) ac_abs_srcdir=$ac_srcdir;;
    8640 *)
    8641   case $ac_srcdir in
    8642   .) ac_abs_srcdir=$ac_abs_builddir;;
    8643   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8644   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8645   esac;;
    8646 esac
    8647 case $ac_abs_builddir in
    8648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8649 *)
    8650   case $ac_top_srcdir in
    8651   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8652   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8653   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8654   esac;;
    8655 esac
    8656 
    8657 
    8658     cd $ac_dir
    8659 
    8660     # Check for guested configure; otherwise get Cygnus style configure.
    8661     if test -f $ac_srcdir/configure.gnu; then
    8662       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
    8663     elif test -f $ac_srcdir/configure; then
    8664       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
    8665     elif test -f $ac_srcdir/configure.in; then
    8666       ac_sub_configure=$ac_configure
    8667     else
    8668       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
    8669 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
     8027      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
     8028$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    86708029      ac_sub_configure=
    86718030    fi
     
    86768035      case $cache_file in
    86778036      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    8678       *) # Relative path.
    8679     ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     8037      *) # Relative name.
     8038    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    86808039      esac
    86818040
    8682       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
    8683 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
     8041      { $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
     8042$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    86848043      # The eval makes quoting arguments work.
    8685       eval $ac_sub_configure $ac_sub_configure_args \
    8686        --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
    8687     { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
    8688 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
    8689    { (exit 1); exit 1; }; }
     8044      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
     8045       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
     8046    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    86908047    fi
    86918048
    8692     cd $ac_popdir
     8049    cd "$ac_popdir"
    86938050  done
    86948051fi
    8695 
    8696 
    8697 
     8052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     8053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     8054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     8055fi
     8056
     8057
     8058
  • main/trunk/greenstone2/build-src/configure.in

    r22058 r23356  
    77
    88PACKAGE=gsdl
    9 VERSION=2.82-svn
     9VERSION=2.x-svn
    1010AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    1111AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
     
    7272
    7373dnl
     74dnl Disable all Java compilation
     75dnl
     76AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     77if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     78  ENABLE_JAVA=1
     79  if test "x$JAVA_HOME" != "x" ; then
     80    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     81    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     82    echo "and JAVA respectively"
     83    export JAVA_HOME=
     84  fi
     85else
     86  ENABLE_JAVA=0
     87fi
     88AC_SUBST(ENABLE_JAVA)
     89
     90dnl
    7491dnl Set use of JDBM (enabled by default)
    7592dnl
    76 AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
    77 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     93AC_ARG_ENABLE(jdbm, [  --disable-jdbm          Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
     94if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    7895  USE_JDBM=1
    7996  AC_DEFINE(USE_JDBM,[])
     
    86103dnl Set use of GDBM (enabled by default)
    87104dnl
    88 AC_ARG_ENABLE(gdbm, [  --disable-gdbm        Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)
     105AC_ARG_ENABLE(gdbm, [  --disable-gdbm          Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)
    89106if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
    90107  USE_GDBM=1
     
    131148AC_PROG_CC
    132149AC_PROG_CXX
     150if test $ENABLE_JAVA = "1" ; then
     151  AC_PROG_JAVAC
     152  AC_PROG_JAVA
     153fi
    133154AC_PROG_AWK
    134155AC_PROG_YACC
     
    162183
    163184# Only need compat32bitflag if using MG or MGPP
    164 if test "$ENABLE_MG" = "0" ; then
     185if test "$ENABLE_MG" = "0" -a "$ENABLE_MGPP" = "0" ; then
    165186  COMPAT32BITFLAGS=
    166 else
    167   if test "$ENABLE_MGPP" = "0" ; then
    168     COMPAT32BITFLAGS=
    169   fi
    170187fi
    171188
     
    429446# the list of folders in the src folder
    430447srclist="src/hashfile/Makefile \
    431          src/phind/generate/Makefile"
     448         src/phind/generate/Makefile \
     449         src/java/org/nzdl/gsdl/Makefile"
    432450
    433451AC_OUTPUT(packages/Makefile Makefile $srclist $moduleDirs)
  • main/trunk/greenstone2/build-src/src/java/org/nzdl/gsdl/Makefile.in

    r23354 r23356  
    1 JAVAC = javac
     1JAVAC = @JAVAC@
     2JAVACFLAGS = @JAVACFLAGS@
    23JAR = jar
    34
     
    1819
    1920%.class : %.java
    20     $(JAVAC) -d ../../.. -classpath ../../.. $<
     21    $(JAVAC) $(JAVACFLAGS) -d ../../.. -classpath ../../.. $<
    2122
    2223
Note: See TracChangeset for help on using the changeset viewer.