Changeset 23356 for main/trunk


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
Files:
25 edited
5 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
  • main/trunk/greenstone2/common-src/aclocal.m4

    r16566 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
     187AC_SUBST(JAVAC)
     188AC_PROG_JAVAC_WORKS
     189AC_PROVIDE([$0])dnl
     190])
     191
     192dnl @synopsis AC_PROG_JAVAC_WORKS
     193dnl
     194dnl Internal use ONLY.
     195dnl
     196dnl Note: This is part of the set of autoconf M4 macros for Java
     197dnl programs. It is VERY IMPORTANT that you download the whole set,
     198dnl some macros depend on other. Unfortunately, the autoconf archive
     199dnl does not support the concept of set of macros, so I had to break it
     200dnl for submission. The general documentation, as well as the sample
     201dnl configure.in, is included in the AC_PROG_JAVA macro.
     202dnl
     203dnl @category Java
     204dnl @author Stephane Bortzmeyer <[email protected]>
     205dnl @version 2000-07-19
     206dnl @license GPLWithACException
     207
     208AC_DEFUN([AC_PROG_JAVAC_WORKS],[
     209AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
     210JAVA_TEST=Test.java
     211CLASS_TEST=Test.class
     212cat << \EOF > $JAVA_TEST
     213/* [#]line __oline__ "configure" */
     214public class Test {
     215}
     216EOF
     217if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
     218  ac_cv_prog_javac_works=yes
     219else
     220  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
     221  echo "configure: failed program was:" >&AC_FD_CC
     222  cat $JAVA_TEST >&AC_FD_CC
     223fi
     224rm -f $JAVA_TEST $CLASS_TEST
     225])
     226AC_PROVIDE([$0])dnl
     227if test "x$JAVACFLAGS" = x ; then
     228  JAVACFLAGS="-source 1.4 -target 1.4"
     229fi
     230AC_SUBST(JAVACFLAGS)
     231])
     232
     233dnl @synopsis AC_PROG_JAVA
     234dnl
     235dnl Here is a summary of the main macros:
     236dnl
     237dnl AC_PROG_JAVAC: finds a Java compiler.
     238dnl
     239dnl AC_PROG_JAVA: finds a Java virtual machine.
     240dnl
     241dnl AC_CHECK_CLASS: finds if we have the given class (beware of
     242dnl CLASSPATH!).
     243dnl
     244dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops
     245dnl otherwise.
     246dnl
     247dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
     248dnl
     249dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
     250dnl
     251dnl AC_JAVA_OPTIONS: adds Java configure options.
     252dnl
     253dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the
     254dnl environment variable JAVA then tests in sequence various common
     255dnl Java virtual machines. For political reasons, it starts with the
     256dnl free ones. You *must* call [AC_PROG_JAVAC] before.
     257dnl
     258dnl If you want to force a specific VM:
     259dnl
     260dnl - at the configure.in level, set JAVA=yourvm before calling
     261dnl AC_PROG_JAVA
     262dnl
     263dnl   (but after AC_INIT)
     264dnl
     265dnl - at the configure level, setenv JAVA
     266dnl
     267dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.
     268dnl
     269dnl *Warning*: its success or failure can depend on a proper setting of
     270dnl the CLASSPATH env. variable.
     271dnl
     272dnl TODO: allow to exclude virtual machines (rationale: most Java
     273dnl programs cannot run with some VM like kaffe).
     274dnl
     275dnl Note: This is part of the set of autoconf M4 macros for Java
     276dnl programs. It is VERY IMPORTANT that you download the whole set,
     277dnl some macros depend on other. Unfortunately, the autoconf archive
     278dnl does not support the concept of set of macros, so I had to break it
     279dnl for submission.
     280dnl
     281dnl A Web page, with a link to the latest CVS snapshot is at
     282dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
     283dnl
     284dnl This is a sample configure.in Process this file with autoconf to
     285dnl produce a configure script.
     286dnl
     287dnl    AC_INIT(UnTag.java)
     288dnl
     289dnl    dnl Checks for programs.
     290dnl    AC_CHECK_CLASSPATH
     291dnl    AC_PROG_JAVAC
     292dnl    AC_PROG_JAVA
     293dnl
     294dnl    dnl Checks for classes
     295dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
     296dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
     297dnl
     298dnl    AC_OUTPUT(Makefile)
     299dnl
     300dnl @category Java
     301dnl @author Stephane Bortzmeyer <[email protected]>
     302dnl @version 2000-07-19
     303dnl @license GPLWithACException
     304
     305AC_DEFUN([AC_PROG_JAVA],[
     306if test "x$JAVA" = x ; then
     307    AC_REQUIRE([AC_EXEEXT])dnl
     308    if test x$JAVAPREFIX = x; then
     309        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT)
     310    else
     311        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT, $JAVAPREFIX)
     312    fi
     313    test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
     314fi
     315AC_SUBST(JAVA)
     316AC_PROG_JAVA_WORKS
     317AC_PROVIDE([$0])dnl
     318])
     319
     320dnl @synopsis AC_PROG_JAVA_WORKS
     321dnl
     322dnl Internal use ONLY.
     323dnl
     324dnl Note: This is part of the set of autoconf M4 macros for Java
     325dnl programs. It is VERY IMPORTANT that you download the whole set,
     326dnl some macros depend on other. Unfortunately, the autoconf archive
     327dnl does not support the concept of set of macros, so I had to break it
     328dnl for submission. The general documentation, as well as the sample
     329dnl configure.in, is included in the AC_PROG_JAVA macro.
     330dnl
     331dnl @category Java
     332dnl @author Stephane Bortzmeyer <[email protected]>
     333dnl @version 2000-07-19
     334dnl @license GPLWithACException
     335
     336AC_DEFUN([AC_PROG_JAVA_WORKS], [
     337AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)
     338if test x$uudecode = xyes; then
     339AC_CACHE_CHECK([if uudecode can decode base 64 file], ac_cv_prog_uudecode_base64, [
     340dnl /**
     341dnl  * Test.java: used to test if java compiler works.
     342dnl  */
     343dnl public class Test
     344dnl {
     345dnl
     346dnl public static void
     347dnl main( String[] argv )
     348dnl {
     349dnl     System.exit (0);
     350dnl }
     351dnl
     352dnl }
     353cat << \EOF > Test.uue
     354begin-base64 644 Test.class
     355yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     356bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     357bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     358YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     359aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     360AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     361AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     362====
     363EOF
     364if uudecode$EXEEXT Test.uue; then
     365        ac_cv_prog_uudecode_base64=yes
     366else
     367        echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC
     368        echo "configure: failed file was:" >&AC_FD_CC
     369        cat Test.uue >&AC_FD_CC
     370        ac_cv_prog_uudecode_base64=no
     371fi
     372rm -f Test.uue])
     373fi
     374if test x$ac_cv_prog_uudecode_base64 != xyes; then
     375        rm -f Test.class
     376        AC_MSG_WARN([I have to compile Test.class from scratch])
     377        if test x$ac_cv_prog_javac_works = xno; then
     378                AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly])
     379        fi
     380        if test x$ac_cv_prog_javac_works = x; then
     381                AC_PROG_JAVAC
     382        fi
     383fi
     384AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [
     385JAVA_TEST=Test.java
     386CLASS_TEST=Test.class
     387TEST=Test
     388changequote(, )dnl
     389cat << \EOF > $JAVA_TEST
     390/* [#]line __oline__ "configure" */
     391public class Test {
     392public static void main (String args[]) {
     393        System.exit (0);
     394} }
     395EOF
     396changequote([, ])dnl
     397if test x$ac_cv_prog_uudecode_base64 != xyes; then
     398        if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then
     399                :
     400        else
     401          echo "configure: failed program was:" >&AC_FD_CC
     402          cat $JAVA_TEST >&AC_FD_CC
     403          AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))
     404        fi
     405fi
     406if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
     407  ac_cv_prog_java_works=yes
     408else
     409  echo "configure: failed program was:" >&AC_FD_CC
     410  cat $JAVA_TEST >&AC_FD_CC
     411  AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
     412fi
     413rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     414])
     415AC_PROVIDE([$0])dnl
     416]
     417)
  • main/trunk/greenstone2/common-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
    274557ac_unique_file="src/lib/text_t.h"
     
    276559ac_includes_default="\
    277560#include <stdio.h>
    278 #if HAVE_SYS_TYPES_H
     561#ifdef HAVE_SYS_TYPES_H
    279562# include <sys/types.h>
    280563#endif
    281 #if HAVE_SYS_STAT_H
     564#ifdef HAVE_SYS_STAT_H
    282565# include <sys/stat.h>
    283566#endif
    284 #if STDC_HEADERS
     567#ifdef STDC_HEADERS
    285568# include <stdlib.h>
    286569# include <stddef.h>
    287570#else
    288 # if HAVE_STDLIB_H
     571# ifdef HAVE_STDLIB_H
    289572#  include <stdlib.h>
    290573# endif
    291574#endif
    292 #if HAVE_STRING_H
    293 # if !STDC_HEADERS && HAVE_MEMORY_H
     575#ifdef HAVE_STRING_H
     576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    294577#  include <memory.h>
    295578# endif
    296579# include <string.h>
    297580#endif
    298 #if HAVE_STRINGS_H
     581#ifdef HAVE_STRINGS_H
    299582# include <strings.h>
    300583#endif
    301 #if HAVE_INTTYPES_H
     584#ifdef HAVE_INTTYPES_H
    302585# include <inttypes.h>
    303 #else
    304 # if HAVE_STDINT_H
    305 #  include <stdint.h>
    306 # endif
    307586#endif
    308 #if HAVE_UNISTD_H
     587#ifdef HAVE_STDINT_H
     588# include <stdint.h>
     589#endif
     590#ifdef HAVE_UNISTD_H
    309591# include <unistd.h>
    310592#endif"
    311593
    312 ac_subdirs_all="$ac_subdirs_all packages"
    313 ac_subdirs_all="$ac_subdirs_all indexers"
    314 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 ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
     594enable_option_checking=no
     595ac_subst_vars='LTLIBOBJS
     596subdirs
     597MODULEDIRS
     598gsdlos
     599STATIC
     600LIBOBJS
     601ALLOCA
     602ANSI2KNR
     603U
     604EGREP
     605GREP
     606CPP
     607MICO_VER
     608COMPAT32BITFLAGS
     609RANLIB
     610SET_MAKE
     611LN_S
     612INSTALL_DATA
     613INSTALL_SCRIPT
     614INSTALL_PROGRAM
     615target_os
     616target_vendor
     617target_cpu
     618target
     619host_os
     620host_vendor
     621host_cpu
     622host
     623build_os
     624build_vendor
     625build_cpu
     626build
     627YFLAGS
     628YACC
     629AWK
     630JAVACFLAGS
     631JAVAC
     632uudecode
     633JAVA
     634ac_ct_CXX
     635CXXFLAGS
     636CXX
     637OBJEXT
     638EXEEXT
     639ac_ct_CC
     640CPPFLAGS
     641CC
     642CFLAGS
     643LDFLAGS
     644ENABLE_LUCENE
     645ENABLE_MGPP
     646ENABLE_MG
     647ENABLE_JNI
     648USE_SQLITE
     649ENABLE_ACCENTFOLD
     650USE_GDBM
     651USE_JDBM
     652ENABLE_JAVA
     653USE_YAZ
     654USE_Z3950
     655MICO_DIR
     656USE_CORBA
     657USE_LANGACTION
     658USE_FASTCGI
     659VERSION
     660PACKAGE
     661target_alias
     662host_alias
     663build_alias
     664LIBS
     665ECHO_T
     666ECHO_N
     667ECHO_C
     668DEFS
     669mandir
     670localedir
     671libdir
     672psdir
     673pdfdir
     674dvidir
     675htmldir
     676infodir
     677docdir
     678oldincludedir
     679includedir
     680localstatedir
     681sharedstatedir
     682sysconfdir
     683datadir
     684datarootdir
     685libexecdir
     686sbindir
     687bindir
     688program_transform_name
     689prefix
     690exec_prefix
     691PACKAGE_URL
     692PACKAGE_BUGREPORT
     693PACKAGE_STRING
     694PACKAGE_VERSION
     695PACKAGE_TARNAME
     696PACKAGE_NAME
     697PATH_SEPARATOR
     698SHELL'
    315699ac_subst_files=''
     700ac_user_opts='
     701enable_option_checking
     702enable_corba
     703with_micodir
     704enable_z3950
     705enable_yaz
     706enable_java
     707enable_jdbm
     708enable_gdbm
     709enable_accentfold
     710enable_sqlite
     711enable_jni
     712enable_mg
     713enable_mgpp
     714enable_lucene
     715with_dmalloc
     716with_regex
     717'
     718      ac_precious_vars='build_alias
     719host_alias
     720target_alias
     721CC
     722CFLAGS
     723LDFLAGS
     724LIBS
     725CPPFLAGS
     726CXX
     727CXXFLAGS
     728CCC
     729YACC
     730YFLAGS
     731CPP'
     732ac_subdirs_all='packages
     733indexers'
    316734
    317735# Initialize some variables set by options.
    318736ac_init_help=
    319737ac_init_version=false
     738ac_unrecognized_opts=
     739ac_unrecognized_sep=
    320740# The variables have the same names as the options, with
    321741# dashes changed to underlines.
     
    340760# by default will actually change.
    341761# Use braces instead of parens because sh, perl, etc. also accept them.
     762# (The list follows the same order as the GNU Coding Standards.)
    342763bindir='${exec_prefix}/bin'
    343764sbindir='${exec_prefix}/sbin'
    344765libexecdir='${exec_prefix}/libexec'
    345 datadir='${prefix}/share'
     766datarootdir='${prefix}/share'
     767datadir='${datarootdir}'
    346768sysconfdir='${prefix}/etc'
    347769sharedstatedir='${prefix}/com'
    348770localstatedir='${prefix}/var'
    349 libdir='${exec_prefix}/lib'
    350771includedir='${prefix}/include'
    351772oldincludedir='/usr/include'
    352 infodir='${prefix}/info'
    353 mandir='${prefix}/man'
     773docdir='${datarootdir}/doc/${PACKAGE}'
     774infodir='${datarootdir}/info'
     775htmldir='${docdir}'
     776dvidir='${docdir}'
     777pdfdir='${docdir}'
     778psdir='${docdir}'
     779libdir='${exec_prefix}/lib'
     780localedir='${datarootdir}/locale'
     781mandir='${datarootdir}/man'
    354782
    355783ac_prev=
     784ac_dashdash=
    356785for ac_option
    357786do
    358787  # If the previous option needs an argument, assign it.
    359788  if test -n "$ac_prev"; then
    360     eval "$ac_prev=\$ac_option"
     789    eval $ac_prev=\$ac_option
    361790    ac_prev=
    362791    continue
    363792  fi
    364793
    365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     794  case $ac_option in
     795  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     796  *=)   ac_optarg= ;;
     797  *)    ac_optarg=yes ;;
     798  esac
    366799
    367800  # Accept the important Cygnus configure options, so we can diagnose typos.
    368801
    369   case $ac_option in
     802  case $ac_dashdash$ac_option in
     803  --)
     804    ac_dashdash=yes ;;
    370805
    371806  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    389824    cache_file=config.cache ;;
    390825
    391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     826  -datadir | --datadir | --datadi | --datad)
    392827    ac_prev=datadir ;;
    393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    394   | --da=*)
     828  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    395829    datadir=$ac_optarg ;;
    396830
     831  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     832  | --dataroo | --dataro | --datar)
     833    ac_prev=datarootdir ;;
     834  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     835  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     836    datarootdir=$ac_optarg ;;
     837
    397838  -disable-* | --disable-*)
    398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     839    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    399840    # Reject names that are not valid shell variable names.
    400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    402    { (exit 1); exit 1; }; }
    403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    404     eval "enable_$ac_feature=no" ;;
     841    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     842      as_fn_error $? "invalid feature name: $ac_useropt"
     843    ac_useropt_orig=$ac_useropt
     844    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     845    case $ac_user_opts in
     846      *"
     847"enable_$ac_useropt"
     848"*) ;;
     849      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     850     ac_unrecognized_sep=', ';;
     851    esac
     852    eval enable_$ac_useropt=no ;;
     853
     854  -docdir | --docdir | --docdi | --doc | --do)
     855    ac_prev=docdir ;;
     856  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     857    docdir=$ac_optarg ;;
     858
     859  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     860    ac_prev=dvidir ;;
     861  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     862    dvidir=$ac_optarg ;;
    405863
    406864  -enable-* | --enable-*)
    407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     865    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    408866    # Reject names that are not valid shell variable names.
    409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    411    { (exit 1); exit 1; }; }
    412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    413     case $ac_option in
    414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    415       *) ac_optarg=yes ;;
     867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     868      as_fn_error $? "invalid feature name: $ac_useropt"
     869    ac_useropt_orig=$ac_useropt
     870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     871    case $ac_user_opts in
     872      *"
     873"enable_$ac_useropt"
     874"*) ;;
     875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     876     ac_unrecognized_sep=', ';;
    416877    esac
    417     eval "enable_$ac_feature='$ac_optarg'" ;;
     878    eval enable_$ac_useropt=\$ac_optarg ;;
    418879
    419880  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    442903    host_alias=$ac_optarg ;;
    443904
     905  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     906    ac_prev=htmldir ;;
     907  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     908  | --ht=*)
     909    htmldir=$ac_optarg ;;
     910
    444911  -includedir | --includedir | --includedi | --included | --include \
    445912  | --includ | --inclu | --incl | --inc)
     
    466933    libexecdir=$ac_optarg ;;
    467934
     935  -localedir | --localedir | --localedi | --localed | --locale)
     936    ac_prev=localedir ;;
     937  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     938    localedir=$ac_optarg ;;
     939
    468940  -localstatedir | --localstatedir | --localstatedi | --localstated \
    469   | --localstate | --localstat | --localsta | --localst \
    470   | --locals | --local | --loca | --loc | --lo)
     941  | --localstate | --localstat | --localsta | --localst | --locals)
    471942    ac_prev=localstatedir ;;
    472943  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     944  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    475945    localstatedir=$ac_optarg ;;
    476946
     
    5371007    program_transform_name=$ac_optarg ;;
    5381008
     1009  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     1010    ac_prev=pdfdir ;;
     1011  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     1012    pdfdir=$ac_optarg ;;
     1013
     1014  -psdir | --psdir | --psdi | --psd | --ps)
     1015    ac_prev=psdir ;;
     1016  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     1017    psdir=$ac_optarg ;;
     1018
    5391019  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    5401020  | -silent | --silent | --silen | --sile | --sil)
     
    5871067
    5881068  -with-* | --with-*)
    589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1069    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5901070    # Reject names that are not valid shell variable names.
    591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    592       { echo "$as_me: error: invalid package name: $ac_package" >&2
    593    { (exit 1); exit 1; }; }
    594     ac_package=`echo $ac_package| sed 's/-/_/g'`
    595     case $ac_option in
    596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    597       *) ac_optarg=yes ;;
     1071    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1072      as_fn_error $? "invalid package name: $ac_useropt"
     1073    ac_useropt_orig=$ac_useropt
     1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1075    case $ac_user_opts in
     1076      *"
     1077"with_$ac_useropt"
     1078"*) ;;
     1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1080     ac_unrecognized_sep=', ';;
    5981081    esac
    599     eval "with_$ac_package='$ac_optarg'" ;;
     1082    eval with_$ac_useropt=\$ac_optarg ;;
    6001083
    6011084  -without-* | --without-*)
    602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1085    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6031086    # Reject names that are not valid shell variable names.
    604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    605       { echo "$as_me: error: invalid package name: $ac_package" >&2
    606    { (exit 1); exit 1; }; }
    607     ac_package=`echo $ac_package | sed 's/-/_/g'`
    608     eval "with_$ac_package=no" ;;
     1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1088      as_fn_error $? "invalid package name: $ac_useropt"
     1089    ac_useropt_orig=$ac_useropt
     1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1091    case $ac_user_opts in
     1092      *"
     1093"with_$ac_useropt"
     1094"*) ;;
     1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1096     ac_unrecognized_sep=', ';;
     1097    esac
     1098    eval with_$ac_useropt=no ;;
    6091099
    6101100  --x)
     
    6261116    x_libraries=$ac_optarg ;;
    6271117
    628   -*) { echo "$as_me: error: unrecognized option: $ac_option
    629 Try \`$0 --help' for more information." >&2
    630    { (exit 1); exit 1; }; }
     1118  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1119Try \`$0 --help' for more information"
    6311120    ;;
    6321121
     
    6341123    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6351124    # Reject names that are not valid shell variable names.
    636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    638    { (exit 1); exit 1; }; }
    639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    640     eval "$ac_envvar='$ac_optarg'"
     1125    case $ac_envvar in #(
     1126      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1127      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1128    esac
     1129    eval $ac_envvar=\$ac_optarg
    6411130    export $ac_envvar ;;
    6421131
    6431132  *)
    6441133    # FIXME: should be removed in autoconf 3.0.
    645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1134    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6461135    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1136      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6481137    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6491138    ;;
     
    6541143if test -n "$ac_prev"; then
    6551144  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    656   { echo "$as_me: error: missing argument to $ac_option" >&2
    657    { (exit 1); exit 1; }; }
    658 fi
    659 
    660 # Be sure to have absolute paths.
    661 for ac_var in exec_prefix prefix
     1145  as_fn_error $? "missing argument to $ac_option"
     1146fi
     1147
     1148if test -n "$ac_unrecognized_opts"; then
     1149  case $enable_option_checking in
     1150    no) ;;
     1151    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1152    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1153  esac
     1154fi
     1155
     1156# Check all directory arguments for consistency.
     1157for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1158        datadir sysconfdir sharedstatedir localstatedir includedir \
     1159        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1160        libdir localedir mandir
    6621161do
    663   eval ac_val=$`echo $ac_var`
     1162  eval ac_val=\$$ac_var
     1163  # Remove trailing slashes.
    6641164  case $ac_val in
    665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    667    { (exit 1); exit 1; }; };;
     1165    */ )
     1166      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1167      eval $ac_var=\$ac_val;;
    6681168  esac
    669 done
    670 
    671 # Be sure to have absolute paths.
    672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    673           localstatedir libdir includedir oldincludedir infodir mandir
    674 do
    675   eval ac_val=$`echo $ac_var`
     1169  # Be sure to have absolute directory names.
    6761170  case $ac_val in
    677     [\\/$]* | ?:[\\/]* ) ;;
    678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    679    { (exit 1); exit 1; }; };;
     1171    [\\/$]* | ?:[\\/]* )  continue;;
     1172    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6801173  esac
     1174  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6811175done
    6821176
     
    6921186  if test "x$build_alias" = x; then
    6931187    cross_compiling=maybe
    694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    695     If a cross compiler is detected then cross compile mode will be used." >&2
     1188    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1189    If a cross compiler is detected then cross compile mode will be used" >&2
    6961190  elif test "x$build_alias" != "x$host_alias"; then
    6971191    cross_compiling=yes
     
    7051199
    7061200
     1201ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1202ac_ls_di=`ls -di .` &&
     1203ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1204  as_fn_error $? "working directory cannot be determined"
     1205test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1206  as_fn_error $? "pwd does not report name of working directory"
     1207
     1208
    7071209# Find the source files, if location was not specified.
    7081210if test -z "$srcdir"; then
    7091211  ac_srcdir_defaulted=yes
    710   # Try the directory containing this script, then its parent.
    711   ac_confdir=`(dirname "$0") 2>/dev/null ||
    712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    713      X"$0" : 'X\(//\)[^/]' \| \
    714      X"$0" : 'X\(//\)$' \| \
    715      X"$0" : 'X\(/\)' \| \
    716      .     : '\(.\)' 2>/dev/null ||
    717 echo X"$0" |
    718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    719       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    720       /^X\(\/\/\)$/{ s//\1/; q; }
    721       /^X\(\/\).*/{ s//\1/; q; }
    722       s/.*/./; q'`
     1212  # Try the directory containing this script, then the parent directory.
     1213  ac_confdir=`$as_dirname -- "$as_myself" ||
     1214$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1215     X"$as_myself" : 'X\(//\)[^/]' \| \
     1216     X"$as_myself" : 'X\(//\)$' \| \
     1217     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1218$as_echo X"$as_myself" |
     1219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1220        s//\1/
     1221        q
     1222      }
     1223      /^X\(\/\/\)[^/].*/{
     1224        s//\1/
     1225        q
     1226      }
     1227      /^X\(\/\/\)$/{
     1228        s//\1/
     1229        q
     1230      }
     1231      /^X\(\/\).*/{
     1232        s//\1/
     1233        q
     1234      }
     1235      s/.*/./; q'`
    7231236  srcdir=$ac_confdir
    724   if test ! -r $srcdir/$ac_unique_file; then
     1237  if test ! -r "$srcdir/$ac_unique_file"; then
    7251238    srcdir=..
    7261239  fi
     
    7281241  ac_srcdir_defaulted=no
    7291242fi
    730 if test ! -r $srcdir/$ac_unique_file; then
    731   if test "$ac_srcdir_defaulted" = yes; then
    732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    733    { (exit 1); exit 1; }; }
    734   else
    735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    736    { (exit 1); exit 1; }; }
    737   fi
    738 fi
    739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    741    { (exit 1); exit 1; }; }
    742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    743 ac_env_build_alias_set=${build_alias+set}
    744 ac_env_build_alias_value=$build_alias
    745 ac_cv_env_build_alias_set=${build_alias+set}
    746 ac_cv_env_build_alias_value=$build_alias
    747 ac_env_host_alias_set=${host_alias+set}
    748 ac_env_host_alias_value=$host_alias
    749 ac_cv_env_host_alias_set=${host_alias+set}
    750 ac_cv_env_host_alias_value=$host_alias
    751 ac_env_target_alias_set=${target_alias+set}
    752 ac_env_target_alias_value=$target_alias
    753 ac_cv_env_target_alias_set=${target_alias+set}
    754 ac_cv_env_target_alias_value=$target_alias
    755 ac_env_CC_set=${CC+set}
    756 ac_env_CC_value=$CC
    757 ac_cv_env_CC_set=${CC+set}
    758 ac_cv_env_CC_value=$CC
    759 ac_env_CFLAGS_set=${CFLAGS+set}
    760 ac_env_CFLAGS_value=$CFLAGS
    761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    762 ac_cv_env_CFLAGS_value=$CFLAGS
    763 ac_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_env_LDFLAGS_value=$LDFLAGS
    765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    766 ac_cv_env_LDFLAGS_value=$LDFLAGS
    767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    771 ac_env_CXX_set=${CXX+set}
    772 ac_env_CXX_value=$CXX
    773 ac_cv_env_CXX_set=${CXX+set}
    774 ac_cv_env_CXX_value=$CXX
    775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    776 ac_env_CXXFLAGS_value=$CXXFLAGS
    777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    779 ac_env_CPP_set=${CPP+set}
    780 ac_env_CPP_value=$CPP
    781 ac_cv_env_CPP_set=${CPP+set}
    782 ac_cv_env_CPP_value=$CPP
     1243if test ! -r "$srcdir/$ac_unique_file"; then
     1244  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1245  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1246fi
     1247ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1248ac_abs_confdir=`(
     1249    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1250    pwd)`
     1251# When building in place, set srcdir=.
     1252if test "$ac_abs_confdir" = "$ac_pwd"; then
     1253  srcdir=.
     1254fi
     1255# Remove unnecessary trailing slashes from srcdir.
     1256# Double slashes in file names in object file debugging info
     1257# mess up M-x gdb in Emacs.
     1258case $srcdir in
     1259*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1260esac
     1261for ac_var in $ac_precious_vars; do
     1262  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1263  eval ac_env_${ac_var}_value=\$${ac_var}
     1264  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1265  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1266done
    7831267
    7841268#
     
    8031287      --help=recursive    display the short help of all the included packages
    8041288  -V, --version           display version information and exit
    805   -q, --quiet, --silent   do not print \`checking...' messages
     1289  -q, --quiet, --silent   do not print \`checking ...' messages
    8061290      --cache-file=FILE   cache test results in FILE [disabled]
    8071291  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8091293      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8101294
    811 _ACEOF
    812 
    813   cat <<_ACEOF
    8141295Installation directories:
    8151296  --prefix=PREFIX         install architecture-independent files in PREFIX
    816               [$ac_default_prefix]
     1297                          [$ac_default_prefix]
    8171298  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    818               [PREFIX]
     1299                          [PREFIX]
    8191300
    8201301By default, \`make install' will install all the files in
     
    8261307
    8271308Fine tuning of the installation directories:
    828   --bindir=DIR           user executables [EPREFIX/bin]
    829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    830   --libexecdir=DIR       program executables [EPREFIX/libexec]
    831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    835   --libdir=DIR           object code libraries [EPREFIX/lib]
    836   --includedir=DIR       C header files [PREFIX/include]
    837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    838   --infodir=DIR          info documentation [PREFIX/info]
    839   --mandir=DIR           man documentation [PREFIX/man]
     1309  --bindir=DIR            user executables [EPREFIX/bin]
     1310  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1311  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1312  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1313  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1314  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1315  --libdir=DIR            object code libraries [EPREFIX/lib]
     1316  --includedir=DIR        C header files [PREFIX/include]
     1317  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1318  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1319  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1320  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1321  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1322  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1323  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1324  --htmldir=DIR           html documentation [DOCDIR]
     1325  --dvidir=DIR            dvi documentation [DOCDIR]
     1326  --pdfdir=DIR            pdf documentation [DOCDIR]
     1327  --psdir=DIR             ps documentation [DOCDIR]
    8401328_ACEOF
    8411329
     
    8541342
    8551343Optional Features:
     1344  --disable-option-checking  ignore unrecognized --enable/--with options
    8561345  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8571346  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     
    8591348  --enable-z3950          Enable Z39.50 client support
    8601349  --disable-yaz           Disable YAZ compilation
     1350  --disable-java          Disable Java compilation
    8611351  --disable-jdbm        Disable JDBM compilation
    8621352  --disable-gdbm        Disable GDBM compilation
     
    8811371  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8821372              nonstandard directory <lib dir>
    883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    884               headers in a nonstandard directory <include dir>
     1373  LIBS        libraries to pass to the linker, e.g. -l<library>
     1374  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1375              you have headers in a nonstandard directory <include dir>
    8851376  CXX         C++ compiler command
    8861377  CXXFLAGS    C++ compiler flags
     1378  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1379              the first program found out of: `bison -y', `byacc', `yacc'.
     1380  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1381              This script will default YFLAGS to the empty string to avoid a
     1382              default value of `-d' given by some make applications.
    8871383  CPP         C preprocessor
    8881384
     
    8901386it to find libraries and programs with nonstandard names/locations.
    8911387
    892 _ACEOF
     1388Report bugs to the package provider.
     1389_ACEOF
     1390ac_status=$?
    8931391fi
    8941392
    8951393if test "$ac_init_help" = "recursive"; then
    8961394  # If there are subdirs, report their specific --help.
    897   ac_popdir=`pwd`
    8981395  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    899     test -d $ac_dir || continue
     1396    test -d "$ac_dir" ||
     1397      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1398      continue
    9001399    ac_builddir=.
    9011400
    902 if test "$ac_dir" != .; then
    903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    904   # A "../" for each directory in $ac_dir_suffix.
    905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    906 else
    907   ac_dir_suffix= ac_top_builddir=
    908 fi
     1401case "$ac_dir" in
     1402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1403*)
     1404  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1405  # A ".." for each directory in $ac_dir_suffix.
     1406  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1407  case $ac_top_builddir_sub in
     1408  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1409  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1410  esac ;;
     1411esac
     1412ac_abs_top_builddir=$ac_pwd
     1413ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1414# for backward compatibility:
     1415ac_top_builddir=$ac_top_build_prefix
    9091416
    9101417case $srcdir in
    911   .)  # No --srcdir option.  We are building in place.
     1418  .)  # We are building in place.
    9121419    ac_srcdir=.
    913     if test -z "$ac_top_builddir"; then
    914        ac_top_srcdir=.
     1420    ac_top_srcdir=$ac_top_builddir_sub
     1421    ac_abs_top_srcdir=$ac_pwd ;;
     1422  [\\/]* | ?:[\\/]* )  # Absolute name.
     1423    ac_srcdir=$srcdir$ac_dir_suffix;
     1424    ac_top_srcdir=$srcdir
     1425    ac_abs_top_srcdir=$srcdir ;;
     1426  *) # Relative name.
     1427    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1428    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1429    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1430esac
     1431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1432
     1433    cd "$ac_dir" || { ac_status=$?; continue; }
     1434    # Check for guested configure.
     1435    if test -f "$ac_srcdir/configure.gnu"; then
     1436      echo &&
     1437      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1438    elif test -f "$ac_srcdir/configure"; then
     1439      echo &&
     1440      $SHELL "$ac_srcdir/configure" --help=recursive
    9151441    else
    916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    917     fi ;;
    918   [\\/]* | ?:[\\/]* )  # Absolute path.
    919     ac_srcdir=$srcdir$ac_dir_suffix;
    920     ac_top_srcdir=$srcdir ;;
    921   *) # Relative path.
    922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    924 esac
    925 
    926 # Do not use `cd foo && pwd` to compute absolute paths, because
    927 # the directories may not exist.
    928 case `pwd` in
    929 .) ac_abs_builddir="$ac_dir";;
    930 *)
    931   case "$ac_dir" in
    932   .) ac_abs_builddir=`pwd`;;
    933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    935   esac;;
    936 esac
    937 case $ac_abs_builddir in
    938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    939 *)
    940   case ${ac_top_builddir}. in
    941   .) ac_abs_top_builddir=$ac_abs_builddir;;
    942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    944   esac;;
    945 esac
    946 case $ac_abs_builddir in
    947 .) ac_abs_srcdir=$ac_srcdir;;
    948 *)
    949   case $ac_srcdir in
    950   .) ac_abs_srcdir=$ac_abs_builddir;;
    951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    953   esac;;
    954 esac
    955 case $ac_abs_builddir in
    956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    957 *)
    958   case $ac_top_srcdir in
    959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    962   esac;;
    963 esac
    964 
    965     cd $ac_dir
    966     # Check for guested configure; otherwise get Cygnus style configure.
    967     if test -f $ac_srcdir/configure.gnu; then
    968       echo
    969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    970     elif test -f $ac_srcdir/configure; then
    971       echo
    972       $SHELL $ac_srcdir/configure  --help=recursive
    973     elif test -f $ac_srcdir/configure.ac ||
    974        test -f $ac_srcdir/configure.in; then
    975       echo
    976       $ac_configure --help
    977     else
    978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    979     fi
    980     cd $ac_popdir
     1442      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1443    fi || ac_status=$?
     1444    cd "$ac_pwd" || { ac_status=$?; break; }
    9811445  done
    9821446fi
    9831447
    984 test -n "$ac_init_help" && exit 0
     1448test -n "$ac_init_help" && exit $ac_status
    9851449if $ac_init_version; then
    9861450  cat <<\_ACEOF
    987 
    988 Copyright (C) 2003 Free Software Foundation, Inc.
     1451configure
     1452generated by GNU Autoconf 2.67
     1453
     1454Copyright (C) 2010 Free Software Foundation, Inc.
    9891455This configure script is free software; the Free Software Foundation
    9901456gives unlimited permission to copy, distribute and modify it.
    9911457_ACEOF
    992   exit 0
    993 fi
    994 exec 5>config.log
    995 cat >&5 <<_ACEOF
     1458  exit
     1459fi
     1460
     1461## ------------------------ ##
     1462## Autoconf initialization. ##
     1463## ------------------------ ##
     1464
     1465# ac_fn_c_try_compile LINENO
     1466# --------------------------
     1467# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1468ac_fn_c_try_compile ()
     1469{
     1470  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1471  rm -f conftest.$ac_objext
     1472  if { { ac_try="$ac_compile"
     1473case "(($ac_try" in
     1474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1475  *) ac_try_echo=$ac_try;;
     1476esac
     1477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1478$as_echo "$ac_try_echo"; } >&5
     1479  (eval "$ac_compile") 2>conftest.err
     1480  ac_status=$?
     1481  if test -s conftest.err; then
     1482    grep -v '^ *+' conftest.err >conftest.er1
     1483    cat conftest.er1 >&5
     1484    mv -f conftest.er1 conftest.err
     1485  fi
     1486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1487  test $ac_status = 0; } && {
     1488     test -z "$ac_c_werror_flag" ||
     1489     test ! -s conftest.err
     1490       } && test -s conftest.$ac_objext; then :
     1491  ac_retval=0
     1492else
     1493  $as_echo "$as_me: failed program was:" >&5
     1494sed 's/^/| /' conftest.$ac_ext >&5
     1495
     1496    ac_retval=1
     1497fi
     1498  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1499  as_fn_set_status $ac_retval
     1500
     1501} # ac_fn_c_try_compile
     1502
     1503# ac_fn_cxx_try_compile LINENO
     1504# ----------------------------
     1505# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1506ac_fn_cxx_try_compile ()
     1507{
     1508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1509  rm -f conftest.$ac_objext
     1510  if { { ac_try="$ac_compile"
     1511case "(($ac_try" in
     1512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1513  *) ac_try_echo=$ac_try;;
     1514esac
     1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1516$as_echo "$ac_try_echo"; } >&5
     1517  (eval "$ac_compile") 2>conftest.err
     1518  ac_status=$?
     1519  if test -s conftest.err; then
     1520    grep -v '^ *+' conftest.err >conftest.er1
     1521    cat conftest.er1 >&5
     1522    mv -f conftest.er1 conftest.err
     1523  fi
     1524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1525  test $ac_status = 0; } && {
     1526     test -z "$ac_cxx_werror_flag" ||
     1527     test ! -s conftest.err
     1528       } && test -s conftest.$ac_objext; then :
     1529  ac_retval=0
     1530else
     1531  $as_echo "$as_me: failed program was:" >&5
     1532sed 's/^/| /' conftest.$ac_ext >&5
     1533
     1534    ac_retval=1
     1535fi
     1536  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1537  as_fn_set_status $ac_retval
     1538
     1539} # ac_fn_cxx_try_compile
     1540
     1541# ac_fn_c_try_cpp LINENO
     1542# ----------------------
     1543# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1544ac_fn_c_try_cpp ()
     1545{
     1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1547  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1548case "(($ac_try" in
     1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1550  *) ac_try_echo=$ac_try;;
     1551esac
     1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1553$as_echo "$ac_try_echo"; } >&5
     1554  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1555  ac_status=$?
     1556  if test -s conftest.err; then
     1557    grep -v '^ *+' conftest.err >conftest.er1
     1558    cat conftest.er1 >&5
     1559    mv -f conftest.er1 conftest.err
     1560  fi
     1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1562  test $ac_status = 0; } > conftest.i && {
     1563     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1564     test ! -s conftest.err
     1565       }; then :
     1566  ac_retval=0
     1567else
     1568  $as_echo "$as_me: failed program was:" >&5
     1569sed 's/^/| /' conftest.$ac_ext >&5
     1570
     1571    ac_retval=1
     1572fi
     1573  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1574  as_fn_set_status $ac_retval
     1575
     1576} # ac_fn_c_try_cpp
     1577
     1578# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1579# -------------------------------------------------------
     1580# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1581# the include files in INCLUDES and setting the cache variable VAR
     1582# accordingly.
     1583ac_fn_c_check_header_mongrel ()
     1584{
     1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1586  if eval "test \"\${$3+set}\"" = set; then :
     1587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1588$as_echo_n "checking for $2... " >&6; }
     1589if eval "test \"\${$3+set}\"" = set; then :
     1590  $as_echo_n "(cached) " >&6
     1591fi
     1592eval ac_res=\$$3
     1593           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1594$as_echo "$ac_res" >&6; }
     1595else
     1596  # Is the header compilable?
     1597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1598$as_echo_n "checking $2 usability... " >&6; }
     1599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1600/* end confdefs.h.  */
     1601$4
     1602#include <$2>
     1603_ACEOF
     1604if ac_fn_c_try_compile "$LINENO"; then :
     1605  ac_header_compiler=yes
     1606else
     1607  ac_header_compiler=no
     1608fi
     1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1611$as_echo "$ac_header_compiler" >&6; }
     1612
     1613# Is the header present?
     1614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1615$as_echo_n "checking $2 presence... " >&6; }
     1616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1617/* end confdefs.h.  */
     1618#include <$2>
     1619_ACEOF
     1620if ac_fn_c_try_cpp "$LINENO"; then :
     1621  ac_header_preproc=yes
     1622else
     1623  ac_header_preproc=no
     1624fi
     1625rm -f conftest.err conftest.i conftest.$ac_ext
     1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1627$as_echo "$ac_header_preproc" >&6; }
     1628
     1629# So?  What about this header?
     1630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1631  yes:no: )
     1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1633$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1635$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1636    ;;
     1637  no:yes:* )
     1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1639$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1641$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1643$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1645$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1648    ;;
     1649esac
     1650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1651$as_echo_n "checking for $2... " >&6; }
     1652if eval "test \"\${$3+set}\"" = set; then :
     1653  $as_echo_n "(cached) " >&6
     1654else
     1655  eval "$3=\$ac_header_compiler"
     1656fi
     1657eval ac_res=\$$3
     1658           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1659$as_echo "$ac_res" >&6; }
     1660fi
     1661  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1662
     1663} # ac_fn_c_check_header_mongrel
     1664
     1665# ac_fn_c_try_run LINENO
     1666# ----------------------
     1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1668# that executables *can* be run.
     1669ac_fn_c_try_run ()
     1670{
     1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1672  if { { ac_try="$ac_link"
     1673case "(($ac_try" in
     1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1675  *) ac_try_echo=$ac_try;;
     1676esac
     1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1678$as_echo "$ac_try_echo"; } >&5
     1679  (eval "$ac_link") 2>&5
     1680  ac_status=$?
     1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1682  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1683  { { case "(($ac_try" in
     1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1685  *) ac_try_echo=$ac_try;;
     1686esac
     1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1688$as_echo "$ac_try_echo"; } >&5
     1689  (eval "$ac_try") 2>&5
     1690  ac_status=$?
     1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1692  test $ac_status = 0; }; }; then :
     1693  ac_retval=0
     1694else
     1695  $as_echo "$as_me: program exited with status $ac_status" >&5
     1696       $as_echo "$as_me: failed program was:" >&5
     1697sed 's/^/| /' conftest.$ac_ext >&5
     1698
     1699       ac_retval=$ac_status
     1700fi
     1701  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1702  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1703  as_fn_set_status $ac_retval
     1704
     1705} # ac_fn_c_try_run
     1706
     1707# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1708# -------------------------------------------------------
     1709# Tests whether HEADER exists and can be compiled using the include files in
     1710# INCLUDES, setting the cache variable VAR accordingly.
     1711ac_fn_c_check_header_compile ()
     1712{
     1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1715$as_echo_n "checking for $2... " >&6; }
     1716if eval "test \"\${$3+set}\"" = set; then :
     1717  $as_echo_n "(cached) " >&6
     1718else
     1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1720/* end confdefs.h.  */
     1721$4
     1722#include <$2>
     1723_ACEOF
     1724if ac_fn_c_try_compile "$LINENO"; then :
     1725  eval "$3=yes"
     1726else
     1727  eval "$3=no"
     1728fi
     1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1730fi
     1731eval ac_res=\$$3
     1732           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1733$as_echo "$ac_res" >&6; }
     1734  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1735
     1736} # ac_fn_c_check_header_compile
     1737
     1738# ac_fn_c_try_link LINENO
     1739# -----------------------
     1740# Try to link conftest.$ac_ext, and return whether this succeeded.
     1741ac_fn_c_try_link ()
     1742{
     1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1744  rm -f conftest.$ac_objext conftest$ac_exeext
     1745  if { { ac_try="$ac_link"
     1746case "(($ac_try" in
     1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1748  *) ac_try_echo=$ac_try;;
     1749esac
     1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1751$as_echo "$ac_try_echo"; } >&5
     1752  (eval "$ac_link") 2>conftest.err
     1753  ac_status=$?
     1754  if test -s conftest.err; then
     1755    grep -v '^ *+' conftest.err >conftest.er1
     1756    cat conftest.er1 >&5
     1757    mv -f conftest.er1 conftest.err
     1758  fi
     1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1760  test $ac_status = 0; } && {
     1761     test -z "$ac_c_werror_flag" ||
     1762     test ! -s conftest.err
     1763       } && test -s conftest$ac_exeext && {
     1764     test "$cross_compiling" = yes ||
     1765     $as_test_x conftest$ac_exeext
     1766       }; then :
     1767  ac_retval=0
     1768else
     1769  $as_echo "$as_me: failed program was:" >&5
     1770sed 's/^/| /' conftest.$ac_ext >&5
     1771
     1772    ac_retval=1
     1773fi
     1774  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1775  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1776  # interfere with the next link command; also delete a directory that is
     1777  # left behind by Apple's compiler.  We do this before executing the actions.
     1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1779  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1780  as_fn_set_status $ac_retval
     1781
     1782} # ac_fn_c_try_link
     1783
     1784# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1785# -------------------------------------------
     1786# Tests whether TYPE exists after having included INCLUDES, setting cache
     1787# variable VAR accordingly.
     1788ac_fn_c_check_type ()
     1789{
     1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1792$as_echo_n "checking for $2... " >&6; }
     1793if eval "test \"\${$3+set}\"" = set; then :
     1794  $as_echo_n "(cached) " >&6
     1795else
     1796  eval "$3=no"
     1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1798/* end confdefs.h.  */
     1799$4
     1800int
     1801main ()
     1802{
     1803if (sizeof ($2))
     1804     return 0;
     1805  ;
     1806  return 0;
     1807}
     1808_ACEOF
     1809if ac_fn_c_try_compile "$LINENO"; then :
     1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1811/* end confdefs.h.  */
     1812$4
     1813int
     1814main ()
     1815{
     1816if (sizeof (($2)))
     1817        return 0;
     1818  ;
     1819  return 0;
     1820}
     1821_ACEOF
     1822if ac_fn_c_try_compile "$LINENO"; then :
     1823
     1824else
     1825  eval "$3=yes"
     1826fi
     1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1828fi
     1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1830fi
     1831eval ac_res=\$$3
     1832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1833$as_echo "$ac_res" >&6; }
     1834  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1835
     1836} # ac_fn_c_check_type
     1837
     1838# ac_fn_c_check_func LINENO FUNC VAR
     1839# ----------------------------------
     1840# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1841ac_fn_c_check_func ()
     1842{
     1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1845$as_echo_n "checking for $2... " >&6; }
     1846if eval "test \"\${$3+set}\"" = set; then :
     1847  $as_echo_n "(cached) " >&6
     1848else
     1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1850/* end confdefs.h.  */
     1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1853#define $2 innocuous_$2
     1854
     1855/* System header to define __stub macros and hopefully few prototypes,
     1856    which can conflict with char $2 (); below.
     1857    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1858    <limits.h> exists even on freestanding compilers.  */
     1859
     1860#ifdef __STDC__
     1861# include <limits.h>
     1862#else
     1863# include <assert.h>
     1864#endif
     1865
     1866#undef $2
     1867
     1868/* Override any GCC internal prototype to avoid an error.
     1869   Use char because int might match the return type of a GCC
     1870   builtin and then its argument prototype would still apply.  */
     1871#ifdef __cplusplus
     1872extern "C"
     1873#endif
     1874char $2 ();
     1875/* The GNU C library defines this for functions which it implements
     1876    to always fail with ENOSYS.  Some functions are actually named
     1877    something starting with __ and the normal name is an alias.  */
     1878#if defined __stub_$2 || defined __stub___$2
     1879choke me
     1880#endif
     1881
     1882int
     1883main ()
     1884{
     1885return $2 ();
     1886  ;
     1887  return 0;
     1888}
     1889_ACEOF
     1890if ac_fn_c_try_link "$LINENO"; then :
     1891  eval "$3=yes"
     1892else
     1893  eval "$3=no"
     1894fi
     1895rm -f core conftest.err conftest.$ac_objext \
     1896    conftest$ac_exeext conftest.$ac_ext
     1897fi
     1898eval ac_res=\$$3
     1899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1900$as_echo "$ac_res" >&6; }
     1901  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1902
     1903} # ac_fn_c_check_func
     1904
     1905# ac_fn_cxx_try_run LINENO
     1906# ------------------------
     1907# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1908# that executables *can* be run.
     1909ac_fn_cxx_try_run ()
     1910{
     1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1912  if { { ac_try="$ac_link"
     1913case "(($ac_try" in
     1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1915  *) ac_try_echo=$ac_try;;
     1916esac
     1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1918$as_echo "$ac_try_echo"; } >&5
     1919  (eval "$ac_link") 2>&5
     1920  ac_status=$?
     1921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1922  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1923  { { case "(($ac_try" in
     1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1925  *) ac_try_echo=$ac_try;;
     1926esac
     1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1928$as_echo "$ac_try_echo"; } >&5
     1929  (eval "$ac_try") 2>&5
     1930  ac_status=$?
     1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1932  test $ac_status = 0; }; }; then :
     1933  ac_retval=0
     1934else
     1935  $as_echo "$as_me: program exited with status $ac_status" >&5
     1936       $as_echo "$as_me: failed program was:" >&5
     1937sed 's/^/| /' conftest.$ac_ext >&5
     1938
     1939       ac_retval=$ac_status
     1940fi
     1941  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1942  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1943  as_fn_set_status $ac_retval
     1944
     1945} # ac_fn_cxx_try_run
     1946cat >config.log <<_ACEOF
    9961947This file contains any messages produced by compilers while
    9971948running configure, to aid debugging if configure makes a mistake.
    9981949
    9991950It was created by $as_me, which was
    1000 generated by GNU Autoconf 2.59.  Invocation command line was
     1951generated by GNU Autoconf 2.67.  Invocation command line was
    10011952
    10021953  $ $0 $@
    10031954
    10041955_ACEOF
     1956exec 5>>config.log
    10051957{
    10061958cat <<_ASUNAME
     
    10211973/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10221974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1975/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10241976/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10251977/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10331985  IFS=$as_save_IFS
    10341986  test -z "$as_dir" && as_dir=.
    1035   echo "PATH: $as_dir"
    1036 done
     1987    $as_echo "PATH: $as_dir"
     1988  done
     1989IFS=$as_save_IFS
    10371990
    10381991} >&5
     
    10562009ac_configure_args0=
    10572010ac_configure_args1=
    1058 ac_sep=
    10592011ac_must_keep_next=false
    10602012for ac_pass in 1 2
     
    10672019    | -silent | --silent | --silen | --sile | --sil)
    10682020      continue ;;
    1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2021    *\'*)
     2022      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10712023    esac
    10722024    case $ac_pass in
    1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2025    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10742026    2)
    1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2027      as_fn_append ac_configure_args1 " '$ac_arg'"
    10762028      if test $ac_must_keep_next = true; then
    10772029    ac_must_keep_next=false # Got value, back to normal.
     
    10892041    esac
    10902042      fi
    1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1092       # Get rid of the leading space.
    1093       ac_sep=" "
     2043      as_fn_append ac_configure_args " '$ac_arg'"
    10942044      ;;
    10952045    esac
    10962046  done
    10972047done
    1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2048{ ac_configure_args0=; unset ac_configure_args0;}
     2049{ ac_configure_args1=; unset ac_configure_args1;}
    11002050
    11012051# When interrupted or exit'd, cleanup temporary files, and complete
    11022052# config.log.  We remove comments because anyway the quotes in there
    11032053# would cause problems or look ugly.
    1104 # WARNING: Be sure not to use single quotes in there, as some shells,
    1105 # such as our DU 5.0 friend, will then `close' the trap.
     2054# WARNING: Use '\'' to represent an apostrophe within the trap.
     2055# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11062056trap 'exit_status=$?
    11072057  # Save into config.log some information that might help in debugging.
     
    11092059    echo
    11102060
    1111     cat <<\_ASBOX
    1112 ## ---------------- ##
     2061    $as_echo "## ---------------- ##
    11132062## Cache variables. ##
    1114 ## ---------------- ##
    1115 _ASBOX
     2063## ---------------- ##"
    11162064    echo
    11172065    # The following way of writing the cache mishandles newlines in values,
    1118 {
     2066(
     2067  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2068    eval ac_val=\$$ac_var
     2069    case $ac_val in #(
     2070    *${as_nl}*)
     2071      case $ac_var in #(
     2072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2074      esac
     2075      case $ac_var in #(
     2076      _ | IFS | as_nl) ;; #(
     2077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2078      *) { eval $ac_var=; unset $ac_var;} ;;
     2079      esac ;;
     2080    esac
     2081  done
    11192082  (set) 2>&1 |
    1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1121     *ac_space=\ *)
     2083    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2084    *${as_nl}ac_space=\ *)
    11222085      sed -n \
    1123     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1124       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2086    "s/'\''/'\''\\\\'\'''\''/g;
     2087      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2088      ;; #(
     2089    *)
     2090      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11252091      ;;
    1126     *)
    1127       sed -n \
    1128     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1129       ;;
    1130     esac;
    1131 }
     2092    esac |
     2093    sort
     2094)
    11322095    echo
    11332096
    1134     cat <<\_ASBOX
    1135 ## ----------------- ##
     2097    $as_echo "## ----------------- ##
    11362098## Output variables. ##
    1137 ## ----------------- ##
    1138 _ASBOX
     2099## ----------------- ##"
    11392100    echo
    11402101    for ac_var in $ac_subst_vars
    11412102    do
    1142       eval ac_val=$`echo $ac_var`
    1143       echo "$ac_var='"'"'$ac_val'"'"'"
     2103      eval ac_val=\$$ac_var
     2104      case $ac_val in
     2105      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2106      esac
     2107      $as_echo "$ac_var='\''$ac_val'\''"
    11442108    done | sort
    11452109    echo
    11462110
    11472111    if test -n "$ac_subst_files"; then
    1148       cat <<\_ASBOX
    1149 ## ------------- ##
    1150 ## Output files. ##
    1151 ## ------------- ##
    1152 _ASBOX
     2112      $as_echo "## ------------------- ##
     2113## File substitutions. ##
     2114## ------------------- ##"
    11532115      echo
    11542116      for ac_var in $ac_subst_files
    11552117      do
    1156     eval ac_val=$`echo $ac_var`
    1157     echo "$ac_var='"'"'$ac_val'"'"'"
     2118    eval ac_val=\$$ac_var
     2119    case $ac_val in
     2120    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2121    esac
     2122    $as_echo "$ac_var='\''$ac_val'\''"
    11582123      done | sort
    11592124      echo
     
    11612126
    11622127    if test -s confdefs.h; then
    1163       cat <<\_ASBOX
    1164 ## ----------- ##
     2128      $as_echo "## ----------- ##
    11652129## confdefs.h. ##
    1166 ## ----------- ##
    1167 _ASBOX
     2130## ----------- ##"
    11682131      echo
    1169       sed "/^$/d" confdefs.h | sort
     2132      cat confdefs.h
    11702133      echo
    11712134    fi
    11722135    test "$ac_signal" != 0 &&
    1173       echo "$as_me: caught signal $ac_signal"
    1174     echo "$as_me: exit $exit_status"
     2136      $as_echo "$as_me: caught signal $ac_signal"
     2137    $as_echo "$as_me: exit $exit_status"
    11752138  } >&5
    1176   rm -f core *.core &&
    1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2139  rm -f core *.core core.conftest.* &&
     2140    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11782141    exit $exit_status
    1179      ' 0
     2142' 0
    11802143for ac_signal in 1 2 13 15; do
    1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2144  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11822145done
    11832146ac_signal=0
    11842147
    11852148# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1186 rm -rf conftest* confdefs.h
    1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1188 echo >confdefs.h
     2149rm -f -r conftest* confdefs.h
     2150
     2151$as_echo "/* confdefs.h */" > confdefs.h
    11892152
    11902153# Predefined preprocessor variables.
     
    11942157_ACEOF
    11952158
    1196 
    11972159cat >>confdefs.h <<_ACEOF
    11982160#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11992161_ACEOF
    12002162
    1201 
    12022163cat >>confdefs.h <<_ACEOF
    12032164#define PACKAGE_VERSION "$PACKAGE_VERSION"
    12042165_ACEOF
    12052166
    1206 
    12072167cat >>confdefs.h <<_ACEOF
    12082168#define PACKAGE_STRING "$PACKAGE_STRING"
    12092169_ACEOF
    12102170
    1211 
    12122171cat >>confdefs.h <<_ACEOF
    12132172#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12142173_ACEOF
    12152174
     2175cat >>confdefs.h <<_ACEOF
     2176#define PACKAGE_URL "$PACKAGE_URL"
     2177_ACEOF
     2178
    12162179
    12172180# Let the site file select an alternate cache file if it wants to.
    1218 # Prefer explicitly selected file to automatically selected ones.
    1219 if test -z "$CONFIG_SITE"; then
    1220   if test "x$prefix" != xNONE; then
    1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1222   else
    1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1224   fi
    1225 fi
    1226 for ac_site_file in $CONFIG_SITE; do
    1227   if test -r "$ac_site_file"; then
    1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1229 echo "$as_me: loading site script $ac_site_file" >&6;}
     2181# Prefer an explicitly selected file to automatically selected ones.
     2182ac_site_file1=NONE
     2183ac_site_file2=NONE
     2184if test -n "$CONFIG_SITE"; then
     2185  # We do not want a PATH search for config.site.
     2186  case $CONFIG_SITE in #((
     2187    -*)  ac_site_file1=./$CONFIG_SITE;;
     2188    */*) ac_site_file1=$CONFIG_SITE;;
     2189    *)   ac_site_file1=./$CONFIG_SITE;;
     2190  esac
     2191elif test "x$prefix" != xNONE; then
     2192  ac_site_file1=$prefix/share/config.site
     2193  ac_site_file2=$prefix/etc/config.site
     2194else
     2195  ac_site_file1=$ac_default_prefix/share/config.site
     2196  ac_site_file2=$ac_default_prefix/etc/config.site
     2197fi
     2198for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2199do
     2200  test "x$ac_site_file" = xNONE && continue
     2201  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2202    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2203$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12302204    sed 's/^/| /' "$ac_site_file" >&5
    1231     . "$ac_site_file"
     2205    . "$ac_site_file" \
     2206      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2208as_fn_error $? "failed to load site script $ac_site_file
     2209See \`config.log' for more details" "$LINENO" 5 ; }
    12322210  fi
    12332211done
    12342212
    12352213if test -r "$cache_file"; then
    1236   # Some versions of bash will fail to source /dev/null (special
    1237   # files actually), so we avoid doing that.
    1238   if test -f "$cache_file"; then
    1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1240 echo "$as_me: loading cache $cache_file" >&6;}
     2214  # Some versions of bash will fail to source /dev/null (special files
     2215  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2216  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2217    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2218$as_echo "$as_me: loading cache $cache_file" >&6;}
    12412219    case $cache_file in
    1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1243       *)                      . ./$cache_file;;
     2220      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2221      *)                      . "./$cache_file";;
    12442222    esac
    12452223  fi
    12462224else
    1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1248 echo "$as_me: creating cache $cache_file" >&6;}
     2225  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2226$as_echo "$as_me: creating cache $cache_file" >&6;}
    12492227  >$cache_file
    12502228fi
     
    12532231# value.
    12542232ac_cache_corrupted=false
    1255 for ac_var in `(set) 2>&1 |
    1256            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2233for ac_var in $ac_precious_vars; do
    12572234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12582235  eval ac_new_set=\$ac_env_${ac_var}_set
    1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1260   eval ac_new_val="\$ac_env_${ac_var}_value"
     2236  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2237  eval ac_new_val=\$ac_env_${ac_var}_value
    12612238  case $ac_old_set,$ac_new_set in
    12622239    set,)
    1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2240      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12652242      ac_cache_corrupted=: ;;
    12662243    ,set)
    1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2244      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12692246      ac_cache_corrupted=: ;;
    12702247    ,);;
    12712248    *)
    12722249      if test "x$ac_old_val" != "x$ac_new_val"; then
    1273     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1275     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1277     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1278 echo "$as_me:   current value: $ac_new_val" >&2;}
    1279     ac_cache_corrupted=:
     2250    # differences in whitespace do not lead to failure.
     2251    ac_old_val_w=`echo x $ac_old_val`
     2252    ac_new_val_w=`echo x $ac_new_val`
     2253    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2254      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2256      ac_cache_corrupted=:
     2257    else
     2258      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2260      eval $ac_var=\$ac_old_val
     2261    fi
     2262    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2263$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2264    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2265$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12802266      fi;;
    12812267  esac
     
    12832269  if test "$ac_new_set" = set; then
    12842270    case $ac_new_val in
    1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2271    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12872272    *) ac_arg=$ac_var=$ac_new_val ;;
    12882273    esac
    12892274    case " $ac_configure_args " in
    12902275      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2276      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12922277    esac
    12932278  fi
    12942279done
    12952280if $ac_cache_corrupted; then
    1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1300    { (exit 1); exit 1; }; }
    1301 fi
     2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2285  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2286fi
     2287## -------------------- ##
     2288## Main body of script. ##
     2289## -------------------- ##
    13022290
    13032291ac_ext=c
     
    13082296
    13092297
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323 
    1324 
    1325 
    1326 
    1327           ac_config_headers="$ac_config_headers config.h"
     2298ac_config_headers="$ac_config_headers config.h"
    13282299
    13292300
     
    13322303
    13332304PACKAGE=gsdl
    1334 VERSION=2.82-svn
     2305VERSION=2.x-svn
    13352306cat >>confdefs.h <<_ACEOF
    13362307#define PACKAGE "$PACKAGE"
     
    13462317USE_FASTCGI=0
    13472318if test USE_FASTCGI = 1; then
    1348 cat >>confdefs.h <<\_ACEOF
    1349 #define USE_FASTCGI 1
    1350 _ACEOF
     2319$as_echo "#define USE_FASTCGI 1" >>confdefs.h
    13512320
    13522321
     
    13542323
    13552324if test USE_LANGACTION = 1; then
    1356 cat >>confdefs.h <<\_ACEOF
    1357 #define USE_LANGACTION 1
    1358 _ACEOF
    1359 
    1360 
    1361 fi
    1362 
    1363 # Check whether --enable-corba or --disable-corba was given.
    1364 if test "${enable_corba+set}" = set; then
    1365   enableval="$enable_corba"
    1366   USE_CORBA=$enableval
     2325$as_echo "#define USE_LANGACTION 1" >>confdefs.h
     2326
     2327
     2328fi
     2329
     2330# Check whether --enable-corba was given.
     2331if test "${enable_corba+set}" = set; then :
     2332  enableval=$enable_corba; USE_CORBA=$enableval
    13672333else
    13682334  USE_CORBA=no
    1369 fi;
     2335fi
     2336
    13702337if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
    13712338  USE_CORBA=1
    1372   cat >>confdefs.h <<\_ACEOF
    1373 #define USE_CORBA
    1374 _ACEOF
     2339  $as_echo "#define USE_CORBA /**/" >>confdefs.h
    13752340
    13762341else
     
    13802345
    13812346
    1382 # Check whether --with-micodir or --without-micodir was given.
    1383 if test "${with_micodir+set}" = set; then
    1384   withval="$with_micodir"
    1385   MICO_DIR=$withval
     2347# Check whether --with-micodir was given.
     2348if test "${with_micodir+set}" = set; then :
     2349  withval=$with_micodir; MICO_DIR=$withval
    13862350else
    13872351  MICO_DIR="default"
    1388 fi;
     2352fi
     2353
    13892354cat >>confdefs.h <<_ACEOF
    13902355#define MICO_DIR "$MICO_DIR"
     
    13932358
    13942359
    1395 # Check whether --enable-z3950 or --disable-z3950 was given.
    1396 if test "${enable_z3950+set}" = set; then
    1397   enableval="$enable_z3950"
    1398   USE_Z3950=$enableval
     2360# Check whether --enable-z3950 was given.
     2361if test "${enable_z3950+set}" = set; then :
     2362  enableval=$enable_z3950; USE_Z3950=$enableval
    13992363else
    14002364  USE_Z3950=no
    1401 fi;
     2365fi
     2366
    14022367if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
    14032368  USE_Z3950=1
    1404   cat >>confdefs.h <<\_ACEOF
    1405 #define USE_Z3950
    1406 _ACEOF
     2369  $as_echo "#define USE_Z3950 /**/" >>confdefs.h
    14072370
    14082371else
     
    14112374
    14122375
    1413 # Check whether --enable-yaz or --disable-yaz was given.
    1414 if test "${enable_yaz+set}" = set; then
    1415   enableval="$enable_yaz"
    1416   USE_YAZ=$enableval
     2376# Check whether --enable-yaz was given.
     2377if test "${enable_yaz+set}" = set; then :
     2378  enableval=$enable_yaz; USE_YAZ=$enableval
    14172379else
    14182380  USE_YAZ=yes
    1419 fi;
     2381fi
     2382
    14202383if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
    14212384  USE_YAZ=1
    1422   cat >>confdefs.h <<\_ACEOF
    1423 #define USE_YAZ
    1424 _ACEOF
     2385  $as_echo "#define USE_YAZ /**/" >>confdefs.h
    14252386
    14262387else
     
    14292390
    14302391
    1431 # Check whether --enable-jdbm or --disable-jdbm was given.
    1432 if test "${enable_jdbm+set}" = set; then
    1433   enableval="$enable_jdbm"
    1434   USE_JDBM=$enableval
     2392# Check whether --enable-java was given.
     2393if test "${enable_java+set}" = set; then :
     2394  enableval=$enable_java; ENABLE_JAVA=$enableval
     2395else
     2396  ENABLE_JAVA=yes
     2397fi
     2398
     2399if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2400  ENABLE_JAVA=1
     2401  if test "x$JAVA_HOME" != "x" ; then
     2402    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2403    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2404    echo "and JAVA respectively"
     2405    export JAVA_HOME=
     2406  fi
     2407else
     2408  ENABLE_JAVA=0
     2409fi
     2410
     2411
     2412# Check whether --enable-jdbm was given.
     2413if test "${enable_jdbm+set}" = set; then :
     2414  enableval=$enable_jdbm; USE_JDBM=$enableval
    14352415else
    14362416  USE_JDBM=yes
    1437 fi;
    1438 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     2417fi
     2418
     2419if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    14392420  USE_JDBM=1
    1440   cat >>confdefs.h <<\_ACEOF
    1441 #define USE_JDBM
    1442 _ACEOF
     2421  $as_echo "#define USE_JDBM /**/" >>confdefs.h
    14432422
    14442423else
     
    14472426
    14482427
    1449 # Check whether --enable-gdbm or --disable-gdbm was given.
    1450 if test "${enable_gdbm+set}" = set; then
    1451   enableval="$enable_gdbm"
    1452   USE_GDBM=$enableval
     2428# Check whether --enable-gdbm was given.
     2429if test "${enable_gdbm+set}" = set; then :
     2430  enableval=$enable_gdbm; USE_GDBM=$enableval
    14532431else
    14542432  USE_GDBM=yes
    1455 fi;
     2433fi
     2434
    14562435if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
    14572436  USE_GDBM=1
    1458   cat >>confdefs.h <<\_ACEOF
    1459 #define USE_GDBM
    1460 _ACEOF
     2437  $as_echo "#define USE_GDBM /**/" >>confdefs.h
    14612438
    14622439else
     
    14652442
    14662443
    1467 # Check whether --enable-accentfold or --disable-accentfold was given.
    1468 if test "${enable_accentfold+set}" = set; then
    1469   enableval="$enable_accentfold"
    1470   ENABLE_ACCENTFOLD=$enableval
     2444# Check whether --enable-accentfold was given.
     2445if test "${enable_accentfold+set}" = set; then :
     2446  enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
    14712447else
    14722448  ENABLE_ACCENTFOLD=yes
    1473 fi;
     2449fi
     2450
    14742451if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
    14752452  ENABLE_ACCENTFOLD=1
    1476   cat >>confdefs.h <<\_ACEOF
    1477 #define ENABLE_ACCENTFOLD
    1478 _ACEOF
     2453  $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
    14792454
    14802455else
     
    14842459
    14852460
    1486 # Check whether --enable-sqlite or --disable-sqlite was given.
    1487 if test "${enable_sqlite+set}" = set; then
    1488   enableval="$enable_sqlite"
    1489   USE_SQLITE=$enableval
     2461# Check whether --enable-sqlite was given.
     2462if test "${enable_sqlite+set}" = set; then :
     2463  enableval=$enable_sqlite; USE_SQLITE=$enableval
    14902464else
    14912465  USE_SQLITE=yes
    1492 fi;
     2466fi
     2467
    14932468if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
    14942469  USE_SQLITE=1
    1495   cat >>confdefs.h <<\_ACEOF
    1496 #define USE_SQLITE
    1497 _ACEOF
     2470  $as_echo "#define USE_SQLITE /**/" >>confdefs.h
    14982471
    14992472else
     
    15022475
    15032476
    1504 # Check whether --enable-jni or --disable-jni was given.
    1505 if test "${enable_jni+set}" = set; then
    1506   enableval="$enable_jni"
    1507   ENABLE_JNI=$enableval
     2477# Check whether --enable-jni was given.
     2478if test "${enable_jni+set}" = set; then :
     2479  enableval=$enable_jni; ENABLE_JNI=$enableval
    15082480else
    15092481  ENABLE_JNI=no
    1510 fi;
    1511 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     2482fi
     2483
     2484if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    15122485  ENABLE_JNI=1
    1513   cat >>confdefs.h <<\_ACEOF
    1514 #define ENABLE_JNI
    1515 _ACEOF
     2486  $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
    15162487
    15172488else
     
    15202491
    15212492
    1522 # Check whether --enable-mg or --disable-mg was given.
    1523 if test "${enable_mg+set}" = set; then
    1524   enableval="$enable_mg"
    1525   ENABLE_MG=$enableval
     2493# Check whether --enable-mg was given.
     2494if test "${enable_mg+set}" = set; then :
     2495  enableval=$enable_mg; ENABLE_MG=$enableval
    15262496else
    15272497  ENABLE_MG=yes
    1528 fi;
     2498fi
     2499
    15292500if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
    15302501  ENABLE_MG=1
    1531   cat >>confdefs.h <<\_ACEOF
    1532 #define ENABLE_MG
    1533 _ACEOF
     2502  $as_echo "#define ENABLE_MG /**/" >>confdefs.h
    15342503
    15352504else
     
    15382507
    15392508
    1540 # Check whether --enable-mgpp or --disable-mgpp was given.
    1541 if test "${enable_mgpp+set}" = set; then
    1542   enableval="$enable_mgpp"
    1543   ENABLE_MGPP=$enableval
     2509# Check whether --enable-mgpp was given.
     2510if test "${enable_mgpp+set}" = set; then :
     2511  enableval=$enable_mgpp; ENABLE_MGPP=$enableval
    15442512else
    15452513  ENABLE_MGPP=yes
    1546 fi;
     2514fi
     2515
    15472516if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
    15482517  ENABLE_MGPP=1
    1549   cat >>confdefs.h <<\_ACEOF
    1550 #define ENABLE_MGPP
    1551 _ACEOF
     2518  $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
    15522519
    15532520else
     
    15562523
    15572524
    1558 # Check whether --enable-lucene or --disable-lucene was given.
    1559 if test "${enable_lucene+set}" = set; then
    1560   enableval="$enable_lucene"
    1561   ENABLE_LUCENE=$enableval
     2525# Check whether --enable-lucene was given.
     2526if test "${enable_lucene+set}" = set; then :
     2527  enableval=$enable_lucene; ENABLE_LUCENE=$enableval
    15622528else
    15632529  ENABLE_LUCENE=yes
    1564 fi;
    1565 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     2530fi
     2531
     2532if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    15662533  ENABLE_LUCENE=1
    1567   cat >>confdefs.h <<\_ACEOF
    1568 #define ENABLE_LUCENE
    1569 _ACEOF
     2534  $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
    15702535
    15712536else
     
    15912556  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    15922557set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1595 if test "${ac_cv_prog_CC+set}" = set; then
    1596   echo $ECHO_N "(cached) $ECHO_C" >&6
     2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2559$as_echo_n "checking for $ac_word... " >&6; }
     2560if test "${ac_cv_prog_CC+set}" = set; then :
     2561  $as_echo_n "(cached) " >&6
    15972562else
    15982563  if test -n "$CC"; then
     
    16042569  IFS=$as_save_IFS
    16052570  test -z "$as_dir" && as_dir=.
    1606   for ac_exec_ext in '' $ac_executable_extensions; do
    1607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2571    for ac_exec_ext in '' $ac_executable_extensions; do
     2572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16082573    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16102575    break 2
    16112576  fi
    16122577done
    1613 done
     2578  done
     2579IFS=$as_save_IFS
    16142580
    16152581fi
     
    16172583CC=$ac_cv_prog_CC
    16182584if test -n "$CC"; then
    1619   echo "$as_me:$LINENO: result: $CC" >&5
    1620 echo "${ECHO_T}$CC" >&6
    1621 else
    1622   echo "$as_me:$LINENO: result: no" >&5
    1623 echo "${ECHO_T}no" >&6
    1624 fi
     2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2586$as_echo "$CC" >&6; }
     2587else
     2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2589$as_echo "no" >&6; }
     2590fi
     2591
    16252592
    16262593fi
     
    16292596  # Extract the first word of "gcc", so it can be a program name with args.
    16302597set dummy gcc; ac_word=$2
    1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1634   echo $ECHO_N "(cached) $ECHO_C" >&6
     2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2599$as_echo_n "checking for $ac_word... " >&6; }
     2600if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2601  $as_echo_n "(cached) " >&6
    16352602else
    16362603  if test -n "$ac_ct_CC"; then
     
    16422609  IFS=$as_save_IFS
    16432610  test -z "$as_dir" && as_dir=.
    1644   for ac_exec_ext in '' $ac_executable_extensions; do
    1645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2611    for ac_exec_ext in '' $ac_executable_extensions; do
     2612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16462613    ac_cv_prog_ac_ct_CC="gcc"
    1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16482615    break 2
    16492616  fi
    16502617done
    1651 done
     2618  done
     2619IFS=$as_save_IFS
    16522620
    16532621fi
     
    16552623ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16562624if test -n "$ac_ct_CC"; then
    1657   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1658 echo "${ECHO_T}$ac_ct_CC" >&6
    1659 else
    1660   echo "$as_me:$LINENO: result: no" >&5
    1661 echo "${ECHO_T}no" >&6
    1662 fi
    1663 
    1664   CC=$ac_ct_CC
     2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2626$as_echo "$ac_ct_CC" >&6; }
     2627else
     2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2629$as_echo "no" >&6; }
     2630fi
     2631
     2632  if test "x$ac_ct_CC" = x; then
     2633    CC=""
     2634  else
     2635    case $cross_compiling:$ac_tool_warned in
     2636yes:)
     2637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2639ac_tool_warned=yes ;;
     2640esac
     2641    CC=$ac_ct_CC
     2642  fi
    16652643else
    16662644  CC="$ac_cv_prog_CC"
     
    16682646
    16692647if test -z "$CC"; then
    1670   if test -n "$ac_tool_prefix"; then
    1671   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2648          if test -n "$ac_tool_prefix"; then
     2649    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    16722650set dummy ${ac_tool_prefix}cc; ac_word=$2
    1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1675 if test "${ac_cv_prog_CC+set}" = set; then
    1676   echo $ECHO_N "(cached) $ECHO_C" >&6
     2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2652$as_echo_n "checking for $ac_word... " >&6; }
     2653if test "${ac_cv_prog_CC+set}" = set; then :
     2654  $as_echo_n "(cached) " >&6
    16772655else
    16782656  if test -n "$CC"; then
     
    16842662  IFS=$as_save_IFS
    16852663  test -z "$as_dir" && as_dir=.
    1686   for ac_exec_ext in '' $ac_executable_extensions; do
    1687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2664    for ac_exec_ext in '' $ac_executable_extensions; do
     2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16882666    ac_cv_prog_CC="${ac_tool_prefix}cc"
    1689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16902668    break 2
    16912669  fi
    16922670done
    1693 done
     2671  done
     2672IFS=$as_save_IFS
    16942673
    16952674fi
     
    16972676CC=$ac_cv_prog_CC
    16982677if test -n "$CC"; then
    1699   echo "$as_me:$LINENO: result: $CC" >&5
    1700 echo "${ECHO_T}$CC" >&6
    1701 else
    1702   echo "$as_me:$LINENO: result: no" >&5
    1703 echo "${ECHO_T}no" >&6
    1704 fi
    1705 
    1706 fi
    1707 if test -z "$ac_cv_prog_CC"; then
    1708   ac_ct_CC=$CC
    1709   # Extract the first word of "cc", so it can be a program name with args.
    1710 set dummy cc; ac_word=$2
    1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1714   echo $ECHO_N "(cached) $ECHO_C" >&6
    1715 else
    1716   if test -n "$ac_ct_CC"; then
    1717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1718 else
    1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1720 for as_dir in $PATH
    1721 do
    1722   IFS=$as_save_IFS
    1723   test -z "$as_dir" && as_dir=.
    1724   for ac_exec_ext in '' $ac_executable_extensions; do
    1725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1726     ac_cv_prog_ac_ct_CC="cc"
    1727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1728     break 2
     2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2679$as_echo "$CC" >&6; }
     2680else
     2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2682$as_echo "no" >&6; }
     2683fi
     2684
     2685
    17292686  fi
    1730 done
    1731 done
    1732 
    1733 fi
    1734 fi
    1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1736 if test -n "$ac_ct_CC"; then
    1737   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1738 echo "${ECHO_T}$ac_ct_CC" >&6
    1739 else
    1740   echo "$as_me:$LINENO: result: no" >&5
    1741 echo "${ECHO_T}no" >&6
    1742 fi
    1743 
    1744   CC=$ac_ct_CC
    1745 else
    1746   CC="$ac_cv_prog_CC"
    1747 fi
    1748 
    17492687fi
    17502688if test -z "$CC"; then
    17512689  # Extract the first word of "cc", so it can be a program name with args.
    17522690set dummy cc; ac_word=$2
    1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1755 if test "${ac_cv_prog_CC+set}" = set; then
    1756   echo $ECHO_N "(cached) $ECHO_C" >&6
     2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2692$as_echo_n "checking for $ac_word... " >&6; }
     2693if test "${ac_cv_prog_CC+set}" = set; then :
     2694  $as_echo_n "(cached) " >&6
    17572695else
    17582696  if test -n "$CC"; then
     
    17652703  IFS=$as_save_IFS
    17662704  test -z "$as_dir" && as_dir=.
    1767   for ac_exec_ext in '' $ac_executable_extensions; do
    1768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2705    for ac_exec_ext in '' $ac_executable_extensions; do
     2706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17692707    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    17702708       ac_prog_rejected=yes
     
    17722710     fi
    17732711    ac_cv_prog_CC="cc"
    1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    17752713    break 2
    17762714  fi
    17772715done
    1778 done
     2716  done
     2717IFS=$as_save_IFS
    17792718
    17802719if test $ac_prog_rejected = yes; then
     
    17942733CC=$ac_cv_prog_CC
    17952734if test -n "$CC"; then
    1796   echo "$as_me:$LINENO: result: $CC" >&5
    1797 echo "${ECHO_T}$CC" >&6
    1798 else
    1799   echo "$as_me:$LINENO: result: no" >&5
    1800 echo "${ECHO_T}no" >&6
    1801 fi
     2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2736$as_echo "$CC" >&6; }
     2737else
     2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2739$as_echo "no" >&6; }
     2740fi
     2741
    18022742
    18032743fi
    18042744if test -z "$CC"; then
    18052745  if test -n "$ac_tool_prefix"; then
    1806   for ac_prog in cl
     2746  for ac_prog in cl.exe
    18072747  do
    18082748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    18092749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1812 if test "${ac_cv_prog_CC+set}" = set; then
    1813   echo $ECHO_N "(cached) $ECHO_C" >&6
     2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2751$as_echo_n "checking for $ac_word... " >&6; }
     2752if test "${ac_cv_prog_CC+set}" = set; then :
     2753  $as_echo_n "(cached) " >&6
    18142754else
    18152755  if test -n "$CC"; then
     
    18212761  IFS=$as_save_IFS
    18222762  test -z "$as_dir" && as_dir=.
    1823   for ac_exec_ext in '' $ac_executable_extensions; do
    1824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2763    for ac_exec_ext in '' $ac_executable_extensions; do
     2764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18252765    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18272767    break 2
    18282768  fi
    18292769done
    1830 done
     2770  done
     2771IFS=$as_save_IFS
    18312772
    18322773fi
     
    18342775CC=$ac_cv_prog_CC
    18352776if test -n "$CC"; then
    1836   echo "$as_me:$LINENO: result: $CC" >&5
    1837 echo "${ECHO_T}$CC" >&6
    1838 else
    1839   echo "$as_me:$LINENO: result: no" >&5
    1840 echo "${ECHO_T}no" >&6
    1841 fi
     2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2778$as_echo "$CC" >&6; }
     2779else
     2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2781$as_echo "no" >&6; }
     2782fi
     2783
    18422784
    18432785    test -n "$CC" && break
     
    18462788if test -z "$CC"; then
    18472789  ac_ct_CC=$CC
    1848   for ac_prog in cl
     2790  for ac_prog in cl.exe
    18492791do
    18502792  # Extract the first word of "$ac_prog", so it can be a program name with args.
    18512793set dummy $ac_prog; ac_word=$2
    1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1855   echo $ECHO_N "(cached) $ECHO_C" >&6
     2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2795$as_echo_n "checking for $ac_word... " >&6; }
     2796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2797  $as_echo_n "(cached) " >&6
    18562798else
    18572799  if test -n "$ac_ct_CC"; then
     
    18632805  IFS=$as_save_IFS
    18642806  test -z "$as_dir" && as_dir=.
    1865   for ac_exec_ext in '' $ac_executable_extensions; do
    1866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2807    for ac_exec_ext in '' $ac_executable_extensions; do
     2808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18672809    ac_cv_prog_ac_ct_CC="$ac_prog"
    1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18692811    break 2
    18702812  fi
    18712813done
    1872 done
     2814  done
     2815IFS=$as_save_IFS
    18732816
    18742817fi
     
    18762819ac_ct_CC=$ac_cv_prog_ac_ct_CC
    18772820if test -n "$ac_ct_CC"; then
    1878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1879 echo "${ECHO_T}$ac_ct_CC" >&6
    1880 else
    1881   echo "$as_me:$LINENO: result: no" >&5
    1882 echo "${ECHO_T}no" >&6
    1883 fi
     2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2822$as_echo "$ac_ct_CC" >&6; }
     2823else
     2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2825$as_echo "no" >&6; }
     2826fi
     2827
    18842828
    18852829  test -n "$ac_ct_CC" && break
    18862830done
    18872831
    1888   CC=$ac_ct_CC
    1889 fi
    1890 
    1891 fi
    1892 
    1893 
    1894 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    1895 See \`config.log' for more details." >&5
    1896 echo "$as_me: error: no acceptable C compiler found in \$PATH
    1897 See \`config.log' for more details." >&2;}
    1898    { (exit 1); exit 1; }; }
     2832  if test "x$ac_ct_CC" = x; then
     2833    CC=""
     2834  else
     2835    case $cross_compiling:$ac_tool_warned in
     2836yes:)
     2837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2839ac_tool_warned=yes ;;
     2840esac
     2841    CC=$ac_ct_CC
     2842  fi
     2843fi
     2844
     2845fi
     2846
     2847
     2848test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2850as_fn_error $? "no acceptable C compiler found in \$PATH
     2851See \`config.log' for more details" "$LINENO" 5 ; }
    18992852
    19002853# Provide some information about the compiler.
    1901 echo "$as_me:$LINENO:" \
    1902      "checking for C compiler version" >&5
    1903 ac_compiler=`set X $ac_compile; echo $2`
    1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1905   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2854$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2855set X $ac_compile
     2856ac_compiler=$2
     2857for ac_option in --version -v -V -qversion; do
     2858  { { ac_try="$ac_compiler $ac_option >&5"
     2859case "(($ac_try" in
     2860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2861  *) ac_try_echo=$ac_try;;
     2862esac
     2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2864$as_echo "$ac_try_echo"; } >&5
     2865  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    19062866  ac_status=$?
    1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1908   (exit $ac_status); }
    1909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1910   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1911   ac_status=$?
    1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1913   (exit $ac_status); }
    1914 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1915   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1916   ac_status=$?
    1917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1918   (exit $ac_status); }
    1919 
    1920 cat >conftest.$ac_ext <<_ACEOF
    1921 /* confdefs.h.  */
    1922 _ACEOF
    1923 cat confdefs.h >>conftest.$ac_ext
    1924 cat >>conftest.$ac_ext <<_ACEOF
     2867  if test -s conftest.err; then
     2868    sed '10a\
     2869... rest of stderr output deleted ...
     2870         10q' conftest.err >conftest.er1
     2871    cat conftest.er1 >&5
     2872  fi
     2873  rm -f conftest.er1 conftest.err
     2874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2875  test $ac_status = 0; }
     2876done
     2877
     2878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    19252879/* end confdefs.h.  */
    19262880
     
    19342888_ACEOF
    19352889ac_clean_files_save=$ac_clean_files
    1936 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2890ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    19372891# Try to create an executable without -o first, disregard a.out.
    19382892# It will help us diagnose broken compilers, and finding out an intuition
    19392893# of exeext.
    1940 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1941 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    1942 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1943 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1944   (eval $ac_link_default) 2>&5
     2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2895$as_echo_n "checking whether the C compiler works... " >&6; }
     2896ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2897
     2898# The possible output files:
     2899ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2900
     2901ac_rmfiles=
     2902for ac_file in $ac_files
     2903do
     2904  case $ac_file in
     2905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2906    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2907  esac
     2908done
     2909rm -f $ac_rmfiles
     2910
     2911if { { ac_try="$ac_link_default"
     2912case "(($ac_try" in
     2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2914  *) ac_try_echo=$ac_try;;
     2915esac
     2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2917$as_echo "$ac_try_echo"; } >&5
     2918  (eval "$ac_link_default") 2>&5
    19452919  ac_status=$?
    1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1947   (exit $ac_status); }; then
    1948   # Find the output, starting from the most likely.  This scheme is
    1949 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1950 # resort.
    1951 
    1952 # Be careful to initialize this variable, since it used to be cached.
    1953 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1954 ac_cv_exeext=
    1955 # b.out is created by i960 compilers.
    1956 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2921  test $ac_status = 0; }; then :
     2922  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2924# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2925# so that the user can short-circuit this test for compilers unknown to
     2926# Autoconf.
     2927for ac_file in $ac_files ''
    19572928do
    19582929  test -f "$ac_file" || continue
    19592930  case $ac_file in
    1960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1961     ;;
    1962     conftest.$ac_ext )
    1963     # This is the source file.
     2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    19642932    ;;
    19652933    [ab].out )
     
    19682936    break;;
    19692937    *.* )
    1970     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1971     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1972     # but it would be cool to find out if it's true.  Does anybody
    1973     # maintain Libtool? --akim.
    1974     export ac_cv_exeext
     2938    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2939    then :; else
     2940       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2941    fi
     2942    # We set ac_cv_exeext here because the later test for it is not
     2943    # safe: cross compilers may not add the suffix if given an `-o'
     2944    # argument, so we may need to know it at that point already.
     2945    # Even if this section looks crufty: it has the advantage of
     2946    # actually working.
    19752947    break;;
    19762948    * )
     
    19782950  esac
    19792951done
    1980 else
    1981   echo "$as_me: failed program was:" >&5
     2952test "$ac_cv_exeext" = no && ac_cv_exeext=
     2953
     2954else
     2955  ac_file=''
     2956fi
     2957if test -z "$ac_file"; then :
     2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2959$as_echo "no" >&6; }
     2960$as_echo "$as_me: failed program was:" >&5
    19822961sed 's/^/| /' conftest.$ac_ext >&5
    19832962
    1984 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    1985 See \`config.log' for more details." >&5
    1986 echo "$as_me: error: C compiler cannot create executables
    1987 See \`config.log' for more details." >&2;}
    1988    { (exit 77); exit 77; }; }
    1989 fi
    1990 
     2963{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2965as_fn_error 77 "C compiler cannot create executables
     2966See \`config.log' for more details" "$LINENO" 5 ; }
     2967else
     2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2969$as_echo "yes" >&6; }
     2970fi
     2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     2972$as_echo_n "checking for C compiler default output file name... " >&6; }
     2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2974$as_echo "$ac_file" >&6; }
    19912975ac_exeext=$ac_cv_exeext
    1992 echo "$as_me:$LINENO: result: $ac_file" >&5
    1993 echo "${ECHO_T}$ac_file" >&6
    1994 
    1995 # Check the compiler produces executables we can run.  If not, either
    1996 # the compiler is broken, or we cross compile.
    1997 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1998 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1999 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2000 # If not cross compiling, check that we can run a simple program.
    2001 if test "$cross_compiling" != yes; then
    2002   if { ac_try='./$ac_file'
    2003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2004   (eval $ac_try) 2>&5
     2976
     2977rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2978ac_clean_files=$ac_clean_files_save
     2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2980$as_echo_n "checking for suffix of executables... " >&6; }
     2981if { { ac_try="$ac_link"
     2982case "(($ac_try" in
     2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2984  *) ac_try_echo=$ac_try;;
     2985esac
     2986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2987$as_echo "$ac_try_echo"; } >&5
     2988  (eval "$ac_link") 2>&5
    20052989  ac_status=$?
    2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2007   (exit $ac_status); }; }; then
    2008     cross_compiling=no
    2009   else
    2010     if test "$cross_compiling" = maybe; then
    2011     cross_compiling=yes
    2012     else
    2013     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2014 If you meant to cross compile, use \`--host'.
    2015 See \`config.log' for more details." >&5
    2016 echo "$as_me: error: cannot run C compiled programs.
    2017 If you meant to cross compile, use \`--host'.
    2018 See \`config.log' for more details." >&2;}
    2019    { (exit 1); exit 1; }; }
    2020     fi
    2021   fi
    2022 fi
    2023 echo "$as_me:$LINENO: result: yes" >&5
    2024 echo "${ECHO_T}yes" >&6
    2025 
    2026 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2027 ac_clean_files=$ac_clean_files_save
    2028 # Check the compiler produces executables we can run.  If not, either
    2029 # the compiler is broken, or we cross compile.
    2030 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2031 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2032 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2033 echo "${ECHO_T}$cross_compiling" >&6
    2034 
    2035 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2036 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2038   (eval $ac_link) 2>&5
    2039   ac_status=$?
    2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2041   (exit $ac_status); }; then
     2990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2991  test $ac_status = 0; }; then :
    20422992  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    20432993# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    20472997  test -f "$ac_file" || continue
    20482998  case $ac_file in
    2049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2999    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    20503000    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2051       export ac_cv_exeext
    20523001      break;;
    20533002    * ) break;;
     
    20553004done
    20563005else
    2057   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2058 See \`config.log' for more details." >&5
    2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2060 See \`config.log' for more details." >&2;}
    2061    { (exit 1); exit 1; }; }
    2062 fi
    2063 
    2064 rm -f conftest$ac_cv_exeext
    2065 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2066 echo "${ECHO_T}$ac_cv_exeext" >&6
     3006  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3008as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     3009See \`config.log' for more details" "$LINENO" 5 ; }
     3010fi
     3011rm -f conftest conftest$ac_cv_exeext
     3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     3013$as_echo "$ac_cv_exeext" >&6; }
    20673014
    20683015rm -f conftest.$ac_ext
    20693016EXEEXT=$ac_cv_exeext
    20703017ac_exeext=$EXEEXT
    2071 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2072 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    2073 if test "${ac_cv_objext+set}" = set; then
    2074   echo $ECHO_N "(cached) $ECHO_C" >&6
    2075 else
    2076   cat >conftest.$ac_ext <<_ACEOF
    2077 /* confdefs.h.  */
    2078 _ACEOF
    2079 cat confdefs.h >>conftest.$ac_ext
    2080 cat >>conftest.$ac_ext <<_ACEOF
     3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20813019/* end confdefs.h.  */
    2082 
     3020#include <stdio.h>
    20833021int
    20843022main ()
    20853023{
     3024FILE *f = fopen ("conftest.out", "w");
     3025 return ferror (f) || fclose (f) != 0;
    20863026
    20873027  ;
     
    20893029}
    20903030_ACEOF
     3031ac_clean_files="$ac_clean_files conftest.out"
     3032# Check that the compiler produces executables we can run.  If not, either
     3033# the compiler is broken, or we cross compile.
     3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3035$as_echo_n "checking whether we are cross compiling... " >&6; }
     3036if test "$cross_compiling" != yes; then
     3037  { { ac_try="$ac_link"
     3038case "(($ac_try" in
     3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3040  *) ac_try_echo=$ac_try;;
     3041esac
     3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3043$as_echo "$ac_try_echo"; } >&5
     3044  (eval "$ac_link") 2>&5
     3045  ac_status=$?
     3046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3047  test $ac_status = 0; }
     3048  if { ac_try='./conftest$ac_cv_exeext'
     3049  { { case "(($ac_try" in
     3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3051  *) ac_try_echo=$ac_try;;
     3052esac
     3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3054$as_echo "$ac_try_echo"; } >&5
     3055  (eval "$ac_try") 2>&5
     3056  ac_status=$?
     3057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3058  test $ac_status = 0; }; }; then
     3059    cross_compiling=no
     3060  else
     3061    if test "$cross_compiling" = maybe; then
     3062    cross_compiling=yes
     3063    else
     3064    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3066as_fn_error $? "cannot run C compiled programs.
     3067If you meant to cross compile, use \`--host'.
     3068See \`config.log' for more details" "$LINENO" 5 ; }
     3069    fi
     3070  fi
     3071fi
     3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3073$as_echo "$cross_compiling" >&6; }
     3074
     3075rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     3076ac_clean_files=$ac_clean_files_save
     3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     3078$as_echo_n "checking for suffix of object files... " >&6; }
     3079if test "${ac_cv_objext+set}" = set; then :
     3080  $as_echo_n "(cached) " >&6
     3081else
     3082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3083/* end confdefs.h.  */
     3084
     3085int
     3086main ()
     3087{
     3088
     3089  ;
     3090  return 0;
     3091}
     3092_ACEOF
    20913093rm -f conftest.o conftest.obj
    2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2093   (eval $ac_compile) 2>&5
     3094if { { ac_try="$ac_compile"
     3095case "(($ac_try" in
     3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3097  *) ac_try_echo=$ac_try;;
     3098esac
     3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3100$as_echo "$ac_try_echo"; } >&5
     3101  (eval "$ac_compile") 2>&5
    20943102  ac_status=$?
    2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2096   (exit $ac_status); }; then
    2097   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     3103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3104  test $ac_status = 0; }; then :
     3105  for ac_file in conftest.o conftest.obj conftest.*; do
     3106  test -f "$ac_file" || continue;
    20983107  case $ac_file in
    2099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     3108    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    21003109    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    21013110       break;;
     
    21033112done
    21043113else
    2105   echo "$as_me: failed program was:" >&5
     3114  $as_echo "$as_me: failed program was:" >&5
    21063115sed 's/^/| /' conftest.$ac_ext >&5
    21073116
    2108 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2109 See \`config.log' for more details." >&5
    2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2111 See \`config.log' for more details." >&2;}
    2112    { (exit 1); exit 1; }; }
    2113 fi
    2114 
     3117{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3119as_fn_error $? "cannot compute suffix of object files: cannot compile
     3120See \`config.log' for more details" "$LINENO" 5 ; }
     3121fi
    21153122rm -f conftest.$ac_cv_objext conftest.$ac_ext
    21163123fi
    2117 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2118 echo "${ECHO_T}$ac_cv_objext" >&6
     3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3125$as_echo "$ac_cv_objext" >&6; }
    21193126OBJEXT=$ac_cv_objext
    21203127ac_objext=$OBJEXT
    2121 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2122 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2124   echo $ECHO_N "(cached) $ECHO_C" >&6
    2125 else
    2126   cat >conftest.$ac_ext <<_ACEOF
    2127 /* confdefs.h.  */
    2128 _ACEOF
    2129 cat confdefs.h >>conftest.$ac_ext
    2130 cat >>conftest.$ac_ext <<_ACEOF
     3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3129$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3130if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3131  $as_echo_n "(cached) " >&6
     3132else
     3133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21313134/* end confdefs.h.  */
    21323135
     
    21423145}
    21433146_ACEOF
    2144 rm -f conftest.$ac_objext
    2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2146   (eval $ac_compile) 2>conftest.er1
    2147   ac_status=$?
    2148   grep -v '^ *+' conftest.er1 >conftest.err
    2149   rm -f conftest.er1
    2150   cat conftest.err >&5
    2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2152   (exit $ac_status); } &&
    2153      { ac_try='test -z "$ac_c_werror_flag"
    2154              || test ! -s conftest.err'
    2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2156   (eval $ac_try) 2>&5
    2157   ac_status=$?
    2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2159   (exit $ac_status); }; } &&
    2160      { ac_try='test -s conftest.$ac_objext'
    2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2162   (eval $ac_try) 2>&5
    2163   ac_status=$?
    2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2165   (exit $ac_status); }; }; then
     3147if ac_fn_c_try_compile "$LINENO"; then :
    21663148  ac_compiler_gnu=yes
    21673149else
    2168   echo "$as_me: failed program was:" >&5
    2169 sed 's/^/| /' conftest.$ac_ext >&5
    2170 
    2171 ac_compiler_gnu=no
    2172 fi
    2173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3150  ac_compiler_gnu=no
     3151fi
     3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21743153ac_cv_c_compiler_gnu=$ac_compiler_gnu
    21753154
    21763155fi
    2177 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2179 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3157$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3158if test $ac_compiler_gnu = yes; then
     3159  GCC=yes
     3160else
     3161  GCC=
     3162fi
    21803163ac_test_CFLAGS=${CFLAGS+set}
    21813164ac_save_CFLAGS=$CFLAGS
    2182 CFLAGS="-g"
    2183 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2185 if test "${ac_cv_prog_cc_g+set}" = set; then
    2186   echo $ECHO_N "(cached) $ECHO_C" >&6
    2187 else
    2188   cat >conftest.$ac_ext <<_ACEOF
    2189 /* confdefs.h.  */
    2190 _ACEOF
    2191 cat confdefs.h >>conftest.$ac_ext
    2192 cat >>conftest.$ac_ext <<_ACEOF
     3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3166$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3167if test "${ac_cv_prog_cc_g+set}" = set; then :
     3168  $as_echo_n "(cached) " >&6
     3169else
     3170  ac_save_c_werror_flag=$ac_c_werror_flag
     3171   ac_c_werror_flag=yes
     3172   ac_cv_prog_cc_g=no
     3173   CFLAGS="-g"
     3174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21933175/* end confdefs.h.  */
    21943176
     
    22013183}
    22023184_ACEOF
    2203 rm -f conftest.$ac_objext
    2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2205   (eval $ac_compile) 2>conftest.er1
    2206   ac_status=$?
    2207   grep -v '^ *+' conftest.er1 >conftest.err
    2208   rm -f conftest.er1
    2209   cat conftest.err >&5
    2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2211   (exit $ac_status); } &&
    2212      { ac_try='test -z "$ac_c_werror_flag"
    2213              || test ! -s conftest.err'
    2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2215   (eval $ac_try) 2>&5
    2216   ac_status=$?
    2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2218   (exit $ac_status); }; } &&
    2219      { ac_try='test -s conftest.$ac_objext'
    2220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2221   (eval $ac_try) 2>&5
    2222   ac_status=$?
    2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2224   (exit $ac_status); }; }; then
     3185if ac_fn_c_try_compile "$LINENO"; then :
    22253186  ac_cv_prog_cc_g=yes
    22263187else
    2227   echo "$as_me: failed program was:" >&5
    2228 sed 's/^/| /' conftest.$ac_ext >&5
    2229 
    2230 ac_cv_prog_cc_g=no
    2231 fi
    2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2233 fi
    2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3188  CFLAGS=""
     3189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3190/* end confdefs.h.  */
     3191
     3192int
     3193main ()
     3194{
     3195
     3196  ;
     3197  return 0;
     3198}
     3199_ACEOF
     3200if ac_fn_c_try_compile "$LINENO"; then :
     3201
     3202else
     3203  ac_c_werror_flag=$ac_save_c_werror_flag
     3204     CFLAGS="-g"
     3205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3206/* end confdefs.h.  */
     3207
     3208int
     3209main ()
     3210{
     3211
     3212  ;
     3213  return 0;
     3214}
     3215_ACEOF
     3216if ac_fn_c_try_compile "$LINENO"; then :
     3217  ac_cv_prog_cc_g=yes
     3218fi
     3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3220fi
     3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3222fi
     3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3224   ac_c_werror_flag=$ac_save_c_werror_flag
     3225fi
     3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3227$as_echo "$ac_cv_prog_cc_g" >&6; }
    22363228if test "$ac_test_CFLAGS" = set; then
    22373229  CFLAGS=$ac_save_CFLAGS
     
    22493241  fi
    22503242fi
    2251 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2252 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2253 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2254   echo $ECHO_N "(cached) $ECHO_C" >&6
    2255 else
    2256   ac_cv_prog_cc_stdc=no
     3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3244$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3245if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3246  $as_echo_n "(cached) " >&6
     3247else
     3248  ac_cv_prog_cc_c89=no
    22573249ac_save_CC=$CC
    2258 cat >conftest.$ac_ext <<_ACEOF
    2259 /* confdefs.h.  */
    2260 _ACEOF
    2261 cat confdefs.h >>conftest.$ac_ext
    2262 cat >>conftest.$ac_ext <<_ACEOF
     3250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    22633251/* end confdefs.h.  */
    22643252#include <stdarg.h>
     
    22883276   function prototypes and stuff, but not '\xHH' hex character constants.
    22893277   These don't provoke an error unfortunately, instead are silently treated
    2290    as 'x'.  The following induces an error, until -std1 is added to get
     3278   as 'x'.  The following induces an error, until -std is added to get
    22913279   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    22923280   array size at least.  It's necessary to write '\x00'==0 to get something
    2293    that's true only with -std1.  */
     3281   that's true only with -std.  */
    22943282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3283
     3284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3285   inside strings and character constants.  */
     3286#define FOO(x) 'x'
     3287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    22953288
    22963289int test (int i, double x);
     
    23083301}
    23093302_ACEOF
    2310 # Don't try gcc -ansi; that turns off useful extensions and
    2311 # breaks some systems' header files.
    2312 # AIX           -qlanglvl=ansi
    2313 # Ultrix and OSF/1  -std1
    2314 # HP-UX 10.20 and later -Ae
    2315 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2316 # SVR4          -Xc -D__EXTENSIONS__
    2317 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3304    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    23183305do
    23193306  CC="$ac_save_CC $ac_arg"
    2320   rm -f conftest.$ac_objext
    2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2322   (eval $ac_compile) 2>conftest.er1
    2323   ac_status=$?
    2324   grep -v '^ *+' conftest.er1 >conftest.err
    2325   rm -f conftest.er1
    2326   cat conftest.err >&5
    2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2328   (exit $ac_status); } &&
    2329      { ac_try='test -z "$ac_c_werror_flag"
    2330              || test ! -s conftest.err'
    2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2332   (eval $ac_try) 2>&5
    2333   ac_status=$?
    2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2335   (exit $ac_status); }; } &&
    2336      { ac_try='test -s conftest.$ac_objext'
    2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2338   (eval $ac_try) 2>&5
    2339   ac_status=$?
    2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2341   (exit $ac_status); }; }; then
    2342   ac_cv_prog_cc_stdc=$ac_arg
    2343 break
    2344 else
    2345   echo "$as_me: failed program was:" >&5
    2346 sed 's/^/| /' conftest.$ac_ext >&5
    2347 
    2348 fi
    2349 rm -f conftest.err conftest.$ac_objext
     3307  if ac_fn_c_try_compile "$LINENO"; then :
     3308  ac_cv_prog_cc_c89=$ac_arg
     3309fi
     3310rm -f core conftest.err conftest.$ac_objext
     3311  test "x$ac_cv_prog_cc_c89" != "xno" && break
    23503312done
    2351 rm -f conftest.$ac_ext conftest.$ac_objext
     3313rm -f conftest.$ac_ext
    23523314CC=$ac_save_CC
    23533315
    23543316fi
    2355 
    2356 case "x$ac_cv_prog_cc_stdc" in
    2357   x|xno)
    2358     echo "$as_me:$LINENO: result: none needed" >&5
    2359 echo "${ECHO_T}none needed" >&6 ;;
     3317# AC_CACHE_VAL
     3318case "x$ac_cv_prog_cc_c89" in
     3319  x)
     3320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3321$as_echo "none needed" >&6; } ;;
     3322  xno)
     3323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3324$as_echo "unsupported" >&6; } ;;
    23603325  *)
    2361     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2362 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2363     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3326    CC="$CC $ac_cv_prog_cc_c89"
     3327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3328$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    23643329esac
    2365 
    2366 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2367 # in C++ we need to declare it.  In case someone uses the same compiler
    2368 # for both compiling C and C++ we need to have the C++ compiler decide
    2369 # the declaration of exit, since it's the most demanding environment.
    2370 cat >conftest.$ac_ext <<_ACEOF
    2371 #ifndef __cplusplus
    2372   choke me
    2373 #endif
    2374 _ACEOF
    2375 rm -f conftest.$ac_objext
    2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2377   (eval $ac_compile) 2>conftest.er1
    2378   ac_status=$?
    2379   grep -v '^ *+' conftest.er1 >conftest.err
    2380   rm -f conftest.er1
    2381   cat conftest.err >&5
    2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2383   (exit $ac_status); } &&
    2384      { ac_try='test -z "$ac_c_werror_flag"
    2385              || test ! -s conftest.err'
    2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2387   (eval $ac_try) 2>&5
    2388   ac_status=$?
    2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2390   (exit $ac_status); }; } &&
    2391      { ac_try='test -s conftest.$ac_objext'
    2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2393   (eval $ac_try) 2>&5
    2394   ac_status=$?
    2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2396   (exit $ac_status); }; }; then
    2397   for ac_declaration in \
    2398    '' \
    2399    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2400    'extern "C" void std::exit (int); using std::exit;' \
    2401    'extern "C" void exit (int) throw ();' \
    2402    'extern "C" void exit (int);' \
    2403    'void exit (int);'
    2404 do
    2405   cat >conftest.$ac_ext <<_ACEOF
    2406 /* confdefs.h.  */
    2407 _ACEOF
    2408 cat confdefs.h >>conftest.$ac_ext
    2409 cat >>conftest.$ac_ext <<_ACEOF
    2410 /* end confdefs.h.  */
    2411 $ac_declaration
    2412 #include <stdlib.h>
    2413 int
    2414 main ()
    2415 {
    2416 exit (42);
    2417   ;
    2418   return 0;
    2419 }
    2420 _ACEOF
    2421 rm -f conftest.$ac_objext
    2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2423   (eval $ac_compile) 2>conftest.er1
    2424   ac_status=$?
    2425   grep -v '^ *+' conftest.er1 >conftest.err
    2426   rm -f conftest.er1
    2427   cat conftest.err >&5
    2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2429   (exit $ac_status); } &&
    2430      { ac_try='test -z "$ac_c_werror_flag"
    2431              || test ! -s conftest.err'
    2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2433   (eval $ac_try) 2>&5
    2434   ac_status=$?
    2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2436   (exit $ac_status); }; } &&
    2437      { ac_try='test -s conftest.$ac_objext'
    2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2439   (eval $ac_try) 2>&5
    2440   ac_status=$?
    2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2442   (exit $ac_status); }; }; then
    2443   :
    2444 else
    2445   echo "$as_me: failed program was:" >&5
    2446 sed 's/^/| /' conftest.$ac_ext >&5
    2447 
    2448 continue
    2449 fi
    2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2451   cat >conftest.$ac_ext <<_ACEOF
    2452 /* confdefs.h.  */
    2453 _ACEOF
    2454 cat confdefs.h >>conftest.$ac_ext
    2455 cat >>conftest.$ac_ext <<_ACEOF
    2456 /* end confdefs.h.  */
    2457 $ac_declaration
    2458 int
    2459 main ()
    2460 {
    2461 exit (42);
    2462   ;
    2463   return 0;
    2464 }
    2465 _ACEOF
    2466 rm -f conftest.$ac_objext
    2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2468   (eval $ac_compile) 2>conftest.er1
    2469   ac_status=$?
    2470   grep -v '^ *+' conftest.er1 >conftest.err
    2471   rm -f conftest.er1
    2472   cat conftest.err >&5
    2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2474   (exit $ac_status); } &&
    2475      { ac_try='test -z "$ac_c_werror_flag"
    2476              || test ! -s conftest.err'
    2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2478   (eval $ac_try) 2>&5
    2479   ac_status=$?
    2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2481   (exit $ac_status); }; } &&
    2482      { ac_try='test -s conftest.$ac_objext'
    2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2484   (eval $ac_try) 2>&5
    2485   ac_status=$?
    2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2487   (exit $ac_status); }; }; then
    2488   break
    2489 else
    2490   echo "$as_me: failed program was:" >&5
    2491 sed 's/^/| /' conftest.$ac_ext >&5
    2492 
    2493 fi
    2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2495 done
    2496 rm -f conftest*
    2497 if test -n "$ac_declaration"; then
    2498   echo '#ifdef __cplusplus' >>confdefs.h
    2499   echo $ac_declaration      >>confdefs.h
    2500   echo '#endif'             >>confdefs.h
    2501 fi
    2502 
    2503 else
    2504   echo "$as_me: failed program was:" >&5
    2505 sed 's/^/| /' conftest.$ac_ext >&5
    2506 
    2507 fi
    2508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3330if test "x$ac_cv_prog_cc_c89" != xno; then :
     3331
     3332fi
     3333
    25093334ac_ext=c
    25103335ac_cpp='$CPP $CPPFLAGS'
     
    25133338ac_compiler_gnu=$ac_cv_c_compiler_gnu
    25143339
    2515 ac_ext=cc
     3340ac_ext=cpp
    25163341ac_cpp='$CXXCPP $CPPFLAGS'
    25173342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    25183343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    25193344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2520 if test -n "$ac_tool_prefix"; then
    2521   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3345if test -z "$CXX"; then
     3346  if test -n "$CCC"; then
     3347    CXX=$CCC
     3348  else
     3349    if test -n "$ac_tool_prefix"; then
     3350  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25223351  do
    25233352    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    25243353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2527 if test "${ac_cv_prog_CXX+set}" = set; then
    2528   echo $ECHO_N "(cached) $ECHO_C" >&6
     3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3355$as_echo_n "checking for $ac_word... " >&6; }
     3356if test "${ac_cv_prog_CXX+set}" = set; then :
     3357  $as_echo_n "(cached) " >&6
    25293358else
    25303359  if test -n "$CXX"; then
     
    25363365  IFS=$as_save_IFS
    25373366  test -z "$as_dir" && as_dir=.
    2538   for ac_exec_ext in '' $ac_executable_extensions; do
    2539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3367    for ac_exec_ext in '' $ac_executable_extensions; do
     3368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25403369    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25423371    break 2
    25433372  fi
    25443373done
    2545 done
     3374  done
     3375IFS=$as_save_IFS
    25463376
    25473377fi
     
    25493379CXX=$ac_cv_prog_CXX
    25503380if test -n "$CXX"; then
    2551   echo "$as_me:$LINENO: result: $CXX" >&5
    2552 echo "${ECHO_T}$CXX" >&6
    2553 else
    2554   echo "$as_me:$LINENO: result: no" >&5
    2555 echo "${ECHO_T}no" >&6
    2556 fi
     3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     3382$as_echo "$CXX" >&6; }
     3383else
     3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3385$as_echo "no" >&6; }
     3386fi
     3387
    25573388
    25583389    test -n "$CXX" && break
     
    25613392if test -z "$CXX"; then
    25623393  ac_ct_CXX=$CXX
    2563   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3394  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25643395do
    25653396  # Extract the first word of "$ac_prog", so it can be a program name with args.
    25663397set dummy $ac_prog; ac_word=$2
    2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2569 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2570   echo $ECHO_N "(cached) $ECHO_C" >&6
     3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3399$as_echo_n "checking for $ac_word... " >&6; }
     3400if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     3401  $as_echo_n "(cached) " >&6
    25713402else
    25723403  if test -n "$ac_ct_CXX"; then
     
    25783409  IFS=$as_save_IFS
    25793410  test -z "$as_dir" && as_dir=.
    2580   for ac_exec_ext in '' $ac_executable_extensions; do
    2581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3411    for ac_exec_ext in '' $ac_executable_extensions; do
     3412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25823413    ac_cv_prog_ac_ct_CXX="$ac_prog"
    2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25843415    break 2
    25853416  fi
    25863417done
    2587 done
     3418  done
     3419IFS=$as_save_IFS
    25883420
    25893421fi
     
    25913423ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    25923424if test -n "$ac_ct_CXX"; then
    2593   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2594 echo "${ECHO_T}$ac_ct_CXX" >&6
    2595 else
    2596   echo "$as_me:$LINENO: result: no" >&5
    2597 echo "${ECHO_T}no" >&6
    2598 fi
     3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     3426$as_echo "$ac_ct_CXX" >&6; }
     3427else
     3428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3429$as_echo "no" >&6; }
     3430fi
     3431
    25993432
    26003433  test -n "$ac_ct_CXX" && break
    26013434done
    2602 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    2603 
    2604   CXX=$ac_ct_CXX
    2605 fi
    2606 
    2607 
     3435
     3436  if test "x$ac_ct_CXX" = x; then
     3437    CXX="g++"
     3438  else
     3439    case $cross_compiling:$ac_tool_warned in
     3440yes:)
     3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3443ac_tool_warned=yes ;;
     3444esac
     3445    CXX=$ac_ct_CXX
     3446  fi
     3447fi
     3448
     3449  fi
     3450fi
    26083451# Provide some information about the compiler.
    2609 echo "$as_me:$LINENO:" \
    2610      "checking for C++ compiler version" >&5
    2611 ac_compiler=`set X $ac_compile; echo $2`
    2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2613   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     3453set X $ac_compile
     3454ac_compiler=$2
     3455for ac_option in --version -v -V -qversion; do
     3456  { { ac_try="$ac_compiler $ac_option >&5"
     3457case "(($ac_try" in
     3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3459  *) ac_try_echo=$ac_try;;
     3460esac
     3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3462$as_echo "$ac_try_echo"; } >&5
     3463  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    26143464  ac_status=$?
    2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2616   (exit $ac_status); }
    2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2618   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2619   ac_status=$?
    2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2621   (exit $ac_status); }
    2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2623   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2624   ac_status=$?
    2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2626   (exit $ac_status); }
    2627 
    2628 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2629 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2630 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2631   echo $ECHO_N "(cached) $ECHO_C" >&6
    2632 else
    2633   cat >conftest.$ac_ext <<_ACEOF
    2634 /* confdefs.h.  */
    2635 _ACEOF
    2636 cat confdefs.h >>conftest.$ac_ext
    2637 cat >>conftest.$ac_ext <<_ACEOF
     3465  if test -s conftest.err; then
     3466    sed '10a\
     3467... rest of stderr output deleted ...
     3468         10q' conftest.err >conftest.er1
     3469    cat conftest.er1 >&5
     3470  fi
     3471  rm -f conftest.er1 conftest.err
     3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3473  test $ac_status = 0; }
     3474done
     3475
     3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     3477$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3478if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3479  $as_echo_n "(cached) " >&6
     3480else
     3481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26383482/* end confdefs.h.  */
    26393483
     
    26493493}
    26503494_ACEOF
    2651 rm -f conftest.$ac_objext
    2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2653   (eval $ac_compile) 2>conftest.er1
    2654   ac_status=$?
    2655   grep -v '^ *+' conftest.er1 >conftest.err
    2656   rm -f conftest.er1
    2657   cat conftest.err >&5
    2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2659   (exit $ac_status); } &&
    2660      { ac_try='test -z "$ac_cxx_werror_flag"
    2661              || test ! -s conftest.err'
    2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2663   (eval $ac_try) 2>&5
    2664   ac_status=$?
    2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2666   (exit $ac_status); }; } &&
    2667      { ac_try='test -s conftest.$ac_objext'
    2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2669   (eval $ac_try) 2>&5
    2670   ac_status=$?
    2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2672   (exit $ac_status); }; }; then
     3495if ac_fn_cxx_try_compile "$LINENO"; then :
    26733496  ac_compiler_gnu=yes
    26743497else
    2675   echo "$as_me: failed program was:" >&5
    2676 sed 's/^/| /' conftest.$ac_ext >&5
    2677 
    2678 ac_compiler_gnu=no
    2679 fi
    2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3498  ac_compiler_gnu=no
     3499fi
     3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    26813501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    26823502
    26833503fi
    2684 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2686 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     3505$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3506if test $ac_compiler_gnu = yes; then
     3507  GXX=yes
     3508else
     3509  GXX=
     3510fi
    26873511ac_test_CXXFLAGS=${CXXFLAGS+set}
    26883512ac_save_CXXFLAGS=$CXXFLAGS
    2689 CXXFLAGS="-g"
    2690 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2691 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2692 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2693   echo $ECHO_N "(cached) $ECHO_C" >&6
    2694 else
    2695   cat >conftest.$ac_ext <<_ACEOF
    2696 /* confdefs.h.  */
    2697 _ACEOF
    2698 cat confdefs.h >>conftest.$ac_ext
    2699 cat >>conftest.$ac_ext <<_ACEOF
     3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     3514$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3515if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3516  $as_echo_n "(cached) " >&6
     3517else
     3518  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3519   ac_cxx_werror_flag=yes
     3520   ac_cv_prog_cxx_g=no
     3521   CXXFLAGS="-g"
     3522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    27003523/* end confdefs.h.  */
    27013524
     
    27083531}
    27093532_ACEOF
    2710 rm -f conftest.$ac_objext
    2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2712   (eval $ac_compile) 2>conftest.er1
    2713   ac_status=$?
    2714   grep -v '^ *+' conftest.er1 >conftest.err
    2715   rm -f conftest.er1
    2716   cat conftest.err >&5
    2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2718   (exit $ac_status); } &&
    2719      { ac_try='test -z "$ac_cxx_werror_flag"
    2720              || test ! -s conftest.err'
    2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2722   (eval $ac_try) 2>&5
    2723   ac_status=$?
    2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2725   (exit $ac_status); }; } &&
    2726      { ac_try='test -s conftest.$ac_objext'
    2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2728   (eval $ac_try) 2>&5
    2729   ac_status=$?
    2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2731   (exit $ac_status); }; }; then
     3533if ac_fn_cxx_try_compile "$LINENO"; then :
    27323534  ac_cv_prog_cxx_g=yes
    27333535else
    2734   echo "$as_me: failed program was:" >&5
    2735 sed 's/^/| /' conftest.$ac_ext >&5
    2736 
    2737 ac_cv_prog_cxx_g=no
    2738 fi
    2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2740 fi
    2741 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3536  CXXFLAGS=""
     3537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3538/* end confdefs.h.  */
     3539
     3540int
     3541main ()
     3542{
     3543
     3544  ;
     3545  return 0;
     3546}
     3547_ACEOF
     3548if ac_fn_cxx_try_compile "$LINENO"; then :
     3549
     3550else
     3551  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3552     CXXFLAGS="-g"
     3553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3554/* end confdefs.h.  */
     3555
     3556int
     3557main ()
     3558{
     3559
     3560  ;
     3561  return 0;
     3562}
     3563_ACEOF
     3564if ac_fn_cxx_try_compile "$LINENO"; then :
     3565  ac_cv_prog_cxx_g=yes
     3566fi
     3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3568fi
     3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3570fi
     3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3572   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3573fi
     3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     3575$as_echo "$ac_cv_prog_cxx_g" >&6; }
    27433576if test "$ac_test_CXXFLAGS" = set; then
    27443577  CXXFLAGS=$ac_save_CXXFLAGS
     
    27563589  fi
    27573590fi
    2758 for ac_declaration in \
    2759    '' \
    2760    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2761    'extern "C" void std::exit (int); using std::exit;' \
    2762    'extern "C" void exit (int) throw ();' \
    2763    'extern "C" void exit (int);' \
    2764    'void exit (int);'
    2765 do
    2766   cat >conftest.$ac_ext <<_ACEOF
    2767 /* confdefs.h.  */
    2768 _ACEOF
    2769 cat confdefs.h >>conftest.$ac_ext
    2770 cat >>conftest.$ac_ext <<_ACEOF
    2771 /* end confdefs.h.  */
    2772 $ac_declaration
    2773 #include <stdlib.h>
    2774 int
    2775 main ()
    2776 {
    2777 exit (42);
    2778   ;
    2779   return 0;
    2780 }
    2781 _ACEOF
    2782 rm -f conftest.$ac_objext
    2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2784   (eval $ac_compile) 2>conftest.er1
    2785   ac_status=$?
    2786   grep -v '^ *+' conftest.er1 >conftest.err
    2787   rm -f conftest.er1
    2788   cat conftest.err >&5
    2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2790   (exit $ac_status); } &&
    2791      { ac_try='test -z "$ac_cxx_werror_flag"
    2792              || test ! -s conftest.err'
    2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2794   (eval $ac_try) 2>&5
    2795   ac_status=$?
    2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2797   (exit $ac_status); }; } &&
    2798      { ac_try='test -s conftest.$ac_objext'
    2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2800   (eval $ac_try) 2>&5
    2801   ac_status=$?
    2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2803   (exit $ac_status); }; }; then
    2804   :
    2805 else
    2806   echo "$as_me: failed program was:" >&5
    2807 sed 's/^/| /' conftest.$ac_ext >&5
    2808 
    2809 continue
    2810 fi
    2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2812   cat >conftest.$ac_ext <<_ACEOF
    2813 /* confdefs.h.  */
    2814 _ACEOF
    2815 cat confdefs.h >>conftest.$ac_ext
    2816 cat >>conftest.$ac_ext <<_ACEOF
    2817 /* end confdefs.h.  */
    2818 $ac_declaration
    2819 int
    2820 main ()
    2821 {
    2822 exit (42);
    2823   ;
    2824   return 0;
    2825 }
    2826 _ACEOF
    2827 rm -f conftest.$ac_objext
    2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2829   (eval $ac_compile) 2>conftest.er1
    2830   ac_status=$?
    2831   grep -v '^ *+' conftest.er1 >conftest.err
    2832   rm -f conftest.er1
    2833   cat conftest.err >&5
    2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2835   (exit $ac_status); } &&
    2836      { ac_try='test -z "$ac_cxx_werror_flag"
    2837              || test ! -s conftest.err'
    2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2839   (eval $ac_try) 2>&5
    2840   ac_status=$?
    2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2842   (exit $ac_status); }; } &&
    2843      { ac_try='test -s conftest.$ac_objext'
    2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2845   (eval $ac_try) 2>&5
    2846   ac_status=$?
    2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2848   (exit $ac_status); }; }; then
    2849   break
    2850 else
    2851   echo "$as_me: failed program was:" >&5
    2852 sed 's/^/| /' conftest.$ac_ext >&5
    2853 
    2854 fi
    2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2856 done
    2857 rm -f conftest*
    2858 if test -n "$ac_declaration"; then
    2859   echo '#ifdef __cplusplus' >>confdefs.h
    2860   echo $ac_declaration      >>confdefs.h
    2861   echo '#endif'             >>confdefs.h
    2862 fi
    2863 
    28643591ac_ext=c
    28653592ac_cpp='$CPP $CPPFLAGS'
     
    28683595ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28693596
    2870 for ac_prog in gawk mawk nawk awk
     3597if test $ENABLE_JAVA = "1" ; then
     3598
     3599
     3600if test "x$JAVA" = x ; then
     3601        if test x$JAVAPREFIX = x; then
     3602        test x$JAVA = x && for ac_prog in java$EXEEXT
    28713603do
    28723604  # Extract the first word of "$ac_prog", so it can be a program name with args.
    28733605set dummy $ac_prog; ac_word=$2
    2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2876 if test "${ac_cv_prog_AWK+set}" = set; then
    2877   echo $ECHO_N "(cached) $ECHO_C" >&6
    2878 else
    2879   if test -n "$AWK"; then
    2880   ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3607$as_echo_n "checking for $ac_word... " >&6; }
     3608if test "${ac_cv_prog_JAVA+set}" = set; then :
     3609  $as_echo_n "(cached) " >&6
     3610else
     3611  if test -n "$JAVA"; then
     3612  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
    28813613else
    28823614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28853617  IFS=$as_save_IFS
    28863618  test -z "$as_dir" && as_dir=.
    2887   for ac_exec_ext in '' $ac_executable_extensions; do
    2888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2889     ac_cv_prog_AWK="$ac_prog"
    2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3619    for ac_exec_ext in '' $ac_executable_extensions; do
     3620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3621    ac_cv_prog_JAVA="$ac_prog"
     3622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28913623    break 2
    28923624  fi
    28933625done
     3626  done
     3627IFS=$as_save_IFS
     3628
     3629fi
     3630fi
     3631JAVA=$ac_cv_prog_JAVA
     3632if test -n "$JAVA"; then
     3633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3634$as_echo "$JAVA" >&6; }
     3635else
     3636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3637$as_echo "no" >&6; }
     3638fi
     3639
     3640
     3641  test -n "$JAVA" && break
    28943642done
    28953643
    2896 fi
    2897 fi
    2898 AWK=$ac_cv_prog_AWK
    2899 if test -n "$AWK"; then
    2900   echo "$as_me:$LINENO: result: $AWK" >&5
    2901 echo "${ECHO_T}$AWK" >&6
    2902 else
    2903   echo "$as_me:$LINENO: result: no" >&5
    2904 echo "${ECHO_T}no" >&6
    2905 fi
    2906 
    2907   test -n "$AWK" && break
    2908 done
    2909 
    2910 for ac_prog in 'bison -y' byacc
     3644    else
     3645        test x$JAVA = x && for ac_prog in java$EXEEXT
    29113646do
    29123647  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29133648set dummy $ac_prog; ac_word=$2
    2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2916 if test "${ac_cv_prog_YACC+set}" = set; then
    2917   echo $ECHO_N "(cached) $ECHO_C" >&6
    2918 else
    2919   if test -n "$YACC"; then
    2920   ac_cv_prog_YACC="$YACC" # Let the user override the test.
     3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3650$as_echo_n "checking for $ac_word... " >&6; }
     3651if test "${ac_cv_prog_JAVA+set}" = set; then :
     3652  $as_echo_n "(cached) " >&6
     3653else
     3654  if test -n "$JAVA"; then
     3655  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
    29213656else
    29223657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    29253660  IFS=$as_save_IFS
    29263661  test -z "$as_dir" && as_dir=.
    2927   for ac_exec_ext in '' $ac_executable_extensions; do
    2928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2929     ac_cv_prog_YACC="$ac_prog"
    2930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3662    for ac_exec_ext in '' $ac_executable_extensions; do
     3663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3664    ac_cv_prog_JAVA="$ac_prog"
     3665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    29313666    break 2
    29323667  fi
    29333668done
     3669  done
     3670IFS=$as_save_IFS
     3671
     3672fi
     3673fi
     3674JAVA=$ac_cv_prog_JAVA
     3675if test -n "$JAVA"; then
     3676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3677$as_echo "$JAVA" >&6; }
     3678else
     3679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3680$as_echo "no" >&6; }
     3681fi
     3682
     3683
     3684  test -n "$JAVA" && break
    29343685done
     3686test -n "$JAVA" || JAVA="$JAVAPREFIX"
     3687
     3688    fi
     3689    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     3690fi
     3691
     3692
     3693# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     3694set dummy uudecode$EXEEXT; ac_word=$2
     3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3696$as_echo_n "checking for $ac_word... " >&6; }
     3697if test "${ac_cv_prog_uudecode+set}" = set; then :
     3698  $as_echo_n "(cached) " >&6
     3699else
     3700  if test -n "$uudecode"; then
     3701  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     3702else
     3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3704for as_dir in $PATH
     3705do
     3706  IFS=$as_save_IFS
     3707  test -z "$as_dir" && as_dir=.
     3708    for ac_exec_ext in '' $ac_executable_extensions; do
     3709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3710    ac_cv_prog_uudecode="yes"
     3711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3712    break 2
     3713  fi
     3714done
     3715  done
     3716IFS=$as_save_IFS
     3717
     3718fi
     3719fi
     3720uudecode=$ac_cv_prog_uudecode
     3721if test -n "$uudecode"; then
     3722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     3723$as_echo "$uudecode" >&6; }
     3724else
     3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3726$as_echo "no" >&6; }
     3727fi
     3728
     3729
     3730if test x$uudecode = xyes; then
     3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     3732$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     3733if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     3734  $as_echo_n "(cached) " >&6
     3735else
     3736
     3737cat << \EOF > Test.uue
     3738begin-base64 644 Test.class
     3739yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     3740bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     3741bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     3742YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     3743aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     3744AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     3745AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     3746====
     3747EOF
     3748if uudecode$EXEEXT Test.uue; then
     3749        ac_cv_prog_uudecode_base64=yes
     3750else
     3751        echo "configure: 3751: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     3752        echo "configure: failed file was:" >&5
     3753        cat Test.uue >&5
     3754        ac_cv_prog_uudecode_base64=no
     3755fi
     3756rm -f Test.uue
     3757fi
     3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     3759$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     3760fi
     3761if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3762        rm -f Test.class
     3763        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     3764$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     3765        if test x$ac_cv_prog_javac_works = xno; then
     3766                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     3767        fi
     3768        if test x$ac_cv_prog_javac_works = x; then
     3769
     3770if test "x$JAVAC" = x ; then
     3771    if test "x$JAVAPREFIX" = x; then
     3772    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3773do
     3774  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3775set dummy $ac_prog; ac_word=$2
     3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3777$as_echo_n "checking for $ac_word... " >&6; }
     3778if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3779  $as_echo_n "(cached) " >&6
     3780else
     3781  if test -n "$JAVAC"; then
     3782  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3783else
     3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3785for as_dir in $PATH
     3786do
     3787  IFS=$as_save_IFS
     3788  test -z "$as_dir" && as_dir=.
     3789    for ac_exec_ext in '' $ac_executable_extensions; do
     3790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3791    ac_cv_prog_JAVAC="$ac_prog"
     3792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3793    break 2
     3794  fi
     3795done
     3796  done
     3797IFS=$as_save_IFS
     3798
     3799fi
     3800fi
     3801JAVAC=$ac_cv_prog_JAVAC
     3802if test -n "$JAVAC"; then
     3803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3804$as_echo "$JAVAC" >&6; }
     3805else
     3806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3807$as_echo "no" >&6; }
     3808fi
     3809
     3810
     3811  test -n "$JAVAC" && break
     3812done
     3813
     3814  else
     3815    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3816do
     3817  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3818set dummy $ac_prog; ac_word=$2
     3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3820$as_echo_n "checking for $ac_word... " >&6; }
     3821if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3822  $as_echo_n "(cached) " >&6
     3823else
     3824  if test -n "$JAVAC"; then
     3825  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3826else
     3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3828for as_dir in $PATH
     3829do
     3830  IFS=$as_save_IFS
     3831  test -z "$as_dir" && as_dir=.
     3832    for ac_exec_ext in '' $ac_executable_extensions; do
     3833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3834    ac_cv_prog_JAVAC="$ac_prog"
     3835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3836    break 2
     3837  fi
     3838done
     3839  done
     3840IFS=$as_save_IFS
     3841
     3842fi
     3843fi
     3844JAVAC=$ac_cv_prog_JAVAC
     3845if test -n "$JAVAC"; then
     3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3847$as_echo "$JAVAC" >&6; }
     3848else
     3849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3850$as_echo "no" >&6; }
     3851fi
     3852
     3853
     3854  test -n "$JAVAC" && break
     3855done
     3856test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3857
     3858  fi
     3859  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3860else
     3861  echo "Checking for javac... $JAVAC"
     3862fi
     3863
     3864
     3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3866$as_echo_n "checking if $JAVAC works... " >&6; }
     3867if test "${ac_cv_prog_javac_works+set}" = set; then :
     3868  $as_echo_n "(cached) " >&6
     3869else
     3870
     3871JAVA_TEST=Test.java
     3872CLASS_TEST=Test.class
     3873cat << \EOF > $JAVA_TEST
     3874/* #line 3874 "configure" */
     3875public class Test {
     3876}
     3877EOF
     3878if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3879  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3880  (eval $ac_try) 2>&5
     3881  ac_status=$?
     3882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3883  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3884  ac_cv_prog_javac_works=yes
     3885else
     3886  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3887  echo "configure: failed program was:" >&5
     3888  cat $JAVA_TEST >&5
     3889fi
     3890rm -f $JAVA_TEST $CLASS_TEST
     3891
     3892fi
     3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     3894$as_echo "$ac_cv_prog_javac_works" >&6; }
     3895if test "x$JAVACFLAGS" = x ; then
     3896  JAVACFLAGS="-source 1.4 -target 1.4"
     3897fi
     3898
     3899
     3900
     3901        fi
     3902fi
     3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     3904$as_echo_n "checking if $JAVA works... " >&6; }
     3905if test "${ac_cv_prog_java_works+set}" = set; then :
     3906  $as_echo_n "(cached) " >&6
     3907else
     3908
     3909JAVA_TEST=Test.java
     3910CLASS_TEST=Test.class
     3911TEST=Test
     3912cat << \EOF > $JAVA_TEST
     3913/* [#]line 3913 "configure" */
     3914public class Test {
     3915public static void main (String args[]) {
     3916        System.exit (0);
     3917} }
     3918EOF
     3919if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3920        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3921  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3922  (eval $ac_try) 2>&5
     3923  ac_status=$?
     3924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3925  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     3926                :
     3927        else
     3928          echo "configure: failed program was:" >&5
     3929          cat $JAVA_TEST >&5
     3930          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3931        fi
     3932fi
     3933if { ac_try='$JAVA $JAVAFLAGS $TEST'
     3934  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3935  (eval $ac_try) 2>&5
     3936  ac_status=$?
     3937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3938  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3939  ac_cv_prog_java_works=yes
     3940else
     3941  echo "configure: failed program was:" >&5
     3942  cat $JAVA_TEST >&5
     3943  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3944fi
     3945rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     3946
     3947fi
     3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     3949$as_echo "$ac_cv_prog_java_works" >&6; }
     3950
     3951
     3952
     3953
     3954if test "x$JAVAC" = x ; then
     3955    if test "x$JAVAPREFIX" = x; then
     3956    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3957do
     3958  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3959set dummy $ac_prog; ac_word=$2
     3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3961$as_echo_n "checking for $ac_word... " >&6; }
     3962if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3963  $as_echo_n "(cached) " >&6
     3964else
     3965  if test -n "$JAVAC"; then
     3966  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3967else
     3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3969for as_dir in $PATH
     3970do
     3971  IFS=$as_save_IFS
     3972  test -z "$as_dir" && as_dir=.
     3973    for ac_exec_ext in '' $ac_executable_extensions; do
     3974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3975    ac_cv_prog_JAVAC="$ac_prog"
     3976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3977    break 2
     3978  fi
     3979done
     3980  done
     3981IFS=$as_save_IFS
     3982
     3983fi
     3984fi
     3985JAVAC=$ac_cv_prog_JAVAC
     3986if test -n "$JAVAC"; then
     3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3988$as_echo "$JAVAC" >&6; }
     3989else
     3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3991$as_echo "no" >&6; }
     3992fi
     3993
     3994
     3995  test -n "$JAVAC" && break
     3996done
     3997
     3998  else
     3999    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4000do
     4001  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4002set dummy $ac_prog; ac_word=$2
     4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4004$as_echo_n "checking for $ac_word... " >&6; }
     4005if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4006  $as_echo_n "(cached) " >&6
     4007else
     4008  if test -n "$JAVAC"; then
     4009  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4010else
     4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4012for as_dir in $PATH
     4013do
     4014  IFS=$as_save_IFS
     4015  test -z "$as_dir" && as_dir=.
     4016    for ac_exec_ext in '' $ac_executable_extensions; do
     4017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4018    ac_cv_prog_JAVAC="$ac_prog"
     4019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4020    break 2
     4021  fi
     4022done
     4023  done
     4024IFS=$as_save_IFS
     4025
     4026fi
     4027fi
     4028JAVAC=$ac_cv_prog_JAVAC
     4029if test -n "$JAVAC"; then
     4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4031$as_echo "$JAVAC" >&6; }
     4032else
     4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4034$as_echo "no" >&6; }
     4035fi
     4036
     4037
     4038  test -n "$JAVAC" && break
     4039done
     4040test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     4041
     4042  fi
     4043  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4044else
     4045  echo "Checking for javac... $JAVAC"
     4046fi
     4047
     4048
     4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     4050$as_echo_n "checking if $JAVAC works... " >&6; }
     4051if test "${ac_cv_prog_javac_works+set}" = set; then :
     4052  $as_echo_n "(cached) " >&6
     4053else
     4054
     4055JAVA_TEST=Test.java
     4056CLASS_TEST=Test.class
     4057cat << \EOF > $JAVA_TEST
     4058/* #line 4058 "configure" */
     4059public class Test {
     4060}
     4061EOF
     4062if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4063  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4064  (eval $ac_try) 2>&5
     4065  ac_status=$?
     4066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4067  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4068  ac_cv_prog_javac_works=yes
     4069else
     4070  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4071  echo "configure: failed program was:" >&5
     4072  cat $JAVA_TEST >&5
     4073fi
     4074rm -f $JAVA_TEST $CLASS_TEST
     4075
     4076fi
     4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4078$as_echo "$ac_cv_prog_javac_works" >&6; }
     4079if test "x$JAVACFLAGS" = x ; then
     4080  JAVACFLAGS="-source 1.4 -target 1.4"
     4081fi
     4082
     4083
     4084
     4085fi
     4086for ac_prog in gawk mawk nawk awk
     4087do
     4088  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4089set dummy $ac_prog; ac_word=$2
     4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4091$as_echo_n "checking for $ac_word... " >&6; }
     4092if test "${ac_cv_prog_AWK+set}" = set; then :
     4093  $as_echo_n "(cached) " >&6
     4094else
     4095  if test -n "$AWK"; then
     4096  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     4097else
     4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4099for as_dir in $PATH
     4100do
     4101  IFS=$as_save_IFS
     4102  test -z "$as_dir" && as_dir=.
     4103    for ac_exec_ext in '' $ac_executable_extensions; do
     4104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4105    ac_cv_prog_AWK="$ac_prog"
     4106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4107    break 2
     4108  fi
     4109done
     4110  done
     4111IFS=$as_save_IFS
     4112
     4113fi
     4114fi
     4115AWK=$ac_cv_prog_AWK
     4116if test -n "$AWK"; then
     4117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     4118$as_echo "$AWK" >&6; }
     4119else
     4120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4121$as_echo "no" >&6; }
     4122fi
     4123
     4124
     4125  test -n "$AWK" && break
     4126done
     4127
     4128for ac_prog in 'bison -y' byacc
     4129do
     4130  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4131set dummy $ac_prog; ac_word=$2
     4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4133$as_echo_n "checking for $ac_word... " >&6; }
     4134if test "${ac_cv_prog_YACC+set}" = set; then :
     4135  $as_echo_n "(cached) " >&6
     4136else
     4137  if test -n "$YACC"; then
     4138  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     4139else
     4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4141for as_dir in $PATH
     4142do
     4143  IFS=$as_save_IFS
     4144  test -z "$as_dir" && as_dir=.
     4145    for ac_exec_ext in '' $ac_executable_extensions; do
     4146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4147    ac_cv_prog_YACC="$ac_prog"
     4148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4149    break 2
     4150  fi
     4151done
     4152  done
     4153IFS=$as_save_IFS
    29354154
    29364155fi
     
    29384157YACC=$ac_cv_prog_YACC
    29394158if test -n "$YACC"; then
    2940   echo "$as_me:$LINENO: result: $YACC" >&5
    2941 echo "${ECHO_T}$YACC" >&6
    2942 else
    2943   echo "$as_me:$LINENO: result: no" >&5
    2944 echo "${ECHO_T}no" >&6
    2945 fi
     4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     4160$as_echo "$YACC" >&6; }
     4161else
     4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4163$as_echo "no" >&6; }
     4164fi
     4165
    29464166
    29474167  test -n "$YACC" && break
     
    29504170
    29514171ac_aux_dir=
    2952 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    2953   if test -f $ac_dir/install-sh; then
     4172for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     4173  if test -f "$ac_dir/install-sh"; then
    29544174    ac_aux_dir=$ac_dir
    29554175    ac_install_sh="$ac_aux_dir/install-sh -c"
    29564176    break
    2957   elif test -f $ac_dir/install.sh; then
     4177  elif test -f "$ac_dir/install.sh"; then
    29584178    ac_aux_dir=$ac_dir
    29594179    ac_install_sh="$ac_aux_dir/install.sh -c"
    29604180    break
    2961   elif test -f $ac_dir/shtool; then
     4181  elif test -f "$ac_dir/shtool"; then
    29624182    ac_aux_dir=$ac_dir
    29634183    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    29664186done
    29674187if test -z "$ac_aux_dir"; then
    2968   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2969 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2970    { (exit 1); exit 1; }; }
    2971 fi
    2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2974 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     4188  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     4189fi
     4190
     4191# These three variables are undocumented and unsupported,
     4192# and are intended to be withdrawn in a future Autoconf release.
     4193# They can cause serious problems if a builder's source tree is in a directory
     4194# whose full name contains unusual characters.
     4195ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     4196ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     4197ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     4198
    29754199
    29764200# Make sure we can run config.sub.
    2977 $ac_config_sub sun4 >/dev/null 2>&1 ||
    2978   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    2979 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2980    { (exit 1); exit 1; }; }
    2981 
    2982 echo "$as_me:$LINENO: checking build system type" >&5
    2983 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2984 if test "${ac_cv_build+set}" = set; then
    2985   echo $ECHO_N "(cached) $ECHO_C" >&6
    2986 else
    2987   ac_cv_build_alias=$build_alias
    2988 test -z "$ac_cv_build_alias" &&
    2989   ac_cv_build_alias=`$ac_config_guess`
    2990 test -z "$ac_cv_build_alias" &&
    2991   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    2992 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2993    { (exit 1); exit 1; }; }
    2994 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2995   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    2996 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    2997    { (exit 1); exit 1; }; }
    2998 
    2999 fi
    3000 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    3001 echo "${ECHO_T}$ac_cv_build" >&6
     4201$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     4202  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     4203
     4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     4205$as_echo_n "checking build system type... " >&6; }
     4206if test "${ac_cv_build+set}" = set; then :
     4207  $as_echo_n "(cached) " >&6
     4208else
     4209  ac_build_alias=$build_alias
     4210test "x$ac_build_alias" = x &&
     4211  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     4212test "x$ac_build_alias" = x &&
     4213  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     4214ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     4215  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     4216
     4217fi
     4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     4219$as_echo "$ac_cv_build" >&6; }
     4220case $ac_cv_build in
     4221*-*-*) ;;
     4222*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     4223esac
    30024224build=$ac_cv_build
    3003 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3004 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3005 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3006 
    3007 
    3008 echo "$as_me:$LINENO: checking host system type" >&5
    3009 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    3010 if test "${ac_cv_host+set}" = set; then
    3011   echo $ECHO_N "(cached) $ECHO_C" >&6
    3012 else
    3013   ac_cv_host_alias=$host_alias
    3014 test -z "$ac_cv_host_alias" &&
    3015   ac_cv_host_alias=$ac_cv_build_alias
    3016 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    3017   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    3018 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    3019    { (exit 1); exit 1; }; }
    3020 
    3021 fi
    3022 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    3023 echo "${ECHO_T}$ac_cv_host" >&6
     4225ac_save_IFS=$IFS; IFS='-'
     4226set x $ac_cv_build
     4227shift
     4228build_cpu=$1
     4229build_vendor=$2
     4230shift; shift
     4231# Remember, the first character of IFS is used to create $*,
     4232# except with old shells:
     4233build_os=$*
     4234IFS=$ac_save_IFS
     4235case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     4236
     4237
     4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     4239$as_echo_n "checking host system type... " >&6; }
     4240if test "${ac_cv_host+set}" = set; then :
     4241  $as_echo_n "(cached) " >&6
     4242else
     4243  if test "x$host_alias" = x; then
     4244  ac_cv_host=$ac_cv_build
     4245else
     4246  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     4247    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     4248fi
     4249
     4250fi
     4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     4252$as_echo "$ac_cv_host" >&6; }
     4253case $ac_cv_host in
     4254*-*-*) ;;
     4255*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     4256esac
    30244257host=$ac_cv_host
    3025 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3026 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3027 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3028 
    3029 
    3030 echo "$as_me:$LINENO: checking target system type" >&5
    3031 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    3032 if test "${ac_cv_target+set}" = set; then
    3033   echo $ECHO_N "(cached) $ECHO_C" >&6
    3034 else
    3035   ac_cv_target_alias=$target_alias
    3036 test "x$ac_cv_target_alias" = "x" &&
    3037   ac_cv_target_alias=$ac_cv_host_alias
    3038 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    3039   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    3040 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    3041    { (exit 1); exit 1; }; }
    3042 
    3043 fi
    3044 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    3045 echo "${ECHO_T}$ac_cv_target" >&6
     4258ac_save_IFS=$IFS; IFS='-'
     4259set x $ac_cv_host
     4260shift
     4261host_cpu=$1
     4262host_vendor=$2
     4263shift; shift
     4264# Remember, the first character of IFS is used to create $*,
     4265# except with old shells:
     4266host_os=$*
     4267IFS=$ac_save_IFS
     4268case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     4269
     4270
     4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     4272$as_echo_n "checking target system type... " >&6; }
     4273if test "${ac_cv_target+set}" = set; then :
     4274  $as_echo_n "(cached) " >&6
     4275else
     4276  if test "x$target_alias" = x; then
     4277  ac_cv_target=$ac_cv_host
     4278else
     4279  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     4280    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     4281fi
     4282
     4283fi
     4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     4285$as_echo "$ac_cv_target" >&6; }
     4286case $ac_cv_target in
     4287*-*-*) ;;
     4288*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     4289esac
    30464290target=$ac_cv_target
    3047 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3048 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3049 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4291ac_save_IFS=$IFS; IFS='-'
     4292set x $ac_cv_target
     4293shift
     4294target_cpu=$1
     4295target_vendor=$2
     4296shift; shift
     4297# Remember, the first character of IFS is used to create $*,
     4298# except with old shells:
     4299target_os=$*
     4300IFS=$ac_save_IFS
     4301case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    30504302
    30514303
     
    30564308    NONENONEs,x,x, &&
    30574309  program_prefix=${target_alias}-
     4310
    30584311# Find a good install program.  We prefer a C program (faster),
    30594312# so one script is as good as another.  But avoid the broken or
     
    30694322# OS/2's system install, which has a completely different semantic
    30704323# ./install, which can be erroneously created by make from ./install.sh.
    3071 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    3072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     4324# Reject install programs that cannot install multiple files.
     4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     4326$as_echo_n "checking for a BSD-compatible install... " >&6; }
    30734327if test -z "$INSTALL"; then
    3074 if test "${ac_cv_path_install+set}" = set; then
    3075   echo $ECHO_N "(cached) $ECHO_C" >&6
     4328if test "${ac_cv_path_install+set}" = set; then :
     4329  $as_echo_n "(cached) " >&6
    30764330else
    30774331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    30804334  IFS=$as_save_IFS
    30814335  test -z "$as_dir" && as_dir=.
    3082   # Account for people who put trailing slashes in PATH elements.
    3083 case $as_dir/ in
    3084   ./ | .// | /cC/* | \
     4336    # Account for people who put trailing slashes in PATH elements.
     4337case $as_dir/ in #((
     4338  ./ | .// | /[cC]/* | \
    30854339  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3086   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     4340  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    30874341  /usr/ucb/* ) ;;
    30884342  *)
     
    30924346    for ac_prog in ginstall scoinst install; do
    30934347      for ac_exec_ext in '' $ac_executable_extensions; do
    3094     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4348    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    30954349      if test $ac_prog = install &&
    30964350        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    31024356        :
    31034357      else
    3104         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    3105         break 3
     4358        rm -rf conftest.one conftest.two conftest.dir
     4359        echo one > conftest.one
     4360        echo two > conftest.two
     4361        mkdir conftest.dir
     4362        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     4363          test -s conftest.one && test -s conftest.two &&
     4364          test -s conftest.dir/conftest.one &&
     4365          test -s conftest.dir/conftest.two
     4366        then
     4367          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     4368          break 3
     4369        fi
    31064370      fi
    31074371    fi
     
    31104374    ;;
    31114375esac
    3112 done
    3113 
     4376
     4377  done
     4378IFS=$as_save_IFS
     4379
     4380rm -rf conftest.one conftest.two conftest.dir
    31144381
    31154382fi
     
    31174384    INSTALL=$ac_cv_path_install
    31184385  else
    3119     # As a last resort, use the slow shell script.  We don't cache a
    3120     # path for INSTALL within a source directory, because that will
     4386    # As a last resort, use the slow shell script.  Don't cache a
     4387    # value for INSTALL within a source directory, because that will
    31214388    # break other packages using the cache if that directory is
    3122     # removed, or if the path is relative.
     4389    # removed, or if the value is a relative name.
    31234390    INSTALL=$ac_install_sh
    31244391  fi
    31254392fi
    3126 echo "$as_me:$LINENO: result: $INSTALL" >&5
    3127 echo "${ECHO_T}$INSTALL" >&6
     4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     4394$as_echo "$INSTALL" >&6; }
    31284395
    31294396# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    31354402test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    31364403
    3137 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     4405$as_echo_n "checking whether ln -s works... " >&6; }
    31394406LN_S=$as_ln_s
    31404407if test "$LN_S" = "ln -s"; then
    3141   echo "$as_me:$LINENO: result: yes" >&5
    3142 echo "${ECHO_T}yes" >&6
    3143 else
    3144   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3145 echo "${ECHO_T}no, using $LN_S" >&6
    3146 fi
    3147 
    3148 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    3150 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    3151 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    3152   echo $ECHO_N "(cached) $ECHO_C" >&6
     4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4409$as_echo "yes" >&6; }
     4410else
     4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     4412$as_echo "no, using $LN_S" >&6; }
     4413fi
     4414
     4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4416$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     4417set x ${MAKE-make}
     4418ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     4419if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     4420  $as_echo_n "(cached) " >&6
    31534421else
    31544422  cat >conftest.make <<\_ACEOF
     4423SHELL = /bin/sh
    31554424all:
    3156     @echo 'ac_maketemp="$(MAKE)"'
    3157 _ACEOF
    3158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3159 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    3160 if test -n "$ac_maketemp"; then
    3161   eval ac_cv_prog_make_${ac_make}_set=yes
    3162 else
    3163   eval ac_cv_prog_make_${ac_make}_set=no
    3164 fi
     4425    @echo '@@@%%%=$(MAKE)=@@@%%%'
     4426_ACEOF
     4427# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4428case `${MAKE-make} -f conftest.make 2>/dev/null` in
     4429  *@@@%%%=?*=@@@%%%*)
     4430    eval ac_cv_prog_make_${ac_make}_set=yes;;
     4431  *)
     4432    eval ac_cv_prog_make_${ac_make}_set=no;;
     4433esac
    31654434rm -f conftest.make
    31664435fi
    3167 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    3168   echo "$as_me:$LINENO: result: yes" >&5
    3169 echo "${ECHO_T}yes" >&6
     4436if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4438$as_echo "yes" >&6; }
    31704439  SET_MAKE=
    31714440else
    3172   echo "$as_me:$LINENO: result: no" >&5
    3173 echo "${ECHO_T}no" >&6
     4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4442$as_echo "no" >&6; }
    31744443  SET_MAKE="MAKE=${MAKE-make}"
    31754444fi
     
    31784447  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    31794448set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3180 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3182 if test "${ac_cv_prog_RANLIB+set}" = set; then
    3183   echo $ECHO_N "(cached) $ECHO_C" >&6
     4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4450$as_echo_n "checking for $ac_word... " >&6; }
     4451if test "${ac_cv_prog_RANLIB+set}" = set; then :
     4452  $as_echo_n "(cached) " >&6
    31844453else
    31854454  if test -n "$RANLIB"; then
     
    31914460  IFS=$as_save_IFS
    31924461  test -z "$as_dir" && as_dir=.
    3193   for ac_exec_ext in '' $ac_executable_extensions; do
    3194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4462    for ac_exec_ext in '' $ac_executable_extensions; do
     4463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    31954464    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31974466    break 2
    31984467  fi
    31994468done
    3200 done
     4469  done
     4470IFS=$as_save_IFS
    32014471
    32024472fi
     
    32044474RANLIB=$ac_cv_prog_RANLIB
    32054475if test -n "$RANLIB"; then
    3206   echo "$as_me:$LINENO: result: $RANLIB" >&5
    3207 echo "${ECHO_T}$RANLIB" >&6
    3208 else
    3209   echo "$as_me:$LINENO: result: no" >&5
    3210 echo "${ECHO_T}no" >&6
    3211 fi
     4476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     4477$as_echo "$RANLIB" >&6; }
     4478else
     4479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4480$as_echo "no" >&6; }
     4481fi
     4482
    32124483
    32134484fi
     
    32164487  # Extract the first word of "ranlib", so it can be a program name with args.
    32174488set dummy ranlib; ac_word=$2
    3218 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3220 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3221   echo $ECHO_N "(cached) $ECHO_C" >&6
     4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4490$as_echo_n "checking for $ac_word... " >&6; }
     4491if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     4492  $as_echo_n "(cached) " >&6
    32224493else
    32234494  if test -n "$ac_ct_RANLIB"; then
     
    32294500  IFS=$as_save_IFS
    32304501  test -z "$as_dir" && as_dir=.
    3231   for ac_exec_ext in '' $ac_executable_extensions; do
    3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4502    for ac_exec_ext in '' $ac_executable_extensions; do
     4503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    32334504    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    32354506    break 2
    32364507  fi
    32374508done
    3238 done
    3239 
    3240   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     4509  done
     4510IFS=$as_save_IFS
     4511
    32414512fi
    32424513fi
    32434514ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    32444515if test -n "$ac_ct_RANLIB"; then
    3245   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3246 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3247 else
    3248   echo "$as_me:$LINENO: result: no" >&5
    3249 echo "${ECHO_T}no" >&6
    3250 fi
    3251 
    3252   RANLIB=$ac_ct_RANLIB
     4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     4517$as_echo "$ac_ct_RANLIB" >&6; }
     4518else
     4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4520$as_echo "no" >&6; }
     4521fi
     4522
     4523  if test "x$ac_ct_RANLIB" = x; then
     4524    RANLIB=":"
     4525  else
     4526    case $cross_compiling:$ac_tool_warned in
     4527yes:)
     4528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4530ac_tool_warned=yes ;;
     4531esac
     4532    RANLIB=$ac_ct_RANLIB
     4533  fi
    32534534else
    32544535  RANLIB="$ac_cv_prog_RANLIB"
     
    32564537
    32574538
    3258 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    3259 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     4540$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    32604541arch_64bit=no
    32614542case "$host_cpu" in
     
    32644545
    32654546if test "$arch_64bit" = yes; then
    3266   echo "$as_me:$LINENO: result: yes" >&5
    3267 echo "${ECHO_T}yes" >&6
     4547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4548$as_echo "yes" >&6; }
    32684549  if test -z "$COMPAT32BITFLAGS" ; then
    32694550    COMPAT32BITFLAGS="-m32"
    32704551  fi
    32714552else
    3272   echo "$as_me:$LINENO: result: no" >&5
    3273 echo "${ECHO_T}no" >&6
     4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4554$as_echo "no" >&6; }
    32744555  if test -z "$COMPAT32BITFLAGS" ; then
    32754556    COMPAT32BITFLAGS=
     
    33134594#do test of MICO_VER
    33144595if test MICO_VER != 0; then
    3315 cat >>confdefs.h <<\_ACEOF
    3316 #define MICO_VER 1
    3317 _ACEOF
     4596$as_echo "#define MICO_VER 1" >>confdefs.h
    33184597
    33194598
     
    33284607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    33294608ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3330 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3331 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4610$as_echo_n "checking how to run the C preprocessor... " >&6; }
    33324611# On Suns, sometimes $CPP names a directory.
    33334612if test -n "$CPP" && test -d "$CPP"; then
     
    33354614fi
    33364615if test -z "$CPP"; then
    3337   if test "${ac_cv_prog_CPP+set}" = set; then
    3338   echo $ECHO_N "(cached) $ECHO_C" >&6
     4616  if test "${ac_cv_prog_CPP+set}" = set; then :
     4617  $as_echo_n "(cached) " >&6
    33394618else
    33404619      # Double quotes because CPP needs to be expanded
     
    33504629  # On the NeXT, cc -E runs the code through the compiler's parser,
    33514630  # not just through cpp. "Syntax error" is here to catch this case.
    3352   cat >conftest.$ac_ext <<_ACEOF
    3353 /* confdefs.h.  */
    3354 _ACEOF
    3355 cat confdefs.h >>conftest.$ac_ext
    3356 cat >>conftest.$ac_ext <<_ACEOF
     4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33574632/* end confdefs.h.  */
    33584633#ifdef __STDC__
     
    33634638             Syntax error
    33644639_ACEOF
    3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3367   ac_status=$?
    3368   grep -v '^ *+' conftest.er1 >conftest.err
    3369   rm -f conftest.er1
    3370   cat conftest.err >&5
    3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3372   (exit $ac_status); } >/dev/null; then
    3373   if test -s conftest.err; then
    3374     ac_cpp_err=$ac_c_preproc_warn_flag
    3375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3376   else
    3377     ac_cpp_err=
    3378   fi
    3379 else
    3380   ac_cpp_err=yes
    3381 fi
    3382 if test -z "$ac_cpp_err"; then
    3383   :
    3384 else
    3385   echo "$as_me: failed program was:" >&5
    3386 sed 's/^/| /' conftest.$ac_ext >&5
    3387 
     4640if ac_fn_c_try_cpp "$LINENO"; then :
     4641
     4642else
    33884643  # Broken: fails on valid input.
    33894644continue
    33904645fi
    3391 rm -f conftest.err conftest.$ac_ext
    3392 
    3393   # OK, works on sane cases.  Now check whether non-existent headers
     4646rm -f conftest.err conftest.i conftest.$ac_ext
     4647
     4648  # OK, works on sane cases.  Now check whether nonexistent headers
    33944649  # can be detected and how.
    3395   cat >conftest.$ac_ext <<_ACEOF
    3396 /* confdefs.h.  */
    3397 _ACEOF
    3398 cat confdefs.h >>conftest.$ac_ext
    3399 cat >>conftest.$ac_ext <<_ACEOF
     4650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34004651/* end confdefs.h.  */
    34014652#include <ac_nonexistent.h>
    34024653_ACEOF
    3403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3405   ac_status=$?
    3406   grep -v '^ *+' conftest.er1 >conftest.err
    3407   rm -f conftest.er1
    3408   cat conftest.err >&5
    3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3410   (exit $ac_status); } >/dev/null; then
    3411   if test -s conftest.err; then
    3412     ac_cpp_err=$ac_c_preproc_warn_flag
    3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3414   else
    3415     ac_cpp_err=
    3416   fi
    3417 else
    3418   ac_cpp_err=yes
    3419 fi
    3420 if test -z "$ac_cpp_err"; then
     4654if ac_fn_c_try_cpp "$LINENO"; then :
    34214655  # Broken: success on invalid input.
    34224656continue
    34234657else
    3424   echo "$as_me: failed program was:" >&5
    3425 sed 's/^/| /' conftest.$ac_ext >&5
    3426 
    34274658  # Passes both tests.
    34284659ac_preproc_ok=:
    34294660break
    34304661fi
    3431 rm -f conftest.err conftest.$ac_ext
     4662rm -f conftest.err conftest.i conftest.$ac_ext
    34324663
    34334664done
    34344665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3435 rm -f conftest.err conftest.$ac_ext
    3436 if $ac_preproc_ok; then
     4666rm -f conftest.i conftest.err conftest.$ac_ext
     4667if $ac_preproc_ok; then :
    34374668  break
    34384669fi
     
    34464677  ac_cv_prog_CPP=$CPP
    34474678fi
    3448 echo "$as_me:$LINENO: result: $CPP" >&5
    3449 echo "${ECHO_T}$CPP" >&6
     4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4680$as_echo "$CPP" >&6; }
    34504681ac_preproc_ok=false
    34514682for ac_c_preproc_warn_flag in '' yes
     
    34574688  # On the NeXT, cc -E runs the code through the compiler's parser,
    34584689  # not just through cpp. "Syntax error" is here to catch this case.
    3459   cat >conftest.$ac_ext <<_ACEOF
    3460 /* confdefs.h.  */
    3461 _ACEOF
    3462 cat confdefs.h >>conftest.$ac_ext
    3463 cat >>conftest.$ac_ext <<_ACEOF
     4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34644691/* end confdefs.h.  */
    34654692#ifdef __STDC__
     
    34704697             Syntax error
    34714698_ACEOF
    3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3474   ac_status=$?
    3475   grep -v '^ *+' conftest.er1 >conftest.err
    3476   rm -f conftest.er1
    3477   cat conftest.err >&5
    3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3479   (exit $ac_status); } >/dev/null; then
    3480   if test -s conftest.err; then
    3481     ac_cpp_err=$ac_c_preproc_warn_flag
    3482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3483   else
    3484     ac_cpp_err=
    3485   fi
    3486 else
    3487   ac_cpp_err=yes
    3488 fi
    3489 if test -z "$ac_cpp_err"; then
    3490   :
    3491 else
    3492   echo "$as_me: failed program was:" >&5
    3493 sed 's/^/| /' conftest.$ac_ext >&5
    3494 
     4699if ac_fn_c_try_cpp "$LINENO"; then :
     4700
     4701else
    34954702  # Broken: fails on valid input.
    34964703continue
    34974704fi
    3498 rm -f conftest.err conftest.$ac_ext
    3499 
    3500   # OK, works on sane cases.  Now check whether non-existent headers
     4705rm -f conftest.err conftest.i conftest.$ac_ext
     4706
     4707  # OK, works on sane cases.  Now check whether nonexistent headers
    35014708  # can be detected and how.
    3502   cat >conftest.$ac_ext <<_ACEOF
    3503 /* confdefs.h.  */
    3504 _ACEOF
    3505 cat confdefs.h >>conftest.$ac_ext
    3506 cat >>conftest.$ac_ext <<_ACEOF
     4709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35074710/* end confdefs.h.  */
    35084711#include <ac_nonexistent.h>
    35094712_ACEOF
    3510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3512   ac_status=$?
    3513   grep -v '^ *+' conftest.er1 >conftest.err
    3514   rm -f conftest.er1
    3515   cat conftest.err >&5
    3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3517   (exit $ac_status); } >/dev/null; then
    3518   if test -s conftest.err; then
    3519     ac_cpp_err=$ac_c_preproc_warn_flag
    3520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3521   else
    3522     ac_cpp_err=
    3523   fi
    3524 else
    3525   ac_cpp_err=yes
    3526 fi
    3527 if test -z "$ac_cpp_err"; then
     4713if ac_fn_c_try_cpp "$LINENO"; then :
    35284714  # Broken: success on invalid input.
    35294715continue
    35304716else
    3531   echo "$as_me: failed program was:" >&5
    3532 sed 's/^/| /' conftest.$ac_ext >&5
    3533 
    35344717  # Passes both tests.
    35354718ac_preproc_ok=:
    35364719break
    35374720fi
    3538 rm -f conftest.err conftest.$ac_ext
     4721rm -f conftest.err conftest.i conftest.$ac_ext
    35394722
    35404723done
    35414724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3542 rm -f conftest.err conftest.$ac_ext
    3543 if $ac_preproc_ok; then
    3544   :
    3545 else
    3546   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3547 See \`config.log' for more details." >&5
    3548 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3549 See \`config.log' for more details." >&2;}
    3550    { (exit 1); exit 1; }; }
     4725rm -f conftest.i conftest.err conftest.$ac_ext
     4726if $ac_preproc_ok; then :
     4727
     4728else
     4729  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4731as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4732See \`config.log' for more details" "$LINENO" 5 ; }
    35514733fi
    35524734
     
    35584740
    35594741
    3560 echo "$as_me:$LINENO: checking for egrep" >&5
    3561 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3562 if test "${ac_cv_prog_egrep+set}" = set; then
    3563   echo $ECHO_N "(cached) $ECHO_C" >&6
    3564 else
    3565   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3566     then ac_cv_prog_egrep='grep -E'
    3567     else ac_cv_prog_egrep='egrep'
     4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4743$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4744if test "${ac_cv_path_GREP+set}" = set; then :
     4745  $as_echo_n "(cached) " >&6
     4746else
     4747  if test -z "$GREP"; then
     4748  ac_path_GREP_found=false
     4749  # Loop through the user's path and test for each of PROGNAME-LIST
     4750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4752do
     4753  IFS=$as_save_IFS
     4754  test -z "$as_dir" && as_dir=.
     4755    for ac_prog in grep ggrep; do
     4756    for ac_exec_ext in '' $ac_executable_extensions; do
     4757      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4758      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4759# Check for GNU ac_path_GREP and select it if it is found.
     4760  # Check for GNU $ac_path_GREP
     4761case `"$ac_path_GREP" --version 2>&1` in
     4762*GNU*)
     4763  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4764*)
     4765  ac_count=0
     4766  $as_echo_n 0123456789 >"conftest.in"
     4767  while :
     4768  do
     4769    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4770    mv "conftest.tmp" "conftest.in"
     4771    cp "conftest.in" "conftest.nl"
     4772    $as_echo 'GREP' >> "conftest.nl"
     4773    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4774    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4775    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4776    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4777      # Best one so far, save it but keep looking for a better one
     4778      ac_cv_path_GREP="$ac_path_GREP"
     4779      ac_path_GREP_max=$ac_count
    35684780    fi
    3569 fi
    3570 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3571 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3572  EGREP=$ac_cv_prog_egrep
    3573 
    3574 
    3575 
    3576 echo "$as_me:$LINENO: checking for AIX" >&5
    3577 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3578 cat >conftest.$ac_ext <<_ACEOF
    3579 /* confdefs.h.  */
    3580 _ACEOF
    3581 cat confdefs.h >>conftest.$ac_ext
    3582 cat >>conftest.$ac_ext <<_ACEOF
    3583 /* end confdefs.h.  */
    3584 #ifdef _AIX
    3585   yes
    3586 #endif
    3587 
    3588 _ACEOF
    3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3590   $EGREP "yes" >/dev/null 2>&1; then
    3591   echo "$as_me:$LINENO: result: yes" >&5
    3592 echo "${ECHO_T}yes" >&6
    3593 cat >>confdefs.h <<\_ACEOF
    3594 #define _ALL_SOURCE 1
    3595 _ACEOF
    3596 
    3597 else
    3598   echo "$as_me:$LINENO: result: no" >&5
    3599 echo "${ECHO_T}no" >&6
    3600 fi
    3601 rm -f conftest*
    3602 
    3603 
    3604 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3605 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3606 if test "${ac_cv_search_strerror+set}" = set; then
    3607   echo $ECHO_N "(cached) $ECHO_C" >&6
    3608 else
    3609   ac_func_search_save_LIBS=$LIBS
    3610 ac_cv_search_strerror=no
    3611 cat >conftest.$ac_ext <<_ACEOF
    3612 /* confdefs.h.  */
    3613 _ACEOF
    3614 cat confdefs.h >>conftest.$ac_ext
    3615 cat >>conftest.$ac_ext <<_ACEOF
    3616 /* end confdefs.h.  */
    3617 
    3618 /* Override any gcc2 internal prototype to avoid an error.  */
    3619 #ifdef __cplusplus
    3620 extern "C"
    3621 #endif
    3622 /* We use char because int might match the return type of a gcc2
    3623    builtin and then its argument prototype would still apply.  */
    3624 char strerror ();
    3625 int
    3626 main ()
    3627 {
    3628 strerror ();
    3629   ;
    3630   return 0;
    3631 }
    3632 _ACEOF
    3633 rm -f conftest.$ac_objext conftest$ac_exeext
    3634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3635   (eval $ac_link) 2>conftest.er1
    3636   ac_status=$?
    3637   grep -v '^ *+' conftest.er1 >conftest.err
    3638   rm -f conftest.er1
    3639   cat conftest.err >&5
    3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3641   (exit $ac_status); } &&
    3642      { ac_try='test -z "$ac_c_werror_flag"
    3643              || test ! -s conftest.err'
    3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3645   (eval $ac_try) 2>&5
    3646   ac_status=$?
    3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3648   (exit $ac_status); }; } &&
    3649      { ac_try='test -s conftest$ac_exeext'
    3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3651   (eval $ac_try) 2>&5
    3652   ac_status=$?
    3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3654   (exit $ac_status); }; }; then
    3655   ac_cv_search_strerror="none required"
    3656 else
    3657   echo "$as_me: failed program was:" >&5
    3658 sed 's/^/| /' conftest.$ac_ext >&5
    3659 
    3660 fi
    3661 rm -f conftest.err conftest.$ac_objext \
    3662       conftest$ac_exeext conftest.$ac_ext
    3663 if test "$ac_cv_search_strerror" = no; then
    3664   for ac_lib in cposix; do
    3665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3666     cat >conftest.$ac_ext <<_ACEOF
    3667 /* confdefs.h.  */
    3668 _ACEOF
    3669 cat confdefs.h >>conftest.$ac_ext
    3670 cat >>conftest.$ac_ext <<_ACEOF
    3671 /* end confdefs.h.  */
    3672 
    3673 /* Override any gcc2 internal prototype to avoid an error.  */
    3674 #ifdef __cplusplus
    3675 extern "C"
    3676 #endif
    3677 /* We use char because int might match the return type of a gcc2
    3678    builtin and then its argument prototype would still apply.  */
    3679 char strerror ();
    3680 int
    3681 main ()
    3682 {
    3683 strerror ();
    3684   ;
    3685   return 0;
    3686 }
    3687 _ACEOF
    3688 rm -f conftest.$ac_objext conftest$ac_exeext
    3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3690   (eval $ac_link) 2>conftest.er1
    3691   ac_status=$?
    3692   grep -v '^ *+' conftest.er1 >conftest.err
    3693   rm -f conftest.er1
    3694   cat conftest.err >&5
    3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3696   (exit $ac_status); } &&
    3697      { ac_try='test -z "$ac_c_werror_flag"
    3698              || test ! -s conftest.err'
    3699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3700   (eval $ac_try) 2>&5
    3701   ac_status=$?
    3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3703   (exit $ac_status); }; } &&
    3704      { ac_try='test -s conftest$ac_exeext'
    3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3706   (eval $ac_try) 2>&5
    3707   ac_status=$?
    3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3709   (exit $ac_status); }; }; then
    3710   ac_cv_search_strerror="-l$ac_lib"
    3711 break
    3712 else
    3713   echo "$as_me: failed program was:" >&5
    3714 sed 's/^/| /' conftest.$ac_ext >&5
    3715 
    3716 fi
    3717 rm -f conftest.err conftest.$ac_objext \
    3718       conftest$ac_exeext conftest.$ac_ext
     4781    # 10*(2^10) chars as input seems more than enough
     4782    test $ac_count -gt 10 && break
    37194783  done
    3720 fi
    3721 LIBS=$ac_func_search_save_LIBS
    3722 fi
    3723 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3724 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3725 if test "$ac_cv_search_strerror" != no; then
    3726   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3727 
    3728 fi
    3729 
    3730 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3732 if test "${ac_cv_header_stdc+set}" = set; then
    3733   echo $ECHO_N "(cached) $ECHO_C" >&6
    3734 else
    3735   cat >conftest.$ac_ext <<_ACEOF
    3736 /* confdefs.h.  */
    3737 _ACEOF
    3738 cat confdefs.h >>conftest.$ac_ext
    3739 cat >>conftest.$ac_ext <<_ACEOF
     4784  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4785esac
     4786
     4787      $ac_path_GREP_found && break 3
     4788    done
     4789  done
     4790  done
     4791IFS=$as_save_IFS
     4792  if test -z "$ac_cv_path_GREP"; then
     4793    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4794  fi
     4795else
     4796  ac_cv_path_GREP=$GREP
     4797fi
     4798
     4799fi
     4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4801$as_echo "$ac_cv_path_GREP" >&6; }
     4802 GREP="$ac_cv_path_GREP"
     4803
     4804
     4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4806$as_echo_n "checking for egrep... " >&6; }
     4807if test "${ac_cv_path_EGREP+set}" = set; then :
     4808  $as_echo_n "(cached) " >&6
     4809else
     4810  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4811   then ac_cv_path_EGREP="$GREP -E"
     4812   else
     4813     if test -z "$EGREP"; then
     4814  ac_path_EGREP_found=false
     4815  # Loop through the user's path and test for each of PROGNAME-LIST
     4816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4817for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4818do
     4819  IFS=$as_save_IFS
     4820  test -z "$as_dir" && as_dir=.
     4821    for ac_prog in egrep; do
     4822    for ac_exec_ext in '' $ac_executable_extensions; do
     4823      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4824      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4825# Check for GNU ac_path_EGREP and select it if it is found.
     4826  # Check for GNU $ac_path_EGREP
     4827case `"$ac_path_EGREP" --version 2>&1` in
     4828*GNU*)
     4829  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4830*)
     4831  ac_count=0
     4832  $as_echo_n 0123456789 >"conftest.in"
     4833  while :
     4834  do
     4835    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4836    mv "conftest.tmp" "conftest.in"
     4837    cp "conftest.in" "conftest.nl"
     4838    $as_echo 'EGREP' >> "conftest.nl"
     4839    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4840    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4841    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4842    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4843      # Best one so far, save it but keep looking for a better one
     4844      ac_cv_path_EGREP="$ac_path_EGREP"
     4845      ac_path_EGREP_max=$ac_count
     4846    fi
     4847    # 10*(2^10) chars as input seems more than enough
     4848    test $ac_count -gt 10 && break
     4849  done
     4850  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4851esac
     4852
     4853      $ac_path_EGREP_found && break 3
     4854    done
     4855  done
     4856  done
     4857IFS=$as_save_IFS
     4858  if test -z "$ac_cv_path_EGREP"; then
     4859    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4860  fi
     4861else
     4862  ac_cv_path_EGREP=$EGREP
     4863fi
     4864
     4865   fi
     4866fi
     4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4868$as_echo "$ac_cv_path_EGREP" >&6; }
     4869 EGREP="$ac_cv_path_EGREP"
     4870
     4871
     4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4873$as_echo_n "checking for ANSI C header files... " >&6; }
     4874if test "${ac_cv_header_stdc+set}" = set; then :
     4875  $as_echo_n "(cached) " >&6
     4876else
     4877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37404878/* end confdefs.h.  */
    37414879#include <stdlib.h>
     
    37524890}
    37534891_ACEOF
    3754 rm -f conftest.$ac_objext
    3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3756   (eval $ac_compile) 2>conftest.er1
    3757   ac_status=$?
    3758   grep -v '^ *+' conftest.er1 >conftest.err
    3759   rm -f conftest.er1
    3760   cat conftest.err >&5
    3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3762   (exit $ac_status); } &&
    3763      { ac_try='test -z "$ac_c_werror_flag"
    3764              || test ! -s conftest.err'
    3765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3766   (eval $ac_try) 2>&5
    3767   ac_status=$?
    3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3769   (exit $ac_status); }; } &&
    3770      { ac_try='test -s conftest.$ac_objext'
    3771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3772   (eval $ac_try) 2>&5
    3773   ac_status=$?
    3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3775   (exit $ac_status); }; }; then
     4892if ac_fn_c_try_compile "$LINENO"; then :
    37764893  ac_cv_header_stdc=yes
    37774894else
    3778   echo "$as_me: failed program was:" >&5
    3779 sed 's/^/| /' conftest.$ac_ext >&5
    3780 
    3781 ac_cv_header_stdc=no
    3782 fi
    3783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4895  ac_cv_header_stdc=no
     4896fi
     4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    37844898
    37854899if test $ac_cv_header_stdc = yes; then
    37864900  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3787   cat >conftest.$ac_ext <<_ACEOF
    3788 /* confdefs.h.  */
    3789 _ACEOF
    3790 cat confdefs.h >>conftest.$ac_ext
    3791 cat >>conftest.$ac_ext <<_ACEOF
     4901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37924902/* end confdefs.h.  */
    37934903#include <string.h>
     
    37954905_ACEOF
    37964906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3797   $EGREP "memchr" >/dev/null 2>&1; then
    3798   :
     4907  $EGREP "memchr" >/dev/null 2>&1; then :
     4908
    37994909else
    38004910  ac_cv_header_stdc=no
     
    38064916if test $ac_cv_header_stdc = yes; then
    38074917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3808   cat >conftest.$ac_ext <<_ACEOF
    3809 /* confdefs.h.  */
    3810 _ACEOF
    3811 cat confdefs.h >>conftest.$ac_ext
    3812 cat >>conftest.$ac_ext <<_ACEOF
     4918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38134919/* end confdefs.h.  */
    38144920#include <stdlib.h>
     
    38164922_ACEOF
    38174923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3818   $EGREP "free" >/dev/null 2>&1; then
    3819   :
     4924  $EGREP "free" >/dev/null 2>&1; then :
     4925
    38204926else
    38214927  ac_cv_header_stdc=no
     
    38274933if test $ac_cv_header_stdc = yes; then
    38284934  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3829   if test "$cross_compiling" = yes; then
     4935  if test "$cross_compiling" = yes; then :
    38304936  :
    38314937else
    3832   cat >conftest.$ac_ext <<_ACEOF
    3833 /* confdefs.h.  */
    3834 _ACEOF
    3835 cat confdefs.h >>conftest.$ac_ext
    3836 cat >>conftest.$ac_ext <<_ACEOF
     4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38374939/* end confdefs.h.  */
    38384940#include <ctype.h>
     4941#include <stdlib.h>
    38394942#if ((' ' & 0x0FF) == 0x020)
    38404943# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    38564959    if (XOR (islower (i), ISLOWER (i))
    38574960    || toupper (i) != TOUPPER (i))
    3858       exit(2);
    3859   exit (0);
     4961      return 2;
     4962  return 0;
    38604963}
    38614964_ACEOF
    3862 rm -f conftest$ac_exeext
    3863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3864   (eval $ac_link) 2>&5
    3865   ac_status=$?
    3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3869   (eval $ac_try) 2>&5
    3870   ac_status=$?
    3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3872   (exit $ac_status); }; }; then
    3873   :
    3874 else
    3875   echo "$as_me: program exited with status $ac_status" >&5
    3876 echo "$as_me: failed program was:" >&5
    3877 sed 's/^/| /' conftest.$ac_ext >&5
    3878 
    3879 ( exit $ac_status )
    3880 ac_cv_header_stdc=no
    3881 fi
    3882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3883 fi
    3884 fi
    3885 fi
    3886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4965if ac_fn_c_try_run "$LINENO"; then :
     4966
     4967else
     4968  ac_cv_header_stdc=no
     4969fi
     4970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4971  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4972fi
     4973
     4974fi
     4975fi
     4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4977$as_echo "$ac_cv_header_stdc" >&6; }
    38884978if test $ac_cv_header_stdc = yes; then
    38894979
    3890 cat >>confdefs.h <<\_ACEOF
    3891 #define STDC_HEADERS 1
    3892 _ACEOF
     4980$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    38934981
    38944982fi
    38954983
    38964984# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3897 
    3898 
    3899 
    3900 
    3901 
    3902 
    3903 
    3904 
    3905 
    39064985for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    39074986          inttypes.h stdint.h unistd.h
    3908 do
    3909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3910 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3913   echo $ECHO_N "(cached) $ECHO_C" >&6
    3914 else
    3915   cat >conftest.$ac_ext <<_ACEOF
    3916 /* confdefs.h.  */
    3917 _ACEOF
    3918 cat confdefs.h >>conftest.$ac_ext
    3919 cat >>conftest.$ac_ext <<_ACEOF
     4987do :
     4988  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4989ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4990"
     4991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4992  cat >>confdefs.h <<_ACEOF
     4993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4994_ACEOF
     4995
     4996fi
     4997
     4998done
     4999
     5000
     5001
     5002  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     5003if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     5004  MINIX=yes
     5005else
     5006  MINIX=
     5007fi
     5008
     5009
     5010  if test "$MINIX" = yes; then
     5011
     5012$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     5013
     5014
     5015$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     5016
     5017
     5018$as_echo "#define _MINIX 1" >>confdefs.h
     5019
     5020  fi
     5021
     5022
     5023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     5024$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     5025if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     5026  $as_echo_n "(cached) " >&6
     5027else
     5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39205029/* end confdefs.h.  */
    3921 $ac_includes_default
    3922 
    3923 #include <$ac_header>
    3924 _ACEOF
    3925 rm -f conftest.$ac_objext
    3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3927   (eval $ac_compile) 2>conftest.er1
    3928   ac_status=$?
    3929   grep -v '^ *+' conftest.er1 >conftest.err
    3930   rm -f conftest.er1
    3931   cat conftest.err >&5
    3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3933   (exit $ac_status); } &&
    3934      { ac_try='test -z "$ac_c_werror_flag"
    3935              || test ! -s conftest.err'
    3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3937   (eval $ac_try) 2>&5
    3938   ac_status=$?
    3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3940   (exit $ac_status); }; } &&
    3941      { ac_try='test -s conftest.$ac_objext'
    3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3943   (eval $ac_try) 2>&5
    3944   ac_status=$?
    3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3946   (exit $ac_status); }; }; then
    3947   eval "$as_ac_Header=yes"
    3948 else
    3949   echo "$as_me: failed program was:" >&5
    3950 sed 's/^/| /' conftest.$ac_ext >&5
    3951 
    3952 eval "$as_ac_Header=no"
    3953 fi
    3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3955 fi
    3956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3959   cat >>confdefs.h <<_ACEOF
    3960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3961 _ACEOF
    3962 
    3963 fi
    3964 
     5030
     5031#     define __EXTENSIONS__ 1
     5032      $ac_includes_default
     5033int
     5034main ()
     5035{
     5036
     5037  ;
     5038  return 0;
     5039}
     5040_ACEOF
     5041if ac_fn_c_try_compile "$LINENO"; then :
     5042  ac_cv_safe_to_define___extensions__=yes
     5043else
     5044  ac_cv_safe_to_define___extensions__=no
     5045fi
     5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5047fi
     5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     5049$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     5050  test $ac_cv_safe_to_define___extensions__ = yes &&
     5051    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     5052
     5053  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     5054
     5055  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     5056
     5057  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     5058
     5059  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     5060
     5061
     5062
     5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     5064$as_echo_n "checking for library containing strerror... " >&6; }
     5065if test "${ac_cv_search_strerror+set}" = set; then :
     5066  $as_echo_n "(cached) " >&6
     5067else
     5068  ac_func_search_save_LIBS=$LIBS
     5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5070/* end confdefs.h.  */
     5071
     5072/* Override any GCC internal prototype to avoid an error.
     5073   Use char because int might match the return type of a GCC
     5074   builtin and then its argument prototype would still apply.  */
     5075#ifdef __cplusplus
     5076extern "C"
     5077#endif
     5078char strerror ();
     5079int
     5080main ()
     5081{
     5082return strerror ();
     5083  ;
     5084  return 0;
     5085}
     5086_ACEOF
     5087for ac_lib in '' cposix; do
     5088  if test -z "$ac_lib"; then
     5089    ac_res="none required"
     5090  else
     5091    ac_res=-l$ac_lib
     5092    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5093  fi
     5094  if ac_fn_c_try_link "$LINENO"; then :
     5095  ac_cv_search_strerror=$ac_res
     5096fi
     5097rm -f core conftest.err conftest.$ac_objext \
     5098    conftest$ac_exeext
     5099  if test "${ac_cv_search_strerror+set}" = set; then :
     5100  break
     5101fi
    39655102done
    3966 
    3967 
    3968 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3969   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3970 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3971 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3972   echo $ECHO_N "(cached) $ECHO_C" >&6
    3973 fi
    3974 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3975 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3976 else
    3977   # Is the header compilable?
    3978 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3979 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3980 cat >conftest.$ac_ext <<_ACEOF
    3981 /* confdefs.h.  */
    3982 _ACEOF
    3983 cat confdefs.h >>conftest.$ac_ext
    3984 cat >>conftest.$ac_ext <<_ACEOF
    3985 /* end confdefs.h.  */
    3986 $ac_includes_default
    3987 #include <minix/config.h>
    3988 _ACEOF
    3989 rm -f conftest.$ac_objext
    3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3991   (eval $ac_compile) 2>conftest.er1
    3992   ac_status=$?
    3993   grep -v '^ *+' conftest.er1 >conftest.err
    3994   rm -f conftest.er1
    3995   cat conftest.err >&5
    3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3997   (exit $ac_status); } &&
    3998      { ac_try='test -z "$ac_c_werror_flag"
    3999              || test ! -s conftest.err'
    4000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4001   (eval $ac_try) 2>&5
    4002   ac_status=$?
    4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4004   (exit $ac_status); }; } &&
    4005      { ac_try='test -s conftest.$ac_objext'
    4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4007   (eval $ac_try) 2>&5
    4008   ac_status=$?
    4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4010   (exit $ac_status); }; }; then
    4011   ac_header_compiler=yes
    4012 else
    4013   echo "$as_me: failed program was:" >&5
    4014 sed 's/^/| /' conftest.$ac_ext >&5
    4015 
    4016 ac_header_compiler=no
    4017 fi
    4018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4020 echo "${ECHO_T}$ac_header_compiler" >&6
    4021 
    4022 # Is the header present?
    4023 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    4024 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    4025 cat >conftest.$ac_ext <<_ACEOF
    4026 /* confdefs.h.  */
    4027 _ACEOF
    4028 cat confdefs.h >>conftest.$ac_ext
    4029 cat >>conftest.$ac_ext <<_ACEOF
    4030 /* end confdefs.h.  */
    4031 #include <minix/config.h>
    4032 _ACEOF
    4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4035   ac_status=$?
    4036   grep -v '^ *+' conftest.er1 >conftest.err
    4037   rm -f conftest.er1
    4038   cat conftest.err >&5
    4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4040   (exit $ac_status); } >/dev/null; then
    4041   if test -s conftest.err; then
    4042     ac_cpp_err=$ac_c_preproc_warn_flag
    4043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4044   else
    4045     ac_cpp_err=
    4046   fi
    4047 else
    4048   ac_cpp_err=yes
    4049 fi
    4050 if test -z "$ac_cpp_err"; then
    4051   ac_header_preproc=yes
    4052 else
    4053   echo "$as_me: failed program was:" >&5
    4054 sed 's/^/| /' conftest.$ac_ext >&5
    4055 
    4056   ac_header_preproc=no
    4057 fi
    4058 rm -f conftest.err conftest.$ac_ext
    4059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4060 echo "${ECHO_T}$ac_header_preproc" >&6
    4061 
    4062 # So?  What about this header?
    4063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4064   yes:no: )
    4065     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    4066 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4067     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    4068 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    4069     ac_header_preproc=yes
    4070     ;;
    4071   no:yes:* )
    4072     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    4073 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    4074     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    4075 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    4076     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    4077 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    4078     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    4079 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    4080     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    4081 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    4082     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    4083 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    4084     (
    4085       cat <<\_ASBOX
    4086 ## ------------------------------------------ ##
    4087 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4088 ## ------------------------------------------ ##
    4089 _ASBOX
    4090     ) |
    4091       sed "s/^/$as_me: WARNING:     /" >&2
    4092     ;;
    4093 esac
    4094 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    4095 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    4096 if test "${ac_cv_header_minix_config_h+set}" = set; then
    4097   echo $ECHO_N "(cached) $ECHO_C" >&6
    4098 else
    4099   ac_cv_header_minix_config_h=$ac_header_preproc
    4100 fi
    4101 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    4102 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    4103 
    4104 fi
    4105 if test $ac_cv_header_minix_config_h = yes; then
    4106   MINIX=yes
    4107 else
    4108   MINIX=
    4109 fi
    4110 
    4111 
    4112 if test "$MINIX" = yes; then
    4113 
    4114 cat >>confdefs.h <<\_ACEOF
    4115 #define _POSIX_SOURCE 1
    4116 _ACEOF
    4117 
    4118 
    4119 cat >>confdefs.h <<\_ACEOF
    4120 #define _POSIX_1_SOURCE 2
    4121 _ACEOF
    4122 
    4123 
    4124 cat >>confdefs.h <<\_ACEOF
    4125 #define _MINIX 1
    4126 _ACEOF
    4127 
    4128 fi
    4129 
    4130 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    4131 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    4132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    4133   echo $ECHO_N "(cached) $ECHO_C" >&6
     5103if test "${ac_cv_search_strerror+set}" = set; then :
     5104
     5105else
     5106  ac_cv_search_strerror=no
     5107fi
     5108rm conftest.$ac_ext
     5109LIBS=$ac_func_search_save_LIBS
     5110fi
     5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     5112$as_echo "$ac_cv_search_strerror" >&6; }
     5113ac_res=$ac_cv_search_strerror
     5114if test "$ac_res" != no; then :
     5115  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5116
     5117fi
     5118
     5119
     5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     5121$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     5122if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     5123  $as_echo_n "(cached) " >&6
    41345124else
    41355125  ac_cv_prog_cc_stdc=no
     
    41445134do
    41455135  CFLAGS="$ac_save_CFLAGS $ac_arg"
    4146   cat >conftest.$ac_ext <<_ACEOF
    4147 /* confdefs.h.  */
    4148 _ACEOF
    4149 cat confdefs.h >>conftest.$ac_ext
    4150 cat >>conftest.$ac_ext <<_ACEOF
     5136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    41515137/* end confdefs.h.  */
    41525138#if !defined(__STDC__) || __STDC__ != 1
     
    41645150}
    41655151_ACEOF
    4166 rm -f conftest.$ac_objext
    4167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4168   (eval $ac_compile) 2>conftest.er1
    4169   ac_status=$?
    4170   grep -v '^ *+' conftest.er1 >conftest.err
    4171   rm -f conftest.er1
    4172   cat conftest.err >&5
    4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4174   (exit $ac_status); } &&
    4175      { ac_try='test -z "$ac_c_werror_flag"
    4176              || test ! -s conftest.err'
    4177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4178   (eval $ac_try) 2>&5
    4179   ac_status=$?
    4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4181   (exit $ac_status); }; } &&
    4182      { ac_try='test -s conftest.$ac_objext'
    4183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4184   (eval $ac_try) 2>&5
    4185   ac_status=$?
    4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4187   (exit $ac_status); }; }; then
     5152if ac_fn_c_try_compile "$LINENO"; then :
    41885153  ac_cv_prog_cc_stdc="$ac_arg"; break
    4189 else
    4190   echo "$as_me: failed program was:" >&5
    4191 sed 's/^/| /' conftest.$ac_ext >&5
    4192 
    4193 fi
    4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5154fi
     5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    41955156done
    41965157CFLAGS="$ac_save_CFLAGS"
     
    41985159fi
    41995160
    4200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    4201 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     5162$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    42025163case "x$ac_cv_prog_cc_stdc" in
    42035164  x|xno) ;;
     
    42065167
    42075168
    4208 echo "$as_me:$LINENO: checking for function prototypes" >&5
    4209 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     5170$as_echo_n "checking for function prototypes... " >&6; }
    42105171if test "$ac_cv_prog_cc_stdc" != no; then
    4211   echo "$as_me:$LINENO: result: yes" >&5
    4212 echo "${ECHO_T}yes" >&6
    4213   cat >>confdefs.h <<\_ACEOF
    4214 #define PROTOTYPES 1
    4215 _ACEOF
     5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5173$as_echo "yes" >&6; }
     5174  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    42165175
    42175176  U= ANSI2KNR=
    42185177else
    4219   echo "$as_me:$LINENO: result: no" >&5
    4220 echo "${ECHO_T}no" >&6
     5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5179$as_echo "no" >&6; }
    42215180  U=_ ANSI2KNR=ansi2knr
    42225181fi
    42235182
    4224 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4226 if test "${ac_cv_c_const+set}" = set; then
    4227   echo $ECHO_N "(cached) $ECHO_C" >&6
    4228 else
    4229   cat >conftest.$ac_ext <<_ACEOF
    4230 /* confdefs.h.  */
    4231 _ACEOF
    4232 cat confdefs.h >>conftest.$ac_ext
    4233 cat >>conftest.$ac_ext <<_ACEOF
     5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     5184$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     5185if test "${ac_cv_c_const+set}" = set; then :
     5186  $as_echo_n "(cached) " >&6
     5187else
     5188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42345189/* end confdefs.h.  */
    42355190
     
    42415196  /* Ultrix mips cc rejects this.  */
    42425197  typedef int charset[2];
    4243   const charset x;
     5198  const charset cs;
    42445199  /* SunOS 4.1.1 cc rejects this.  */
    4245   char const *const *ccp;
    4246   char **p;
     5200  char const *const *pcpcc;
     5201  char **ppc;
    42475202  /* NEC SVR4.0.2 mips cc rejects this.  */
    42485203  struct point {int x, y;};
     
    42535208     expression */
    42545209  const char *g = "string";
    4255   ccp = &g + (g ? g-g : 0);
     5210  pcpcc = &g + (g ? g-g : 0);
    42565211  /* HPUX 7.0 cc rejects these. */
    4257   ++ccp;
    4258   p = (char**) ccp;
    4259   ccp = (char const *const *) p;
     5212  ++pcpcc;
     5213  ppc = (char**) pcpcc;
     5214  pcpcc = (char const *const *) ppc;
    42605215  { /* SCO 3.2v4 cc rejects this.  */
    42615216    char *t;
     
    42635218
    42645219    *t++ = 0;
     5220    if (s) return 0;
    42655221  }
    42665222  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    42815237  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    42825238    const int foo = 10;
     5239    if (!foo) return 0;
    42835240  }
     5241  return !cs[0] && !zero.x;
    42845242#endif
    42855243
     
    42885246}
    42895247_ACEOF
    4290 rm -f conftest.$ac_objext
    4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4292   (eval $ac_compile) 2>conftest.er1
    4293   ac_status=$?
    4294   grep -v '^ *+' conftest.er1 >conftest.err
    4295   rm -f conftest.er1
    4296   cat conftest.err >&5
    4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4298   (exit $ac_status); } &&
    4299      { ac_try='test -z "$ac_c_werror_flag"
    4300              || test ! -s conftest.err'
    4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4302   (eval $ac_try) 2>&5
    4303   ac_status=$?
    4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4305   (exit $ac_status); }; } &&
    4306      { ac_try='test -s conftest.$ac_objext'
    4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4308   (eval $ac_try) 2>&5
    4309   ac_status=$?
    4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4311   (exit $ac_status); }; }; then
     5248if ac_fn_c_try_compile "$LINENO"; then :
    43125249  ac_cv_c_const=yes
    43135250else
    4314   echo "$as_me: failed program was:" >&5
    4315 sed 's/^/| /' conftest.$ac_ext >&5
    4316 
    4317 ac_cv_c_const=no
    4318 fi
    4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4320 fi
    4321 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4322 echo "${ECHO_T}$ac_cv_c_const" >&6
     5251  ac_cv_c_const=no
     5252fi
     5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5254fi
     5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     5256$as_echo "$ac_cv_c_const" >&6; }
    43235257if test $ac_cv_c_const = no; then
    43245258
    4325 cat >>confdefs.h <<\_ACEOF
    4326 #define const
    4327 _ACEOF
    4328 
    4329 fi
    4330 
    4331 echo "$as_me:$LINENO: checking for off_t" >&5
    4332 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4333 if test "${ac_cv_type_off_t+set}" = set; then
    4334   echo $ECHO_N "(cached) $ECHO_C" >&6
    4335 else
    4336   cat >conftest.$ac_ext <<_ACEOF
    4337 /* confdefs.h.  */
    4338 _ACEOF
    4339 cat confdefs.h >>conftest.$ac_ext
    4340 cat >>conftest.$ac_ext <<_ACEOF
    4341 /* end confdefs.h.  */
    4342 $ac_includes_default
    4343 int
    4344 main ()
    4345 {
    4346 if ((off_t *) 0)
    4347   return 0;
    4348 if (sizeof (off_t))
    4349   return 0;
    4350   ;
    4351   return 0;
    4352 }
    4353 _ACEOF
    4354 rm -f conftest.$ac_objext
    4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4356   (eval $ac_compile) 2>conftest.er1
    4357   ac_status=$?
    4358   grep -v '^ *+' conftest.er1 >conftest.err
    4359   rm -f conftest.er1
    4360   cat conftest.err >&5
    4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4362   (exit $ac_status); } &&
    4363      { ac_try='test -z "$ac_c_werror_flag"
    4364              || test ! -s conftest.err'
    4365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4366   (eval $ac_try) 2>&5
    4367   ac_status=$?
    4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4369   (exit $ac_status); }; } &&
    4370      { ac_try='test -s conftest.$ac_objext'
    4371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4372   (eval $ac_try) 2>&5
    4373   ac_status=$?
    4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4375   (exit $ac_status); }; }; then
    4376   ac_cv_type_off_t=yes
    4377 else
    4378   echo "$as_me: failed program was:" >&5
    4379 sed 's/^/| /' conftest.$ac_ext >&5
    4380 
    4381 ac_cv_type_off_t=no
    4382 fi
    4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4384 fi
    4385 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4386 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4387 if test $ac_cv_type_off_t = yes; then
    4388   :
     5259$as_echo "#define const /**/" >>confdefs.h
     5260
     5261fi
     5262
     5263ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     5264if test "x$ac_cv_type_off_t" = x""yes; then :
     5265
    43895266else
    43905267
    43915268cat >>confdefs.h <<_ACEOF
    4392 #define off_t long
    4393 _ACEOF
    4394 
    4395 fi
    4396 
    4397 echo "$as_me:$LINENO: checking for size_t" >&5
    4398 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4399 if test "${ac_cv_type_size_t+set}" = set; then
    4400   echo $ECHO_N "(cached) $ECHO_C" >&6
    4401 else
    4402   cat >conftest.$ac_ext <<_ACEOF
    4403 /* confdefs.h.  */
    4404 _ACEOF
    4405 cat confdefs.h >>conftest.$ac_ext
    4406 cat >>conftest.$ac_ext <<_ACEOF
    4407 /* end confdefs.h.  */
    4408 $ac_includes_default
    4409 int
    4410 main ()
    4411 {
    4412 if ((size_t *) 0)
    4413   return 0;
    4414 if (sizeof (size_t))
    4415   return 0;
    4416   ;
    4417   return 0;
    4418 }
    4419 _ACEOF
    4420 rm -f conftest.$ac_objext
    4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4422   (eval $ac_compile) 2>conftest.er1
    4423   ac_status=$?
    4424   grep -v '^ *+' conftest.er1 >conftest.err
    4425   rm -f conftest.er1
    4426   cat conftest.err >&5
    4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4428   (exit $ac_status); } &&
    4429      { ac_try='test -z "$ac_c_werror_flag"
    4430              || test ! -s conftest.err'
    4431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4432   (eval $ac_try) 2>&5
    4433   ac_status=$?
    4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4435   (exit $ac_status); }; } &&
    4436      { ac_try='test -s conftest.$ac_objext'
    4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4438   (eval $ac_try) 2>&5
    4439   ac_status=$?
    4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4441   (exit $ac_status); }; }; then
    4442   ac_cv_type_size_t=yes
    4443 else
    4444   echo "$as_me: failed program was:" >&5
    4445 sed 's/^/| /' conftest.$ac_ext >&5
    4446 
    4447 ac_cv_type_size_t=no
    4448 fi
    4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4450 fi
    4451 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4452 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4453 if test $ac_cv_type_size_t = yes; then
    4454   :
     5269#define off_t long int
     5270_ACEOF
     5271
     5272fi
     5273
     5274ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     5275if test "x$ac_cv_type_size_t" = x""yes; then :
     5276
    44555277else
    44565278
    44575279cat >>confdefs.h <<_ACEOF
    4458 #define size_t unsigned
    4459 _ACEOF
    4460 
    4461 fi
    4462 
    4463 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4464 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4465 if test "${ac_cv_header_time+set}" = set; then
    4466   echo $ECHO_N "(cached) $ECHO_C" >&6
    4467 else
    4468   cat >conftest.$ac_ext <<_ACEOF
    4469 /* confdefs.h.  */
    4470 _ACEOF
    4471 cat confdefs.h >>conftest.$ac_ext
    4472 cat >>conftest.$ac_ext <<_ACEOF
     5280#define size_t unsigned int
     5281_ACEOF
     5282
     5283fi
     5284
     5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     5286$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     5287if test "${ac_cv_header_time+set}" = set; then :
     5288  $as_echo_n "(cached) " >&6
     5289else
     5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44735291/* end confdefs.h.  */
    44745292#include <sys/types.h>
     
    44855303}
    44865304_ACEOF
    4487 rm -f conftest.$ac_objext
    4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4489   (eval $ac_compile) 2>conftest.er1
    4490   ac_status=$?
    4491   grep -v '^ *+' conftest.er1 >conftest.err
    4492   rm -f conftest.er1
    4493   cat conftest.err >&5
    4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4495   (exit $ac_status); } &&
    4496      { ac_try='test -z "$ac_c_werror_flag"
    4497              || test ! -s conftest.err'
    4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4499   (eval $ac_try) 2>&5
    4500   ac_status=$?
    4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4502   (exit $ac_status); }; } &&
    4503      { ac_try='test -s conftest.$ac_objext'
    4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4505   (eval $ac_try) 2>&5
    4506   ac_status=$?
    4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4508   (exit $ac_status); }; }; then
     5305if ac_fn_c_try_compile "$LINENO"; then :
    45095306  ac_cv_header_time=yes
    45105307else
    4511   echo "$as_me: failed program was:" >&5
    4512 sed 's/^/| /' conftest.$ac_ext >&5
    4513 
    4514 ac_cv_header_time=no
    4515 fi
    4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4517 fi
    4518 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4519 echo "${ECHO_T}$ac_cv_header_time" >&6
     5308  ac_cv_header_time=no
     5309fi
     5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5311fi
     5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     5313$as_echo "$ac_cv_header_time" >&6; }
    45205314if test $ac_cv_header_time = yes; then
    45215315
    4522 cat >>confdefs.h <<\_ACEOF
    4523 #define TIME_WITH_SYS_TIME 1
    4524 _ACEOF
    4525 
    4526 fi
    4527 
    4528 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4530 if test "${ac_cv_struct_tm+set}" = set; then
    4531   echo $ECHO_N "(cached) $ECHO_C" >&6
    4532 else
    4533   cat >conftest.$ac_ext <<_ACEOF
    4534 /* confdefs.h.  */
    4535 _ACEOF
    4536 cat confdefs.h >>conftest.$ac_ext
    4537 cat >>conftest.$ac_ext <<_ACEOF
     5316$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     5317
     5318fi
     5319
     5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     5321$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     5322if test "${ac_cv_struct_tm+set}" = set; then :
     5323  $as_echo_n "(cached) " >&6
     5324else
     5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45385326/* end confdefs.h.  */
    45395327#include <sys/types.h>
     
    45435331main ()
    45445332{
    4545 struct tm *tp; tp->tm_sec;
     5333struct tm tm;
     5334                     int *p = &tm.tm_sec;
     5335                     return !p;
    45465336  ;
    45475337  return 0;
    45485338}
    45495339_ACEOF
    4550 rm -f conftest.$ac_objext
    4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4552   (eval $ac_compile) 2>conftest.er1
    4553   ac_status=$?
    4554   grep -v '^ *+' conftest.er1 >conftest.err
    4555   rm -f conftest.er1
    4556   cat conftest.err >&5
    4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4558   (exit $ac_status); } &&
    4559      { ac_try='test -z "$ac_c_werror_flag"
    4560              || test ! -s conftest.err'
    4561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4562   (eval $ac_try) 2>&5
    4563   ac_status=$?
    4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4565   (exit $ac_status); }; } &&
    4566      { ac_try='test -s conftest.$ac_objext'
    4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4568   (eval $ac_try) 2>&5
    4569   ac_status=$?
    4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4571   (exit $ac_status); }; }; then
     5340if ac_fn_c_try_compile "$LINENO"; then :
    45725341  ac_cv_struct_tm=time.h
    45735342else
    4574   echo "$as_me: failed program was:" >&5
    4575 sed 's/^/| /' conftest.$ac_ext >&5
    4576 
    4577 ac_cv_struct_tm=sys/time.h
    4578 fi
    4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4580 fi
    4581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5343  ac_cv_struct_tm=sys/time.h
     5344fi
     5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5346fi
     5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5348$as_echo "$ac_cv_struct_tm" >&6; }
    45835349if test $ac_cv_struct_tm = sys/time.h; then
    45845350
    4585 cat >>confdefs.h <<\_ACEOF
    4586 #define TM_IN_SYS_TIME 1
    4587 _ACEOF
     5351$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    45885352
    45895353fi
     
    45915355
    45925356if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4593 cat >conftest.$ac_ext <<_ACEOF
    4594 /* confdefs.h.  */
    4595 _ACEOF
    4596 cat confdefs.h >>conftest.$ac_ext
    4597 cat >>conftest.$ac_ext <<_ACEOF
     5357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45985358/* end confdefs.h.  */
    45995359#include <stdio.h>
     
    46075367}
    46085368_ACEOF
    4609 rm -f conftest.$ac_objext
    4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4611   (eval $ac_compile) 2>conftest.er1
    4612   ac_status=$?
    4613   grep -v '^ *+' conftest.er1 >conftest.err
    4614   rm -f conftest.er1
    4615   cat conftest.err >&5
    4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4617   (exit $ac_status); } &&
    4618      { ac_try='test -z "$ac_c_werror_flag"
    4619              || test ! -s conftest.err'
    4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4621   (eval $ac_try) 2>&5
    4622   ac_status=$?
    4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4624   (exit $ac_status); }; } &&
    4625      { ac_try='test -s conftest.$ac_objext'
    4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4627   (eval $ac_try) 2>&5
    4628   ac_status=$?
    4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4630   (exit $ac_status); }; }; then
    4631   :
    4632 else
    4633   echo "$as_me: failed program was:" >&5
    4634 sed 's/^/| /' conftest.$ac_ext >&5
    4635 
    4636 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4637 fi
    4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4639 fi
    4640 
    4641 
    4642 
    4643 echo "$as_me:$LINENO: checking for main in -lg" >&5
    4644 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    4645 if test "${ac_cv_lib_g_main+set}" = set; then
    4646   echo $ECHO_N "(cached) $ECHO_C" >&6
     5369if ac_fn_c_try_compile "$LINENO"; then :
     5370
     5371else
     5372  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5373fi
     5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5375fi
     5376
     5377
     5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
     5379$as_echo_n "checking for main in -lg... " >&6; }
     5380if test "${ac_cv_lib_g_main+set}" = set; then :
     5381  $as_echo_n "(cached) " >&6
    46475382else
    46485383  ac_check_lib_save_LIBS=$LIBS
    46495384LIBS="-lg  $LIBS"
    4650 cat >conftest.$ac_ext <<_ACEOF
    4651 /* confdefs.h.  */
    4652 _ACEOF
    4653 cat confdefs.h >>conftest.$ac_ext
    4654 cat >>conftest.$ac_ext <<_ACEOF
     5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46555386/* end confdefs.h.  */
    46565387
     
    46595390main ()
    46605391{
    4661 main ();
     5392return main ();
    46625393  ;
    46635394  return 0;
    46645395}
    46655396_ACEOF
    4666 rm -f conftest.$ac_objext conftest$ac_exeext
    4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4668   (eval $ac_link) 2>conftest.er1
    4669   ac_status=$?
    4670   grep -v '^ *+' conftest.er1 >conftest.err
    4671   rm -f conftest.er1
    4672   cat conftest.err >&5
    4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4674   (exit $ac_status); } &&
    4675      { ac_try='test -z "$ac_c_werror_flag"
    4676              || test ! -s conftest.err'
    4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4678   (eval $ac_try) 2>&5
    4679   ac_status=$?
    4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4681   (exit $ac_status); }; } &&
    4682      { ac_try='test -s conftest$ac_exeext'
    4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4684   (eval $ac_try) 2>&5
    4685   ac_status=$?
    4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4687   (exit $ac_status); }; }; then
     5397if ac_fn_c_try_link "$LINENO"; then :
    46885398  ac_cv_lib_g_main=yes
    46895399else
    4690   echo "$as_me: failed program was:" >&5
    4691 sed 's/^/| /' conftest.$ac_ext >&5
    4692 
    4693 ac_cv_lib_g_main=no
    4694 fi
    4695 rm -f conftest.err conftest.$ac_objext \
    4696       conftest$ac_exeext conftest.$ac_ext
     5400  ac_cv_lib_g_main=no
     5401fi
     5402rm -f core conftest.err conftest.$ac_objext \
     5403    conftest$ac_exeext conftest.$ac_ext
    46975404LIBS=$ac_check_lib_save_LIBS
    46985405fi
    4699 echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
    4700 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    4701 if test $ac_cv_lib_g_main = yes; then
     5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
     5407$as_echo "$ac_cv_lib_g_main" >&6; }
     5408if test "x$ac_cv_lib_g_main" = x""yes; then :
    47025409  cat >>confdefs.h <<_ACEOF
    47035410#define HAVE_LIBG 1
     
    47095416ac_cv_lib_g=ac_cv_lib_g_main
    47105417
    4711 
    4712 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4713 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4714 if test "${ac_cv_lib_m_main+set}" = set; then
    4715   echo $ECHO_N "(cached) $ECHO_C" >&6
     5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5419$as_echo_n "checking for main in -lm... " >&6; }
     5420if test "${ac_cv_lib_m_main+set}" = set; then :
     5421  $as_echo_n "(cached) " >&6
    47165422else
    47175423  ac_check_lib_save_LIBS=$LIBS
    47185424LIBS="-lm  $LIBS"
    4719 cat >conftest.$ac_ext <<_ACEOF
    4720 /* confdefs.h.  */
    4721 _ACEOF
    4722 cat confdefs.h >>conftest.$ac_ext
    4723 cat >>conftest.$ac_ext <<_ACEOF
     5425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47245426/* end confdefs.h.  */
    47255427
     
    47285430main ()
    47295431{
    4730 main ();
     5432return main ();
    47315433  ;
    47325434  return 0;
    47335435}
    47345436_ACEOF
    4735 rm -f conftest.$ac_objext conftest$ac_exeext
    4736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4737   (eval $ac_link) 2>conftest.er1
    4738   ac_status=$?
    4739   grep -v '^ *+' conftest.er1 >conftest.err
    4740   rm -f conftest.er1
    4741   cat conftest.err >&5
    4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4743   (exit $ac_status); } &&
    4744      { ac_try='test -z "$ac_c_werror_flag"
    4745              || test ! -s conftest.err'
    4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4747   (eval $ac_try) 2>&5
    4748   ac_status=$?
    4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4750   (exit $ac_status); }; } &&
    4751      { ac_try='test -s conftest$ac_exeext'
    4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4753   (eval $ac_try) 2>&5
    4754   ac_status=$?
    4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4756   (exit $ac_status); }; }; then
     5437if ac_fn_c_try_link "$LINENO"; then :
    47575438  ac_cv_lib_m_main=yes
    47585439else
    4759   echo "$as_me: failed program was:" >&5
    4760 sed 's/^/| /' conftest.$ac_ext >&5
    4761 
    4762 ac_cv_lib_m_main=no
    4763 fi
    4764 rm -f conftest.err conftest.$ac_objext \
    4765       conftest$ac_exeext conftest.$ac_ext
     5440  ac_cv_lib_m_main=no
     5441fi
     5442rm -f core conftest.err conftest.$ac_objext \
     5443    conftest$ac_exeext conftest.$ac_ext
    47665444LIBS=$ac_check_lib_save_LIBS
    47675445fi
    4768 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4769 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4770 if test $ac_cv_lib_m_main = yes; then
     5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5447$as_echo "$ac_cv_lib_m_main" >&6; }
     5448if test "x$ac_cv_lib_m_main" = x""yes; then :
    47715449  cat >>confdefs.h <<_ACEOF
    47725450#define HAVE_LIBM 1
     
    47785456ac_cv_lib_m=ac_cv_lib_m_main
    47795457
    4780 
    4781 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
    4782 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    4783 if test "${ac_cv_lib_crypt_main+set}" = set; then
    4784   echo $ECHO_N "(cached) $ECHO_C" >&6
     5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
     5459$as_echo_n "checking for main in -lcrypt... " >&6; }
     5460if test "${ac_cv_lib_crypt_main+set}" = set; then :
     5461  $as_echo_n "(cached) " >&6
    47855462else
    47865463  ac_check_lib_save_LIBS=$LIBS
    47875464LIBS="-lcrypt  $LIBS"
    4788 cat >conftest.$ac_ext <<_ACEOF
    4789 /* confdefs.h.  */
    4790 _ACEOF
    4791 cat confdefs.h >>conftest.$ac_ext
    4792 cat >>conftest.$ac_ext <<_ACEOF
     5465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47935466/* end confdefs.h.  */
    47945467
     
    47975470main ()
    47985471{
    4799 main ();
     5472return main ();
    48005473  ;
    48015474  return 0;
    48025475}
    48035476_ACEOF
    4804 rm -f conftest.$ac_objext conftest$ac_exeext
    4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4806   (eval $ac_link) 2>conftest.er1
    4807   ac_status=$?
    4808   grep -v '^ *+' conftest.er1 >conftest.err
    4809   rm -f conftest.er1
    4810   cat conftest.err >&5
    4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4812   (exit $ac_status); } &&
    4813      { ac_try='test -z "$ac_c_werror_flag"
    4814              || test ! -s conftest.err'
    4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4816   (eval $ac_try) 2>&5
    4817   ac_status=$?
    4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4819   (exit $ac_status); }; } &&
    4820      { ac_try='test -s conftest$ac_exeext'
    4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4822   (eval $ac_try) 2>&5
    4823   ac_status=$?
    4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4825   (exit $ac_status); }; }; then
     5477if ac_fn_c_try_link "$LINENO"; then :
    48265478  ac_cv_lib_crypt_main=yes
    48275479else
    4828   echo "$as_me: failed program was:" >&5
    4829 sed 's/^/| /' conftest.$ac_ext >&5
    4830 
    4831 ac_cv_lib_crypt_main=no
    4832 fi
    4833 rm -f conftest.err conftest.$ac_objext \
    4834       conftest$ac_exeext conftest.$ac_ext
     5480  ac_cv_lib_crypt_main=no
     5481fi
     5482rm -f core conftest.err conftest.$ac_objext \
     5483    conftest$ac_exeext conftest.$ac_ext
    48355484LIBS=$ac_check_lib_save_LIBS
    48365485fi
    4837 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
    4838 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    4839 if test $ac_cv_lib_crypt_main = yes; then
     5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
     5487$as_echo "$ac_cv_lib_crypt_main" >&6; }
     5488if test "x$ac_cv_lib_crypt_main" = x""yes; then :
    48405489  cat >>confdefs.h <<_ACEOF
    48415490#define HAVE_LIBCRYPT 1
     
    48515500#fi
    48525501
    4853 
    4854 
    4855 
    4856 
    4857 
    48585502ac_header_dirent=no
    48595503for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4860   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4861 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4862 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4864   echo $ECHO_N "(cached) $ECHO_C" >&6
    4865 else
    4866   cat >conftest.$ac_ext <<_ACEOF
    4867 /* confdefs.h.  */
    4868 _ACEOF
    4869 cat confdefs.h >>conftest.$ac_ext
    4870 cat >>conftest.$ac_ext <<_ACEOF
     5504  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5506$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5507if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5508  $as_echo_n "(cached) " >&6
     5509else
     5510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48715511/* end confdefs.h.  */
    48725512#include <sys/types.h>
     
    48825522}
    48835523_ACEOF
    4884 rm -f conftest.$ac_objext
    4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4886   (eval $ac_compile) 2>conftest.er1
    4887   ac_status=$?
    4888   grep -v '^ *+' conftest.er1 >conftest.err
    4889   rm -f conftest.er1
    4890   cat conftest.err >&5
    4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4892   (exit $ac_status); } &&
    4893      { ac_try='test -z "$ac_c_werror_flag"
    4894              || test ! -s conftest.err'
    4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4896   (eval $ac_try) 2>&5
    4897   ac_status=$?
    4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4899   (exit $ac_status); }; } &&
    4900      { ac_try='test -s conftest.$ac_objext'
    4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4902   (eval $ac_try) 2>&5
    4903   ac_status=$?
    4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4905   (exit $ac_status); }; }; then
     5524if ac_fn_c_try_compile "$LINENO"; then :
    49065525  eval "$as_ac_Header=yes"
    49075526else
    4908   echo "$as_me: failed program was:" >&5
    4909 sed 's/^/| /' conftest.$ac_ext >&5
    4910 
    4911 eval "$as_ac_Header=no"
    4912 fi
    4913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4914 fi
    4915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5527  eval "$as_ac_Header=no"
     5528fi
     5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5530fi
     5531eval ac_res=\$$as_ac_Header
     5532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5533$as_echo "$ac_res" >&6; }
     5534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    49185535  cat >>confdefs.h <<_ACEOF
    4919 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5536#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    49205537_ACEOF
    49215538
     
    49265543# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    49275544if test $ac_header_dirent = dirent.h; then
    4928   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4929 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4930 if test "${ac_cv_search_opendir+set}" = set; then
    4931   echo $ECHO_N "(cached) $ECHO_C" >&6
     5545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5546$as_echo_n "checking for library containing opendir... " >&6; }
     5547if test "${ac_cv_search_opendir+set}" = set; then :
     5548  $as_echo_n "(cached) " >&6
    49325549else
    49335550  ac_func_search_save_LIBS=$LIBS
    4934 ac_cv_search_opendir=no
    4935 cat >conftest.$ac_ext <<_ACEOF
    4936 /* confdefs.h.  */
    4937 _ACEOF
    4938 cat confdefs.h >>conftest.$ac_ext
    4939 cat >>conftest.$ac_ext <<_ACEOF
     5551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49405552/* end confdefs.h.  */
    49415553
    4942 /* Override any gcc2 internal prototype to avoid an error.  */
     5554/* Override any GCC internal prototype to avoid an error.
     5555   Use char because int might match the return type of a GCC
     5556   builtin and then its argument prototype would still apply.  */
    49435557#ifdef __cplusplus
    49445558extern "C"
    49455559#endif
    4946 /* We use char because int might match the return type of a gcc2
    4947    builtin and then its argument prototype would still apply.  */
    49485560char opendir ();
    49495561int
    49505562main ()
    49515563{
    4952 opendir ();
     5564return opendir ();
    49535565  ;
    49545566  return 0;
    49555567}
    49565568_ACEOF
    4957 rm -f conftest.$ac_objext conftest$ac_exeext
    4958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4959   (eval $ac_link) 2>conftest.er1
    4960   ac_status=$?
    4961   grep -v '^ *+' conftest.er1 >conftest.err
    4962   rm -f conftest.er1
    4963   cat conftest.err >&5
    4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4965   (exit $ac_status); } &&
    4966      { ac_try='test -z "$ac_c_werror_flag"
    4967              || test ! -s conftest.err'
    4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4969   (eval $ac_try) 2>&5
    4970   ac_status=$?
    4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4972   (exit $ac_status); }; } &&
    4973      { ac_try='test -s conftest$ac_exeext'
    4974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4975   (eval $ac_try) 2>&5
    4976   ac_status=$?
    4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4978   (exit $ac_status); }; }; then
    4979   ac_cv_search_opendir="none required"
    4980 else
    4981   echo "$as_me: failed program was:" >&5
    4982 sed 's/^/| /' conftest.$ac_ext >&5
    4983 
    4984 fi
    4985 rm -f conftest.err conftest.$ac_objext \
    4986       conftest$ac_exeext conftest.$ac_ext
    4987 if test "$ac_cv_search_opendir" = no; then
    4988   for ac_lib in dir; do
     5569for ac_lib in '' dir; do
     5570  if test -z "$ac_lib"; then
     5571    ac_res="none required"
     5572  else
     5573    ac_res=-l$ac_lib
    49895574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4990     cat >conftest.$ac_ext <<_ACEOF
    4991 /* confdefs.h.  */
    4992 _ACEOF
    4993 cat confdefs.h >>conftest.$ac_ext
    4994 cat >>conftest.$ac_ext <<_ACEOF
     5575  fi
     5576  if ac_fn_c_try_link "$LINENO"; then :
     5577  ac_cv_search_opendir=$ac_res
     5578fi
     5579rm -f core conftest.err conftest.$ac_objext \
     5580    conftest$ac_exeext
     5581  if test "${ac_cv_search_opendir+set}" = set; then :
     5582  break
     5583fi
     5584done
     5585if test "${ac_cv_search_opendir+set}" = set; then :
     5586
     5587else
     5588  ac_cv_search_opendir=no
     5589fi
     5590rm conftest.$ac_ext
     5591LIBS=$ac_func_search_save_LIBS
     5592fi
     5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5594$as_echo "$ac_cv_search_opendir" >&6; }
     5595ac_res=$ac_cv_search_opendir
     5596if test "$ac_res" != no; then :
     5597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5598
     5599fi
     5600
     5601else
     5602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5603$as_echo_n "checking for library containing opendir... " >&6; }
     5604if test "${ac_cv_search_opendir+set}" = set; then :
     5605  $as_echo_n "(cached) " >&6
     5606else
     5607  ac_func_search_save_LIBS=$LIBS
     5608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49955609/* end confdefs.h.  */
    49965610
    4997 /* Override any gcc2 internal prototype to avoid an error.  */
     5611/* Override any GCC internal prototype to avoid an error.
     5612   Use char because int might match the return type of a GCC
     5613   builtin and then its argument prototype would still apply.  */
    49985614#ifdef __cplusplus
    49995615extern "C"
    50005616#endif
    5001 /* We use char because int might match the return type of a gcc2
    5002    builtin and then its argument prototype would still apply.  */
    50035617char opendir ();
    50045618int
    50055619main ()
    50065620{
    5007 opendir ();
     5621return opendir ();
    50085622  ;
    50095623  return 0;
    50105624}
    50115625_ACEOF
    5012 rm -f conftest.$ac_objext conftest$ac_exeext
    5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5014   (eval $ac_link) 2>conftest.er1
    5015   ac_status=$?
    5016   grep -v '^ *+' conftest.er1 >conftest.err
    5017   rm -f conftest.er1
    5018   cat conftest.err >&5
    5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5020   (exit $ac_status); } &&
    5021      { ac_try='test -z "$ac_c_werror_flag"
    5022              || test ! -s conftest.err'
    5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5024   (eval $ac_try) 2>&5
    5025   ac_status=$?
    5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5027   (exit $ac_status); }; } &&
    5028      { ac_try='test -s conftest$ac_exeext'
    5029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5030   (eval $ac_try) 2>&5
    5031   ac_status=$?
    5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5033   (exit $ac_status); }; }; then
    5034   ac_cv_search_opendir="-l$ac_lib"
    5035 break
    5036 else
    5037   echo "$as_me: failed program was:" >&5
    5038 sed 's/^/| /' conftest.$ac_ext >&5
    5039 
    5040 fi
    5041 rm -f conftest.err conftest.$ac_objext \
    5042       conftest$ac_exeext conftest.$ac_ext
    5043   done
    5044 fi
     5626for ac_lib in '' x; do
     5627  if test -z "$ac_lib"; then
     5628    ac_res="none required"
     5629  else
     5630    ac_res=-l$ac_lib
     5631    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5632  fi
     5633  if ac_fn_c_try_link "$LINENO"; then :
     5634  ac_cv_search_opendir=$ac_res
     5635fi
     5636rm -f core conftest.err conftest.$ac_objext \
     5637    conftest$ac_exeext
     5638  if test "${ac_cv_search_opendir+set}" = set; then :
     5639  break
     5640fi
     5641done
     5642if test "${ac_cv_search_opendir+set}" = set; then :
     5643
     5644else
     5645  ac_cv_search_opendir=no
     5646fi
     5647rm conftest.$ac_ext
    50455648LIBS=$ac_func_search_save_LIBS
    50465649fi
    5047 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5048 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5049 if test "$ac_cv_search_opendir" != no; then
    5050   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5051 
    5052 fi
    5053 
    5054 else
    5055   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    5056 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    5057 if test "${ac_cv_search_opendir+set}" = set; then
    5058   echo $ECHO_N "(cached) $ECHO_C" >&6
    5059 else
    5060   ac_func_search_save_LIBS=$LIBS
    5061 ac_cv_search_opendir=no
    5062 cat >conftest.$ac_ext <<_ACEOF
    5063 /* confdefs.h.  */
    5064 _ACEOF
    5065 cat confdefs.h >>conftest.$ac_ext
    5066 cat >>conftest.$ac_ext <<_ACEOF
    5067 /* end confdefs.h.  */
    5068 
    5069 /* Override any gcc2 internal prototype to avoid an error.  */
    5070 #ifdef __cplusplus
    5071 extern "C"
    5072 #endif
    5073 /* We use char because int might match the return type of a gcc2
    5074    builtin and then its argument prototype would still apply.  */
    5075 char opendir ();
    5076 int
    5077 main ()
    5078 {
    5079 opendir ();
    5080   ;
    5081   return 0;
    5082 }
    5083 _ACEOF
    5084 rm -f conftest.$ac_objext conftest$ac_exeext
    5085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5086   (eval $ac_link) 2>conftest.er1
    5087   ac_status=$?
    5088   grep -v '^ *+' conftest.er1 >conftest.err
    5089   rm -f conftest.er1
    5090   cat conftest.err >&5
    5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5092   (exit $ac_status); } &&
    5093      { ac_try='test -z "$ac_c_werror_flag"
    5094              || test ! -s conftest.err'
    5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5096   (eval $ac_try) 2>&5
    5097   ac_status=$?
    5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5099   (exit $ac_status); }; } &&
    5100      { ac_try='test -s conftest$ac_exeext'
    5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5102   (eval $ac_try) 2>&5
    5103   ac_status=$?
    5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5105   (exit $ac_status); }; }; then
    5106   ac_cv_search_opendir="none required"
    5107 else
    5108   echo "$as_me: failed program was:" >&5
    5109 sed 's/^/| /' conftest.$ac_ext >&5
    5110 
    5111 fi
    5112 rm -f conftest.err conftest.$ac_objext \
    5113       conftest$ac_exeext conftest.$ac_ext
    5114 if test "$ac_cv_search_opendir" = no; then
    5115   for ac_lib in x; do
    5116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    5117     cat >conftest.$ac_ext <<_ACEOF
    5118 /* confdefs.h.  */
    5119 _ACEOF
    5120 cat confdefs.h >>conftest.$ac_ext
    5121 cat >>conftest.$ac_ext <<_ACEOF
    5122 /* end confdefs.h.  */
    5123 
    5124 /* Override any gcc2 internal prototype to avoid an error.  */
    5125 #ifdef __cplusplus
    5126 extern "C"
    5127 #endif
    5128 /* We use char because int might match the return type of a gcc2
    5129    builtin and then its argument prototype would still apply.  */
    5130 char opendir ();
    5131 int
    5132 main ()
    5133 {
    5134 opendir ();
    5135   ;
    5136   return 0;
    5137 }
    5138 _ACEOF
    5139 rm -f conftest.$ac_objext conftest$ac_exeext
    5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5141   (eval $ac_link) 2>conftest.er1
    5142   ac_status=$?
    5143   grep -v '^ *+' conftest.er1 >conftest.err
    5144   rm -f conftest.er1
    5145   cat conftest.err >&5
    5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5147   (exit $ac_status); } &&
    5148      { ac_try='test -z "$ac_c_werror_flag"
    5149              || test ! -s conftest.err'
    5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5151   (eval $ac_try) 2>&5
    5152   ac_status=$?
    5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5154   (exit $ac_status); }; } &&
    5155      { ac_try='test -s conftest$ac_exeext'
    5156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5157   (eval $ac_try) 2>&5
    5158   ac_status=$?
    5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5160   (exit $ac_status); }; }; then
    5161   ac_cv_search_opendir="-l$ac_lib"
    5162 break
    5163 else
    5164   echo "$as_me: failed program was:" >&5
    5165 sed 's/^/| /' conftest.$ac_ext >&5
    5166 
    5167 fi
    5168 rm -f conftest.err conftest.$ac_objext \
    5169       conftest$ac_exeext conftest.$ac_ext
    5170   done
    5171 fi
    5172 LIBS=$ac_func_search_save_LIBS
    5173 fi
    5174 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5175 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5176 if test "$ac_cv_search_opendir" != no; then
    5177   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5178 
    5179 fi
    5180 
    5181 fi
    5182 
    5183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5185 if test "${ac_cv_header_stdc+set}" = set; then
    5186   echo $ECHO_N "(cached) $ECHO_C" >&6
    5187 else
    5188   cat >conftest.$ac_ext <<_ACEOF
    5189 /* confdefs.h.  */
    5190 _ACEOF
    5191 cat confdefs.h >>conftest.$ac_ext
    5192 cat >>conftest.$ac_ext <<_ACEOF
     5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5651$as_echo "$ac_cv_search_opendir" >&6; }
     5652ac_res=$ac_cv_search_opendir
     5653if test "$ac_res" != no; then :
     5654  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5655
     5656fi
     5657
     5658fi
     5659
     5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5661$as_echo_n "checking for ANSI C header files... " >&6; }
     5662if test "${ac_cv_header_stdc+set}" = set; then :
     5663  $as_echo_n "(cached) " >&6
     5664else
     5665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51935666/* end confdefs.h.  */
    51945667#include <stdlib.h>
     
    52055678}
    52065679_ACEOF
    5207 rm -f conftest.$ac_objext
    5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5209   (eval $ac_compile) 2>conftest.er1
    5210   ac_status=$?
    5211   grep -v '^ *+' conftest.er1 >conftest.err
    5212   rm -f conftest.er1
    5213   cat conftest.err >&5
    5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5215   (exit $ac_status); } &&
    5216      { ac_try='test -z "$ac_c_werror_flag"
    5217              || test ! -s conftest.err'
    5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5219   (eval $ac_try) 2>&5
    5220   ac_status=$?
    5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5222   (exit $ac_status); }; } &&
    5223      { ac_try='test -s conftest.$ac_objext'
    5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5225   (eval $ac_try) 2>&5
    5226   ac_status=$?
    5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5228   (exit $ac_status); }; }; then
     5680if ac_fn_c_try_compile "$LINENO"; then :
    52295681  ac_cv_header_stdc=yes
    52305682else
    5231   echo "$as_me: failed program was:" >&5
    5232 sed 's/^/| /' conftest.$ac_ext >&5
    5233 
    5234 ac_cv_header_stdc=no
    5235 fi
    5236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5683  ac_cv_header_stdc=no
     5684fi
     5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    52375686
    52385687if test $ac_cv_header_stdc = yes; then
    52395688  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5240   cat >conftest.$ac_ext <<_ACEOF
    5241 /* confdefs.h.  */
    5242 _ACEOF
    5243 cat confdefs.h >>conftest.$ac_ext
    5244 cat >>conftest.$ac_ext <<_ACEOF
     5689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52455690/* end confdefs.h.  */
    52465691#include <string.h>
     
    52485693_ACEOF
    52495694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5250   $EGREP "memchr" >/dev/null 2>&1; then
    5251   :
     5695  $EGREP "memchr" >/dev/null 2>&1; then :
     5696
    52525697else
    52535698  ac_cv_header_stdc=no
     
    52595704if test $ac_cv_header_stdc = yes; then
    52605705  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5261   cat >conftest.$ac_ext <<_ACEOF
    5262 /* confdefs.h.  */
    5263 _ACEOF
    5264 cat confdefs.h >>conftest.$ac_ext
    5265 cat >>conftest.$ac_ext <<_ACEOF
     5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52665707/* end confdefs.h.  */
    52675708#include <stdlib.h>
     
    52695710_ACEOF
    52705711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5271   $EGREP "free" >/dev/null 2>&1; then
    5272   :
     5712  $EGREP "free" >/dev/null 2>&1; then :
     5713
    52735714else
    52745715  ac_cv_header_stdc=no
     
    52805721if test $ac_cv_header_stdc = yes; then
    52815722  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5282   if test "$cross_compiling" = yes; then
     5723  if test "$cross_compiling" = yes; then :
    52835724  :
    52845725else
    5285   cat >conftest.$ac_ext <<_ACEOF
    5286 /* confdefs.h.  */
    5287 _ACEOF
    5288 cat confdefs.h >>conftest.$ac_ext
    5289 cat >>conftest.$ac_ext <<_ACEOF
     5726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52905727/* end confdefs.h.  */
    52915728#include <ctype.h>
     5729#include <stdlib.h>
    52925730#if ((' ' & 0x0FF) == 0x020)
    52935731# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    53095747    if (XOR (islower (i), ISLOWER (i))
    53105748    || toupper (i) != TOUPPER (i))
    5311       exit(2);
    5312   exit (0);
     5749      return 2;
     5750  return 0;
    53135751}
    53145752_ACEOF
    5315 rm -f conftest$ac_exeext
    5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5317   (eval $ac_link) 2>&5
    5318   ac_status=$?
    5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5322   (eval $ac_try) 2>&5
    5323   ac_status=$?
    5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5325   (exit $ac_status); }; }; then
    5326   :
    5327 else
    5328   echo "$as_me: program exited with status $ac_status" >&5
    5329 echo "$as_me: failed program was:" >&5
    5330 sed 's/^/| /' conftest.$ac_ext >&5
    5331 
    5332 ( exit $ac_status )
    5333 ac_cv_header_stdc=no
    5334 fi
    5335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5336 fi
    5337 fi
    5338 fi
    5339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5753if ac_fn_c_try_run "$LINENO"; then :
     5754
     5755else
     5756  ac_cv_header_stdc=no
     5757fi
     5758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5759  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5760fi
     5761
     5762fi
     5763fi
     5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5765$as_echo "$ac_cv_header_stdc" >&6; }
    53415766if test $ac_cv_header_stdc = yes; then
    53425767
    5343 cat >>confdefs.h <<\_ACEOF
    5344 #define STDC_HEADERS 1
    5345 _ACEOF
    5346 
    5347 fi
    5348 
    5349 
    5350 
    5351 
    5352 
    5353 
    5354 
    5355 
    5356 
     5768$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5769
     5770fi
    53575771
    53585772for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
    5359 do
    5360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5362   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5365   echo $ECHO_N "(cached) $ECHO_C" >&6
    5366 fi
    5367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5369 else
    5370   # Is the header compilable?
    5371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5373 cat >conftest.$ac_ext <<_ACEOF
    5374 /* confdefs.h.  */
    5375 _ACEOF
    5376 cat confdefs.h >>conftest.$ac_ext
    5377 cat >>conftest.$ac_ext <<_ACEOF
    5378 /* end confdefs.h.  */
    5379 $ac_includes_default
    5380 #include <$ac_header>
    5381 _ACEOF
    5382 rm -f conftest.$ac_objext
    5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5384   (eval $ac_compile) 2>conftest.er1
    5385   ac_status=$?
    5386   grep -v '^ *+' conftest.er1 >conftest.err
    5387   rm -f conftest.er1
    5388   cat conftest.err >&5
    5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5390   (exit $ac_status); } &&
    5391      { ac_try='test -z "$ac_c_werror_flag"
    5392              || test ! -s conftest.err'
    5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5394   (eval $ac_try) 2>&5
    5395   ac_status=$?
    5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5397   (exit $ac_status); }; } &&
    5398      { ac_try='test -s conftest.$ac_objext'
    5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5400   (eval $ac_try) 2>&5
    5401   ac_status=$?
    5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5403   (exit $ac_status); }; }; then
    5404   ac_header_compiler=yes
    5405 else
    5406   echo "$as_me: failed program was:" >&5
    5407 sed 's/^/| /' conftest.$ac_ext >&5
    5408 
    5409 ac_header_compiler=no
    5410 fi
    5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5413 echo "${ECHO_T}$ac_header_compiler" >&6
    5414 
    5415 # Is the header present?
    5416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5418 cat >conftest.$ac_ext <<_ACEOF
    5419 /* confdefs.h.  */
    5420 _ACEOF
    5421 cat confdefs.h >>conftest.$ac_ext
    5422 cat >>conftest.$ac_ext <<_ACEOF
    5423 /* end confdefs.h.  */
    5424 #include <$ac_header>
    5425 _ACEOF
    5426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5428   ac_status=$?
    5429   grep -v '^ *+' conftest.er1 >conftest.err
    5430   rm -f conftest.er1
    5431   cat conftest.err >&5
    5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5433   (exit $ac_status); } >/dev/null; then
    5434   if test -s conftest.err; then
    5435     ac_cpp_err=$ac_c_preproc_warn_flag
    5436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5437   else
    5438     ac_cpp_err=
    5439   fi
    5440 else
    5441   ac_cpp_err=yes
    5442 fi
    5443 if test -z "$ac_cpp_err"; then
    5444   ac_header_preproc=yes
    5445 else
    5446   echo "$as_me: failed program was:" >&5
    5447 sed 's/^/| /' conftest.$ac_ext >&5
    5448 
    5449   ac_header_preproc=no
    5450 fi
    5451 rm -f conftest.err conftest.$ac_ext
    5452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5453 echo "${ECHO_T}$ac_header_preproc" >&6
    5454 
    5455 # So?  What about this header?
    5456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5457   yes:no: )
    5458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5462     ac_header_preproc=yes
    5463     ;;
    5464   no:yes:* )
    5465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5477     (
    5478       cat <<\_ASBOX
    5479 ## ------------------------------------------ ##
    5480 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5481 ## ------------------------------------------ ##
    5482 _ASBOX
    5483     ) |
    5484       sed "s/^/$as_me: WARNING:     /" >&2
    5485     ;;
    5486 esac
    5487 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5490   echo $ECHO_N "(cached) $ECHO_C" >&6
    5491 else
    5492   eval "$as_ac_Header=\$ac_header_preproc"
    5493 fi
    5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5496 
    5497 fi
    5498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5773do :
     5774  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5775ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5776if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    54995777  cat >>confdefs.h <<_ACEOF
    5500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5778#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    55015779_ACEOF
    55025780
     
    55055783done
    55065784
    5507 cat >conftest.$ac_ext <<_ACEOF
    5508 /* confdefs.h.  */
    5509 _ACEOF
    5510 cat confdefs.h >>conftest.$ac_ext
    5511 cat >>conftest.$ac_ext <<_ACEOF
     5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55125786/* end confdefs.h.  */
    55135787#include <stdio.h>
     
    55155789_ACEOF
    55165790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5517   $EGREP "fread" >/dev/null 2>&1; then
    5518   cat >>confdefs.h <<\_ACEOF
    5519 #define HAVE_FREAD_DECL 1
    5520 _ACEOF
     5791  $EGREP "fread" >/dev/null 2>&1; then :
     5792  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    55215793
    55225794fi
    55235795rm -f conftest*
    55245796
    5525 cat >conftest.$ac_ext <<_ACEOF
    5526 /* confdefs.h.  */
    5527 _ACEOF
    5528 cat confdefs.h >>conftest.$ac_ext
    5529 cat >>conftest.$ac_ext <<_ACEOF
     5797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55305798/* end confdefs.h.  */
    55315799#include <stdio.h>
     
    55335801_ACEOF
    55345802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5535   $EGREP "fgetc" >/dev/null 2>&1; then
    5536   cat >>confdefs.h <<\_ACEOF
    5537 #define HAVE_FGETC_DECL 1
    5538 _ACEOF
     5803  $EGREP "fgetc" >/dev/null 2>&1; then :
     5804  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    55395805
    55405806fi
    55415807rm -f conftest*
    55425808
    5543 cat >conftest.$ac_ext <<_ACEOF
    5544 /* confdefs.h.  */
    5545 _ACEOF
    5546 cat confdefs.h >>conftest.$ac_ext
    5547 cat >>conftest.$ac_ext <<_ACEOF
     5809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55485810/* end confdefs.h.  */
    55495811#include <sys/procfs.h>
     
    55515813_ACEOF
    55525814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5553   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5554   cat >>confdefs.h <<\_ACEOF
    5555 #define HAVE_PR_BRKSIZE 1
    5556 _ACEOF
     5815  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5816  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    55575817
    55585818fi
     
    55625822# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    55635823# for constant arguments.  Useless!
    5564 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5565 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5566 if test "${ac_cv_working_alloca_h+set}" = set; then
    5567   echo $ECHO_N "(cached) $ECHO_C" >&6
    5568 else
    5569   cat >conftest.$ac_ext <<_ACEOF
    5570 /* confdefs.h.  */
    5571 _ACEOF
    5572 cat confdefs.h >>conftest.$ac_ext
    5573 cat >>conftest.$ac_ext <<_ACEOF
     5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5825$as_echo_n "checking for working alloca.h... " >&6; }
     5826if test "${ac_cv_working_alloca_h+set}" = set; then :
     5827  $as_echo_n "(cached) " >&6
     5828else
     5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55745830/* end confdefs.h.  */
    55755831#include <alloca.h>
     
    55785834{
    55795835char *p = (char *) alloca (2 * sizeof (int));
     5836              if (p) return 0;
    55805837  ;
    55815838  return 0;
    55825839}
    55835840_ACEOF
    5584 rm -f conftest.$ac_objext conftest$ac_exeext
    5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5586   (eval $ac_link) 2>conftest.er1
    5587   ac_status=$?
    5588   grep -v '^ *+' conftest.er1 >conftest.err
    5589   rm -f conftest.er1
    5590   cat conftest.err >&5
    5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5592   (exit $ac_status); } &&
    5593      { ac_try='test -z "$ac_c_werror_flag"
    5594              || test ! -s conftest.err'
    5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5596   (eval $ac_try) 2>&5
    5597   ac_status=$?
    5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5599   (exit $ac_status); }; } &&
    5600      { ac_try='test -s conftest$ac_exeext'
    5601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5602   (eval $ac_try) 2>&5
    5603   ac_status=$?
    5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5605   (exit $ac_status); }; }; then
     5841if ac_fn_c_try_link "$LINENO"; then :
    56065842  ac_cv_working_alloca_h=yes
    56075843else
    5608   echo "$as_me: failed program was:" >&5
    5609 sed 's/^/| /' conftest.$ac_ext >&5
    5610 
    5611 ac_cv_working_alloca_h=no
    5612 fi
    5613 rm -f conftest.err conftest.$ac_objext \
    5614       conftest$ac_exeext conftest.$ac_ext
    5615 fi
    5616 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5617 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5844  ac_cv_working_alloca_h=no
     5845fi
     5846rm -f core conftest.err conftest.$ac_objext \
     5847    conftest$ac_exeext conftest.$ac_ext
     5848fi
     5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5850$as_echo "$ac_cv_working_alloca_h" >&6; }
    56185851if test $ac_cv_working_alloca_h = yes; then
    56195852
    5620 cat >>confdefs.h <<\_ACEOF
    5621 #define HAVE_ALLOCA_H 1
    5622 _ACEOF
    5623 
    5624 fi
    5625 
    5626 echo "$as_me:$LINENO: checking for alloca" >&5
    5627 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5628 if test "${ac_cv_func_alloca_works+set}" = set; then
    5629   echo $ECHO_N "(cached) $ECHO_C" >&6
    5630 else
    5631   cat >conftest.$ac_ext <<_ACEOF
    5632 /* confdefs.h.  */
    5633 _ACEOF
    5634 cat confdefs.h >>conftest.$ac_ext
    5635 cat >>conftest.$ac_ext <<_ACEOF
     5853$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5854
     5855fi
     5856
     5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5858$as_echo_n "checking for alloca... " >&6; }
     5859if test "${ac_cv_func_alloca_works+set}" = set; then :
     5860  $as_echo_n "(cached) " >&6
     5861else
     5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56365863/* end confdefs.h.  */
    56375864#ifdef __GNUC__
     
    56425869#  define alloca _alloca
    56435870# else
    5644 #  if HAVE_ALLOCA_H
     5871#  ifdef HAVE_ALLOCA_H
    56455872#   include <alloca.h>
    56465873#  else
     
    56605887{
    56615888char *p = (char *) alloca (1);
     5889                    if (p) return 0;
    56625890  ;
    56635891  return 0;
    56645892}
    56655893_ACEOF
    5666 rm -f conftest.$ac_objext conftest$ac_exeext
    5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5668   (eval $ac_link) 2>conftest.er1
    5669   ac_status=$?
    5670   grep -v '^ *+' conftest.er1 >conftest.err
    5671   rm -f conftest.er1
    5672   cat conftest.err >&5
    5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5674   (exit $ac_status); } &&
    5675      { ac_try='test -z "$ac_c_werror_flag"
    5676              || test ! -s conftest.err'
    5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5678   (eval $ac_try) 2>&5
    5679   ac_status=$?
    5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5681   (exit $ac_status); }; } &&
    5682      { ac_try='test -s conftest$ac_exeext'
    5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5684   (eval $ac_try) 2>&5
    5685   ac_status=$?
    5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5687   (exit $ac_status); }; }; then
     5894if ac_fn_c_try_link "$LINENO"; then :
    56885895  ac_cv_func_alloca_works=yes
    56895896else
    5690   echo "$as_me: failed program was:" >&5
    5691 sed 's/^/| /' conftest.$ac_ext >&5
    5692 
    5693 ac_cv_func_alloca_works=no
    5694 fi
    5695 rm -f conftest.err conftest.$ac_objext \
    5696       conftest$ac_exeext conftest.$ac_ext
    5697 fi
    5698 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5699 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5897  ac_cv_func_alloca_works=no
     5898fi
     5899rm -f core conftest.err conftest.$ac_objext \
     5900    conftest$ac_exeext conftest.$ac_ext
     5901fi
     5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5903$as_echo "$ac_cv_func_alloca_works" >&6; }
    57005904
    57015905if test $ac_cv_func_alloca_works = yes; then
    57025906
    5703 cat >>confdefs.h <<\_ACEOF
    5704 #define HAVE_ALLOCA 1
    5705 _ACEOF
     5907$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    57065908
    57075909else
     
    57115913# use ar to extract alloca.o from them instead of compiling alloca.c.
    57125914
    5713 ALLOCA=alloca.$ac_objext
    5714 
    5715 cat >>confdefs.h <<\_ACEOF
    5716 #define C_ALLOCA 1
    5717 _ACEOF
    5718 
    5719 
    5720 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5721 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5722 if test "${ac_cv_os_cray+set}" = set; then
    5723   echo $ECHO_N "(cached) $ECHO_C" >&6
    5724 else
    5725   cat >conftest.$ac_ext <<_ACEOF
    5726 /* confdefs.h.  */
    5727 _ACEOF
    5728 cat confdefs.h >>conftest.$ac_ext
    5729 cat >>conftest.$ac_ext <<_ACEOF
     5915ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5916
     5917$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5918
     5919
     5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5921$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5922if test "${ac_cv_os_cray+set}" = set; then :
     5923  $as_echo_n "(cached) " >&6
     5924else
     5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57305926/* end confdefs.h.  */
    5731 #if defined(CRAY) && ! defined(CRAY2)
     5927#if defined CRAY && ! defined CRAY2
    57325928webecray
    57335929#else
     
    57375933_ACEOF
    57385934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5739   $EGREP "webecray" >/dev/null 2>&1; then
     5935  $EGREP "webecray" >/dev/null 2>&1; then :
    57405936  ac_cv_os_cray=yes
    57415937else
     
    57455941
    57465942fi
    5747 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5748 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5944$as_echo "$ac_cv_os_cray" >&6; }
    57495945if test $ac_cv_os_cray = yes; then
    57505946  for ac_func in _getb67 GETB67 getb67; do
    5751     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5752 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5754 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5755   echo $ECHO_N "(cached) $ECHO_C" >&6
    5756 else
    5757   cat >conftest.$ac_ext <<_ACEOF
    5758 /* confdefs.h.  */
    5759 _ACEOF
    5760 cat confdefs.h >>conftest.$ac_ext
    5761 cat >>conftest.$ac_ext <<_ACEOF
    5762 /* end confdefs.h.  */
    5763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5765 #define $ac_func innocuous_$ac_func
    5766 
    5767 /* System header to define __stub macros and hopefully few prototypes,
    5768     which can conflict with char $ac_func (); below.
    5769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5770     <limits.h> exists even on freestanding compilers.  */
    5771 
    5772 #ifdef __STDC__
    5773 # include <limits.h>
    5774 #else
    5775 # include <assert.h>
    5776 #endif
    5777 
    5778 #undef $ac_func
    5779 
    5780 /* Override any gcc2 internal prototype to avoid an error.  */
    5781 #ifdef __cplusplus
    5782 extern "C"
    5783 {
    5784 #endif
    5785 /* We use char because int might match the return type of a gcc2
    5786    builtin and then its argument prototype would still apply.  */
    5787 char $ac_func ();
    5788 /* The GNU C library defines this for functions which it implements
    5789     to always fail with ENOSYS.  Some functions are actually named
    5790     something starting with __ and the normal name is an alias.  */
    5791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5792 choke me
    5793 #else
    5794 char (*f) () = $ac_func;
    5795 #endif
    5796 #ifdef __cplusplus
    5797 }
    5798 #endif
    5799 
    5800 int
    5801 main ()
    5802 {
    5803 return f != $ac_func;
    5804   ;
    5805   return 0;
    5806 }
    5807 _ACEOF
    5808 rm -f conftest.$ac_objext conftest$ac_exeext
    5809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5810   (eval $ac_link) 2>conftest.er1
    5811   ac_status=$?
    5812   grep -v '^ *+' conftest.er1 >conftest.err
    5813   rm -f conftest.er1
    5814   cat conftest.err >&5
    5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5816   (exit $ac_status); } &&
    5817      { ac_try='test -z "$ac_c_werror_flag"
    5818              || test ! -s conftest.err'
    5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5820   (eval $ac_try) 2>&5
    5821   ac_status=$?
    5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5823   (exit $ac_status); }; } &&
    5824      { ac_try='test -s conftest$ac_exeext'
    5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5826   (eval $ac_try) 2>&5
    5827   ac_status=$?
    5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5829   (exit $ac_status); }; }; then
    5830   eval "$as_ac_var=yes"
    5831 else
    5832   echo "$as_me: failed program was:" >&5
    5833 sed 's/^/| /' conftest.$ac_ext >&5
    5834 
    5835 eval "$as_ac_var=no"
    5836 fi
    5837 rm -f conftest.err conftest.$ac_objext \
    5838       conftest$ac_exeext conftest.$ac_ext
    5839 fi
    5840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5842 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5947    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5948ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5949if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    58435950
    58445951cat >>confdefs.h <<_ACEOF
     
    58525959fi
    58535960
    5854 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5855 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5856 if test "${ac_cv_c_stack_direction+set}" = set; then
    5857   echo $ECHO_N "(cached) $ECHO_C" >&6
    5858 else
    5859   if test "$cross_compiling" = yes; then
     5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5962$as_echo_n "checking stack direction for C alloca... " >&6; }
     5963if test "${ac_cv_c_stack_direction+set}" = set; then :
     5964  $as_echo_n "(cached) " >&6
     5965else
     5966  if test "$cross_compiling" = yes; then :
    58605967  ac_cv_c_stack_direction=0
    58615968else
    5862   cat >conftest.$ac_ext <<_ACEOF
    5863 /* confdefs.h.  */
    5864 _ACEOF
    5865 cat confdefs.h >>conftest.$ac_ext
    5866 cat >>conftest.$ac_ext <<_ACEOF
     5969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58675970/* end confdefs.h.  */
     5971$ac_includes_default
    58685972int
    58695973find_stack_direction ()
     
    58835987main ()
    58845988{
    5885   exit (find_stack_direction () < 0);
     5989  return find_stack_direction () < 0;
    58865990}
    58875991_ACEOF
    5888 rm -f conftest$ac_exeext
    5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5890   (eval $ac_link) 2>&5
    5891   ac_status=$?
    5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5895   (eval $ac_try) 2>&5
    5896   ac_status=$?
    5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5898   (exit $ac_status); }; }; then
     5992if ac_fn_c_try_run "$LINENO"; then :
    58995993  ac_cv_c_stack_direction=1
    59005994else
    5901   echo "$as_me: program exited with status $ac_status" >&5
    5902 echo "$as_me: failed program was:" >&5
    5903 sed 's/^/| /' conftest.$ac_ext >&5
    5904 
    5905 ( exit $ac_status )
    5906 ac_cv_c_stack_direction=-1
    5907 fi
    5908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5909 fi
    5910 fi
    5911 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5912 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5913 
     5995  ac_cv_c_stack_direction=-1
     5996fi
     5997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5998  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5999fi
     6000
     6001fi
     6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     6003$as_echo "$ac_cv_c_stack_direction" >&6; }
    59146004cat >>confdefs.h <<_ACEOF
    59156005#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    59206010
    59216011if test $ac_cv_c_compiler_gnu = yes; then
    5922     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5923 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5924 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5925   echo $ECHO_N "(cached) $ECHO_C" >&6
     6012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     6013$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     6014if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     6015  $as_echo_n "(cached) " >&6
    59266016else
    59276017    ac_pattern="Autoconf.*'x'"
    5928   cat >conftest.$ac_ext <<_ACEOF
    5929 /* confdefs.h.  */
    5930 _ACEOF
    5931 cat confdefs.h >>conftest.$ac_ext
    5932 cat >>conftest.$ac_ext <<_ACEOF
     6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59336019/* end confdefs.h.  */
    59346020#include <sgtty.h>
     
    59366022_ACEOF
    59376023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5938   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6024  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59396025  ac_cv_prog_gcc_traditional=yes
    59406026else
     
    59456031
    59466032  if test $ac_cv_prog_gcc_traditional = no; then
    5947     cat >conftest.$ac_ext <<_ACEOF
    5948 /* confdefs.h.  */
    5949 _ACEOF
    5950 cat confdefs.h >>conftest.$ac_ext
    5951 cat >>conftest.$ac_ext <<_ACEOF
     6033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59526034/* end confdefs.h.  */
    59536035#include <termio.h>
     
    59556037_ACEOF
    59566038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5957   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6039  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59586040  ac_cv_prog_gcc_traditional=yes
    59596041fi
     
    59626044  fi
    59636045fi
    5964 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5965 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     6047$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    59666048  if test $ac_cv_prog_gcc_traditional = yes; then
    59676049    CC="$CC -traditional"
     
    59696051fi
    59706052
    5971 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5972 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5973 if test "${ac_cv_type_signal+set}" = set; then
    5974   echo $ECHO_N "(cached) $ECHO_C" >&6
    5975 else
    5976   cat >conftest.$ac_ext <<_ACEOF
    5977 /* confdefs.h.  */
    5978 _ACEOF
    5979 cat confdefs.h >>conftest.$ac_ext
    5980 cat >>conftest.$ac_ext <<_ACEOF
     6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     6054$as_echo_n "checking return type of signal handlers... " >&6; }
     6055if test "${ac_cv_type_signal+set}" = set; then :
     6056  $as_echo_n "(cached) " >&6
     6057else
     6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59816059/* end confdefs.h.  */
    59826060#include <sys/types.h>
    59836061#include <signal.h>
    5984 #ifdef signal
    5985 # undef signal
    5986 #endif
    5987 #ifdef __cplusplus
    5988 extern "C" void (*signal (int, void (*)(int)))(int);
    5989 #else
    5990 void (*signal ()) ();
    5991 #endif
    59926062
    59936063int
    59946064main ()
    59956065{
    5996 int i;
     6066return *(signal (0, 0)) (0) == 1;
    59976067  ;
    59986068  return 0;
    59996069}
    60006070_ACEOF
    6001 rm -f conftest.$ac_objext
    6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6003   (eval $ac_compile) 2>conftest.er1
    6004   ac_status=$?
    6005   grep -v '^ *+' conftest.er1 >conftest.err
    6006   rm -f conftest.er1
    6007   cat conftest.err >&5
    6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6009   (exit $ac_status); } &&
    6010      { ac_try='test -z "$ac_c_werror_flag"
    6011              || test ! -s conftest.err'
    6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6013   (eval $ac_try) 2>&5
    6014   ac_status=$?
    6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6016   (exit $ac_status); }; } &&
    6017      { ac_try='test -s conftest.$ac_objext'
    6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6019   (eval $ac_try) 2>&5
    6020   ac_status=$?
    6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6022   (exit $ac_status); }; }; then
     6071if ac_fn_c_try_compile "$LINENO"; then :
     6072  ac_cv_type_signal=int
     6073else
    60236074  ac_cv_type_signal=void
    6024 else
    6025   echo "$as_me: failed program was:" >&5
    6026 sed 's/^/| /' conftest.$ac_ext >&5
    6027 
    6028 ac_cv_type_signal=int
    6029 fi
    6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6031 fi
    6032 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    6033 echo "${ECHO_T}$ac_cv_type_signal" >&6
     6075fi
     6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6077fi
     6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     6079$as_echo "$ac_cv_type_signal" >&6; }
    60346080
    60356081cat >>confdefs.h <<_ACEOF
     
    60386084
    60396085
    6040 
    60416086for ac_func in vprintf
    6042 do
    6043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6044 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6046 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6047   echo $ECHO_N "(cached) $ECHO_C" >&6
    6048 else
    6049   cat >conftest.$ac_ext <<_ACEOF
    6050 /* confdefs.h.  */
    6051 _ACEOF
    6052 cat confdefs.h >>conftest.$ac_ext
    6053 cat >>conftest.$ac_ext <<_ACEOF
    6054 /* end confdefs.h.  */
    6055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6057 #define $ac_func innocuous_$ac_func
    6058 
    6059 /* System header to define __stub macros and hopefully few prototypes,
    6060     which can conflict with char $ac_func (); below.
    6061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6062     <limits.h> exists even on freestanding compilers.  */
    6063 
    6064 #ifdef __STDC__
    6065 # include <limits.h>
    6066 #else
    6067 # include <assert.h>
    6068 #endif
    6069 
    6070 #undef $ac_func
    6071 
    6072 /* Override any gcc2 internal prototype to avoid an error.  */
    6073 #ifdef __cplusplus
    6074 extern "C"
    6075 {
    6076 #endif
    6077 /* We use char because int might match the return type of a gcc2
    6078    builtin and then its argument prototype would still apply.  */
    6079 char $ac_func ();
    6080 /* The GNU C library defines this for functions which it implements
    6081     to always fail with ENOSYS.  Some functions are actually named
    6082     something starting with __ and the normal name is an alias.  */
    6083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6084 choke me
    6085 #else
    6086 char (*f) () = $ac_func;
    6087 #endif
    6088 #ifdef __cplusplus
    6089 }
    6090 #endif
    6091 
    6092 int
    6093 main ()
    6094 {
    6095 return f != $ac_func;
    6096   ;
    6097   return 0;
    6098 }
    6099 _ACEOF
    6100 rm -f conftest.$ac_objext conftest$ac_exeext
    6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6102   (eval $ac_link) 2>conftest.er1
    6103   ac_status=$?
    6104   grep -v '^ *+' conftest.er1 >conftest.err
    6105   rm -f conftest.er1
    6106   cat conftest.err >&5
    6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6108   (exit $ac_status); } &&
    6109      { ac_try='test -z "$ac_c_werror_flag"
    6110              || test ! -s conftest.err'
    6111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6112   (eval $ac_try) 2>&5
    6113   ac_status=$?
    6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6115   (exit $ac_status); }; } &&
    6116      { ac_try='test -s conftest$ac_exeext'
    6117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6118   (eval $ac_try) 2>&5
    6119   ac_status=$?
    6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6121   (exit $ac_status); }; }; then
    6122   eval "$as_ac_var=yes"
    6123 else
    6124   echo "$as_me: failed program was:" >&5
    6125 sed 's/^/| /' conftest.$ac_ext >&5
    6126 
    6127 eval "$as_ac_var=no"
    6128 fi
    6129 rm -f conftest.err conftest.$ac_objext \
    6130       conftest$ac_exeext conftest.$ac_ext
    6131 fi
    6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6134 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6087do :
     6088  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     6089if test "x$ac_cv_func_vprintf" = x""yes; then :
    61356090  cat >>confdefs.h <<_ACEOF
    6136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6137 _ACEOF
    6138 
    6139 echo "$as_me:$LINENO: checking for _doprnt" >&5
    6140 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    6141 if test "${ac_cv_func__doprnt+set}" = set; then
    6142   echo $ECHO_N "(cached) $ECHO_C" >&6
    6143 else
    6144   cat >conftest.$ac_ext <<_ACEOF
    6145 /* confdefs.h.  */
    6146 _ACEOF
    6147 cat confdefs.h >>conftest.$ac_ext
    6148 cat >>conftest.$ac_ext <<_ACEOF
    6149 /* end confdefs.h.  */
    6150 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    6151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6152 #define _doprnt innocuous__doprnt
    6153 
    6154 /* System header to define __stub macros and hopefully few prototypes,
    6155     which can conflict with char _doprnt (); below.
    6156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6157     <limits.h> exists even on freestanding compilers.  */
    6158 
    6159 #ifdef __STDC__
    6160 # include <limits.h>
    6161 #else
    6162 # include <assert.h>
    6163 #endif
    6164 
    6165 #undef _doprnt
    6166 
    6167 /* Override any gcc2 internal prototype to avoid an error.  */
    6168 #ifdef __cplusplus
    6169 extern "C"
    6170 {
    6171 #endif
    6172 /* We use char because int might match the return type of a gcc2
    6173    builtin and then its argument prototype would still apply.  */
    6174 char _doprnt ();
    6175 /* The GNU C library defines this for functions which it implements
    6176     to always fail with ENOSYS.  Some functions are actually named
    6177     something starting with __ and the normal name is an alias.  */
    6178 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    6179 choke me
    6180 #else
    6181 char (*f) () = _doprnt;
    6182 #endif
    6183 #ifdef __cplusplus
    6184 }
    6185 #endif
    6186 
    6187 int
    6188 main ()
    6189 {
    6190 return f != _doprnt;
    6191   ;
    6192   return 0;
    6193 }
    6194 _ACEOF
    6195 rm -f conftest.$ac_objext conftest$ac_exeext
    6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6197   (eval $ac_link) 2>conftest.er1
    6198   ac_status=$?
    6199   grep -v '^ *+' conftest.er1 >conftest.err
    6200   rm -f conftest.er1
    6201   cat conftest.err >&5
    6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6203   (exit $ac_status); } &&
    6204      { ac_try='test -z "$ac_c_werror_flag"
    6205              || test ! -s conftest.err'
    6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6207   (eval $ac_try) 2>&5
    6208   ac_status=$?
    6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6210   (exit $ac_status); }; } &&
    6211      { ac_try='test -s conftest$ac_exeext'
    6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6213   (eval $ac_try) 2>&5
    6214   ac_status=$?
    6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6216   (exit $ac_status); }; }; then
    6217   ac_cv_func__doprnt=yes
    6218 else
    6219   echo "$as_me: failed program was:" >&5
    6220 sed 's/^/| /' conftest.$ac_ext >&5
    6221 
    6222 ac_cv_func__doprnt=no
    6223 fi
    6224 rm -f conftest.err conftest.$ac_objext \
    6225       conftest$ac_exeext conftest.$ac_ext
    6226 fi
    6227 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    6228 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    6229 if test $ac_cv_func__doprnt = yes; then
    6230 
    6231 cat >>confdefs.h <<\_ACEOF
    6232 #define HAVE_DOPRNT 1
    6233 _ACEOF
     6091#define HAVE_VPRINTF 1
     6092_ACEOF
     6093
     6094ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     6095if test "x$ac_cv_func__doprnt" = x""yes; then :
     6096
     6097$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    62346098
    62356099fi
     
    62396103
    62406104
    6241 
    6242 
    6243 
    6244 
    6245 
    6246 
    6247 
    6248 
    6249 
    6250 
    62516105for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    6252 do
    6253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6254 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6256 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6257   echo $ECHO_N "(cached) $ECHO_C" >&6
    6258 else
    6259   cat >conftest.$ac_ext <<_ACEOF
    6260 /* confdefs.h.  */
    6261 _ACEOF
    6262 cat confdefs.h >>conftest.$ac_ext
    6263 cat >>conftest.$ac_ext <<_ACEOF
    6264 /* end confdefs.h.  */
    6265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6267 #define $ac_func innocuous_$ac_func
    6268 
    6269 /* System header to define __stub macros and hopefully few prototypes,
    6270     which can conflict with char $ac_func (); below.
    6271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6272     <limits.h> exists even on freestanding compilers.  */
    6273 
    6274 #ifdef __STDC__
    6275 # include <limits.h>
    6276 #else
    6277 # include <assert.h>
    6278 #endif
    6279 
    6280 #undef $ac_func
    6281 
    6282 /* Override any gcc2 internal prototype to avoid an error.  */
    6283 #ifdef __cplusplus
    6284 extern "C"
    6285 {
    6286 #endif
    6287 /* We use char because int might match the return type of a gcc2
    6288    builtin and then its argument prototype would still apply.  */
    6289 char $ac_func ();
    6290 /* The GNU C library defines this for functions which it implements
    6291     to always fail with ENOSYS.  Some functions are actually named
    6292     something starting with __ and the normal name is an alias.  */
    6293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6294 choke me
    6295 #else
    6296 char (*f) () = $ac_func;
    6297 #endif
    6298 #ifdef __cplusplus
    6299 }
    6300 #endif
    6301 
    6302 int
    6303 main ()
    6304 {
    6305 return f != $ac_func;
    6306   ;
    6307   return 0;
    6308 }
    6309 _ACEOF
    6310 rm -f conftest.$ac_objext conftest$ac_exeext
    6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6312   (eval $ac_link) 2>conftest.er1
    6313   ac_status=$?
    6314   grep -v '^ *+' conftest.er1 >conftest.err
    6315   rm -f conftest.er1
    6316   cat conftest.err >&5
    6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6318   (exit $ac_status); } &&
    6319      { ac_try='test -z "$ac_c_werror_flag"
    6320              || test ! -s conftest.err'
    6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6322   (eval $ac_try) 2>&5
    6323   ac_status=$?
    6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6325   (exit $ac_status); }; } &&
    6326      { ac_try='test -s conftest$ac_exeext'
    6327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6328   (eval $ac_try) 2>&5
    6329   ac_status=$?
    6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6331   (exit $ac_status); }; }; then
    6332   eval "$as_ac_var=yes"
    6333 else
    6334   echo "$as_me: failed program was:" >&5
    6335 sed 's/^/| /' conftest.$ac_ext >&5
    6336 
    6337 eval "$as_ac_var=no"
    6338 fi
    6339 rm -f conftest.err conftest.$ac_objext \
    6340       conftest$ac_exeext conftest.$ac_ext
    6341 fi
    6342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6344 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6106do :
     6107  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6108ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6109if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    63456110  cat >>confdefs.h <<_ACEOF
    6346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    63476112_ACEOF
    63486113
     
    63506115done
    63516116
    6352 
    6353 
    6354 
    6355 for ac_func in ftruncate strstr strcasecmp
    6356 do
    6357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6358 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6360 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6361   echo $ECHO_N "(cached) $ECHO_C" >&6
    6362 else
    6363   cat >conftest.$ac_ext <<_ACEOF
    6364 /* confdefs.h.  */
    6365 _ACEOF
    6366 cat confdefs.h >>conftest.$ac_ext
    6367 cat >>conftest.$ac_ext <<_ACEOF
    6368 /* end confdefs.h.  */
    6369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6371 #define $ac_func innocuous_$ac_func
    6372 
    6373 /* System header to define __stub macros and hopefully few prototypes,
    6374     which can conflict with char $ac_func (); below.
    6375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6376     <limits.h> exists even on freestanding compilers.  */
    6377 
    6378 #ifdef __STDC__
    6379 # include <limits.h>
    6380 #else
    6381 # include <assert.h>
    6382 #endif
    6383 
    6384 #undef $ac_func
    6385 
    6386 /* Override any gcc2 internal prototype to avoid an error.  */
    6387 #ifdef __cplusplus
    6388 extern "C"
    6389 {
    6390 #endif
    6391 /* We use char because int might match the return type of a gcc2
    6392    builtin and then its argument prototype would still apply.  */
    6393 char $ac_func ();
    6394 /* The GNU C library defines this for functions which it implements
    6395     to always fail with ENOSYS.  Some functions are actually named
    6396     something starting with __ and the normal name is an alias.  */
    6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6398 choke me
    6399 #else
    6400 char (*f) () = $ac_func;
    6401 #endif
    6402 #ifdef __cplusplus
    6403 }
    6404 #endif
    6405 
    6406 int
    6407 main ()
    6408 {
    6409 return f != $ac_func;
    6410   ;
    6411   return 0;
    6412 }
    6413 _ACEOF
    6414 rm -f conftest.$ac_objext conftest$ac_exeext
    6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6416   (eval $ac_link) 2>conftest.er1
    6417   ac_status=$?
    6418   grep -v '^ *+' conftest.er1 >conftest.err
    6419   rm -f conftest.er1
    6420   cat conftest.err >&5
    6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6422   (exit $ac_status); } &&
    6423      { ac_try='test -z "$ac_c_werror_flag"
    6424              || test ! -s conftest.err'
    6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6426   (eval $ac_try) 2>&5
    6427   ac_status=$?
    6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6429   (exit $ac_status); }; } &&
    6430      { ac_try='test -s conftest$ac_exeext'
    6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6432   (eval $ac_try) 2>&5
    6433   ac_status=$?
    6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6435   (exit $ac_status); }; }; then
    6436   eval "$as_ac_var=yes"
    6437 else
    6438   echo "$as_me: failed program was:" >&5
    6439 sed 's/^/| /' conftest.$ac_ext >&5
    6440 
    6441 eval "$as_ac_var=no"
    6442 fi
    6443 rm -f conftest.err conftest.$ac_objext \
    6444       conftest$ac_exeext conftest.$ac_ext
    6445 fi
    6446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6448 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6449   cat >>confdefs.h <<_ACEOF
    6450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6451 _ACEOF
    6452 
    6453 else
    6454   case $LIBOBJS in
    6455     "$ac_func.$ac_objext"   | \
    6456   *" $ac_func.$ac_objext"   | \
    6457     "$ac_func.$ac_objext "* | \
    6458   *" $ac_func.$ac_objext "* ) ;;
    6459   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6117ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     6118if test "x$ac_cv_func_ftruncate" = x""yes; then :
     6119  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6120
     6121else
     6122  case " $LIBOBJS " in
     6123  *" ftruncate.$ac_objext "* ) ;;
     6124  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6125 ;;
    64606126esac
    64616127
    64626128fi
    6463 done
    6464 
    6465 
    6466 
    6467 echo "$as_me:$LINENO: checking for textdomain" >&5
    6468 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
    6469 if test "${ac_cv_func_textdomain+set}" = set; then
    6470   echo $ECHO_N "(cached) $ECHO_C" >&6
    6471 else
    6472   cat >conftest.$ac_ext <<_ACEOF
    6473 /* confdefs.h.  */
    6474 _ACEOF
    6475 cat confdefs.h >>conftest.$ac_ext
    6476 cat >>conftest.$ac_ext <<_ACEOF
    6477 /* end confdefs.h.  */
    6478 /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
    6479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6480 #define textdomain innocuous_textdomain
    6481 
    6482 /* System header to define __stub macros and hopefully few prototypes,
    6483     which can conflict with char textdomain (); below.
    6484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6485     <limits.h> exists even on freestanding compilers.  */
    6486 
    6487 #ifdef __STDC__
    6488 # include <limits.h>
    6489 #else
    6490 # include <assert.h>
    6491 #endif
    6492 
    6493 #undef textdomain
    6494 
    6495 /* Override any gcc2 internal prototype to avoid an error.  */
    6496 #ifdef __cplusplus
    6497 extern "C"
    6498 {
    6499 #endif
    6500 /* We use char because int might match the return type of a gcc2
    6501    builtin and then its argument prototype would still apply.  */
    6502 char textdomain ();
    6503 /* The GNU C library defines this for functions which it implements
    6504     to always fail with ENOSYS.  Some functions are actually named
    6505     something starting with __ and the normal name is an alias.  */
    6506 #if defined (__stub_textdomain) || defined (__stub___textdomain)
    6507 choke me
    6508 #else
    6509 char (*f) () = textdomain;
    6510 #endif
    6511 #ifdef __cplusplus
    6512 }
    6513 #endif
    6514 
    6515 int
    6516 main ()
    6517 {
    6518 return f != textdomain;
    6519   ;
    6520   return 0;
    6521 }
    6522 _ACEOF
    6523 rm -f conftest.$ac_objext conftest$ac_exeext
    6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6525   (eval $ac_link) 2>conftest.er1
    6526   ac_status=$?
    6527   grep -v '^ *+' conftest.er1 >conftest.err
    6528   rm -f conftest.er1
    6529   cat conftest.err >&5
    6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6531   (exit $ac_status); } &&
    6532      { ac_try='test -z "$ac_c_werror_flag"
    6533              || test ! -s conftest.err'
    6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6535   (eval $ac_try) 2>&5
    6536   ac_status=$?
    6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6538   (exit $ac_status); }; } &&
    6539      { ac_try='test -s conftest$ac_exeext'
    6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6541   (eval $ac_try) 2>&5
    6542   ac_status=$?
    6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6544   (exit $ac_status); }; }; then
    6545   ac_cv_func_textdomain=yes
    6546 else
    6547   echo "$as_me: failed program was:" >&5
    6548 sed 's/^/| /' conftest.$ac_ext >&5
    6549 
    6550 ac_cv_func_textdomain=no
    6551 fi
    6552 rm -f conftest.err conftest.$ac_objext \
    6553       conftest$ac_exeext conftest.$ac_ext
    6554 fi
    6555 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
    6556 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
    6557 if test $ac_cv_func_textdomain = yes; then
    6558   cat >>confdefs.h <<\_ACEOF
    6559 #define ENABLE_NLS  1
    6560 _ACEOF
     6129
     6130ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     6131if test "x$ac_cv_func_strstr" = x""yes; then :
     6132  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     6133
     6134else
     6135  case " $LIBOBJS " in
     6136  *" strstr.$ac_objext "* ) ;;
     6137  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     6138 ;;
     6139esac
     6140
     6141fi
     6142
     6143ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     6144if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     6145  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     6146
     6147else
     6148  case " $LIBOBJS " in
     6149  *" strcasecmp.$ac_objext "* ) ;;
     6150  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     6151 ;;
     6152esac
     6153
     6154fi
     6155
     6156
     6157
     6158ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
     6159if test "x$ac_cv_func_textdomain" = x""yes; then :
     6160  $as_echo "#define ENABLE_NLS  1" >>confdefs.h
    65616161
    65626162fi
     
    65656165# *** Custom checking (based on GNU tar configure.in) ***
    65666166# ---------------------------------------------------------------------------
    6567 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6568 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     6168$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    65696169if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6570   echo "$as_me:$LINENO: result: yes" >&5
    6571 echo "${ECHO_T}yes" >&6
    6572   case $LIBOBJS in
    6573     "gmalloc.$ac_objext"   | \
    6574   *" gmalloc.$ac_objext"   | \
    6575     "gmalloc.$ac_objext "* | \
     6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6171$as_echo "yes" >&6; }
     6172  case " $LIBOBJS " in
    65766173  *" gmalloc.$ac_objext "* ) ;;
    6577   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6174  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     6175 ;;
    65786176esac
    65796177
    6580   cat >>confdefs.h <<\_ACEOF
     6178  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     6179
     6180else
     6181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6182$as_echo "no" >&6; }
     6183  for ac_func in valloc
     6184do :
     6185  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     6186if test "x$ac_cv_func_valloc" = x""yes; then :
     6187  cat >>confdefs.h <<_ACEOF
    65816188#define HAVE_VALLOC 1
    65826189_ACEOF
    65836190
    6584 else
    6585   echo "$as_me:$LINENO: result: no" >&5
    6586 echo "${ECHO_T}no" >&6
    6587 
    6588 for ac_func in valloc
    6589 do
    6590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6591 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6593 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6594   echo $ECHO_N "(cached) $ECHO_C" >&6
    6595 else
    6596   cat >conftest.$ac_ext <<_ACEOF
    6597 /* confdefs.h.  */
    6598 _ACEOF
    6599 cat confdefs.h >>conftest.$ac_ext
    6600 cat >>conftest.$ac_ext <<_ACEOF
    6601 /* end confdefs.h.  */
    6602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6604 #define $ac_func innocuous_$ac_func
    6605 
    6606 /* System header to define __stub macros and hopefully few prototypes,
    6607     which can conflict with char $ac_func (); below.
    6608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6609     <limits.h> exists even on freestanding compilers.  */
    6610 
    6611 #ifdef __STDC__
    6612 # include <limits.h>
    6613 #else
    6614 # include <assert.h>
    6615 #endif
    6616 
    6617 #undef $ac_func
    6618 
    6619 /* Override any gcc2 internal prototype to avoid an error.  */
    6620 #ifdef __cplusplus
    6621 extern "C"
    6622 {
    6623 #endif
    6624 /* We use char because int might match the return type of a gcc2
    6625    builtin and then its argument prototype would still apply.  */
    6626 char $ac_func ();
    6627 /* The GNU C library defines this for functions which it implements
    6628     to always fail with ENOSYS.  Some functions are actually named
    6629     something starting with __ and the normal name is an alias.  */
    6630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6631 choke me
    6632 #else
    6633 char (*f) () = $ac_func;
    6634 #endif
    6635 #ifdef __cplusplus
    6636 }
    6637 #endif
    6638 
    6639 int
    6640 main ()
    6641 {
    6642 return f != $ac_func;
    6643   ;
    6644   return 0;
    6645 }
    6646 _ACEOF
    6647 rm -f conftest.$ac_objext conftest$ac_exeext
    6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6649   (eval $ac_link) 2>conftest.er1
    6650   ac_status=$?
    6651   grep -v '^ *+' conftest.er1 >conftest.err
    6652   rm -f conftest.er1
    6653   cat conftest.err >&5
    6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6655   (exit $ac_status); } &&
    6656      { ac_try='test -z "$ac_c_werror_flag"
    6657              || test ! -s conftest.err'
    6658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6659   (eval $ac_try) 2>&5
    6660   ac_status=$?
    6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6662   (exit $ac_status); }; } &&
    6663      { ac_try='test -s conftest$ac_exeext'
    6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6665   (eval $ac_try) 2>&5
    6666   ac_status=$?
    6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6668   (exit $ac_status); }; }; then
    6669   eval "$as_ac_var=yes"
    6670 else
    6671   echo "$as_me: failed program was:" >&5
    6672 sed 's/^/| /' conftest.$ac_ext >&5
    6673 
    6674 eval "$as_ac_var=no"
    6675 fi
    6676 rm -f conftest.err conftest.$ac_objext \
    6677       conftest$ac_exeext conftest.$ac_ext
    6678 fi
    6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6681 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6682   cat >>confdefs.h <<_ACEOF
    6683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6684 _ACEOF
    6685 
    66866191fi
    66876192done
     
    66906195
    66916196# we cannot generate static libraries under Darwin
    6692 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6693 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
     6198$as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
    66946199if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6695   echo "$as_me:$LINENO: result: yes" >&5
    6696 echo "${ECHO_T}yes" >&6
     6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6201$as_echo "yes" >&6; }
    66976202  STATIC=""
    66986203else
    6699   echo "$as_me:$LINENO: result: no" >&5
    6700 echo "${ECHO_T}no" >&6
     6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6205$as_echo "no" >&6; }
    67016206  STATIC="-static "
    67026207fi
    67036208
    67046209
    6705 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6706 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6707 
    6708 # Check whether --with-dmalloc or --without-dmalloc was given.
    6709 if test "${with_dmalloc+set}" = set; then
    6710   withval="$with_dmalloc"
    6711   if test "$withval" = yes; then
    6712   echo "$as_me:$LINENO: result: yes" >&5
    6713 echo "${ECHO_T}yes" >&6
    6714   cat >>confdefs.h <<\_ACEOF
    6715 #define WITH_DMALLOC 1
    6716 _ACEOF
     6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     6211$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     6212
     6213# Check whether --with-dmalloc was given.
     6214if test "${with_dmalloc+set}" = set; then :
     6215  withval=$with_dmalloc; if test "$withval" = yes; then
     6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6217$as_echo "yes" >&6; }
     6218  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
    67176219
    67186220  LIBS="$LIBS -ldmalloc"
    67196221  LDFLAGS="$LDFLAGS -g"
    67206222else
    6721   echo "$as_me:$LINENO: result: no" >&5
    6722 echo "${ECHO_T}no" >&6
    6723 fi
    6724 else
    6725   echo "$as_me:$LINENO: result: no" >&5
    6726 echo "${ECHO_T}no" >&6
    6727 fi;
    6728 
    6729 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6730 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6731 
    6732 # Check whether --with-regex or --without-regex was given.
    6733 if test "${with_regex+set}" = set; then
    6734   withval="$with_regex"
    6735   if test "$withval" = yes; then
     6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6224$as_echo "no" >&6; }
     6225fi
     6226else
     6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6228$as_echo "no" >&6; }
     6229fi
     6230
     6231
     6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     6233$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     6234
     6235# Check whether --with-regex was given.
     6236if test "${with_regex+set}" = set; then :
     6237  withval=$with_regex; if test "$withval" = yes; then
    67366238  ac_with_regex=1
    6737   echo "$as_me:$LINENO: result: regex" >&5
    6738 echo "${ECHO_T}regex" >&6
    6739   cat >>confdefs.h <<\_ACEOF
    6740 #define WITH_REGEX 1
    6741 _ACEOF
    6742 
    6743   case $LIBOBJS in
    6744     "regex.$ac_objext"   | \
    6745   *" regex.$ac_objext"   | \
    6746     "regex.$ac_objext "* | \
     6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     6240$as_echo "regex" >&6; }
     6241  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     6242
     6243  case " $LIBOBJS " in
    67476244  *" regex.$ac_objext "* ) ;;
    6748   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6245  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6246 ;;
    67496247esac
    67506248
    67516249fi
    6752 fi;
     6250fi
     6251
    67536252if test -z "$ac_with_regex"; then
    6754   echo "$as_me:$LINENO: result: rx" >&5
    6755 echo "${ECHO_T}rx" >&6
    6756   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6757 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6758 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6759   echo $ECHO_N "(cached) $ECHO_C" >&6
    6760 else
    6761   cat >conftest.$ac_ext <<_ACEOF
    6762 /* confdefs.h.  */
    6763 _ACEOF
    6764 cat confdefs.h >>conftest.$ac_ext
    6765 cat >>conftest.$ac_ext <<_ACEOF
    6766 /* end confdefs.h.  */
    6767 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6769 #define re_rx_search innocuous_re_rx_search
    6770 
    6771 /* System header to define __stub macros and hopefully few prototypes,
    6772     which can conflict with char re_rx_search (); below.
    6773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6774     <limits.h> exists even on freestanding compilers.  */
    6775 
    6776 #ifdef __STDC__
    6777 # include <limits.h>
    6778 #else
    6779 # include <assert.h>
    6780 #endif
    6781 
    6782 #undef re_rx_search
    6783 
    6784 /* Override any gcc2 internal prototype to avoid an error.  */
    6785 #ifdef __cplusplus
    6786 extern "C"
    6787 {
    6788 #endif
    6789 /* We use char because int might match the return type of a gcc2
    6790    builtin and then its argument prototype would still apply.  */
    6791 char re_rx_search ();
    6792 /* The GNU C library defines this for functions which it implements
    6793     to always fail with ENOSYS.  Some functions are actually named
    6794     something starting with __ and the normal name is an alias.  */
    6795 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6796 choke me
    6797 #else
    6798 char (*f) () = re_rx_search;
    6799 #endif
    6800 #ifdef __cplusplus
    6801 }
    6802 #endif
    6803 
    6804 int
    6805 main ()
    6806 {
    6807 return f != re_rx_search;
    6808   ;
    6809   return 0;
    6810 }
    6811 _ACEOF
    6812 rm -f conftest.$ac_objext conftest$ac_exeext
    6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6814   (eval $ac_link) 2>conftest.er1
    6815   ac_status=$?
    6816   grep -v '^ *+' conftest.er1 >conftest.err
    6817   rm -f conftest.er1
    6818   cat conftest.err >&5
    6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6820   (exit $ac_status); } &&
    6821      { ac_try='test -z "$ac_c_werror_flag"
    6822              || test ! -s conftest.err'
    6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6824   (eval $ac_try) 2>&5
    6825   ac_status=$?
    6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6827   (exit $ac_status); }; } &&
    6828      { ac_try='test -s conftest$ac_exeext'
    6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6830   (eval $ac_try) 2>&5
    6831   ac_status=$?
    6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6833   (exit $ac_status); }; }; then
    6834   ac_cv_func_re_rx_search=yes
    6835 else
    6836   echo "$as_me: failed program was:" >&5
    6837 sed 's/^/| /' conftest.$ac_ext >&5
    6838 
    6839 ac_cv_func_re_rx_search=no
    6840 fi
    6841 rm -f conftest.err conftest.$ac_objext \
    6842       conftest$ac_exeext conftest.$ac_ext
    6843 fi
    6844 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6845 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6846 if test $ac_cv_func_re_rx_search = yes; then
    6847   :
    6848 else
    6849   case $LIBOBJS in
    6850     "rx.$ac_objext"   | \
    6851   *" rx.$ac_objext"   | \
    6852     "rx.$ac_objext "* | \
     6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     6254$as_echo "rx" >&6; }
     6255  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     6256if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     6257
     6258else
     6259  case " $LIBOBJS " in
    68536260  *" rx.$ac_objext "* ) ;;
    6854   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6261  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     6262 ;;
    68556263esac
    68566264
     
    68626270# ---------------------------------------------------------------------------
    68636271if test "$ac_cv_func_alloca" = 'no'; then
    6864   case $LIBOBJS in
    6865     "xmalloc.$ac_objext"   | \
    6866   *" xmalloc.$ac_objext"   | \
    6867     "xmalloc.$ac_objext "* | \
     6272  case " $LIBOBJS " in
    68686273  *" xmalloc.$ac_objext "* ) ;;
    6869   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6274  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6275 ;;
    68706276esac
    68716277
    6872   case $LIBOBJS in
    6873     "error.$ac_objext"   | \
    6874   *" error.$ac_objext"   | \
    6875     "error.$ac_objext "* | \
     6278  case " $LIBOBJS " in
    68766279  *" error.$ac_objext "* ) ;;
    6877   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6280  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6281 ;;
    68786282esac
    68796283
     
    68836287# ---------------------------------------------------------------------------
    68846288
    6885 ac_ext=cc
     6289ac_ext=cpp
    68866290ac_cpp='$CXXCPP $CPPFLAGS'
    68876291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    68916295
    68926296success=no
    6893 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
    6894 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
    6895 
    6896 
    6897 cat >conftest.$ac_ext <<_ACEOF
    6898 /* confdefs.h.  */
    6899 _ACEOF
    6900 cat confdefs.h >>conftest.$ac_ext
    6901 cat >>conftest.$ac_ext <<_ACEOF
     6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
     6298$as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
     6299
     6300
     6301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69026302/* end confdefs.h.  */
    69036303#include <vector>
     
    69116311}
    69126312_ACEOF
    6913 rm -f conftest.$ac_objext
    6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6915   (eval $ac_compile) 2>conftest.er1
    6916   ac_status=$?
    6917   grep -v '^ *+' conftest.er1 >conftest.err
    6918   rm -f conftest.er1
    6919   cat conftest.err >&5
    6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6921   (exit $ac_status); } &&
    6922      { ac_try='test -z "$ac_cxx_werror_flag"
    6923              || test ! -s conftest.err'
    6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6925   (eval $ac_try) 2>&5
    6926   ac_status=$?
    6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6928   (exit $ac_status); }; } &&
    6929      { ac_try='test -s conftest.$ac_objext'
    6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6931   (eval $ac_try) 2>&5
    6932   ac_status=$?
    6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6934   (exit $ac_status); }; }; then
     6313if ac_fn_cxx_try_compile "$LINENO"; then :
    69356314  success=yes
    6936 else
    6937   echo "$as_me: failed program was:" >&5
    6938 sed 's/^/| /' conftest.$ac_ext >&5
    6939 
    6940 fi
    6941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6315fi
     6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69426317
    69436318if test $success = "no"; then
    6944 cat >conftest.$ac_ext <<_ACEOF
    6945 /* confdefs.h.  */
    6946 _ACEOF
    6947 cat confdefs.h >>conftest.$ac_ext
    6948 cat >>conftest.$ac_ext <<_ACEOF
     6319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69496320/* end confdefs.h.  */
    69506321#include <vector.h>
     
    69586329}
    69596330_ACEOF
    6960 rm -f conftest.$ac_objext
    6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6962   (eval $ac_compile) 2>conftest.er1
    6963   ac_status=$?
    6964   grep -v '^ *+' conftest.er1 >conftest.err
    6965   rm -f conftest.er1
    6966   cat conftest.err >&5
    6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6968   (exit $ac_status); } &&
    6969      { ac_try='test -z "$ac_cxx_werror_flag"
    6970              || test ! -s conftest.err'
    6971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6972   (eval $ac_try) 2>&5
    6973   ac_status=$?
    6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6975   (exit $ac_status); }; } &&
    6976      { ac_try='test -s conftest.$ac_objext'
    6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6978   (eval $ac_try) 2>&5
    6979   ac_status=$?
    6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6981   (exit $ac_status); }; }; then
     6331if ac_fn_cxx_try_compile "$LINENO"; then :
    69826332  success="yes"
    6983 else
    6984   echo "$as_me: failed program was:" >&5
    6985 sed 's/^/| /' conftest.$ac_ext >&5
    6986 
    6987 fi
    6988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6333fi
     6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69896335fi
    69906336
    69916337if test $success = "no"; then
    6992 cat >conftest.$ac_ext <<_ACEOF
    6993 /* confdefs.h.  */
    6994 _ACEOF
    6995 cat confdefs.h >>conftest.$ac_ext
    6996 cat >>conftest.$ac_ext <<_ACEOF
     6338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69976339/* end confdefs.h.  */
    69986340#include <ospace\\std\\vector>
     
    70066348}
    70076349_ACEOF
    7008 rm -f conftest.$ac_objext
    7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7010   (eval $ac_compile) 2>conftest.er1
    7011   ac_status=$?
    7012   grep -v '^ *+' conftest.er1 >conftest.err
    7013   rm -f conftest.er1
    7014   cat conftest.err >&5
    7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7016   (exit $ac_status); } &&
    7017      { ac_try='test -z "$ac_cxx_werror_flag"
    7018              || test ! -s conftest.err'
    7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7020   (eval $ac_try) 2>&5
    7021   ac_status=$?
    7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7023   (exit $ac_status); }; } &&
    7024      { ac_try='test -s conftest.$ac_objext'
    7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7026   (eval $ac_try) 2>&5
    7027   ac_status=$?
    7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7029   (exit $ac_status); }; }; then
     6350if ac_fn_cxx_try_compile "$LINENO"; then :
    70306351  success="yes"
    7031 else
    7032   echo "$as_me: failed program was:" >&5
    7033 sed 's/^/| /' conftest.$ac_ext >&5
    7034 
    7035 fi
    7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6352fi
     6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    70376354fi
    70386355
    70396356if test $success = yes; then
    7040 echo "$as_me:$LINENO: result: \"no\"" >&5
    7041 echo "${ECHO_T}\"no\"" >&6
    7042 else
    7043 echo "$as_me:$LINENO: result: \"yes\"" >&5
    7044 echo "${ECHO_T}\"yes\"" >&6
    7045 { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
    7046 echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
    7047    { (exit 1); exit 1; }; }
     6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6358$as_echo "\"no\"" >&6; }
     6359else
     6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6361$as_echo "\"yes\"" >&6; }
     6362as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
    70486363fi
    70496364
     
    70576372
    70586373# check for endianness
    7059 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    7060 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    7061 if test "${ac_cv_c_bigendian+set}" = set; then
    7062   echo $ECHO_N "(cached) $ECHO_C" >&6
    7063 else
    7064   # See if sys/param.h defines the BYTE_ORDER macro.
    7065 cat >conftest.$ac_ext <<_ACEOF
    7066 /* confdefs.h.  */
    7067 _ACEOF
    7068 cat confdefs.h >>conftest.$ac_ext
    7069 cat >>conftest.$ac_ext <<_ACEOF
     6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6375$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6376if test "${ac_cv_c_bigendian+set}" = set; then :
     6377  $as_echo_n "(cached) " >&6
     6378else
     6379  ac_cv_c_bigendian=unknown
     6380    # See if we're dealing with a universal compiler.
     6381    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6382/* end confdefs.h.  */
     6383#ifndef __APPLE_CC__
     6384           not a universal capable compiler
     6385         #endif
     6386         typedef int dummy;
     6387
     6388_ACEOF
     6389if ac_fn_cxx_try_compile "$LINENO"; then :
     6390
     6391    # Check for potential -arch flags.  It is not universal unless
     6392    # there are at least two -arch flags with different values.
     6393    ac_arch=
     6394    ac_prev=
     6395    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     6396     if test -n "$ac_prev"; then
     6397       case $ac_word in
     6398         i?86 | x86_64 | ppc | ppc64)
     6399           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     6400         ac_arch=$ac_word
     6401           else
     6402         ac_cv_c_bigendian=universal
     6403         break
     6404           fi
     6405           ;;
     6406       esac
     6407       ac_prev=
     6408     elif test "x$ac_word" = "x-arch"; then
     6409       ac_prev=arch
     6410     fi
     6411       done
     6412fi
     6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6414    if test $ac_cv_c_bigendian = unknown; then
     6415      # See if sys/param.h defines the BYTE_ORDER macro.
     6416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70706417/* end confdefs.h.  */
    70716418#include <sys/types.h>
    7072 #include <sys/param.h>
     6419         #include <sys/param.h>
    70736420
    70746421int
    70756422main ()
    70766423{
    7077 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    7078  bogus endian macros
    7079 #endif
     6424#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     6425             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     6426             && LITTLE_ENDIAN)
     6427          bogus endian macros
     6428         #endif
    70806429
    70816430  ;
     
    70836432}
    70846433_ACEOF
    7085 rm -f conftest.$ac_objext
    7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7087   (eval $ac_compile) 2>conftest.er1
    7088   ac_status=$?
    7089   grep -v '^ *+' conftest.er1 >conftest.err
    7090   rm -f conftest.er1
    7091   cat conftest.err >&5
    7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7093   (exit $ac_status); } &&
    7094      { ac_try='test -z "$ac_cxx_werror_flag"
    7095              || test ! -s conftest.err'
    7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7097   (eval $ac_try) 2>&5
    7098   ac_status=$?
    7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7100   (exit $ac_status); }; } &&
    7101      { ac_try='test -s conftest.$ac_objext'
    7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7103   (eval $ac_try) 2>&5
    7104   ac_status=$?
    7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7106   (exit $ac_status); }; }; then
     6434if ac_fn_cxx_try_compile "$LINENO"; then :
    71076435  # It does; now see whether it defined to BIG_ENDIAN or not.
    7108 cat >conftest.$ac_ext <<_ACEOF
    7109 /* confdefs.h.  */
    7110 _ACEOF
    7111 cat confdefs.h >>conftest.$ac_ext
    7112 cat >>conftest.$ac_ext <<_ACEOF
     6436     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71136437/* end confdefs.h.  */
    71146438#include <sys/types.h>
    7115 #include <sys/param.h>
     6439        #include <sys/param.h>
    71166440
    71176441int
     
    71196443{
    71206444#if BYTE_ORDER != BIG_ENDIAN
    7121  not big endian
    7122 #endif
     6445        not big endian
     6446        #endif
    71236447
    71246448  ;
     
    71266450}
    71276451_ACEOF
    7128 rm -f conftest.$ac_objext
    7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7130   (eval $ac_compile) 2>conftest.er1
    7131   ac_status=$?
    7132   grep -v '^ *+' conftest.er1 >conftest.err
    7133   rm -f conftest.er1
    7134   cat conftest.err >&5
    7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7136   (exit $ac_status); } &&
    7137      { ac_try='test -z "$ac_cxx_werror_flag"
    7138              || test ! -s conftest.err'
    7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7140   (eval $ac_try) 2>&5
    7141   ac_status=$?
    7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7143   (exit $ac_status); }; } &&
    7144      { ac_try='test -s conftest.$ac_objext'
    7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7146   (eval $ac_try) 2>&5
    7147   ac_status=$?
    7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7149   (exit $ac_status); }; }; then
     6452if ac_fn_cxx_try_compile "$LINENO"; then :
    71506453  ac_cv_c_bigendian=yes
    71516454else
    7152   echo "$as_me: failed program was:" >&5
    7153 sed 's/^/| /' conftest.$ac_ext >&5
    7154 
    7155 ac_cv_c_bigendian=no
    7156 fi
    7157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7158 else
    7159   echo "$as_me: failed program was:" >&5
    7160 sed 's/^/| /' conftest.$ac_ext >&5
    7161 
    7162 # It does not; compile a test program.
    7163 if test "$cross_compiling" = yes; then
    7164   # try to guess the endianness by grepping values into an object file
    7165   ac_cv_c_bigendian=unknown
    7166   cat >conftest.$ac_ext <<_ACEOF
    7167 /* confdefs.h.  */
    7168 _ACEOF
    7169 cat confdefs.h >>conftest.$ac_ext
    7170 cat >>conftest.$ac_ext <<_ACEOF
     6455  ac_cv_c_bigendian=no
     6456fi
     6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6458fi
     6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6460    fi
     6461    if test $ac_cv_c_bigendian = unknown; then
     6462      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     6463      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71716464/* end confdefs.h.  */
    7172 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    7173 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    7174 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    7175 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    7176 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    7177 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6465#include <limits.h>
     6466
    71786467int
    71796468main ()
    71806469{
    7181  _ascii (); _ebcdic ();
     6470#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     6471          bogus endian macros
     6472         #endif
     6473
    71826474  ;
    71836475  return 0;
    71846476}
    71856477_ACEOF
    7186 rm -f conftest.$ac_objext
    7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7188   (eval $ac_compile) 2>conftest.er1
    7189   ac_status=$?
    7190   grep -v '^ *+' conftest.er1 >conftest.err
    7191   rm -f conftest.er1
    7192   cat conftest.err >&5
    7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7194   (exit $ac_status); } &&
    7195      { ac_try='test -z "$ac_cxx_werror_flag"
    7196              || test ! -s conftest.err'
    7197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7198   (eval $ac_try) 2>&5
    7199   ac_status=$?
    7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7201   (exit $ac_status); }; } &&
    7202      { ac_try='test -s conftest.$ac_objext'
    7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7204   (eval $ac_try) 2>&5
    7205   ac_status=$?
    7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7207   (exit $ac_status); }; }; then
    7208   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    7209   ac_cv_c_bigendian=yes
    7210 fi
    7211 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    7212   if test "$ac_cv_c_bigendian" = unknown; then
    7213     ac_cv_c_bigendian=no
    7214   else
    7215     # finding both strings is unlikely to happen, but who knows?
    7216     ac_cv_c_bigendian=unknown
    7217   fi
    7218 fi
    7219 else
    7220   echo "$as_me: failed program was:" >&5
    7221 sed 's/^/| /' conftest.$ac_ext >&5
    7222 
    7223 fi
    7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7225 else
    7226   cat >conftest.$ac_ext <<_ACEOF
    7227 /* confdefs.h.  */
    7228 _ACEOF
    7229 cat confdefs.h >>conftest.$ac_ext
    7230 cat >>conftest.$ac_ext <<_ACEOF
     6478if ac_fn_cxx_try_compile "$LINENO"; then :
     6479  # It does; now see whether it defined to _BIG_ENDIAN or not.
     6480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    72316481/* end confdefs.h.  */
     6482#include <limits.h>
     6483
    72326484int
    72336485main ()
    72346486{
    7235   /* Are we little or big endian?  From Harbison&Steele.  */
    7236   union
    7237   {
    7238     long l;
    7239     char c[sizeof (long)];
    7240   } u;
    7241   u.l = 1;
    7242   exit (u.c[sizeof (long) - 1] == 1);
     6487#ifndef _BIG_ENDIAN
     6488         not big endian
     6489        #endif
     6490
     6491  ;
     6492  return 0;
    72436493}
    72446494_ACEOF
    7245 rm -f conftest$ac_exeext
    7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7247   (eval $ac_link) 2>&5
    7248   ac_status=$?
    7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7252   (eval $ac_try) 2>&5
    7253   ac_status=$?
    7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7255   (exit $ac_status); }; }; then
     6495if ac_fn_cxx_try_compile "$LINENO"; then :
     6496  ac_cv_c_bigendian=yes
     6497else
    72566498  ac_cv_c_bigendian=no
    7257 else
    7258   echo "$as_me: program exited with status $ac_status" >&5
    7259 echo "$as_me: failed program was:" >&5
    7260 sed 's/^/| /' conftest.$ac_ext >&5
    7261 
    7262 ( exit $ac_status )
    7263 ac_cv_c_bigendian=yes
    7264 fi
    7265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7266 fi
    7267 fi
    7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7269 fi
    7270 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    7271 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    7272 case $ac_cv_c_bigendian in
    7273   yes)
    7274 
    7275 cat >>confdefs.h <<\_ACEOF
    7276 #define WORDS_BIGENDIAN 1
    7277 _ACEOF
    7278  ;;
    7279   no)
    7280      ;;
    7281   *)
    7282     { { echo "$as_me:$LINENO: error: unknown endianness
    7283 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    7284 echo "$as_me: error: unknown endianness
    7285 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    7286    { (exit 1); exit 1; }; } ;;
    7287 esac
     6499fi
     6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6501fi
     6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6503    fi
     6504    if test $ac_cv_c_bigendian = unknown; then
     6505      # Compile a test program.
     6506      if test "$cross_compiling" = yes; then :
     6507  # Try to guess by grepping values from an object file.
     6508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6509/* end confdefs.h.  */
     6510short int ascii_mm[] =
     6511          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6512        short int ascii_ii[] =
     6513          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6514        int use_ascii (int i) {
     6515          return ascii_mm[i] + ascii_ii[i];
     6516        }
     6517        short int ebcdic_ii[] =
     6518          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6519        short int ebcdic_mm[] =
     6520          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6521        int use_ebcdic (int i) {
     6522          return ebcdic_mm[i] + ebcdic_ii[i];
     6523        }
     6524        extern int foo;
     6525
     6526int
     6527main ()
     6528{
     6529return use_ascii (foo) == use_ebcdic (foo);
     6530  ;
     6531  return 0;
     6532}
     6533_ACEOF
     6534if ac_fn_cxx_try_compile "$LINENO"; then :
     6535  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6536          ac_cv_c_bigendian=yes
     6537        fi
     6538        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6539          if test "$ac_cv_c_bigendian" = unknown; then
     6540        ac_cv_c_bigendian=no
     6541          else
     6542        # finding both strings is unlikely to happen, but who knows?
     6543        ac_cv_c_bigendian=unknown
     6544          fi
     6545        fi
     6546fi
     6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6548else
     6549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6550/* end confdefs.h.  */
     6551$ac_includes_default
     6552int
     6553main ()
     6554{
     6555
     6556         /* Are we little or big endian?  From Harbison&Steele.  */
     6557         union
     6558         {
     6559           long int l;
     6560           char c[sizeof (long int)];
     6561         } u;
     6562         u.l = 1;
     6563         return u.c[sizeof (long int) - 1] == 1;
     6564
     6565  ;
     6566  return 0;
     6567}
     6568_ACEOF
     6569if ac_fn_cxx_try_run "$LINENO"; then :
     6570  ac_cv_c_bigendian=no
     6571else
     6572  ac_cv_c_bigendian=yes
     6573fi
     6574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6575  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6576fi
     6577
     6578    fi
     6579fi
     6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6581$as_echo "$ac_cv_c_bigendian" >&6; }
     6582 case $ac_cv_c_bigendian in #(
     6583   yes)
     6584     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6585;; #(
     6586   no)
     6587      ;; #(
     6588   universal)
     6589
     6590$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6591
     6592     ;; #(
     6593   *)
     6594     as_fn_error $? "unknown endianness
     6595 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6596 esac
    72886597
    72896598# ---------------------------------------------------------------------------
    72906599if test "$ac_cv_func_alloca" = 'no'; then
    7291   case $LIBOBJS in
    7292     "xmalloc.o.$ac_objext"   | \
    7293   *" xmalloc.o.$ac_objext"   | \
    7294     "xmalloc.o.$ac_objext "* | \
     6600  case " $LIBOBJS " in
    72956601  *" xmalloc.o.$ac_objext "* ) ;;
    7296   *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
     6602  *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
     6603 ;;
    72976604esac
    72986605
    7299   case $LIBOBJS in
    7300     "error.$ac_objext"   | \
    7301   *" error.$ac_objext"   | \
    7302     "error.$ac_objext "* | \
     6606  case " $LIBOBJS " in
    73036607  *" error.$ac_objext "* ) ;;
    7304   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6608  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6609 ;;
    73056610esac
    73066611
     
    73366641commonsrcprefix=`pwd`
    73376642ac_configure_args="$ac_configure_args --with-libiconv-prefix=$commonsrcprefix/packages/iconv"
    7338 
    7339 
    73406643subdirs="$subdirs indexers"
    73416644
     
    73496652     src/gdbmedit/gdbmkeys/Makefile \
    73506653     src/gdbmedit/gdbmdel/Makefile \
    7351          src/getpw/Makefile"
    7352 
    7353                                         ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6654         src/getpw/Makefile \
     6655     src/jdbmedit/Makefile"
     6656
     6657ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6658
    73546659cat >confcache <<\_ACEOF
    73556660# This file is a shell script that caches the results of configure
     
    73706675# The following way of writing the cache mishandles newlines in values,
    73716676# but we know of no workaround that is simple, portable, and efficient.
    7372 # So, don't put newlines in cache variables' values.
     6677# So, we kill variables containing newlines.
    73736678# Ultrix sh set writes to stderr and can't be redirected directly,
    73746679# and sets the high bit in the cache file unless we assign to the vars.
    7375 {
     6680(
     6681  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6682    eval ac_val=\$$ac_var
     6683    case $ac_val in #(
     6684    *${as_nl}*)
     6685      case $ac_var in #(
     6686      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6687$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6688      esac
     6689      case $ac_var in #(
     6690      _ | IFS | as_nl) ;; #(
     6691      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6692      *) { eval $ac_var=; unset $ac_var;} ;;
     6693      esac ;;
     6694    esac
     6695  done
     6696
    73766697  (set) 2>&1 |
    7377     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    7378     *ac_space=\ *)
    7379       # `set' does not quote correctly, so add quotes (double-quote
    7380       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6698    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6699    *${as_nl}ac_space=\ *)
     6700      # `set' does not quote correctly, so add quotes: double-quote
     6701      # substitution turns \\\\ into \\, and sed turns \\ into \.
    73816702      sed -n \
    73826703    "s/'/'\\\\''/g;
    73836704      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    7384       ;;
     6705      ;; #(
    73856706    *)
    73866707      # `set' quotes correctly as required by POSIX, so do not add quotes.
    7387       sed -n \
    7388     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6708      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    73896709      ;;
    7390     esac;
    7391 } |
     6710    esac |
     6711    sort
     6712) |
    73926713  sed '
     6714     /^ac_cv_env_/b end
    73936715     t clear
    7394      : clear
     6716     :clear
    73956717     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    73966718     t end
    7397      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    7398      : end' >>confcache
    7399 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    7400   if test -w $cache_file; then
    7401     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6719     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6720     :end' >>confcache
     6721if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6722  if test -w "$cache_file"; then
     6723    test "x$cache_file" != "x/dev/null" &&
     6724      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6725$as_echo "$as_me: updating cache $cache_file" >&6;}
    74026726    cat confcache >$cache_file
    74036727  else
    7404     echo "not updating unwritable cache $cache_file"
     6728    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6729$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    74056730  fi
    74066731fi
     
    74116736test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    74126737
    7413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    7415 # trailing colons and then remove the whole line if VPATH becomes empty
    7416 # (actually we leave an empty line to preserve line numbers).
    7417 if test "x$srcdir" = x.; then
    7418   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7419 s/:*\$(srcdir):*/:/;
    7420 s/:*\${srcdir}:*/:/;
    7421 s/:*@srcdir@:*/:/;
    7422 s/^\([^=]*=[     ]*\):*/\1/;
    7423 s/:*$//;
    7424 s/^[^=]*=[   ]*$//;
    7425 }'
    7426 fi
    7427 
    74286738DEFS=-DHAVE_CONFIG_H
    74296739
    74306740ac_libobjs=
    74316741ac_ltlibobjs=
     6742U=
    74326743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    74336744  # 1. Remove the extension, and $U if already installed.
    7434   ac_i=`echo "$ac_i" |
    7435      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    7436   # 2. Add them.
    7437   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    7438   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6745  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6746  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6747  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6748  #    will be set to the directory where LIBOBJS objects are built.
     6749  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6750  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    74396751done
    74406752LIBOBJS=$ac_libobjs
     
    74446756
    74456757
     6758
    74466759: ${CONFIG_STATUS=./config.status}
     6760ac_write_fail=0
    74476761ac_clean_files_save=$ac_clean_files
    74486762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    7449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    7450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    7451 cat >$CONFIG_STATUS <<_ACEOF
     6763{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6764$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6765as_write_fail=0
     6766cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    74526767#! $SHELL
    74536768# Generated by $as_me.
     
    74596774ac_cs_recheck=false
    74606775ac_cs_silent=false
     6776
    74616777SHELL=\${CONFIG_SHELL-$SHELL}
    7462 _ACEOF
    7463 
    7464 cat >>$CONFIG_STATUS <<\_ACEOF
    7465 ## --------------------- ##
    7466 ## M4sh Initialization.  ##
    7467 ## --------------------- ##
    7468 
    7469 # Be Bourne compatible
    7470 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6778export SHELL
     6779_ASEOF
     6780cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6781## -------------------- ##
     6782## M4sh Initialization. ##
     6783## -------------------- ##
     6784
     6785# Be more Bourne compatible
     6786DUALCASE=1; export DUALCASE # for MKS sh
     6787if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    74716788  emulate sh
    74726789  NULLCMD=:
    7473   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6790  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    74746791  # is contrary to our usage.  Disable this feature.
    74756792  alias -g '${1+"$@"}'='"$@"'
    7476 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    7477   set -o posix
    7478 fi
    7479 DUALCASE=1; export DUALCASE # for MKS sh
    7480 
    7481 # Support unset when possible.
    7482 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    7483   as_unset=unset
    7484 else
    7485   as_unset=false
    7486 fi
    7487 
    7488 
    7489 # Work around bugs in pre-3.0 UWIN ksh.
    7490 $as_unset ENV MAIL MAILPATH
     6793  setopt NO_GLOB_SUBST
     6794else
     6795  case `(set -o) 2>/dev/null` in #(
     6796  *posix*) :
     6797    set -o posix ;; #(
     6798  *) :
     6799     ;;
     6800esac
     6801fi
     6802
     6803
     6804as_nl='
     6805'
     6806export as_nl
     6807# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6808as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6811# Prefer a ksh shell builtin over an external printf program on Solaris,
     6812# but without wasting forks for bash or zsh.
     6813if test -z "$BASH_VERSION$ZSH_VERSION" \
     6814    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6815  as_echo='print -r --'
     6816  as_echo_n='print -rn --'
     6817elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6818  as_echo='printf %s\n'
     6819  as_echo_n='printf %s'
     6820else
     6821  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6822    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6823    as_echo_n='/usr/ucb/echo -n'
     6824  else
     6825    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6826    as_echo_n_body='eval
     6827      arg=$1;
     6828      case $arg in #(
     6829      *"$as_nl"*)
     6830    expr "X$arg" : "X\\(.*\\)$as_nl";
     6831    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6832      esac;
     6833      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6834    '
     6835    export as_echo_n_body
     6836    as_echo_n='sh -c $as_echo_n_body as_echo'
     6837  fi
     6838  export as_echo_body
     6839  as_echo='sh -c $as_echo_body as_echo'
     6840fi
     6841
     6842# The user is always right.
     6843if test "${PATH_SEPARATOR+set}" != set; then
     6844  PATH_SEPARATOR=:
     6845  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6846    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6847      PATH_SEPARATOR=';'
     6848  }
     6849fi
     6850
     6851
     6852# IFS
     6853# We need space, tab and new line, in precisely that order.  Quoting is
     6854# there to prevent editors from complaining about space-tab.
     6855# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6856# splitting by setting IFS to empty value.)
     6857IFS=" ""    $as_nl"
     6858
     6859# Find who we are.  Look in the path if we contain no directory separator.
     6860case $0 in #((
     6861  *[\\/]* ) as_myself=$0 ;;
     6862  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6863for as_dir in $PATH
     6864do
     6865  IFS=$as_save_IFS
     6866  test -z "$as_dir" && as_dir=.
     6867    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6868  done
     6869IFS=$as_save_IFS
     6870
     6871     ;;
     6872esac
     6873# We did not find ourselves, most probably we were run as `sh COMMAND'
     6874# in which case we are not to be found in the path.
     6875if test "x$as_myself" = x; then
     6876  as_myself=$0
     6877fi
     6878if test ! -f "$as_myself"; then
     6879  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6880  exit 1
     6881fi
     6882
     6883# Unset variables that we do not need and which cause bugs (e.g. in
     6884# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6885# suppresses any "Segmentation fault" message there.  '((' could
     6886# trigger a bug in pdksh 5.2.14.
     6887for as_var in BASH_ENV ENV MAIL MAILPATH
     6888do eval test x\${$as_var+set} = xset \
     6889  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6890done
    74916891PS1='$ '
    74926892PS2='> '
     
    74946894
    74956895# NLS nuisances.
    7496 for as_var in \
    7497   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    7498   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    7499   LC_TELEPHONE LC_TIME
    7500 do
    7501   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    7502     eval $as_var=C; export $as_var
    7503   else
    7504     $as_unset $as_var
     6896LC_ALL=C
     6897export LC_ALL
     6898LANGUAGE=C
     6899export LANGUAGE
     6900
     6901# CDPATH.
     6902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6903
     6904
     6905# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6906# ----------------------------------------
     6907# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6908# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6909# script with STATUS, using 1 if that was 0.
     6910as_fn_error ()
     6911{
     6912  as_status=$1; test $as_status -eq 0 && as_status=1
     6913  if test "$4"; then
     6914    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6915    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    75056916  fi
    7506 done
    7507 
    7508 # Required to use basename.
    7509 if expr a : '\(a\)' >/dev/null 2>&1; then
     6917  $as_echo "$as_me: error: $2" >&2
     6918  as_fn_exit $as_status
     6919} # as_fn_error
     6920
     6921
     6922# as_fn_set_status STATUS
     6923# -----------------------
     6924# Set $? to STATUS, without forking.
     6925as_fn_set_status ()
     6926{
     6927  return $1
     6928} # as_fn_set_status
     6929
     6930# as_fn_exit STATUS
     6931# -----------------
     6932# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6933as_fn_exit ()
     6934{
     6935  set +e
     6936  as_fn_set_status $1
     6937  exit $1
     6938} # as_fn_exit
     6939
     6940# as_fn_unset VAR
     6941# ---------------
     6942# Portably unset VAR.
     6943as_fn_unset ()
     6944{
     6945  { eval $1=; unset $1;}
     6946}
     6947as_unset=as_fn_unset
     6948# as_fn_append VAR VALUE
     6949# ----------------------
     6950# Append the text in VALUE to the end of the definition contained in VAR. Take
     6951# advantage of any shell optimizations that allow amortized linear growth over
     6952# repeated appends, instead of the typical quadratic growth present in naive
     6953# implementations.
     6954if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6955  eval 'as_fn_append ()
     6956  {
     6957    eval $1+=\$2
     6958  }'
     6959else
     6960  as_fn_append ()
     6961  {
     6962    eval $1=\$$1\$2
     6963  }
     6964fi # as_fn_append
     6965
     6966# as_fn_arith ARG...
     6967# ------------------
     6968# Perform arithmetic evaluation on the ARGs, and store the result in the
     6969# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6970# must be portable across $(()) and expr.
     6971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6972  eval 'as_fn_arith ()
     6973  {
     6974    as_val=$(( $* ))
     6975  }'
     6976else
     6977  as_fn_arith ()
     6978  {
     6979    as_val=`expr "$@" || test $? -eq 1`
     6980  }
     6981fi # as_fn_arith
     6982
     6983
     6984if expr a : '\(a\)' >/dev/null 2>&1 &&
     6985   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    75106986  as_expr=expr
    75116987else
     
    75136989fi
    75146990
    7515 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    75166992  as_basename=basename
    75176993else
     
    75196995fi
    75206996
    7521 
    7522 # Name of the executable.
    7523 as_me=`$as_basename "$0" ||
     6997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     6998  as_dirname=dirname
     6999else
     7000  as_dirname=false
     7001fi
     7002
     7003as_me=`$as_basename -- "$0" ||
    75247004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    75257005     X"$0" : 'X\(//\)$' \| \
    7526      X"$0" : 'X\(/\)$' \| \
    7527      .     : '\(.\)' 2>/dev/null ||
    7528 echo X/"$0" |
    7529     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    7530       /^X\/\(\/\/\)$/{ s//\1/; q; }
    7531       /^X\/\(\/\).*/{ s//\1/; q; }
    7532       s/.*/./; q'`
    7533 
    7534 
    7535 # PATH needs CR, and LINENO needs CR and PATH.
     7006     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     7007$as_echo X/"$0" |
     7008    sed '/^.*\/\([^/][^/]*\)\/*$/{
     7009        s//\1/
     7010        q
     7011      }
     7012      /^X\/\(\/\/\)$/{
     7013        s//\1/
     7014        q
     7015      }
     7016      /^X\/\(\/\).*/{
     7017        s//\1/
     7018        q
     7019      }
     7020      s/.*/./; q'`
     7021
    75367022# Avoid depending upon Character Ranges.
    75377023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    75417027as_cr_alnum=$as_cr_Letters$as_cr_digits
    75427028
    7543 # The user is always right.
    7544 if test "${PATH_SEPARATOR+set}" != set; then
    7545   echo "#! /bin/sh" >conf$$.sh
    7546   echo  "exit 0"   >>conf$$.sh
    7547   chmod +x conf$$.sh
    7548   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    7549     PATH_SEPARATOR=';'
     7029ECHO_C= ECHO_N= ECHO_T=
     7030case `echo -n x` in #(((((
     7031-n*)
     7032  case `echo 'xy\c'` in
     7033  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     7034  xy)  ECHO_C='\c';;
     7035  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     7036       ECHO_T=' ';;
     7037  esac;;
     7038*)
     7039  ECHO_N='-n';;
     7040esac
     7041
     7042rm -f conf$$ conf$$.exe conf$$.file
     7043if test -d conf$$.dir; then
     7044  rm -f conf$$.dir/conf$$.file
     7045else
     7046  rm -f conf$$.dir
     7047  mkdir conf$$.dir 2>/dev/null
     7048fi
     7049if (echo >conf$$.file) 2>/dev/null; then
     7050  if ln -s conf$$.file conf$$ 2>/dev/null; then
     7051    as_ln_s='ln -s'
     7052    # ... but there are two gotchas:
     7053    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     7054    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     7055    # In both cases, we have to default to `cp -p'.
     7056    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     7057      as_ln_s='cp -p'
     7058  elif ln conf$$.file conf$$ 2>/dev/null; then
     7059    as_ln_s=ln
    75507060  else
    7551     PATH_SEPARATOR=:
     7061    as_ln_s='cp -p'
    75527062  fi
    7553   rm -f conf$$.sh
    7554 fi
    7555 
    7556 
    7557   as_lineno_1=$LINENO
    7558   as_lineno_2=$LINENO
    7559   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7560   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7561   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    7562   # Find who we are.  Look in the path if we contain no path at all
    7563   # relative or not.
    7564   case $0 in
    7565     *[\\/]* ) as_myself=$0 ;;
    7566     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7567 for as_dir in $PATH
    7568 do
    7569   IFS=$as_save_IFS
    7570   test -z "$as_dir" && as_dir=.
    7571   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    7572 done
    7573 
    7574        ;;
     7063else
     7064  as_ln_s='cp -p'
     7065fi
     7066rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     7067rmdir conf$$.dir 2>/dev/null
     7068
     7069
     7070# as_fn_mkdir_p
     7071# -------------
     7072# Create "$as_dir" as a directory, including parents if necessary.
     7073as_fn_mkdir_p ()
     7074{
     7075
     7076  case $as_dir in #(
     7077  -*) as_dir=./$as_dir;;
    75757078  esac
    7576   # We did not find ourselves, most probably we were run as `sh COMMAND'
    7577   # in which case we are not to be found in the path.
    7578   if test "x$as_myself" = x; then
    7579     as_myself=$0
    7580   fi
    7581   if test ! -f "$as_myself"; then
    7582     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    7583 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    7584    { (exit 1); exit 1; }; }
    7585   fi
    7586   case $CONFIG_SHELL in
    7587   '')
    7588     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7589 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    7590 do
    7591   IFS=$as_save_IFS
    7592   test -z "$as_dir" && as_dir=.
    7593   for as_base in sh bash ksh sh5; do
    7594      case $as_dir in
    7595      /*)
    7596        if ("$as_dir/$as_base" -c '
    7597   as_lineno_1=$LINENO
    7598   as_lineno_2=$LINENO
    7599   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7600   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7601   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    7602          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    7603          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    7604          CONFIG_SHELL=$as_dir/$as_base
    7605          export CONFIG_SHELL
    7606          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    7607        fi;;
    7608      esac
    7609        done
    7610 done
    7611 ;;
    7612   esac
    7613 
    7614   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    7615   # uniformly replaced by the line number.  The first 'sed' inserts a
    7616   # line-number line before each line; the second 'sed' does the real
    7617   # work.  The second script uses 'N' to pair each line-number line
    7618   # with the numbered line, and appends trailing '-' during
    7619   # substitution so that $LINENO is not a special case at line end.
    7620   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    7621   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    7622   sed '=' <$as_myself |
    7623     sed '
    7624       N
    7625       s,$,-,
    7626       : loop
    7627       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    7628       t loop
    7629       s,-$,,
    7630       s,^['$as_cr_digits']*\n,,
    7631     ' >$as_me.lineno &&
    7632   chmod +x $as_me.lineno ||
    7633     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    7634 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    7635    { (exit 1); exit 1; }; }
    7636 
    7637   # Don't try to exec as it changes $[0], causing all sort of problems
    7638   # (the dirname of $[0] is not the place where we might find the
    7639   # original and so on.  Autoconf is especially sensible to this).
    7640   . ./$as_me.lineno
    7641   # Exit status is that of the last command.
    7642   exit
    7643 }
    7644 
    7645 
    7646 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    7647   *c*,-n*) ECHO_N= ECHO_C='
    7648 ' ECHO_T='  ' ;;
    7649   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    7650   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    7651 esac
    7652 
    7653 if expr a : '\(a\)' >/dev/null 2>&1; then
    7654   as_expr=expr
    7655 else
    7656   as_expr=false
    7657 fi
    7658 
    7659 rm -f conf$$ conf$$.exe conf$$.file
    7660 echo >conf$$.file
    7661 if ln -s conf$$.file conf$$ 2>/dev/null; then
    7662   # We could just check for DJGPP; but this test a) works b) is more generic
    7663   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    7664   if test -f conf$$.exe; then
    7665     # Don't use ln at all; we don't have any links
    7666     as_ln_s='cp -p'
    7667   else
    7668     as_ln_s='ln -s'
    7669   fi
    7670 elif ln conf$$.file conf$$ 2>/dev/null; then
    7671   as_ln_s=ln
    7672 else
    7673   as_ln_s='cp -p'
    7674 fi
    7675 rm -f conf$$ conf$$.exe conf$$.file
    7676 
     7079  test -d "$as_dir" || eval $as_mkdir_p || {
     7080    as_dirs=
     7081    while :; do
     7082      case $as_dir in #(
     7083      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     7084      *) as_qdir=$as_dir;;
     7085      esac
     7086      as_dirs="'$as_qdir' $as_dirs"
     7087      as_dir=`$as_dirname -- "$as_dir" ||
     7088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7089     X"$as_dir" : 'X\(//\)[^/]' \| \
     7090     X"$as_dir" : 'X\(//\)$' \| \
     7091     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     7092$as_echo X"$as_dir" |
     7093    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7094        s//\1/
     7095        q
     7096      }
     7097      /^X\(\/\/\)[^/].*/{
     7098        s//\1/
     7099        q
     7100      }
     7101      /^X\(\/\/\)$/{
     7102        s//\1/
     7103        q
     7104      }
     7105      /^X\(\/\).*/{
     7106        s//\1/
     7107        q
     7108      }
     7109      s/.*/./; q'`
     7110      test -d "$as_dir" && break
     7111    done
     7112    test -z "$as_dirs" || eval "mkdir $as_dirs"
     7113  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7114
     7115
     7116} # as_fn_mkdir_p
    76777117if mkdir -p . 2>/dev/null; then
    7678   as_mkdir_p=:
     7118  as_mkdir_p='mkdir -p "$as_dir"'
    76797119else
    76807120  test -d ./-p && rmdir ./-p
     
    76827122fi
    76837123
    7684 as_executable_p="test -f"
     7124if test -x / >/dev/null 2>&1; then
     7125  as_test_x='test -x'
     7126else
     7127  if ls -dL / >/dev/null 2>&1; then
     7128    as_ls_L_option=L
     7129  else
     7130    as_ls_L_option=
     7131  fi
     7132  as_test_x='
     7133    eval sh -c '\''
     7134      if test -d "$1"; then
     7135    test -d "$1/.";
     7136      else
     7137    case $1 in #(
     7138    -*)set "./$1";;
     7139    esac;
     7140    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     7141    ???[sx]*):;;*)false;;esac;fi
     7142    '\'' sh
     7143  '
     7144fi
     7145as_executable_p=$as_test_x
    76857146
    76867147# Sed expression to map a string onto a valid CPP name.
     
    76917152
    76927153
    7693 # IFS
    7694 # We need space, tab and new line, in precisely that order.
    7695 as_nl='
    7696 '
    7697 IFS="   $as_nl"
    7698 
    7699 # CDPATH.
    7700 $as_unset CDPATH
    7701 
    77027154exec 6>&1
    7703 
    7704 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     7155## ----------------------------------- ##
     7156## Main body of $CONFIG_STATUS script. ##
     7157## ----------------------------------- ##
     7158_ASEOF
     7159test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     7160
     7161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7162# Save the log message, to keep $0 and so on meaningful, and to
    77057163# report actual input values of CONFIG_FILES etc. instead of their
    7706 # values after options handling.  Logging --version etc. is OK.
     7164# values after options handling.
     7165ac_log="
     7166This file was extended by $as_me, which was
     7167generated by GNU Autoconf 2.67.  Invocation command line was
     7168
     7169  CONFIG_FILES    = $CONFIG_FILES
     7170  CONFIG_HEADERS  = $CONFIG_HEADERS
     7171  CONFIG_LINKS    = $CONFIG_LINKS
     7172  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7173  $ $0 $@
     7174
     7175on `(hostname || uname -n) 2>/dev/null | sed 1q`
     7176"
     7177
     7178_ACEOF
     7179
     7180case $ac_config_files in *"
     7181"*) set x $ac_config_files; shift; ac_config_files=$*;;
     7182esac
     7183
     7184case $ac_config_headers in *"
     7185"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     7186esac
     7187
     7188
     7189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7190# Files that config.status was made for.
     7191config_files="$ac_config_files"
     7192config_headers="$ac_config_headers"
     7193
     7194_ACEOF
     7195
     7196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7197ac_cs_usage="\
     7198\`$as_me' instantiates files and other configuration actions
     7199from templates according to the current configuration.  Unless the files
     7200and actions are specified as TAGs, all are instantiated by default.
     7201
     7202Usage: $0 [OPTION]... [TAG]...
     7203
     7204  -h, --help       print this help, then exit
     7205  -V, --version    print version number and configuration settings, then exit
     7206      --config     print configuration, then exit
     7207  -q, --quiet, --silent
     7208                   do not print progress messages
     7209  -d, --debug      don't remove temporary files
     7210      --recheck    update $as_me by reconfiguring in the same conditions
     7211      --file=FILE[:TEMPLATE]
     7212                   instantiate the configuration file FILE
     7213      --header=FILE[:TEMPLATE]
     7214                   instantiate the configuration header FILE
     7215
     7216Configuration files:
     7217$config_files
     7218
     7219Configuration headers:
     7220$config_headers
     7221
     7222Report bugs to the package provider."
     7223
     7224_ACEOF
     7225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7226ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     7227ac_cs_version="\\
     7228config.status
     7229configured by $0, generated by GNU Autoconf 2.67,
     7230  with options \\"\$ac_cs_config\\"
     7231
     7232Copyright (C) 2010 Free Software Foundation, Inc.
     7233This config.status script is free software; the Free Software Foundation
     7234gives unlimited permission to copy, distribute and modify it."
     7235
     7236ac_pwd='$ac_pwd'
     7237srcdir='$srcdir'
     7238INSTALL='$INSTALL'
     7239AWK='$AWK'
     7240test -n "\$AWK" || AWK=awk
     7241_ACEOF
     7242
     7243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7244# The default lists apply if the user does not specify any file.
     7245ac_need_defaults=:
     7246while test $# != 0
     7247do
     7248  case $1 in
     7249  --*=?*)
     7250    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7251    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     7252    ac_shift=:
     7253    ;;
     7254  --*=)
     7255    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7256    ac_optarg=
     7257    ac_shift=:
     7258    ;;
     7259  *)
     7260    ac_option=$1
     7261    ac_optarg=$2
     7262    ac_shift=shift
     7263    ;;
     7264  esac
     7265
     7266  case $ac_option in
     7267  # Handling of the options.
     7268  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     7269    ac_cs_recheck=: ;;
     7270  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     7271    $as_echo "$ac_cs_version"; exit ;;
     7272  --config | --confi | --conf | --con | --co | --c )
     7273    $as_echo "$ac_cs_config"; exit ;;
     7274  --debug | --debu | --deb | --de | --d | -d )
     7275    debug=: ;;
     7276  --file | --fil | --fi | --f )
     7277    $ac_shift
     7278    case $ac_optarg in
     7279    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7280    '') as_fn_error $? "missing file argument" ;;
     7281    esac
     7282    as_fn_append CONFIG_FILES " '$ac_optarg'"
     7283    ac_need_defaults=false;;
     7284  --header | --heade | --head | --hea )
     7285    $ac_shift
     7286    case $ac_optarg in
     7287    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7288    esac
     7289    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     7290    ac_need_defaults=false;;
     7291  --he | --h)
     7292    # Conflict between --help and --header
     7293    as_fn_error $? "ambiguous option: \`$1'
     7294Try \`$0 --help' for more information.";;
     7295  --help | --hel | -h )
     7296    $as_echo "$ac_cs_usage"; exit ;;
     7297  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7298  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7299    ac_cs_silent=: ;;
     7300
     7301  # This is an error.
     7302  -*) as_fn_error $? "unrecognized option: \`$1'
     7303Try \`$0 --help' for more information." ;;
     7304
     7305  *) as_fn_append ac_config_targets " $1"
     7306     ac_need_defaults=false ;;
     7307
     7308  esac
     7309  shift
     7310done
     7311
     7312ac_configure_extra_args=
     7313
     7314if $ac_cs_silent; then
     7315  exec 6>/dev/null
     7316  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7317fi
     7318
     7319_ACEOF
     7320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7321if \$ac_cs_recheck; then
     7322  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7323  shift
     7324  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     7325  CONFIG_SHELL='$SHELL'
     7326  export CONFIG_SHELL
     7327  exec "\$@"
     7328fi
     7329
     7330_ACEOF
     7331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    77077332exec 5>>config.log
    77087333{
     
    77117336## Running $as_me. ##
    77127337_ASBOX
     7338  $as_echo "$ac_log"
    77137339} >&5
    7714 cat >&5 <<_CSEOF
    7715 
    7716 This file was extended by $as_me, which was
    7717 generated by GNU Autoconf 2.59.  Invocation command line was
    7718 
    7719   CONFIG_FILES    = $CONFIG_FILES
    7720   CONFIG_HEADERS  = $CONFIG_HEADERS
    7721   CONFIG_LINKS    = $CONFIG_LINKS
    7722   CONFIG_COMMANDS = $CONFIG_COMMANDS
    7723   $ $0 $@
    7724 
    7725 _CSEOF
    7726 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    7727 echo >&5
    7728 _ACEOF
    7729 
    7730 # Files that config.status was made for.
    7731 if test -n "$ac_config_files"; then
    7732   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    7733 fi
    7734 
    7735 if test -n "$ac_config_headers"; then
    7736   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    7737 fi
    7738 
    7739 if test -n "$ac_config_links"; then
    7740   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    7741 fi
    7742 
    7743 if test -n "$ac_config_commands"; then
    7744   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    7745 fi
    7746 
    7747 cat >>$CONFIG_STATUS <<\_ACEOF
    7748 
    7749 ac_cs_usage="\
    7750 \`$as_me' instantiates files from templates according to the
    7751 current configuration.
    7752 
    7753 Usage: $0 [OPTIONS] [FILE]...
    7754 
    7755   -h, --help       print this help, then exit
    7756   -V, --version    print version number, then exit
    7757   -q, --quiet      do not print progress messages
    7758   -d, --debug      don't remove temporary files
    7759       --recheck    update $as_me by reconfiguring in the same conditions
    7760   --file=FILE[:TEMPLATE]
    7761            instantiate the configuration file FILE
    7762   --header=FILE[:TEMPLATE]
    7763            instantiate the configuration header FILE
    7764 
    7765 Configuration files:
    7766 $config_files
    7767 
    7768 Configuration headers:
    7769 $config_headers
    7770 
    7771 Report bugs to <[email protected]>."
    7772 _ACEOF
    7773 
    7774 cat >>$CONFIG_STATUS <<_ACEOF
    7775 ac_cs_version="\\
    7776 config.status
    7777 configured by $0, generated by GNU Autoconf 2.59,
    7778   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    7779 
    7780 Copyright (C) 2003 Free Software Foundation, Inc.
    7781 This config.status script is free software; the Free Software Foundation
    7782 gives unlimited permission to copy, distribute and modify it."
    7783 srcdir=$srcdir
    7784 INSTALL="$INSTALL"
    7785 _ACEOF
    7786 
    7787 cat >>$CONFIG_STATUS <<\_ACEOF
    7788 # If no file are specified by the user, then we need to provide default
    7789 # value.  By we need to know if files were specified by the user.
    7790 ac_need_defaults=:
    7791 while test $# != 0
    7792 do
    7793   case $1 in
    7794   --*=*)
    7795     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    7796     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    7797     ac_shift=:
    7798     ;;
    7799   -*)
    7800     ac_option=$1
    7801     ac_optarg=$2
    7802     ac_shift=shift
    7803     ;;
    7804   *) # This is not an option, so the user has probably given explicit
    7805      # arguments.
    7806      ac_option=$1
    7807      ac_need_defaults=false;;
    7808   esac
    7809 
    7810   case $ac_option in
    7811   # Handling of the options.
    7812 _ACEOF
    7813 cat >>$CONFIG_STATUS <<\_ACEOF
    7814   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    7815     ac_cs_recheck=: ;;
    7816   --version | --vers* | -V )
    7817     echo "$ac_cs_version"; exit 0 ;;
    7818   --he | --h)
    7819     # Conflict between --help and --header
    7820     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    7821 Try \`$0 --help' for more information." >&5
    7822 echo "$as_me: error: ambiguous option: $1
    7823 Try \`$0 --help' for more information." >&2;}
    7824    { (exit 1); exit 1; }; };;
    7825   --help | --hel | -h )
    7826     echo "$ac_cs_usage"; exit 0 ;;
    7827   --debug | --d* | -d )
    7828     debug=: ;;
    7829   --file | --fil | --fi | --f )
    7830     $ac_shift
    7831     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    7832     ac_need_defaults=false;;
    7833   --header | --heade | --head | --hea )
    7834     $ac_shift
    7835     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    7836     ac_need_defaults=false;;
    7837   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    7838   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    7839     ac_cs_silent=: ;;
    7840 
    7841   # This is an error.
    7842   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    7843 Try \`$0 --help' for more information." >&5
    7844 echo "$as_me: error: unrecognized option: $1
    7845 Try \`$0 --help' for more information." >&2;}
    7846    { (exit 1); exit 1; }; } ;;
    7847 
    7848   *) ac_config_targets="$ac_config_targets $1" ;;
    7849 
    7850   esac
    7851   shift
    7852 done
    7853 
    7854 ac_configure_extra_args=
    7855 
    7856 if $ac_cs_silent; then
    7857   exec 6>/dev/null
    7858   ac_configure_extra_args="$ac_configure_extra_args --silent"
    7859 fi
    7860 
    7861 _ACEOF
    7862 cat >>$CONFIG_STATUS <<_ACEOF
    7863 if \$ac_cs_recheck; then
    7864   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    7865   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    7866 fi
    7867 
    7868 _ACEOF
    7869 
    7870 
    7871 
    7872 
    7873 
    7874 cat >>$CONFIG_STATUS <<\_ACEOF
     7340
     7341_ACEOF
     7342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7343_ACEOF
     7344
     7345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7346
     7347# Handling of arguments.
    78757348for ac_config_target in $ac_config_targets
    78767349do
    7877   case "$ac_config_target" in
    7878   # Handling of arguments.
    7879   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    7880   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7881   "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
    7882   "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    7883   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    7884   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    7885 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    7886    { (exit 1); exit 1; }; };;
     7350  case $ac_config_target in
     7351    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7352    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     7353    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7354    "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     7355    "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     7356
     7357  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    78877358  esac
    78887359done
     7360
    78897361
    78907362# If the user did not use the arguments to specify the items to instantiate,
     
    78987370
    78997371# Have a temporary directory for convenience.  Make it in the build tree
    7900 # simply because there is no reason to put it here, and in addition,
     7372# simply because there is no reason against having it here, and in addition,
    79017373# creating and moving files from /tmp can sometimes cause problems.
    7902 # Create a temporary directory, and hook for its removal unless debugging.
     7374# Hook for its removal unless debugging.
     7375# Note that there is a small window in which the directory will not be cleaned:
     7376# after its creation but before its name has been assigned to `$tmp'.
    79037377$debug ||
    79047378{
    7905   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    7906   trap '{ (exit 1); exit 1; }' 1 2 13 15
     7379  tmp=
     7380  trap 'exit_status=$?
     7381  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     7382' 0
     7383  trap 'as_fn_exit 1' 1 2 13 15
    79077384}
    7908 
    79097385# Create a (secure) tmp directory for tmp files.
    79107386
    79117387{
    7912   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7388  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    79137389  test -n "$tmp" && test -d "$tmp"
    79147390}  ||
    79157391{
    7916   tmp=./confstat$$-$RANDOM
    7917   (umask 077 && mkdir $tmp)
    7918 } ||
     7392  tmp=./conf$$-$RANDOM
     7393  (umask 077 && mkdir "$tmp")
     7394} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7395
     7396# Set up the scripts for CONFIG_FILES section.
     7397# No need to generate them if there are no CONFIG_FILES.
     7398# This happens for instance with `./config.status config.h'.
     7399if test -n "$CONFIG_FILES"; then
     7400
     7401
     7402ac_cr=`echo X | tr X '\015'`
     7403# On cygwin, bash can eat \r inside `` if the user requested igncr.
     7404# But we know of no other shell where ac_cr would be empty at this
     7405# point, so we can use a bashism as a fallback.
     7406if test "x$ac_cr" = x; then
     7407  eval ac_cr=\$\'\\r\'
     7408fi
     7409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     7410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     7411  ac_cs_awk_cr='\\r'
     7412else
     7413  ac_cs_awk_cr=$ac_cr
     7414fi
     7415
     7416echo 'BEGIN {' >"$tmp/subs1.awk" &&
     7417_ACEOF
     7418
     7419
    79197420{
    7920    echo "$me: cannot create a temporary directory in ." >&2
    7921    { (exit 1); exit 1; }
     7421  echo "cat >conf$$subs.awk <<_ACEOF" &&
     7422  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     7423  echo "_ACEOF"
     7424} >conf$$subs.sh ||
     7425  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7427ac_delim='%!_!# '
     7428for ac_last_try in false false false false false :; do
     7429  . ./conf$$subs.sh ||
     7430    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7431
     7432  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     7433  if test $ac_delim_n = $ac_delim_num; then
     7434    break
     7435  elif $ac_last_try; then
     7436    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7437  else
     7438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7439  fi
     7440done
     7441rm -f conf$$subs.sh
     7442
     7443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7444cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     7445_ACEOF
     7446sed -n '
     7447h
     7448s/^/S["/; s/!.*/"]=/
     7449p
     7450g
     7451s/^[^!]*!//
     7452:repl
     7453t repl
     7454s/'"$ac_delim"'$//
     7455t delim
     7456:nl
     7457h
     7458s/\(.\{148\}\)..*/\1/
     7459t more1
     7460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     7461p
     7462n
     7463b repl
     7464:more1
     7465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7466p
     7467g
     7468s/.\{148\}//
     7469t nl
     7470:delim
     7471h
     7472s/\(.\{148\}\)..*/\1/
     7473t more2
     7474s/["\\]/\\&/g; s/^/"/; s/$/"/
     7475p
     7476b
     7477:more2
     7478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7479p
     7480g
     7481s/.\{148\}//
     7482t delim
     7483' <conf$$subs.awk | sed '
     7484/^[^""]/{
     7485  N
     7486  s/\n//
    79227487}
    7923 
    7924 _ACEOF
    7925 
    7926 cat >>$CONFIG_STATUS <<_ACEOF
    7927 
    7928 #
    7929 # CONFIG_FILES section.
    7930 #
    7931 
    7932 # No need to generate the scripts if there are no CONFIG_FILES.
    7933 # This happens for instance when ./config.status config.h
    7934 if test -n "\$CONFIG_FILES"; then
    7935   # Protect against being on the right side of a sed subst in config.status.
    7936   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    7937    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    7938 s,@SHELL@,$SHELL,;t t
    7939 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    7940 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    7941 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    7942 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    7943 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    7944 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    7945 s,@exec_prefix@,$exec_prefix,;t t
    7946 s,@prefix@,$prefix,;t t
    7947 s,@program_transform_name@,$program_transform_name,;t t
    7948 s,@bindir@,$bindir,;t t
    7949 s,@sbindir@,$sbindir,;t t
    7950 s,@libexecdir@,$libexecdir,;t t
    7951 s,@datadir@,$datadir,;t t
    7952 s,@sysconfdir@,$sysconfdir,;t t
    7953 s,@sharedstatedir@,$sharedstatedir,;t t
    7954 s,@localstatedir@,$localstatedir,;t t
    7955 s,@libdir@,$libdir,;t t
    7956 s,@includedir@,$includedir,;t t
    7957 s,@oldincludedir@,$oldincludedir,;t t
    7958 s,@infodir@,$infodir,;t t
    7959 s,@mandir@,$mandir,;t t
    7960 s,@build_alias@,$build_alias,;t t
    7961 s,@host_alias@,$host_alias,;t t
    7962 s,@target_alias@,$target_alias,;t t
    7963 s,@DEFS@,$DEFS,;t t
    7964 s,@ECHO_C@,$ECHO_C,;t t
    7965 s,@ECHO_N@,$ECHO_N,;t t
    7966 s,@ECHO_T@,$ECHO_T,;t t
    7967 s,@LIBS@,$LIBS,;t t
    7968 s,@PACKAGE@,$PACKAGE,;t t
    7969 s,@VERSION@,$VERSION,;t t
    7970 s,@USE_FASTCGI@,$USE_FASTCGI,;t t
    7971 s,@USE_LANGACTION@,$USE_LANGACTION,;t t
    7972 s,@USE_CORBA@,$USE_CORBA,;t t
    7973 s,@MICO_DIR@,$MICO_DIR,;t t
    7974 s,@USE_Z3950@,$USE_Z3950,;t t
    7975 s,@USE_YAZ@,$USE_YAZ,;t t
    7976 s,@USE_JDBM@,$USE_JDBM,;t t
    7977 s,@USE_GDBM@,$USE_GDBM,;t t
    7978 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    7979 s,@USE_SQLITE@,$USE_SQLITE,;t t
    7980 s,@ENABLE_JNI@,$ENABLE_JNI,;t t
    7981 s,@ENABLE_MG@,$ENABLE_MG,;t t
    7982 s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
    7983 s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;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
     7488' >>$CONFIG_STATUS || ac_write_fail=1
     7489rm -f conf$$subs.awk
     7490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7491_ACAWK
     7492cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     7493  for (key in S) S_is_set[key] = 1
     7494  FS = ""
     7495
     7496}
     7497{
     7498  line = $ 0
     7499  nfields = split(line, field, "@")
     7500  substed = 0
     7501  len = length(field[1])
     7502  for (i = 2; i < nfields; i++) {
     7503    key = field[i]
     7504    keylen = length(key)
     7505    if (S_is_set[key]) {
     7506      value = S[key]
     7507      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     7508      len += length(value) + length(field[++i])
     7509      substed = 1
     7510    } else
     7511      len += 1 + keylen
     7512  }
     7513
     7514  print line
     7515}
     7516
     7517_ACAWK
     7518_ACEOF
     7519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     7521  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     7522else
     7523  cat
     7524fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     7525  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7526_ACEOF
     7527
     7528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7530# trailing colons and then remove the whole line if VPATH becomes empty
     7531# (actually we leave an empty line to preserve line numbers).
     7532if test "x$srcdir" = x.; then
     7533  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7534h
     7535s///
     7536s/^/:/
     7537s/[  ]*$/:/
     7538s/:\$(srcdir):/:/g
     7539s/:\${srcdir}:/:/g
     7540s/:@srcdir@:/:/g
     7541s/^:*//
     7542s/:*$//
     7543x
     7544s/\(=[   ]*\).*/\1/
     7545G
     7546s/\n//
     7547s/^[^=]*=[   ]*$//
     7548}'
     7549fi
     7550
     7551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7552fi # test -n "$CONFIG_FILES"
     7553
     7554# Set up the scripts for CONFIG_HEADERS section.
     7555# No need to generate them if there are no CONFIG_HEADERS.
     7556# This happens for instance with `./config.status Makefile'.
     7557if test -n "$CONFIG_HEADERS"; then
     7558cat >"$tmp/defines.awk" <<\_ACAWK ||
     7559BEGIN {
     7560_ACEOF
     7561
     7562# Transform confdefs.h into an awk script `defines.awk', embedded as
     7563# here-document in config.status, that substitutes the proper values into
     7564# config.h.in to produce config.h.
     7565
     7566# Create a delimiter string that does not exist in confdefs.h, to ease
     7567# handling of long lines.
     7568ac_delim='%!_!# '
     7569for ac_last_try in false false :; do
     7570  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7571  if test -z "$ac_t"; then
     7572    break
     7573  elif $ac_last_try; then
     7574    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7575  else
     7576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7577  fi
     7578done
     7579
     7580# For the awk script, D is an array of macro values keyed by name,
     7581# likewise P contains macro parameters if any.  Preserve backslash
     7582# newline sequences.
     7583
     7584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7585sed -n '
     7586s/.\{148\}/&'"$ac_delim"'/g
     7587t rset
     7588:rset
     7589s/^[     ]*#[    ]*define[   ][  ]*/ /
     7590t def
     7591d
     7592:def
     7593s/\\$//
     7594t bsnl
     7595s/["\\]/\\&/g
     7596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7597D["\1"]=" \3"/p
     7598s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7599d
     7600:bsnl
     7601s/["\\]/\\&/g
     7602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7603D["\1"]=" \3\\\\\\n"\\/p
     7604t cont
     7605s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7606t cont
     7607d
     7608:cont
     7609n
     7610s/.\{148\}/&'"$ac_delim"'/g
     7611t clear
     7612:clear
     7613s/\\$//
     7614t bsnlc
     7615s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7616d
     7617:bsnlc
     7618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7619b cont
     7620' <confdefs.h | sed '
     7621s/'"$ac_delim"'/"\\\
     7622"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7623
     7624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7625  for (key in D) D_is_set[key] = 1
     7626  FS = ""
     7627}
     7628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7629  line = \$ 0
     7630  split(line, arg, " ")
     7631  if (arg[1] == "#") {
     7632    defundef = arg[2]
     7633    mac1 = arg[3]
     7634  } else {
     7635    defundef = substr(arg[1], 2)
     7636    mac1 = arg[2]
     7637  }
     7638  split(mac1, mac2, "(") #)
     7639  macro = mac2[1]
     7640  prefix = substr(line, 1, index(line, defundef) - 1)
     7641  if (D_is_set[macro]) {
     7642    # Preserve the white space surrounding the "#".
     7643    print prefix "define", macro P[macro] D[macro]
     7644    next
     7645  } else {
     7646    # Replace #undef with comments.  This is necessary, for example,
     7647    # in the case of _POSIX_SOURCE, which is predefined and required
     7648    # on some systems where configure will not decide to define it.
     7649    if (defundef == "undef") {
     7650      print "/*", prefix defundef, macro, "*/"
     7651      next
     7652    }
     7653  }
     7654}
     7655{ print }
     7656_ACAWK
     7657_ACEOF
     7658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7659  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7660fi # test -n "$CONFIG_HEADERS"
     7661
     7662
     7663eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
     7664shift
     7665for ac_tag
     7666do
     7667  case $ac_tag in
     7668  :[FHLC]) ac_mode=$ac_tag; continue;;
     7669  esac
     7670  case $ac_mode$ac_tag in
     7671  :[FHL]*:*);;
     7672  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7673  :[FH]-) ac_tag=-:-;;
     7674  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7675  esac
     7676  ac_save_IFS=$IFS
     7677  IFS=:
     7678  set x $ac_tag
     7679  IFS=$ac_save_IFS
     7680  shift
     7681  ac_file=$1
     7682  shift
     7683
     7684  case $ac_mode in
     7685  :L) ac_source=$1;;
     7686  :[FH])
     7687    ac_file_inputs=
     7688    for ac_f
     7689    do
     7690      case $ac_f in
     7691      -) ac_f="$tmp/stdin";;
     7692      *) # Look for the file first in the build tree, then in the source tree
     7693     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7694     # because $ac_f cannot contain `:'.
     7695     test -f "$ac_f" ||
     7696       case $ac_f in
     7697       [\\/$]*) false;;
     7698       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7699       esac ||
     7700       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7701      esac
     7702      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7703      as_fn_append ac_file_inputs " '$ac_f'"
     7704    done
     7705
     7706    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7707    # use $as_me), people would be surprised to read:
     7708    #    /* config.h.  Generated by config.status.  */
     7709    configure_input='Generated from '`
     7710      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7711    `' by configure.'
     7712    if test x"$ac_file" != x-; then
     7713      configure_input="$ac_file.  $configure_input"
     7714      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7715$as_echo "$as_me: creating $ac_file" >&6;}
    80467716    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 ;;
     7717    # Neutralize special characters interpreted by sed in replacement strings.
     7718    case $configure_input in #(
     7719    *\&* | *\|* | *\\* )
     7720       ac_sed_conf_input=`$as_echo "$configure_input" |
     7721       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7722    *) ac_sed_conf_input=$configure_input;;
     7723    esac
     7724
     7725    case $ac_tag in
     7726    *:-:* | *:-) cat >"$tmp/stdin" \
     7727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7728    esac
     7729    ;;
    80837730  esac
    80847731
    8085   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    8086   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7732  ac_dir=`$as_dirname -- "$ac_file" ||
    80877733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    80887734     X"$ac_file" : 'X\(//\)[^/]' \| \
    80897735     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 
     7736     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7737$as_echo X"$ac_file" |
     7738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7739        s//\1/
     7740        q
     7741      }
     7742      /^X\(\/\/\)[^/].*/{
     7743        s//\1/
     7744        q
     7745      }
     7746      /^X\(\/\/\)$/{
     7747        s//\1/
     7748        q
     7749      }
     7750      /^X\(\/\).*/{
     7751        s//\1/
     7752        q
     7753      }
     7754      s/.*/./; q'`
     7755  as_dir="$ac_dir"; as_fn_mkdir_p
    81237756  ac_builddir=.
    81247757
    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
     7758case "$ac_dir" in
     7759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7760*)
     7761  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7762  # A ".." for each directory in $ac_dir_suffix.
     7763  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7764  case $ac_top_builddir_sub in
     7765  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7766  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7767  esac ;;
     7768esac
     7769ac_abs_top_builddir=$ac_pwd
     7770ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7771# for backward compatibility:
     7772ac_top_builddir=$ac_top_build_prefix
    81327773
    81337774case $srcdir in
    8134   .)  # No --srcdir option.  We are building in place.
     7775  .)  # We are building in place.
    81357776    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.
     7777    ac_top_srcdir=$ac_top_builddir_sub
     7778    ac_abs_top_srcdir=$ac_pwd ;;
     7779  [\\/]* | ?:[\\/]* )  # Absolute name.
    81427780    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 ;;
     7781    ac_top_srcdir=$srcdir
     7782    ac_abs_top_srcdir=$srcdir ;;
     7783  *) # Relative name.
     7784    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7785    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7786    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    81477787esac
    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 
     7788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7789
     7790
     7791  case $ac_mode in
     7792  :F)
     7793  #
     7794  # CONFIG_FILE
     7795  #
    81887796
    81897797  case $INSTALL in
    81907798  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    8191   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7799  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    81927800  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
     7801_ACEOF
     7802
     7803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7804# If the template does not know about datarootdir, expand it.
     7805# FIXME: This hack should be removed a few years after 2.60.
     7806ac_datarootdir_hack=; ac_datarootdir_seen=
     7807ac_sed_dataroot='
     7808/datarootdir/ {
     7809  p
     7810  q
     7811}
     7812/@datadir@/p
     7813/@docdir@/p
     7814/@infodir@/p
     7815/@localedir@/p
     7816/@mandir@/p'
     7817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7818*datarootdir*) ac_datarootdir_seen=yes;;
     7819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7820  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7822_ACEOF
     7823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7824  ac_datarootdir_hack='
     7825  s&@datadir@&$datadir&g
     7826  s&@docdir@&$docdir&g
     7827  s&@infodir@&$infodir&g
     7828  s&@localedir@&$localedir&g
     7829  s&@mandir@&$mandir&g
     7830  s&\\\${datarootdir}&$datarootdir&g' ;;
     7831esac
     7832_ACEOF
     7833
     7834# Neutralize VPATH when `$srcdir' = `.'.
     7835# Shell code in configure.ac might set extrasub.
     7836# FIXME: do we really want to maintain this feature?
     7837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7838ac_sed_extra="$ac_vpsub
    82407839$extrasub
    82417840_ACEOF
    8242 cat >>$CONFIG_STATUS <<\_ACEOF
     7841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    82437842:t
    82447843/@[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
     7844s|@configure_input@|$ac_sed_conf_input|;t t
     7845s&@top_builddir@&$ac_top_builddir_sub&;t t
     7846s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7847s&@srcdir@&$ac_srcdir&;t t
     7848s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7849s&@top_srcdir@&$ac_top_srcdir&;t t
     7850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7851s&@builddir@&$ac_builddir&;t t
     7852s&@abs_builddir@&$ac_abs_builddir&;t t
     7853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7854s&@INSTALL@&$ac_INSTALL&;t t
     7855$ac_datarootdir_hack
     7856"
     7857eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7858  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7859
     7860test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7861  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7862  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7864which seems to be undefined.  Please make sure it is defined" >&5
     7865$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7866which seems to be undefined.  Please make sure it is defined" >&2;}
     7867
     7868  rm -f "$tmp/stdin"
     7869  case $ac_file in
     7870  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7871  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7872  esac \
     7873  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7874 ;;
     7875  :H)
     7876  #
     7877  # CONFIG_HEADER
     7878  #
    82577879  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;}
     7880    {
     7881      $as_echo "/* $configure_input  */" \
     7882      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7883    } >"$tmp/config.h" \
     7884      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7885    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7886      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7887$as_echo "$as_me: $ac_file is unchanged" >&6;}
    84427888    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
     7889      rm -f "$ac_file"
     7890      mv "$tmp/config.h" "$ac_file" \
     7891    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    84827892    fi
    84837893  else
    8484     cat $tmp/config.h
    8485     rm -f $tmp/config.h
     7894    $as_echo "/* $configure_input  */" \
     7895      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7896      || as_fn_error $? "could not create -" "$LINENO" 5
    84867897  fi
    8487 done
    8488 _ACEOF
    8489 
    8490 cat >>$CONFIG_STATUS <<\_ACEOF
    8491 
    8492 { (exit 0); exit 0; }
    8493 _ACEOF
    8494 chmod +x $CONFIG_STATUS
     7898 ;;
     7899
     7900
     7901  esac
     7902
     7903done # for ac_tag
     7904
     7905
     7906as_fn_exit 0
     7907_ACEOF
    84957908ac_clean_files=$ac_clean_files_save
     7909
     7910test $ac_write_fail = 0 ||
     7911  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    84967912
    84977913
     
    85147930  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    85157931  # would make configure fail if this is the last instruction.
    8516   $ac_cs_success || { (exit 1); exit 1; }
     7932  $ac_cs_success || as_fn_exit 1
    85177933fi
    85187934
     
    85227938if test "$no_recursion" != yes; then
    85237939
    8524   # Remove --cache-file and --srcdir arguments so they do not pile up.
     7940  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
     7941  # so they do not pile up.
    85257942  ac_sub_configure_args=
    85267943  ac_prev=
    8527   for ac_arg in $ac_configure_args; do
     7944  eval "set x $ac_configure_args"
     7945  shift
     7946  for ac_arg
     7947  do
    85287948    if test -n "$ac_prev"; then
    85297949      ac_prev=
     
    85487968    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    85497969      ;;
    8550     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     7970    --disable-option-checking)
     7971      ;;
     7972    *)
     7973      case $ac_arg in
     7974      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7975      esac
     7976      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    85517977    esac
    85527978  done
     
    85547980  # Always prepend --prefix to ensure using the same prefix
    85557981  # in subdir configurations.
    8556   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     7982  ac_arg="--prefix=$prefix"
     7983  case $ac_arg in
     7984  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7985  esac
     7986  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
     7987
     7988  # Pass --silent
     7989  if test "$silent" = yes; then
     7990    ac_sub_configure_args="--silent $ac_sub_configure_args"
     7991  fi
     7992
     7993  # Always prepend --disable-option-checking to silence warnings, since
     7994  # different subdirs can have different --enable and --with options.
     7995  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
    85577996
    85587997  ac_popdir=`pwd`
     
    85618000    # Do not complain, so a configure script can configure whichever
    85628001    # 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 
     8002    test -d "$srcdir/$ac_dir" || continue
     8003
     8004    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
     8005    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
     8006    $as_echo "$ac_msg" >&6
     8007    as_dir="$ac_dir"; as_fn_mkdir_p
    85928008    ac_builddir=.
    85938009
    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
     8010case "$ac_dir" in
     8011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8012*)
     8013  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     8014  # A ".." for each directory in $ac_dir_suffix.
     8015  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     8016  case $ac_top_builddir_sub in
     8017  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8018  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     8019  esac ;;
     8020esac
     8021ac_abs_top_builddir=$ac_pwd
     8022ac_abs_builddir=$ac_pwd$ac_dir_suffix
     8023# for backward compatibility:
     8024ac_top_builddir=$ac_top_build_prefix
    86018025
    86028026case $srcdir in
    8603   .)  # No --srcdir option.  We are building in place.
     8027  .)  # We are building in place.
    86048028    ac_srcdir=.
    8605     if test -z "$ac_top_builddir"; then
    8606        ac_top_srcdir=.
     8029    ac_top_srcdir=$ac_top_builddir_sub
     8030    ac_abs_top_srcdir=$ac_pwd ;;
     8031  [\\/]* | ?:[\\/]* )  # Absolute name.
     8032    ac_srcdir=$srcdir$ac_dir_suffix;
     8033    ac_top_srcdir=$srcdir
     8034    ac_abs_top_srcdir=$srcdir ;;
     8035  *) # Relative name.
     8036    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     8037    ac_top_srcdir=$ac_top_build_prefix$srcdir
     8038    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     8039esac
     8040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     8041
     8042
     8043    cd "$ac_dir"
     8044
     8045    # Check for guested configure; otherwise get Cygnus style configure.
     8046    if test -f "$ac_srcdir/configure.gnu"; then
     8047      ac_sub_configure=$ac_srcdir/configure.gnu
     8048    elif test -f "$ac_srcdir/configure"; then
     8049      ac_sub_configure=$ac_srcdir/configure
     8050    elif test -f "$ac_srcdir/configure.in"; then
     8051      # This should be Cygnus configure.
     8052      ac_sub_configure=$ac_aux_dir/configure
    86078053    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;}
     8054      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
     8055$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    86708056      ac_sub_configure=
    86718057    fi
     
    86768062      case $cache_file in
    86778063      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    8678       *) # Relative path.
    8679     ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     8064      *) # Relative name.
     8065    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    86808066      esac
    86818067
    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;}
     8068      { $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
     8069$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    86848070      # 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; }; }
     8071      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
     8072       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
     8073    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    86908074    fi
    86918075
    8692     cd $ac_popdir
     8076    cd "$ac_popdir"
    86938077  done
    86948078fi
    8695 
    8696 
    8697 
     8079if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     8080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     8081$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     8082fi
     8083
     8084
     8085
  • main/trunk/greenstone2/common-src/configure.in

    r22058 r23356  
    99
    1010PACKAGE=gsdl
    11 VERSION=2.82-svn
     11VERSION=2.x-svn
    1212AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    1313AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
     
    7474
    7575dnl
     76dnl Disable all Java compilation
     77dnl
     78AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     79if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     80  ENABLE_JAVA=1
     81  if test "x$JAVA_HOME" != "x" ; then
     82    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     83    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     84    echo "and JAVA respectively"
     85    export JAVA_HOME=
     86  fi
     87else
     88  ENABLE_JAVA=0
     89fi
     90AC_SUBST(ENABLE_JAVA)
     91
     92dnl
    7693dnl Set use of JDBM (enabled by default)
    7794dnl
    7895AC_ARG_ENABLE(jdbm, [  --disable-jdbm        Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
    79 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     96if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    8097  USE_JDBM=1
    8198  AC_DEFINE(USE_JDBM,[])
     
    126143dnl
    127144AC_ARG_ENABLE(jni, [  --enable-jni    Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
    128 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     145if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    129146  ENABLE_JNI=1
    130147  AC_DEFINE(ENABLE_JNI,[])
     
    162179dnl
    163180AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
    164 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     181if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    165182  ENABLE_LUCENE=1
    166183  AC_DEFINE(ENABLE_LUCENE,[])
     
    183200AC_PROG_CC
    184201AC_PROG_CXX
     202if test $ENABLE_JAVA = "1" ; then
     203  AC_PROG_JAVA
     204  AC_PROG_JAVAC
     205fi
    185206AC_PROG_AWK
    186207AC_PROG_YACC
     
    453474         src/gdbmedit/gdbmget/Makefile \
    454475         src/gdbmedit/gdbmset/Makefile \
    455      src/gdbmedit/gdbmkeys/Makefile \
    456      src/gdbmedit/gdbmdel/Makefile \
    457          src/getpw/Makefile"
     476         src/gdbmedit/gdbmkeys/Makefile \
     477         src/gdbmedit/gdbmdel/Makefile \
     478         src/getpw/Makefile \
     479         src/jdbmedit/Makefile"
    458480
    459481AC_OUTPUT(packages/Makefile Makefile $srclist $moduleDirs)
  • main/trunk/greenstone2/common-src/indexers/Makefile.in

    r22070 r23356  
    5858endif
    5959
     60JAVAC=@JAVAC@
    6061
    6162INDEXERDIRS = $(UNAC) $(MG) $(MGPP) $(LUCENE)
  • main/trunk/greenstone2/common-src/indexers/aclocal.m4

    r19802 r23356  
    3434
    3535AC_DEFUN([AC_PROG_JAVAC],[
    36 AC_REQUIRE([AC_EXEEXT])dnl
    37 if test "x$JAVAPREFIX" = x; then
    38         test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT)
    39 else
    40         test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT, $JAVAPREFIX)
    41 fi
    42 test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
     36if test "x$JAVAC" = x ; then
     37  AC_REQUIRE([AC_EXEEXT])dnl
     38  if test "x$JAVAPREFIX" = x; then
     39    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT)
     40  else
     41    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT, $JAVAPREFIX)
     42  fi
     43  test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
     44else
     45  echo "Checking for javac... $JAVAC"
     46fi
     47AC_SUBST(JAVAC)
    4348AC_PROG_JAVAC_WORKS
    4449AC_PROVIDE([$0])dnl
     
    8085])
    8186AC_PROVIDE([$0])dnl
     87if test "x$JAVACFLAGS" = x ; then
     88  JAVACFLAGS="-source 1.4 -target 1.4"
     89fi
     90AC_SUBST(JAVACFLAGS)
    8291])
    8392
     
    155164
    156165AC_DEFUN([AC_PROG_JAVA],[
    157 AC_REQUIRE([AC_EXEEXT])dnl
    158 if test x$JAVAPREFIX = x; then
     166if test "x$JAVA" = x ; then
     167    AC_REQUIRE([AC_EXEEXT])dnl
     168    if test x$JAVAPREFIX = x; then
    159169        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT)
    160 else
     170    else
    161171        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT, $JAVAPREFIX)
    162 fi
    163 test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
     172    fi
     173    test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
     174fi
     175AC_SUBST(JAVA)
    164176AC_PROG_JAVA_WORKS
    165177AC_PROVIDE([$0])dnl
  • main/trunk/greenstone2/common-src/indexers/configure

    r22379 r23356  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.65.
     3# Generated by GNU Autoconf 2.67.
    44#
    55#
    66# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
    8 # Inc.
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     8# Foundation, Inc.
    99#
    1010#
     
    316316    done
    317317    test -z "$as_dirs" || eval "mkdir $as_dirs"
    318   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
     318  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    319319
    320320
     
    356356
    357357
    358 # as_fn_error ERROR [LINENO LOG_FD]
    359 # ---------------------------------
     358# as_fn_error STATUS ERROR [LINENO LOG_FD]
     359# ----------------------------------------
    360360# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    361361# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    362 # script with status $?, using 1 if that was 0.
     362# script with STATUS, using 1 if that was 0.
    363363as_fn_error ()
    364364{
    365   as_status=$?; test $as_status -eq 0 && as_status=1
    366   if test "$3"; then
    367     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    368     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     365  as_status=$1; test $as_status -eq 0 && as_status=1
     366  if test "$4"; then
     367    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     368    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    369369  fi
    370   $as_echo "$as_me: error: $1" >&2
     370  $as_echo "$as_me: error: $2" >&2
    371371  as_fn_exit $as_status
    372372} # as_fn_error
     
    530530
    531531# Name of the host.
    532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     532# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    533533# so uname gets run too.
    534534ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    560560uudecode
    561561JAVA
     562JAVACFLAGS
    562563JAVAC
    563564COMPAT32BITFLAGS
     
    567568ENABLE_JNI
    568569ENABLE_ACCENTFOLD
     570ENABLE_JAVA
    569571target_alias
    570572host_alias
     
    608610ac_user_opts='
    609611enable_option_checking
     612enable_java
    610613enable_accentfold
    611614enable_jni
     
    683686
    684687  case $ac_option in
    685   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    686   *)    ac_optarg=yes ;;
     688  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     689  *=)   ac_optarg= ;;
     690  *)    ac_optarg=yes ;;
    687691  esac
    688692
     
    729733    # Reject names that are not valid shell variable names.
    730734    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    731       as_fn_error "invalid feature name: $ac_useropt"
     735      as_fn_error $? "invalid feature name: $ac_useropt"
    732736    ac_useropt_orig=$ac_useropt
    733737    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    755759    # Reject names that are not valid shell variable names.
    756760    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    757       as_fn_error "invalid feature name: $ac_useropt"
     761      as_fn_error $? "invalid feature name: $ac_useropt"
    758762    ac_useropt_orig=$ac_useropt
    759763    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    959963    # Reject names that are not valid shell variable names.
    960964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    961       as_fn_error "invalid package name: $ac_useropt"
     965      as_fn_error $? "invalid package name: $ac_useropt"
    962966    ac_useropt_orig=$ac_useropt
    963967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    975979    # Reject names that are not valid shell variable names.
    976980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    977       as_fn_error "invalid package name: $ac_useropt"
     981      as_fn_error $? "invalid package name: $ac_useropt"
    978982    ac_useropt_orig=$ac_useropt
    979983    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10051009    x_libraries=$ac_optarg ;;
    10061010
    1007   -*) as_fn_error "unrecognized option: \`$ac_option'
    1008 Try \`$0 --help' for more information."
     1011  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1012Try \`$0 --help' for more information"
    10091013    ;;
    10101014
     
    10141018    case $ac_envvar in #(
    10151019      '' | [0-9]* | *[!_$as_cr_alnum]* )
    1016       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
     1020      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    10171021    esac
    10181022    eval $ac_envvar=\$ac_optarg
     
    10321036if test -n "$ac_prev"; then
    10331037  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1034   as_fn_error "missing argument to $ac_option"
     1038  as_fn_error $? "missing argument to $ac_option"
    10351039fi
    10361040
     
    10381042  case $enable_option_checking in
    10391043    no) ;;
    1040     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
     1044    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    10411045    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    10421046  esac
     
    10611065    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    10621066  esac
    1063   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
     1067  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    10641068done
    10651069
     
    10751079  if test "x$build_alias" = x; then
    10761080    cross_compiling=maybe
    1077     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    1078     If a cross compiler is detected then cross compile mode will be used." >&2
     1081    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1082    If a cross compiler is detected then cross compile mode will be used" >&2
    10791083  elif test "x$build_alias" != "x$host_alias"; then
    10801084    cross_compiling=yes
     
    10911095ac_ls_di=`ls -di .` &&
    10921096ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1093   as_fn_error "working directory cannot be determined"
     1097  as_fn_error $? "working directory cannot be determined"
    10941098test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1095   as_fn_error "pwd does not report name of working directory"
     1099  as_fn_error $? "pwd does not report name of working directory"
    10961100
    10971101
     
    11321136if test ! -r "$srcdir/$ac_unique_file"; then
    11331137  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1134   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
     1138  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
    11351139fi
    11361140ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    11371141ac_abs_confdir=`(
    1138     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
     1142    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
    11391143    pwd)`
    11401144# When building in place, set srcdir=.
     
    11761180      --help=recursive    display the short help of all the included packages
    11771181  -V, --version           display version information and exit
    1178   -q, --quiet, --silent   do not print \`checking...' messages
     1182  -q, --quiet, --silent   do not print \`checking ...' messages
    11791183      --cache-file=FILE   cache test results in FILE [disabled]
    11801184  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    12291233  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    12301234  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1235  --disable-java          Disable Java compilation
    12311236  --disable-accentfold    Disable Accent Folding for MGPP
    12321237  --enable-jni    Enable JNI compilation
     
    13051310  cat <<\_ACEOF
    13061311configure
    1307 generated by GNU Autoconf 2.65
    1308 
    1309 Copyright (C) 2009 Free Software Foundation, Inc.
     1312generated by GNU Autoconf 2.67
     1313
     1314Copyright (C) 2010 Free Software Foundation, Inc.
    13101315This configure script is free software; the Free Software Foundation
    13111316gives unlimited permission to copy, distribute and modify it.
     
    13221327
    13231328It was created by $as_me, which was
    1324 generated by GNU Autoconf 2.65.  Invocation command line was
     1329generated by GNU Autoconf 2.67.  Invocation command line was
    13251330
    13261331  $ $0 $@
     
    14321437    echo
    14331438
    1434     cat <<\_ASBOX
    1435 ## ---------------- ##
     1439    $as_echo "## ---------------- ##
    14361440## Cache variables. ##
    1437 ## ---------------- ##
    1438 _ASBOX
     1441## ---------------- ##"
    14391442    echo
    14401443    # The following way of writing the cache mishandles newlines in values,
     
    14701473    echo
    14711474
    1472     cat <<\_ASBOX
    1473 ## ----------------- ##
     1475    $as_echo "## ----------------- ##
    14741476## Output variables. ##
    1475 ## ----------------- ##
    1476 _ASBOX
     1477## ----------------- ##"
    14771478    echo
    14781479    for ac_var in $ac_subst_vars
     
    14871488
    14881489    if test -n "$ac_subst_files"; then
    1489       cat <<\_ASBOX
    1490 ## ------------------- ##
     1490      $as_echo "## ------------------- ##
    14911491## File substitutions. ##
    1492 ## ------------------- ##
    1493 _ASBOX
     1492## ------------------- ##"
    14941493      echo
    14951494      for ac_var in $ac_subst_files
     
    15051504
    15061505    if test -s confdefs.h; then
    1507       cat <<\_ASBOX
    1508 ## ----------- ##
     1506      $as_echo "## ----------- ##
    15091507## confdefs.h. ##
    1510 ## ----------- ##
    1511 _ASBOX
     1508## ----------- ##"
    15121509      echo
    15131510      cat confdefs.h
     
    15641561ac_site_file2=NONE
    15651562if test -n "$CONFIG_SITE"; then
    1566   ac_site_file1=$CONFIG_SITE
     1563  # We do not want a PATH search for config.site.
     1564  case $CONFIG_SITE in #((
     1565    -*)  ac_site_file1=./$CONFIG_SITE;;
     1566    */*) ac_site_file1=$CONFIG_SITE;;
     1567    *)   ac_site_file1=./$CONFIG_SITE;;
     1568  esac
    15671569elif test "x$prefix" != xNONE; then
    15681570  ac_site_file1=$prefix/share/config.site
     
    15791581$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    15801582    sed 's/^/| /' "$ac_site_file" >&5
    1581     . "$ac_site_file"
     1583    . "$ac_site_file" \
     1584      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     1585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     1586as_fn_error $? "failed to load site script $ac_site_file
     1587See \`config.log' for more details" "$LINENO" 5 ; }
    15821588  fi
    15831589done
     
    16551661  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    16561662$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1657   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     1663  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    16581664fi
    16591665## -------------------- ##
     
    16691675
    16701676
     1677# Check whether --enable-java was given.
     1678if test "${enable_java+set}" = set; then :
     1679  enableval=$enable_java; ENABLE_JAVA=$enableval
     1680else
     1681  ENABLE_JAVA=yes
     1682fi
     1683
     1684if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     1685  ENABLE_JAVA=1
     1686  if test "x$JAVA_HOME" != "x" ; then
     1687    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     1688    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     1689    echo "and JAVA respectively"
     1690    export JAVA_HOME=
     1691  fi
     1692else
     1693  ENABLE_JAVA=0
     1694fi
     1695
    16711696
    16721697# Check whether --enable-accentfold was given.
     
    16941719fi
    16951720
    1696 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     1721if test $ENABLE_JAVA -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    16971722  ENABLE_JNI=1
    16981723  $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
     
    17441769fi
    17451770
    1746 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     1771if test $ENABLE_JAVA -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    17471772  ENABLE_LUCENE=1
    17481773  $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
     
    17601785
    17611786
    1762 
    17631787if test "$ENABLE_LUCENE" = "1" ; then
    17641788
    17651789
    1766 if test "x$JAVAPREFIX" = x; then
    1767         test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     1790if test "x$JAVAC" = x ; then
     1791    if test "x$JAVAPREFIX" = x; then
     1792    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    17681793do
    17691794  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    18071832done
    18081833
    1809 else
    1810         test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     1834  else
     1835    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    18111836do
    18121837  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    18511876test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
    18521877
    1853 fi
    1854 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     1878  fi
     1879  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     1880else
     1881  echo "Checking for javac... $JAVAC"
     1882fi
     1883
    18551884
    18561885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     
    18631892CLASS_TEST=Test.class
    18641893cat << \EOF > $JAVA_TEST
    1865 /* #line 1865 "configure" */
     1894/* #line 1894 "configure" */
    18661895public class Test {
    18671896}
     
    18751904  ac_cv_prog_javac_works=yes
    18761905else
    1877   as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     1906  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    18781907  echo "configure: failed program was:" >&5
    18791908  cat $JAVA_TEST >&5
     
    18841913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
    18851914$as_echo "$ac_cv_prog_javac_works" >&6; }
    1886 
    1887 
    1888 
    1889 if test x$JAVAPREFIX = x; then
     1915if test "x$JAVACFLAGS" = x ; then
     1916  JAVACFLAGS="-source 1.4 -target 1.4"
     1917fi
     1918
     1919
     1920
     1921
     1922if test "x$JAVA" = x ; then
     1923        if test x$JAVAPREFIX = x; then
    18901924        test x$JAVA = x && for ac_prog in java$EXEEXT
    18911925do
     
    19301964done
    19311965
    1932 else
     1966    else
    19331967        test x$JAVA = x && for ac_prog in java$EXEEXT
    19341968do
     
    19742008test -n "$JAVA" || JAVA="$JAVAPREFIX"
    19752009
    1976 fi
    1977 test x$JAVA = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     2010    fi
     2011    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     2012fi
     2013
    19782014
    19792015# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     
    20352071        ac_cv_prog_uudecode_base64=yes
    20362072else
    2037         echo "configure: 2037: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     2073        echo "configure: 2073: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
    20382074        echo "configure: failed file was:" >&5
    20392075        cat Test.uue >&5
     
    20502086$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
    20512087        if test x$ac_cv_prog_javac_works = xno; then
    2052                 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     2088                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
    20532089        fi
    20542090        if test x$ac_cv_prog_javac_works = x; then
    20552091
    2056 if test "x$JAVAPREFIX" = x; then
    2057         test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     2092if test "x$JAVAC" = x ; then
     2093    if test "x$JAVAPREFIX" = x; then
     2094    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    20582095do
    20592096  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    20972134done
    20982135
    2099 else
    2100         test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     2136  else
     2137    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    21012138do
    21022139  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    21412178test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
    21422179
    2143 fi
    2144 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     2180  fi
     2181  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     2182else
     2183  echo "Checking for javac... $JAVAC"
     2184fi
     2185
    21452186
    21462187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     
    21532194CLASS_TEST=Test.class
    21542195cat << \EOF > $JAVA_TEST
    2155 /* #line 2155 "configure" */
     2196/* #line 2196 "configure" */
    21562197public class Test {
    21572198}
     
    21652206  ac_cv_prog_javac_works=yes
    21662207else
    2167   as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     2208  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    21682209  echo "configure: failed program was:" >&5
    21692210  cat $JAVA_TEST >&5
     
    21742215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
    21752216$as_echo "$ac_cv_prog_javac_works" >&6; }
     2217if test "x$JAVACFLAGS" = x ; then
     2218  JAVACFLAGS="-source 1.4 -target 1.4"
     2219fi
     2220
    21762221
    21772222
     
    21882233TEST=Test
    21892234cat << \EOF > $JAVA_TEST
    2190 /* [#]line 2190 "configure" */
     2235/* [#]line 2235 "configure" */
    21912236public class Test {
    21922237public static void main (String args[]) {
     
    22052250          echo "configure: failed program was:" >&5
    22062251          cat $JAVA_TEST >&5
    2207           as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     2252          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    22082253        fi
    22092254fi
     
    22182263  echo "configure: failed program was:" >&5
    22192264  cat $JAVA_TEST >&5
    2220   as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     2265  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    22212266fi
    22222267rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     
    22472292ac_aux_dir=
    22482293for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
    2249   for ac_t in install-sh install.sh shtool; do
    2250     if test -f "$ac_dir/$ac_t"; then
    2251       ac_aux_dir=$ac_dir
    2252       ac_install_sh="$ac_aux_dir/$ac_t -c"
    2253       break 2
    2254     fi
    2255   done
     2294  if test -f "$ac_dir/install-sh"; then
     2295    ac_aux_dir=$ac_dir
     2296    ac_install_sh="$ac_aux_dir/install-sh -c"
     2297    break
     2298  elif test -f "$ac_dir/install.sh"; then
     2299    ac_aux_dir=$ac_dir
     2300    ac_install_sh="$ac_aux_dir/install.sh -c"
     2301    break
     2302  elif test -f "$ac_dir/shtool"; then
     2303    ac_aux_dir=$ac_dir
     2304    ac_install_sh="$ac_aux_dir/shtool install -c"
     2305    break
     2306  fi
    22562307done
    22572308if test -z "$ac_aux_dir"; then
    2258   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     2309  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
    22592310fi
    22602311
     
    23002351fi
    23012352
    2302 ac_config_files="$ac_config_files Makefile"
     2353srclist="lucene-gs/Makefile"
     2354
     2355ac_config_files="$ac_config_files Makefile $srclist"
    23032356
    23042357cat >confcache <<\_ACEOF
     
    24212474ac_libobjs=
    24222475ac_ltlibobjs=
     2476U=
    24232477for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    24242478  # 1. Remove the extension, and $U if already installed.
     
    25822636
    25832637
    2584 # as_fn_error ERROR [LINENO LOG_FD]
    2585 # ---------------------------------
     2638# as_fn_error STATUS ERROR [LINENO LOG_FD]
     2639# ----------------------------------------
    25862640# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    25872641# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    2588 # script with status $?, using 1 if that was 0.
     2642# script with STATUS, using 1 if that was 0.
    25892643as_fn_error ()
    25902644{
    2591   as_status=$?; test $as_status -eq 0 && as_status=1
    2592   if test "$3"; then
    2593     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2594     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     2645  as_status=$1; test $as_status -eq 0 && as_status=1
     2646  if test "$4"; then
     2647    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2648    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    25952649  fi
    2596   $as_echo "$as_me: error: $1" >&2
     2650  $as_echo "$as_me: error: $2" >&2
    25972651  as_fn_exit $as_status
    25982652} # as_fn_error
     
    27902844    done
    27912845    test -z "$as_dirs" || eval "mkdir $as_dirs"
    2792   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
     2846  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    27932847
    27942848
     
    28442898ac_log="
    28452899This file was extended by $as_me, which was
    2846 generated by GNU Autoconf 2.65.  Invocation command line was
     2900generated by GNU Autoconf 2.67.  Invocation command line was
    28472901
    28482902  CONFIG_FILES    = $CONFIG_FILES
     
    28972951ac_cs_version="\\
    28982952config.status
    2899 configured by $0, generated by GNU Autoconf 2.65,
     2953configured by $0, generated by GNU Autoconf 2.67,
    29002954  with options \\"\$ac_cs_config\\"
    29012955
    2902 Copyright (C) 2009 Free Software Foundation, Inc.
     2956Copyright (C) 2010 Free Software Foundation, Inc.
    29032957This config.status script is free software; the Free Software Foundation
    29042958gives unlimited permission to copy, distribute and modify it."
     
    29152969do
    29162970  case $1 in
    2917   --*=*)
     2971  --*=?*)
    29182972    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    29192973    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     2974    ac_shift=:
     2975    ;;
     2976  --*=)
     2977    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     2978    ac_optarg=
    29202979    ac_shift=:
    29212980    ;;
     
    29413000    case $ac_optarg in
    29423001    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     3002    '') as_fn_error $? "missing file argument" ;;
    29433003    esac
    29443004    as_fn_append CONFIG_FILES " '$ac_optarg'"
     
    29513011
    29523012  # This is an error.
    2953   -*) as_fn_error "unrecognized option: \`$1'
     3013  -*) as_fn_error $? "unrecognized option: \`$1'
    29543014Try \`$0 --help' for more information." ;;
    29553015
     
    30013061  case $ac_config_target in
    30023062    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    3003 
    3004   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     3063    "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     3064
     3065  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    30053066  esac
    30063067done
     
    30383099  tmp=./conf$$-$RANDOM
    30393100  (umask 077 && mkdir "$tmp")
    3040 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
     3101} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
    30413102
    30423103# Set up the scripts for CONFIG_FILES section.
     
    30553116ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    30563117if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
    3057   ac_cs_awk_cr='\r'
     3118  ac_cs_awk_cr='\\r'
    30583119else
    30593120  ac_cs_awk_cr=$ac_cr
     
    30693130  echo "_ACEOF"
    30703131} >conf$$subs.sh ||
    3071   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    3072 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
     3132  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     3133ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
    30733134ac_delim='%!_!# '
    30743135for ac_last_try in false false false false false :; do
    30753136  . ./conf$$subs.sh ||
    3076     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     3137    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    30773138
    30783139  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    30803141    break
    30813142  elif $ac_last_try; then
    3082     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     3143    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    30833144  else
    30843145    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    31693230  cat
    31703231fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
    3171   || as_fn_error "could not setup config files machinery" "$LINENO" 5
     3232  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    31723233_ACEOF
    31733234
    3174 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    3175 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     3235# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     3236# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
    31763237# trailing colons and then remove the whole line if VPATH becomes empty
    31773238# (actually we leave an empty line to preserve line numbers).
    31783239if test "x$srcdir" = x.; then
    3179   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    3180 s/:*\$(srcdir):*/:/
    3181 s/:*\${srcdir}:*/:/
    3182 s/:*@srcdir@:*/:/
    3183 s/^\([^=]*=[     ]*\):*/\1/
     3240  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     3241h
     3242s///
     3243s/^/:/
     3244s/[  ]*$/:/
     3245s/:\$(srcdir):/:/g
     3246s/:\${srcdir}:/:/g
     3247s/:@srcdir@:/:/g
     3248s/^:*//
    31843249s/:*$//
     3250x
     3251s/\(=[   ]*\).*/\1/
     3252G
     3253s/\n//
    31853254s/^[^=]*=[   ]*$//
    31863255}'
     
    32003269  case $ac_mode$ac_tag in
    32013270  :[FHL]*:*);;
    3202   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
     3271  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
    32033272  :[FH]-) ac_tag=-:-;;
    32043273  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    32283297       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    32293298       esac ||
    3230        as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
     3299       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
    32313300      esac
    32323301      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     
    32553324    case $ac_tag in
    32563325    *:-:* | *:-) cat >"$tmp/stdin" \
    3257       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
     3326      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    32583327    esac
    32593328    ;;
     
    33813450"
    33823451eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
    3383   || as_fn_error "could not create $ac_file" "$LINENO" 5
     3452  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    33843453
    33853454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     
    33873456  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    33883457  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    3389 which seems to be undefined.  Please make sure it is defined." >&5
     3458which seems to be undefined.  Please make sure it is defined" >&5
    33903459$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    3391 which seems to be undefined.  Please make sure it is defined." >&2;}
     3460which seems to be undefined.  Please make sure it is defined" >&2;}
    33923461
    33933462  rm -f "$tmp/stdin"
     
    33963465  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
    33973466  esac \
    3398   || as_fn_error "could not create $ac_file" "$LINENO" 5
     3467  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    33993468 ;;
    34003469
     
    34113480
    34123481test $ac_write_fail = 0 ||
    3413   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
     3482  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    34143483
    34153484
     
    34323501  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    34333502  # would make configure fail if this is the last instruction.
    3434   $ac_cs_success || as_fn_exit $?
     3503  $ac_cs_success || as_fn_exit 1
    34353504fi
    34363505
     
    35733642      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
    35743643       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
    3575     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
     3644    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    35763645    fi
    35773646
  • main/trunk/greenstone2/common-src/indexers/configure.ac

    r22378 r23356  
    44AC_INIT()
    55
     6dnl
     7dnl Disable all Java compilation
     8dnl
     9AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     10if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     11  ENABLE_JAVA=1
     12  if test "x$JAVA_HOME" != "x" ; then
     13    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     14    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     15    echo "and JAVA respectively"
     16    export JAVA_HOME=
     17  fi
     18else
     19  ENABLE_JAVA=0
     20fi
     21AC_SUBST(ENABLE_JAVA)
    622
    723dnl
     
    2238dnl
    2339AC_ARG_ENABLE(jni, [  --enable-jni    Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
    24 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     40if test $ENABLE_JAVA -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    2541  ENABLE_JNI=1
    2642  AC_DEFINE(ENABLE_JNI,[])
     
    6076dnl
    6177AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
    62 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     78if test $ENABLE_JAVA -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    6379  ENABLE_LUCENE=1
    6480  AC_DEFINE(ENABLE_LUCENE,[])
     
    7591dnl Make sure Javac and Java are available if were are compiling Lucene
    7692dnl
    77 
    7893if test "$ENABLE_LUCENE" = "1" ; then
    7994  AC_PROG_JAVAC
     
    120135fi
    121136
    122 AC_OUTPUT(Makefile)
     137srclist="lucene-gs/Makefile"
     138
     139AC_OUTPUT(Makefile $srclist)
  • main/trunk/greenstone2/common-src/indexers/lucene-gs/Makefile.in

    r23354 r23356  
    1 JAVAC = javac
     1JAVAC = @JAVAC@
     2JAVACFLAGS = @JAVACFLAGS@
    23JAR = jar
    34
     
    1819
    1920classes/%.class: src/%.java
    20     mkdir -p classes && $(JAVAC) -classpath $(LUCENE_JAR):classes:. -d classes -sourcepath src/ src/$*.java
     21    mkdir -p classes && $(JAVAC) $(JAVACFLAGS) -classpath $(LUCENE_JAR):classes:. -d classes -sourcepath src/ src/$*.java
    2122
    2223LuceneWrapper.jar: $(LUCENE_WRAPPER_OBJECTS)
  • main/trunk/greenstone2/common-src/indexers/mg/aclocal.m4

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

    r22070 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
    274557ac_unique_file="src/text/mgquery.c"
     
    276559ac_includes_default="\
    277560#include <stdio.h>
    278 #if HAVE_SYS_TYPES_H
     561#ifdef HAVE_SYS_TYPES_H
    279562# include <sys/types.h>
    280563#endif
    281 #if HAVE_SYS_STAT_H
     564#ifdef HAVE_SYS_STAT_H
    282565# include <sys/stat.h>
    283566#endif
    284 #if STDC_HEADERS
     567#ifdef STDC_HEADERS
    285568# include <stdlib.h>
    286569# include <stddef.h>
    287570#else
    288 # if HAVE_STDLIB_H
     571# ifdef HAVE_STDLIB_H
    289572#  include <stdlib.h>
    290573# endif
    291574#endif
    292 #if HAVE_STRING_H
    293 # if !STDC_HEADERS && HAVE_MEMORY_H
     575#ifdef HAVE_STRING_H
     576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    294577#  include <memory.h>
    295578# endif
    296579# include <string.h>
    297580#endif
    298 #if HAVE_STRINGS_H
     581#ifdef HAVE_STRINGS_H
    299582# include <strings.h>
    300583#endif
    301 #if HAVE_INTTYPES_H
     584#ifdef HAVE_INTTYPES_H
    302585# include <inttypes.h>
    303 #else
    304 # if HAVE_STDINT_H
    305 #  include <stdint.h>
    306 # endif
    307586#endif
    308 #if HAVE_UNISTD_H
     587#ifdef HAVE_STDINT_H
     588# include <stdint.h>
     589#endif
     590#ifdef HAVE_UNISTD_H
    309591# include <unistd.h>
    310592#endif"
    311593
    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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PACKAGE VERSION COMPAT32BITFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
     594ac_subst_vars='LTLIBOBJS
     595JNIFLAGS
     596JNISUFFIX
     597JNIINC
     598LIBOBJS
     599ALLOCA
     600ANSI2KNR
     601U
     602EGREP
     603GREP
     604CPP
     605JAVACFLAGS
     606JAVAC
     607uudecode
     608JAVA
     609RANLIB
     610SET_MAKE
     611LN_S
     612INSTALL_DATA
     613INSTALL_SCRIPT
     614INSTALL_PROGRAM
     615ac_ct_CC
     616CFLAGS
     617CC
     618YFLAGS
     619YACC
     620AWK
     621OBJEXT
     622EXEEXT
     623ac_ct_CXX
     624CPPFLAGS
     625LDFLAGS
     626CXXFLAGS
     627CXX
     628COMPAT32BITFLAGS
     629ENABLE_JAVA
     630VERSION
     631PACKAGE
     632target_os
     633target_vendor
     634target_cpu
     635target
     636host_os
     637host_vendor
     638host_cpu
     639host
     640build_os
     641build_vendor
     642build_cpu
     643build
     644target_alias
     645host_alias
     646build_alias
     647LIBS
     648ECHO_T
     649ECHO_N
     650ECHO_C
     651DEFS
     652mandir
     653localedir
     654libdir
     655psdir
     656pdfdir
     657dvidir
     658htmldir
     659infodir
     660docdir
     661oldincludedir
     662includedir
     663localstatedir
     664sharedstatedir
     665sysconfdir
     666datadir
     667datarootdir
     668libexecdir
     669sbindir
     670bindir
     671program_transform_name
     672prefix
     673exec_prefix
     674PACKAGE_URL
     675PACKAGE_BUGREPORT
     676PACKAGE_STRING
     677PACKAGE_VERSION
     678PACKAGE_TARNAME
     679PACKAGE_NAME
     680PATH_SEPARATOR
     681SHELL'
    313682ac_subst_files=''
     683ac_user_opts='
     684enable_option_checking
     685enable_java
     686with_dmalloc
     687with_regex
     688'
     689      ac_precious_vars='build_alias
     690host_alias
     691target_alias
     692CXX
     693CXXFLAGS
     694LDFLAGS
     695LIBS
     696CPPFLAGS
     697CCC
     698YACC
     699YFLAGS
     700CC
     701CFLAGS
     702CPP'
     703
    314704
    315705# Initialize some variables set by options.
    316706ac_init_help=
    317707ac_init_version=false
     708ac_unrecognized_opts=
     709ac_unrecognized_sep=
    318710# The variables have the same names as the options, with
    319711# dashes changed to underlines.
     
    338730# by default will actually change.
    339731# Use braces instead of parens because sh, perl, etc. also accept them.
     732# (The list follows the same order as the GNU Coding Standards.)
    340733bindir='${exec_prefix}/bin'
    341734sbindir='${exec_prefix}/sbin'
    342735libexecdir='${exec_prefix}/libexec'
    343 datadir='${prefix}/share'
     736datarootdir='${prefix}/share'
     737datadir='${datarootdir}'
    344738sysconfdir='${prefix}/etc'
    345739sharedstatedir='${prefix}/com'
    346740localstatedir='${prefix}/var'
    347 libdir='${exec_prefix}/lib'
    348741includedir='${prefix}/include'
    349742oldincludedir='/usr/include'
    350 infodir='${prefix}/info'
    351 mandir='${prefix}/man'
     743docdir='${datarootdir}/doc/${PACKAGE}'
     744infodir='${datarootdir}/info'
     745htmldir='${docdir}'
     746dvidir='${docdir}'
     747pdfdir='${docdir}'
     748psdir='${docdir}'
     749libdir='${exec_prefix}/lib'
     750localedir='${datarootdir}/locale'
     751mandir='${datarootdir}/man'
    352752
    353753ac_prev=
     754ac_dashdash=
    354755for ac_option
    355756do
    356757  # If the previous option needs an argument, assign it.
    357758  if test -n "$ac_prev"; then
    358     eval "$ac_prev=\$ac_option"
     759    eval $ac_prev=\$ac_option
    359760    ac_prev=
    360761    continue
    361762  fi
    362763
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     764  case $ac_option in
     765  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     766  *=)   ac_optarg= ;;
     767  *)    ac_optarg=yes ;;
     768  esac
    364769
    365770  # Accept the important Cygnus configure options, so we can diagnose typos.
    366771
    367   case $ac_option in
     772  case $ac_dashdash$ac_option in
     773  --)
     774    ac_dashdash=yes ;;
    368775
    369776  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    387794    cache_file=config.cache ;;
    388795
    389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     796  -datadir | --datadir | --datadi | --datad)
    390797    ac_prev=datadir ;;
    391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392   | --da=*)
     798  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    393799    datadir=$ac_optarg ;;
    394800
     801  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     802  | --dataroo | --dataro | --datar)
     803    ac_prev=datarootdir ;;
     804  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     805  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     806    datarootdir=$ac_optarg ;;
     807
    395808  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     809    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    397810    # 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" ;;
     811    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     812      as_fn_error $? "invalid feature name: $ac_useropt"
     813    ac_useropt_orig=$ac_useropt
     814    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     815    case $ac_user_opts in
     816      *"
     817"enable_$ac_useropt"
     818"*) ;;
     819      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     820     ac_unrecognized_sep=', ';;
     821    esac
     822    eval enable_$ac_useropt=no ;;
     823
     824  -docdir | --docdir | --docdi | --doc | --do)
     825    ac_prev=docdir ;;
     826  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     827    docdir=$ac_optarg ;;
     828
     829  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     830    ac_prev=dvidir ;;
     831  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     832    dvidir=$ac_optarg ;;
    403833
    404834  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     835    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    406836    # 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 ;;
     837    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     838      as_fn_error $? "invalid feature name: $ac_useropt"
     839    ac_useropt_orig=$ac_useropt
     840    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     841    case $ac_user_opts in
     842      *"
     843"enable_$ac_useropt"
     844"*) ;;
     845      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     846     ac_unrecognized_sep=', ';;
    414847    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     848    eval enable_$ac_useropt=\$ac_optarg ;;
    416849
    417850  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    440873    host_alias=$ac_optarg ;;
    441874
     875  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     876    ac_prev=htmldir ;;
     877  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     878  | --ht=*)
     879    htmldir=$ac_optarg ;;
     880
    442881  -includedir | --includedir | --includedi | --included | --include \
    443882  | --includ | --inclu | --incl | --inc)
     
    464903    libexecdir=$ac_optarg ;;
    465904
     905  -localedir | --localedir | --localedi | --localed | --locale)
     906    ac_prev=localedir ;;
     907  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     908    localedir=$ac_optarg ;;
     909
    466910  -localstatedir | --localstatedir | --localstatedi | --localstated \
    467   | --localstate | --localstat | --localsta | --localst \
    468   | --locals | --local | --loca | --loc | --lo)
     911  | --localstate | --localstat | --localsta | --localst | --locals)
    469912    ac_prev=localstatedir ;;
    470913  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     914  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    473915    localstatedir=$ac_optarg ;;
    474916
     
    535977    program_transform_name=$ac_optarg ;;
    536978
     979  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     980    ac_prev=pdfdir ;;
     981  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     982    pdfdir=$ac_optarg ;;
     983
     984  -psdir | --psdir | --psdi | --psd | --ps)
     985    ac_prev=psdir ;;
     986  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     987    psdir=$ac_optarg ;;
     988
    537989  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    538990  | -silent | --silent | --silen | --sile | --sil)
     
    5851037
    5861038  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1039    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5881040    # 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 ;;
     1041    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1042      as_fn_error $? "invalid package name: $ac_useropt"
     1043    ac_useropt_orig=$ac_useropt
     1044    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1045    case $ac_user_opts in
     1046      *"
     1047"with_$ac_useropt"
     1048"*) ;;
     1049      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1050     ac_unrecognized_sep=', ';;
    5961051    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     1052    eval with_$ac_useropt=\$ac_optarg ;;
    5981053
    5991054  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1055    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6011056    # 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" ;;
     1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1058      as_fn_error $? "invalid package name: $ac_useropt"
     1059    ac_useropt_orig=$ac_useropt
     1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1061    case $ac_user_opts in
     1062      *"
     1063"with_$ac_useropt"
     1064"*) ;;
     1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1066     ac_unrecognized_sep=', ';;
     1067    esac
     1068    eval with_$ac_useropt=no ;;
    6071069
    6081070  --x)
     
    6241086    x_libraries=$ac_optarg ;;
    6251087
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     1088  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1089Try \`$0 --help' for more information"
    6291090    ;;
    6301091
     
    6321093    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6331094    # 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'"
     1095    case $ac_envvar in #(
     1096      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1097      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1098    esac
     1099    eval $ac_envvar=\$ac_optarg
    6391100    export $ac_envvar ;;
    6401101
    6411102  *)
    6421103    # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1104    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6441105    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1106      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6461107    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6471108    ;;
     
    6521113if test -n "$ac_prev"; then
    6531114  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
     1115  as_fn_error $? "missing argument to $ac_option"
     1116fi
     1117
     1118if test -n "$ac_unrecognized_opts"; then
     1119  case $enable_option_checking in
     1120    no) ;;
     1121    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1122    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1123  esac
     1124fi
     1125
     1126# Check all directory arguments for consistency.
     1127for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1128        datadir sysconfdir sharedstatedir localstatedir includedir \
     1129        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1130        libdir localedir mandir
    6601131do
    661   eval ac_val=$`echo $ac_var`
     1132  eval ac_val=\$$ac_var
     1133  # Remove trailing slashes.
    6621134  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; }; };;
     1135    */ )
     1136      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1137      eval $ac_var=\$ac_val;;
    6661138  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`
     1139  # Be sure to have absolute directory names.
    6741140  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; }; };;
     1141    [\\/$]* | ?:[\\/]* )  continue;;
     1142    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6781143  esac
     1144  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6791145done
    6801146
     
    6901156  if test "x$build_alias" = x; then
    6911157    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
     1158    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1159    If a cross compiler is detected then cross compile mode will be used" >&2
    6941160  elif test "x$build_alias" != "x$host_alias"; then
    6951161    cross_compiling=yes
     
    7031169
    7041170
     1171ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1172ac_ls_di=`ls -di .` &&
     1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1174  as_fn_error $? "working directory cannot be determined"
     1175test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1176  as_fn_error $? "pwd does not report name of working directory"
     1177
     1178
    7051179# Find the source files, if location was not specified.
    7061180if test -z "$srcdir"; then
    7071181  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'`
     1182  # Try the directory containing this script, then the parent directory.
     1183  ac_confdir=`$as_dirname -- "$as_myself" ||
     1184$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1185     X"$as_myself" : 'X\(//\)[^/]' \| \
     1186     X"$as_myself" : 'X\(//\)$' \| \
     1187     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1188$as_echo X"$as_myself" |
     1189    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1190        s//\1/
     1191        q
     1192      }
     1193      /^X\(\/\/\)[^/].*/{
     1194        s//\1/
     1195        q
     1196      }
     1197      /^X\(\/\/\)$/{
     1198        s//\1/
     1199        q
     1200      }
     1201      /^X\(\/\).*/{
     1202        s//\1/
     1203        q
     1204      }
     1205      s/.*/./; q'`
    7211206  srcdir=$ac_confdir
    722   if test ! -r $srcdir/$ac_unique_file; then
     1207  if test ! -r "$srcdir/$ac_unique_file"; then
    7231208    srcdir=..
    7241209  fi
     
    7261211  ac_srcdir_defaulted=no
    7271212fi
    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_CXX_set=${CXX+set}
    754 ac_env_CXX_value=$CXX
    755 ac_cv_env_CXX_set=${CXX+set}
    756 ac_cv_env_CXX_value=$CXX
    757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    758 ac_env_CXXFLAGS_value=$CXXFLAGS
    759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    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_CC_set=${CC+set}
    770 ac_env_CC_value=$CC
    771 ac_cv_env_CC_set=${CC+set}
    772 ac_cv_env_CC_value=$CC
    773 ac_env_CFLAGS_set=${CFLAGS+set}
    774 ac_env_CFLAGS_value=$CFLAGS
    775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    776 ac_cv_env_CFLAGS_value=$CFLAGS
    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
     1213if test ! -r "$srcdir/$ac_unique_file"; then
     1214  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1215  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1216fi
     1217ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1218ac_abs_confdir=`(
     1219    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1220    pwd)`
     1221# When building in place, set srcdir=.
     1222if test "$ac_abs_confdir" = "$ac_pwd"; then
     1223  srcdir=.
     1224fi
     1225# Remove unnecessary trailing slashes from srcdir.
     1226# Double slashes in file names in object file debugging info
     1227# mess up M-x gdb in Emacs.
     1228case $srcdir in
     1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1230esac
     1231for ac_var in $ac_precious_vars; do
     1232  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1233  eval ac_env_${ac_var}_value=\$${ac_var}
     1234  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1235  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1236done
    7811237
    7821238#
     
    8011257      --help=recursive    display the short help of all the included packages
    8021258  -V, --version           display version information and exit
    803   -q, --quiet, --silent   do not print \`checking...' messages
     1259  -q, --quiet, --silent   do not print \`checking ...' messages
    8041260      --cache-file=FILE   cache test results in FILE [disabled]
    8051261  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8071263      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8081264
    809 _ACEOF
    810 
    811   cat <<_ACEOF
    8121265Installation directories:
    8131266  --prefix=PREFIX         install architecture-independent files in PREFIX
    814               [$ac_default_prefix]
     1267                          [$ac_default_prefix]
    8151268  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    816               [PREFIX]
     1269                          [PREFIX]
    8171270
    8181271By default, \`make install' will install all the files in
     
    8241277
    8251278Fine 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]
     1279  --bindir=DIR            user executables [EPREFIX/bin]
     1280  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1281  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1282  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1283  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1284  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1285  --libdir=DIR            object code libraries [EPREFIX/lib]
     1286  --includedir=DIR        C header files [PREFIX/include]
     1287  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1288  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1289  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1290  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1291  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1292  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1293  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1294  --htmldir=DIR           html documentation [DOCDIR]
     1295  --dvidir=DIR            dvi documentation [DOCDIR]
     1296  --pdfdir=DIR            pdf documentation [DOCDIR]
     1297  --psdir=DIR             ps documentation [DOCDIR]
    8381298_ACEOF
    8391299
     
    8551315
    8561316  cat <<\_ACEOF
     1317
     1318Optional Features:
     1319  --disable-option-checking  ignore unrecognized --enable/--with options
     1320  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     1321  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1322  --disable-java          Disable Java compilation
    8571323
    8581324Optional Packages:
     
    8681334  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8691335              nonstandard directory <lib dir>
    870   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    871               headers in a nonstandard directory <include dir>
     1336  LIBS        libraries to pass to the linker, e.g. -l<library>
     1337  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1338              you have headers in a nonstandard directory <include dir>
     1339  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1340              the first program found out of: `bison -y', `byacc', `yacc'.
     1341  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1342              This script will default YFLAGS to the empty string to avoid a
     1343              default value of `-d' given by some make applications.
    8721344  CC          C compiler command
    8731345  CFLAGS      C compiler flags
     
    8771349it to find libraries and programs with nonstandard names/locations.
    8781350
    879 _ACEOF
     1351Report bugs to the package provider.
     1352_ACEOF
     1353ac_status=$?
    8801354fi
    8811355
    8821356if test "$ac_init_help" = "recursive"; then
    8831357  # If there are subdirs, report their specific --help.
    884   ac_popdir=`pwd`
    8851358  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    886     test -d $ac_dir || continue
     1359    test -d "$ac_dir" ||
     1360      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1361      continue
    8871362    ac_builddir=.
    8881363
    889 if test "$ac_dir" != .; then
    890   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    891   # A "../" for each directory in $ac_dir_suffix.
    892   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    893 else
    894   ac_dir_suffix= ac_top_builddir=
    895 fi
     1364case "$ac_dir" in
     1365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1366*)
     1367  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1368  # A ".." for each directory in $ac_dir_suffix.
     1369  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1370  case $ac_top_builddir_sub in
     1371  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1372  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1373  esac ;;
     1374esac
     1375ac_abs_top_builddir=$ac_pwd
     1376ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1377# for backward compatibility:
     1378ac_top_builddir=$ac_top_build_prefix
    8961379
    8971380case $srcdir in
    898   .)  # No --srcdir option.  We are building in place.
     1381  .)  # We are building in place.
    8991382    ac_srcdir=.
    900     if test -z "$ac_top_builddir"; then
    901        ac_top_srcdir=.
     1383    ac_top_srcdir=$ac_top_builddir_sub
     1384    ac_abs_top_srcdir=$ac_pwd ;;
     1385  [\\/]* | ?:[\\/]* )  # Absolute name.
     1386    ac_srcdir=$srcdir$ac_dir_suffix;
     1387    ac_top_srcdir=$srcdir
     1388    ac_abs_top_srcdir=$srcdir ;;
     1389  *) # Relative name.
     1390    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1391    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1392    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1393esac
     1394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1395
     1396    cd "$ac_dir" || { ac_status=$?; continue; }
     1397    # Check for guested configure.
     1398    if test -f "$ac_srcdir/configure.gnu"; then
     1399      echo &&
     1400      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1401    elif test -f "$ac_srcdir/configure"; then
     1402      echo &&
     1403      $SHELL "$ac_srcdir/configure" --help=recursive
    9021404    else
    903        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    904     fi ;;
    905   [\\/]* | ?:[\\/]* )  # Absolute path.
    906     ac_srcdir=$srcdir$ac_dir_suffix;
    907     ac_top_srcdir=$srcdir ;;
    908   *) # Relative path.
    909     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    910     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    911 esac
    912 
    913 # Do not use `cd foo && pwd` to compute absolute paths, because
    914 # the directories may not exist.
    915 case `pwd` in
    916 .) ac_abs_builddir="$ac_dir";;
    917 *)
    918   case "$ac_dir" in
    919   .) ac_abs_builddir=`pwd`;;
    920   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    921   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    922   esac;;
    923 esac
    924 case $ac_abs_builddir in
    925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    926 *)
    927   case ${ac_top_builddir}. in
    928   .) ac_abs_top_builddir=$ac_abs_builddir;;
    929   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    930   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    931   esac;;
    932 esac
    933 case $ac_abs_builddir in
    934 .) ac_abs_srcdir=$ac_srcdir;;
    935 *)
    936   case $ac_srcdir in
    937   .) ac_abs_srcdir=$ac_abs_builddir;;
    938   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    939   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    940   esac;;
    941 esac
    942 case $ac_abs_builddir in
    943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    944 *)
    945   case $ac_top_srcdir in
    946   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    947   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    948   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    949   esac;;
    950 esac
    951 
    952     cd $ac_dir
    953     # Check for guested configure; otherwise get Cygnus style configure.
    954     if test -f $ac_srcdir/configure.gnu; then
    955       echo
    956       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    957     elif test -f $ac_srcdir/configure; then
    958       echo
    959       $SHELL $ac_srcdir/configure  --help=recursive
    960     elif test -f $ac_srcdir/configure.ac ||
    961        test -f $ac_srcdir/configure.in; then
    962       echo
    963       $ac_configure --help
    964     else
    965       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    966     fi
    967     cd $ac_popdir
     1405      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1406    fi || ac_status=$?
     1407    cd "$ac_pwd" || { ac_status=$?; break; }
    9681408  done
    9691409fi
    9701410
    971 test -n "$ac_init_help" && exit 0
     1411test -n "$ac_init_help" && exit $ac_status
    9721412if $ac_init_version; then
    9731413  cat <<\_ACEOF
    974 
    975 Copyright (C) 2003 Free Software Foundation, Inc.
     1414configure
     1415generated by GNU Autoconf 2.67
     1416
     1417Copyright (C) 2010 Free Software Foundation, Inc.
    9761418This configure script is free software; the Free Software Foundation
    9771419gives unlimited permission to copy, distribute and modify it.
    9781420_ACEOF
    979   exit 0
    980 fi
    981 exec 5>config.log
    982 cat >&5 <<_ACEOF
     1421  exit
     1422fi
     1423
     1424## ------------------------ ##
     1425## Autoconf initialization. ##
     1426## ------------------------ ##
     1427
     1428# ac_fn_cxx_try_compile LINENO
     1429# ----------------------------
     1430# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1431ac_fn_cxx_try_compile ()
     1432{
     1433  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1434  rm -f conftest.$ac_objext
     1435  if { { ac_try="$ac_compile"
     1436case "(($ac_try" in
     1437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1438  *) ac_try_echo=$ac_try;;
     1439esac
     1440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1441$as_echo "$ac_try_echo"; } >&5
     1442  (eval "$ac_compile") 2>conftest.err
     1443  ac_status=$?
     1444  if test -s conftest.err; then
     1445    grep -v '^ *+' conftest.err >conftest.er1
     1446    cat conftest.er1 >&5
     1447    mv -f conftest.er1 conftest.err
     1448  fi
     1449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1450  test $ac_status = 0; } && {
     1451     test -z "$ac_cxx_werror_flag" ||
     1452     test ! -s conftest.err
     1453       } && test -s conftest.$ac_objext; then :
     1454  ac_retval=0
     1455else
     1456  $as_echo "$as_me: failed program was:" >&5
     1457sed 's/^/| /' conftest.$ac_ext >&5
     1458
     1459    ac_retval=1
     1460fi
     1461  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1462  as_fn_set_status $ac_retval
     1463
     1464} # ac_fn_cxx_try_compile
     1465
     1466# ac_fn_c_try_compile LINENO
     1467# --------------------------
     1468# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1469ac_fn_c_try_compile ()
     1470{
     1471  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1472  rm -f conftest.$ac_objext
     1473  if { { ac_try="$ac_compile"
     1474case "(($ac_try" in
     1475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1476  *) ac_try_echo=$ac_try;;
     1477esac
     1478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1479$as_echo "$ac_try_echo"; } >&5
     1480  (eval "$ac_compile") 2>conftest.err
     1481  ac_status=$?
     1482  if test -s conftest.err; then
     1483    grep -v '^ *+' conftest.err >conftest.er1
     1484    cat conftest.er1 >&5
     1485    mv -f conftest.er1 conftest.err
     1486  fi
     1487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1488  test $ac_status = 0; } && {
     1489     test -z "$ac_c_werror_flag" ||
     1490     test ! -s conftest.err
     1491       } && test -s conftest.$ac_objext; then :
     1492  ac_retval=0
     1493else
     1494  $as_echo "$as_me: failed program was:" >&5
     1495sed 's/^/| /' conftest.$ac_ext >&5
     1496
     1497    ac_retval=1
     1498fi
     1499  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1500  as_fn_set_status $ac_retval
     1501
     1502} # ac_fn_c_try_compile
     1503
     1504# ac_fn_c_try_cpp LINENO
     1505# ----------------------
     1506# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1507ac_fn_c_try_cpp ()
     1508{
     1509  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1510  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1511case "(($ac_try" in
     1512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1513  *) ac_try_echo=$ac_try;;
     1514esac
     1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1516$as_echo "$ac_try_echo"; } >&5
     1517  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1518  ac_status=$?
     1519  if test -s conftest.err; then
     1520    grep -v '^ *+' conftest.err >conftest.er1
     1521    cat conftest.er1 >&5
     1522    mv -f conftest.er1 conftest.err
     1523  fi
     1524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1525  test $ac_status = 0; } > conftest.i && {
     1526     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1527     test ! -s conftest.err
     1528       }; then :
     1529  ac_retval=0
     1530else
     1531  $as_echo "$as_me: failed program was:" >&5
     1532sed 's/^/| /' conftest.$ac_ext >&5
     1533
     1534    ac_retval=1
     1535fi
     1536  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1537  as_fn_set_status $ac_retval
     1538
     1539} # ac_fn_c_try_cpp
     1540
     1541# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1542# -------------------------------------------------------
     1543# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1544# the include files in INCLUDES and setting the cache variable VAR
     1545# accordingly.
     1546ac_fn_c_check_header_mongrel ()
     1547{
     1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1549  if eval "test \"\${$3+set}\"" = set; then :
     1550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1551$as_echo_n "checking for $2... " >&6; }
     1552if eval "test \"\${$3+set}\"" = set; then :
     1553  $as_echo_n "(cached) " >&6
     1554fi
     1555eval ac_res=\$$3
     1556           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1557$as_echo "$ac_res" >&6; }
     1558else
     1559  # Is the header compilable?
     1560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1561$as_echo_n "checking $2 usability... " >&6; }
     1562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1563/* end confdefs.h.  */
     1564$4
     1565#include <$2>
     1566_ACEOF
     1567if ac_fn_c_try_compile "$LINENO"; then :
     1568  ac_header_compiler=yes
     1569else
     1570  ac_header_compiler=no
     1571fi
     1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1574$as_echo "$ac_header_compiler" >&6; }
     1575
     1576# Is the header present?
     1577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1578$as_echo_n "checking $2 presence... " >&6; }
     1579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1580/* end confdefs.h.  */
     1581#include <$2>
     1582_ACEOF
     1583if ac_fn_c_try_cpp "$LINENO"; then :
     1584  ac_header_preproc=yes
     1585else
     1586  ac_header_preproc=no
     1587fi
     1588rm -f conftest.err conftest.i conftest.$ac_ext
     1589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1590$as_echo "$ac_header_preproc" >&6; }
     1591
     1592# So?  What about this header?
     1593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1594  yes:no: )
     1595    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1596$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1598$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1599    ;;
     1600  no:yes:* )
     1601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1602$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1604$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1606$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1608$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1610$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1611    ;;
     1612esac
     1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1614$as_echo_n "checking for $2... " >&6; }
     1615if eval "test \"\${$3+set}\"" = set; then :
     1616  $as_echo_n "(cached) " >&6
     1617else
     1618  eval "$3=\$ac_header_compiler"
     1619fi
     1620eval ac_res=\$$3
     1621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1622$as_echo "$ac_res" >&6; }
     1623fi
     1624  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1625
     1626} # ac_fn_c_check_header_mongrel
     1627
     1628# ac_fn_c_try_run LINENO
     1629# ----------------------
     1630# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1631# that executables *can* be run.
     1632ac_fn_c_try_run ()
     1633{
     1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1635  if { { ac_try="$ac_link"
     1636case "(($ac_try" in
     1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1638  *) ac_try_echo=$ac_try;;
     1639esac
     1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1641$as_echo "$ac_try_echo"; } >&5
     1642  (eval "$ac_link") 2>&5
     1643  ac_status=$?
     1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1645  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1646  { { case "(($ac_try" in
     1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1648  *) ac_try_echo=$ac_try;;
     1649esac
     1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1651$as_echo "$ac_try_echo"; } >&5
     1652  (eval "$ac_try") 2>&5
     1653  ac_status=$?
     1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1655  test $ac_status = 0; }; }; then :
     1656  ac_retval=0
     1657else
     1658  $as_echo "$as_me: program exited with status $ac_status" >&5
     1659       $as_echo "$as_me: failed program was:" >&5
     1660sed 's/^/| /' conftest.$ac_ext >&5
     1661
     1662       ac_retval=$ac_status
     1663fi
     1664  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1665  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1666  as_fn_set_status $ac_retval
     1667
     1668} # ac_fn_c_try_run
     1669
     1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1671# -------------------------------------------------------
     1672# Tests whether HEADER exists and can be compiled using the include files in
     1673# INCLUDES, setting the cache variable VAR accordingly.
     1674ac_fn_c_check_header_compile ()
     1675{
     1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1678$as_echo_n "checking for $2... " >&6; }
     1679if eval "test \"\${$3+set}\"" = set; then :
     1680  $as_echo_n "(cached) " >&6
     1681else
     1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1683/* end confdefs.h.  */
     1684$4
     1685#include <$2>
     1686_ACEOF
     1687if ac_fn_c_try_compile "$LINENO"; then :
     1688  eval "$3=yes"
     1689else
     1690  eval "$3=no"
     1691fi
     1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1693fi
     1694eval ac_res=\$$3
     1695           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1696$as_echo "$ac_res" >&6; }
     1697  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1698
     1699} # ac_fn_c_check_header_compile
     1700
     1701# ac_fn_c_try_link LINENO
     1702# -----------------------
     1703# Try to link conftest.$ac_ext, and return whether this succeeded.
     1704ac_fn_c_try_link ()
     1705{
     1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1707  rm -f conftest.$ac_objext conftest$ac_exeext
     1708  if { { ac_try="$ac_link"
     1709case "(($ac_try" in
     1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1711  *) ac_try_echo=$ac_try;;
     1712esac
     1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1714$as_echo "$ac_try_echo"; } >&5
     1715  (eval "$ac_link") 2>conftest.err
     1716  ac_status=$?
     1717  if test -s conftest.err; then
     1718    grep -v '^ *+' conftest.err >conftest.er1
     1719    cat conftest.er1 >&5
     1720    mv -f conftest.er1 conftest.err
     1721  fi
     1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1723  test $ac_status = 0; } && {
     1724     test -z "$ac_c_werror_flag" ||
     1725     test ! -s conftest.err
     1726       } && test -s conftest$ac_exeext && {
     1727     test "$cross_compiling" = yes ||
     1728     $as_test_x conftest$ac_exeext
     1729       }; then :
     1730  ac_retval=0
     1731else
     1732  $as_echo "$as_me: failed program was:" >&5
     1733sed 's/^/| /' conftest.$ac_ext >&5
     1734
     1735    ac_retval=1
     1736fi
     1737  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1739  # interfere with the next link command; also delete a directory that is
     1740  # left behind by Apple's compiler.  We do this before executing the actions.
     1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1742  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1743  as_fn_set_status $ac_retval
     1744
     1745} # ac_fn_c_try_link
     1746
     1747# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1748# -------------------------------------------
     1749# Tests whether TYPE exists after having included INCLUDES, setting cache
     1750# variable VAR accordingly.
     1751ac_fn_c_check_type ()
     1752{
     1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1755$as_echo_n "checking for $2... " >&6; }
     1756if eval "test \"\${$3+set}\"" = set; then :
     1757  $as_echo_n "(cached) " >&6
     1758else
     1759  eval "$3=no"
     1760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1761/* end confdefs.h.  */
     1762$4
     1763int
     1764main ()
     1765{
     1766if (sizeof ($2))
     1767     return 0;
     1768  ;
     1769  return 0;
     1770}
     1771_ACEOF
     1772if ac_fn_c_try_compile "$LINENO"; then :
     1773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1774/* end confdefs.h.  */
     1775$4
     1776int
     1777main ()
     1778{
     1779if (sizeof (($2)))
     1780        return 0;
     1781  ;
     1782  return 0;
     1783}
     1784_ACEOF
     1785if ac_fn_c_try_compile "$LINENO"; then :
     1786
     1787else
     1788  eval "$3=yes"
     1789fi
     1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1791fi
     1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1793fi
     1794eval ac_res=\$$3
     1795           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1796$as_echo "$ac_res" >&6; }
     1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1798
     1799} # ac_fn_c_check_type
     1800
     1801# ac_fn_c_check_func LINENO FUNC VAR
     1802# ----------------------------------
     1803# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1804ac_fn_c_check_func ()
     1805{
     1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1808$as_echo_n "checking for $2... " >&6; }
     1809if eval "test \"\${$3+set}\"" = set; then :
     1810  $as_echo_n "(cached) " >&6
     1811else
     1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1813/* end confdefs.h.  */
     1814/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1816#define $2 innocuous_$2
     1817
     1818/* System header to define __stub macros and hopefully few prototypes,
     1819    which can conflict with char $2 (); below.
     1820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1821    <limits.h> exists even on freestanding compilers.  */
     1822
     1823#ifdef __STDC__
     1824# include <limits.h>
     1825#else
     1826# include <assert.h>
     1827#endif
     1828
     1829#undef $2
     1830
     1831/* Override any GCC internal prototype to avoid an error.
     1832   Use char because int might match the return type of a GCC
     1833   builtin and then its argument prototype would still apply.  */
     1834#ifdef __cplusplus
     1835extern "C"
     1836#endif
     1837char $2 ();
     1838/* The GNU C library defines this for functions which it implements
     1839    to always fail with ENOSYS.  Some functions are actually named
     1840    something starting with __ and the normal name is an alias.  */
     1841#if defined __stub_$2 || defined __stub___$2
     1842choke me
     1843#endif
     1844
     1845int
     1846main ()
     1847{
     1848return $2 ();
     1849  ;
     1850  return 0;
     1851}
     1852_ACEOF
     1853if ac_fn_c_try_link "$LINENO"; then :
     1854  eval "$3=yes"
     1855else
     1856  eval "$3=no"
     1857fi
     1858rm -f core conftest.err conftest.$ac_objext \
     1859    conftest$ac_exeext conftest.$ac_ext
     1860fi
     1861eval ac_res=\$$3
     1862           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1863$as_echo "$ac_res" >&6; }
     1864  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1865
     1866} # ac_fn_c_check_func
     1867cat >config.log <<_ACEOF
    9831868This file contains any messages produced by compilers while
    9841869running configure, to aid debugging if configure makes a mistake.
    9851870
    9861871It was created by $as_me, which was
    987 generated by GNU Autoconf 2.59.  Invocation command line was
     1872generated by GNU Autoconf 2.67.  Invocation command line was
    9881873
    9891874  $ $0 $@
    9901875
    9911876_ACEOF
     1877exec 5>>config.log
    9921878{
    9931879cat <<_ASUNAME
     
    10081894/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10091895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1010 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1896/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10111897/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10121898/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10201906  IFS=$as_save_IFS
    10211907  test -z "$as_dir" && as_dir=.
    1022   echo "PATH: $as_dir"
    1023 done
     1908    $as_echo "PATH: $as_dir"
     1909  done
     1910IFS=$as_save_IFS
    10241911
    10251912} >&5
     
    10431930ac_configure_args0=
    10441931ac_configure_args1=
    1045 ac_sep=
    10461932ac_must_keep_next=false
    10471933for ac_pass in 1 2
     
    10541940    | -silent | --silent | --silen | --sile | --sil)
    10551941      continue ;;
    1056     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1057       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1942    *\'*)
     1943      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10581944    esac
    10591945    case $ac_pass in
    1060     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1946    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10611947    2)
    1062       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1948      as_fn_append ac_configure_args1 " '$ac_arg'"
    10631949      if test $ac_must_keep_next = true; then
    10641950    ac_must_keep_next=false # Got value, back to normal.
     
    10761962    esac
    10771963      fi
    1078       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1079       # Get rid of the leading space.
    1080       ac_sep=" "
     1964      as_fn_append ac_configure_args " '$ac_arg'"
    10811965      ;;
    10821966    esac
    10831967  done
    10841968done
    1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1969{ ac_configure_args0=; unset ac_configure_args0;}
     1970{ ac_configure_args1=; unset ac_configure_args1;}
    10871971
    10881972# When interrupted or exit'd, cleanup temporary files, and complete
    10891973# config.log.  We remove comments because anyway the quotes in there
    10901974# would cause problems or look ugly.
    1091 # WARNING: Be sure not to use single quotes in there, as some shells,
    1092 # such as our DU 5.0 friend, will then `close' the trap.
     1975# WARNING: Use '\'' to represent an apostrophe within the trap.
     1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    10931977trap 'exit_status=$?
    10941978  # Save into config.log some information that might help in debugging.
     
    10961980    echo
    10971981
    1098     cat <<\_ASBOX
    1099 ## ---------------- ##
     1982    $as_echo "## ---------------- ##
    11001983## Cache variables. ##
    1101 ## ---------------- ##
    1102 _ASBOX
     1984## ---------------- ##"
    11031985    echo
    11041986    # The following way of writing the cache mishandles newlines in values,
    1105 {
     1987(
     1988  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     1989    eval ac_val=\$$ac_var
     1990    case $ac_val in #(
     1991    *${as_nl}*)
     1992      case $ac_var in #(
     1993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     1995      esac
     1996      case $ac_var in #(
     1997      _ | IFS | as_nl) ;; #(
     1998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     1999      *) { eval $ac_var=; unset $ac_var;} ;;
     2000      esac ;;
     2001    esac
     2002  done
    11062003  (set) 2>&1 |
    1107     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1108     *ac_space=\ *)
     2004    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2005    *${as_nl}ac_space=\ *)
    11092006      sed -n \
    1110     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1111       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2007    "s/'\''/'\''\\\\'\'''\''/g;
     2008      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2009      ;; #(
     2010    *)
     2011      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11122012      ;;
    1113     *)
    1114       sed -n \
    1115     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1116       ;;
    1117     esac;
    1118 }
     2013    esac |
     2014    sort
     2015)
    11192016    echo
    11202017
    1121     cat <<\_ASBOX
    1122 ## ----------------- ##
     2018    $as_echo "## ----------------- ##
    11232019## Output variables. ##
    1124 ## ----------------- ##
    1125 _ASBOX
     2020## ----------------- ##"
    11262021    echo
    11272022    for ac_var in $ac_subst_vars
    11282023    do
    1129       eval ac_val=$`echo $ac_var`
    1130       echo "$ac_var='"'"'$ac_val'"'"'"
     2024      eval ac_val=\$$ac_var
     2025      case $ac_val in
     2026      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2027      esac
     2028      $as_echo "$ac_var='\''$ac_val'\''"
    11312029    done | sort
    11322030    echo
    11332031
    11342032    if test -n "$ac_subst_files"; then
    1135       cat <<\_ASBOX
    1136 ## ------------- ##
    1137 ## Output files. ##
    1138 ## ------------- ##
    1139 _ASBOX
     2033      $as_echo "## ------------------- ##
     2034## File substitutions. ##
     2035## ------------------- ##"
    11402036      echo
    11412037      for ac_var in $ac_subst_files
    11422038      do
    1143     eval ac_val=$`echo $ac_var`
    1144     echo "$ac_var='"'"'$ac_val'"'"'"
     2039    eval ac_val=\$$ac_var
     2040    case $ac_val in
     2041    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2042    esac
     2043    $as_echo "$ac_var='\''$ac_val'\''"
    11452044      done | sort
    11462045      echo
     
    11482047
    11492048    if test -s confdefs.h; then
    1150       cat <<\_ASBOX
    1151 ## ----------- ##
     2049      $as_echo "## ----------- ##
    11522050## confdefs.h. ##
    1153 ## ----------- ##
    1154 _ASBOX
     2051## ----------- ##"
    11552052      echo
    1156       sed "/^$/d" confdefs.h | sort
     2053      cat confdefs.h
    11572054      echo
    11582055    fi
    11592056    test "$ac_signal" != 0 &&
    1160       echo "$as_me: caught signal $ac_signal"
    1161     echo "$as_me: exit $exit_status"
     2057      $as_echo "$as_me: caught signal $ac_signal"
     2058    $as_echo "$as_me: exit $exit_status"
    11622059  } >&5
    1163   rm -f core *.core &&
    1164   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2060  rm -f core *.core core.conftest.* &&
     2061    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11652062    exit $exit_status
    1166      ' 0
     2063' 0
    11672064for ac_signal in 1 2 13 15; do
    1168   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2065  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11692066done
    11702067ac_signal=0
    11712068
    11722069# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1173 rm -rf conftest* confdefs.h
    1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1175 echo >confdefs.h
     2070rm -f -r conftest* confdefs.h
     2071
     2072$as_echo "/* confdefs.h */" > confdefs.h
    11762073
    11772074# Predefined preprocessor variables.
     
    11812078_ACEOF
    11822079
    1183 
    11842080cat >>confdefs.h <<_ACEOF
    11852081#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11862082_ACEOF
    11872083
    1188 
    11892084cat >>confdefs.h <<_ACEOF
    11902085#define PACKAGE_VERSION "$PACKAGE_VERSION"
    11912086_ACEOF
    11922087
    1193 
    11942088cat >>confdefs.h <<_ACEOF
    11952089#define PACKAGE_STRING "$PACKAGE_STRING"
    11962090_ACEOF
    11972091
    1198 
    11992092cat >>confdefs.h <<_ACEOF
    12002093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12012094_ACEOF
    12022095
     2096cat >>confdefs.h <<_ACEOF
     2097#define PACKAGE_URL "$PACKAGE_URL"
     2098_ACEOF
     2099
    12032100
    12042101# Let the site file select an alternate cache file if it wants to.
    1205 # Prefer explicitly selected file to automatically selected ones.
    1206 if test -z "$CONFIG_SITE"; then
    1207   if test "x$prefix" != xNONE; then
    1208     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1209   else
    1210     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1211   fi
    1212 fi
    1213 for ac_site_file in $CONFIG_SITE; do
    1214   if test -r "$ac_site_file"; then
    1215     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1216 echo "$as_me: loading site script $ac_site_file" >&6;}
     2102# Prefer an explicitly selected file to automatically selected ones.
     2103ac_site_file1=NONE
     2104ac_site_file2=NONE
     2105if test -n "$CONFIG_SITE"; then
     2106  # We do not want a PATH search for config.site.
     2107  case $CONFIG_SITE in #((
     2108    -*)  ac_site_file1=./$CONFIG_SITE;;
     2109    */*) ac_site_file1=$CONFIG_SITE;;
     2110    *)   ac_site_file1=./$CONFIG_SITE;;
     2111  esac
     2112elif test "x$prefix" != xNONE; then
     2113  ac_site_file1=$prefix/share/config.site
     2114  ac_site_file2=$prefix/etc/config.site
     2115else
     2116  ac_site_file1=$ac_default_prefix/share/config.site
     2117  ac_site_file2=$ac_default_prefix/etc/config.site
     2118fi
     2119for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2120do
     2121  test "x$ac_site_file" = xNONE && continue
     2122  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2123    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2124$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12172125    sed 's/^/| /' "$ac_site_file" >&5
    1218     . "$ac_site_file"
     2126    . "$ac_site_file" \
     2127      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2129as_fn_error $? "failed to load site script $ac_site_file
     2130See \`config.log' for more details" "$LINENO" 5 ; }
    12192131  fi
    12202132done
    12212133
    12222134if test -r "$cache_file"; then
    1223   # Some versions of bash will fail to source /dev/null (special
    1224   # files actually), so we avoid doing that.
    1225   if test -f "$cache_file"; then
    1226     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1227 echo "$as_me: loading cache $cache_file" >&6;}
     2135  # Some versions of bash will fail to source /dev/null (special files
     2136  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2137  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2138    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2139$as_echo "$as_me: loading cache $cache_file" >&6;}
    12282140    case $cache_file in
    1229       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1230       *)                      . ./$cache_file;;
     2141      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2142      *)                      . "./$cache_file";;
    12312143    esac
    12322144  fi
    12332145else
    1234   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1235 echo "$as_me: creating cache $cache_file" >&6;}
     2146  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2147$as_echo "$as_me: creating cache $cache_file" >&6;}
    12362148  >$cache_file
    12372149fi
     
    12402152# value.
    12412153ac_cache_corrupted=false
    1242 for ac_var in `(set) 2>&1 |
    1243            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2154for ac_var in $ac_precious_vars; do
    12442155  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12452156  eval ac_new_set=\$ac_env_${ac_var}_set
    1246   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1247   eval ac_new_val="\$ac_env_${ac_var}_value"
     2157  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2158  eval ac_new_val=\$ac_env_${ac_var}_value
    12482159  case $ac_old_set,$ac_new_set in
    12492160    set,)
    1250       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2161      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2162$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12522163      ac_cache_corrupted=: ;;
    12532164    ,set)
    1254       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2166$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12562167      ac_cache_corrupted=: ;;
    12572168    ,);;
    12582169    *)
    12592170      if test "x$ac_old_val" != "x$ac_new_val"; then
    1260     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1262     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1263 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1264     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1265 echo "$as_me:   current value: $ac_new_val" >&2;}
    1266     ac_cache_corrupted=:
     2171    # differences in whitespace do not lead to failure.
     2172    ac_old_val_w=`echo x $ac_old_val`
     2173    ac_new_val_w=`echo x $ac_new_val`
     2174    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2176$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2177      ac_cache_corrupted=:
     2178    else
     2179      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2180$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2181      eval $ac_var=\$ac_old_val
     2182    fi
     2183    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2184$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2185    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2186$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12672187      fi;;
    12682188  esac
     
    12702190  if test "$ac_new_set" = set; then
    12712191    case $ac_new_val in
    1272     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1273       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2192    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12742193    *) ac_arg=$ac_var=$ac_new_val ;;
    12752194    esac
    12762195    case " $ac_configure_args " in
    12772196      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1278       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2197      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12792198    esac
    12802199  fi
    12812200done
    12822201if $ac_cache_corrupted; then
    1283   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1285   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1287    { (exit 1); exit 1; }; }
    1288 fi
     2202  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2205$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2206  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2207fi
     2208## -------------------- ##
     2209## Main body of script. ##
     2210## -------------------- ##
    12892211
    12902212ac_ext=c
     
    12952217
    12962218
    1297 
    1298 
    1299 
    1300 
    1301 
    1302 
    1303 
    1304 
    1305 
    1306 
    1307 
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314           ac_config_headers="$ac_config_headers config.h"
     2219ac_config_headers="$ac_config_headers config.h"
    13152220
    13162221
    13172222ac_aux_dir=
    1318 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1319   if test -f $ac_dir/install-sh; then
     2223for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     2224  if test -f "$ac_dir/install-sh"; then
    13202225    ac_aux_dir=$ac_dir
    13212226    ac_install_sh="$ac_aux_dir/install-sh -c"
    13222227    break
    1323   elif test -f $ac_dir/install.sh; then
     2228  elif test -f "$ac_dir/install.sh"; then
    13242229    ac_aux_dir=$ac_dir
    13252230    ac_install_sh="$ac_aux_dir/install.sh -c"
    13262231    break
    1327   elif test -f $ac_dir/shtool; then
     2232  elif test -f "$ac_dir/shtool"; then
    13282233    ac_aux_dir=$ac_dir
    13292234    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    13322237done
    13332238if test -z "$ac_aux_dir"; then
    1334   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1335 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1336    { (exit 1); exit 1; }; }
    1337 fi
    1338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2239  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     2240fi
     2241
     2242# These three variables are undocumented and unsupported,
     2243# and are intended to be withdrawn in a future Autoconf release.
     2244# They can cause serious problems if a builder's source tree is in a directory
     2245# whose full name contains unusual characters.
     2246ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     2247ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     2248ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     2249
    13412250
    13422251# Make sure we can run config.sub.
    1343 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1344   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    1345 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1346    { (exit 1); exit 1; }; }
    1347 
    1348 echo "$as_me:$LINENO: checking build system type" >&5
    1349 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1350 if test "${ac_cv_build+set}" = set; then
    1351   echo $ECHO_N "(cached) $ECHO_C" >&6
    1352 else
    1353   ac_cv_build_alias=$build_alias
    1354 test -z "$ac_cv_build_alias" &&
    1355   ac_cv_build_alias=`$ac_config_guess`
    1356 test -z "$ac_cv_build_alias" &&
    1357   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    1358 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1359    { (exit 1); exit 1; }; }
    1360 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1361   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    1362 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    1363    { (exit 1); exit 1; }; }
    1364 
    1365 fi
    1366 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1367 echo "${ECHO_T}$ac_cv_build" >&6
     2252$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2253  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2254
     2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2256$as_echo_n "checking build system type... " >&6; }
     2257if test "${ac_cv_build+set}" = set; then :
     2258  $as_echo_n "(cached) " >&6
     2259else
     2260  ac_build_alias=$build_alias
     2261test "x$ac_build_alias" = x &&
     2262  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2263test "x$ac_build_alias" = x &&
     2264  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2265ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2266  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2267
     2268fi
     2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2270$as_echo "$ac_cv_build" >&6; }
     2271case $ac_cv_build in
     2272*-*-*) ;;
     2273*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     2274esac
    13682275build=$ac_cv_build
    1369 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1370 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1371 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1372 
    1373 
    1374 echo "$as_me:$LINENO: checking host system type" >&5
    1375 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    1376 if test "${ac_cv_host+set}" = set; then
    1377   echo $ECHO_N "(cached) $ECHO_C" >&6
    1378 else
    1379   ac_cv_host_alias=$host_alias
    1380 test -z "$ac_cv_host_alias" &&
    1381   ac_cv_host_alias=$ac_cv_build_alias
    1382 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    1383   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    1384 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    1385    { (exit 1); exit 1; }; }
    1386 
    1387 fi
    1388 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    1389 echo "${ECHO_T}$ac_cv_host" >&6
     2276ac_save_IFS=$IFS; IFS='-'
     2277set x $ac_cv_build
     2278shift
     2279build_cpu=$1
     2280build_vendor=$2
     2281shift; shift
     2282# Remember, the first character of IFS is used to create $*,
     2283# except with old shells:
     2284build_os=$*
     2285IFS=$ac_save_IFS
     2286case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2287
     2288
     2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2290$as_echo_n "checking host system type... " >&6; }
     2291if test "${ac_cv_host+set}" = set; then :
     2292  $as_echo_n "(cached) " >&6
     2293else
     2294  if test "x$host_alias" = x; then
     2295  ac_cv_host=$ac_cv_build
     2296else
     2297  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2298    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2299fi
     2300
     2301fi
     2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2303$as_echo "$ac_cv_host" >&6; }
     2304case $ac_cv_host in
     2305*-*-*) ;;
     2306*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     2307esac
    13902308host=$ac_cv_host
    1391 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1392 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1393 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1394 
    1395 
    1396 echo "$as_me:$LINENO: checking target system type" >&5
    1397 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    1398 if test "${ac_cv_target+set}" = set; then
    1399   echo $ECHO_N "(cached) $ECHO_C" >&6
    1400 else
    1401   ac_cv_target_alias=$target_alias
    1402 test "x$ac_cv_target_alias" = "x" &&
    1403   ac_cv_target_alias=$ac_cv_host_alias
    1404 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    1405   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    1406 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    1407    { (exit 1); exit 1; }; }
    1408 
    1409 fi
    1410 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    1411 echo "${ECHO_T}$ac_cv_target" >&6
     2309ac_save_IFS=$IFS; IFS='-'
     2310set x $ac_cv_host
     2311shift
     2312host_cpu=$1
     2313host_vendor=$2
     2314shift; shift
     2315# Remember, the first character of IFS is used to create $*,
     2316# except with old shells:
     2317host_os=$*
     2318IFS=$ac_save_IFS
     2319case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2320
     2321
     2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     2323$as_echo_n "checking target system type... " >&6; }
     2324if test "${ac_cv_target+set}" = set; then :
     2325  $as_echo_n "(cached) " >&6
     2326else
     2327  if test "x$target_alias" = x; then
     2328  ac_cv_target=$ac_cv_host
     2329else
     2330  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     2331    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     2332fi
     2333
     2334fi
     2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     2336$as_echo "$ac_cv_target" >&6; }
     2337case $ac_cv_target in
     2338*-*-*) ;;
     2339*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     2340esac
    14122341target=$ac_cv_target
    1413 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1414 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1415 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2342ac_save_IFS=$IFS; IFS='-'
     2343set x $ac_cv_target
     2344shift
     2345target_cpu=$1
     2346target_vendor=$2
     2347shift; shift
     2348# Remember, the first character of IFS is used to create $*,
     2349# except with old shells:
     2350target_os=$*
     2351IFS=$ac_save_IFS
     2352case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    14162353
    14172354
     
    14222359    NONENONEs,x,x, &&
    14232360  program_prefix=${target_alias}-
     2361
    14242362test "$program_prefix" != NONE &&
    1425   program_transform_name="s,^,$program_prefix,;$program_transform_name"
     2363  program_transform_name="s&^&$program_prefix&;$program_transform_name"
    14262364# Use a double $ so make ignores it.
    14272365test "$program_suffix" != NONE &&
    1428   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    1429 # Double any \ or $.  echo might interpret backslashes.
     2366  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
     2367# Double any \ or $.
    14302368# By default was `s,x,x', remove it if useless.
    1431 cat <<\_ACEOF >conftest.sed
    1432 s/[\\$]/&&/g;s/;s,x,x,$//
    1433 _ACEOF
    1434 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    1435 rm conftest.sed
     2369ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
     2370program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
    14362371
    14372372
     
    14502385
    14512386
    1452 
    1453 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    1454 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     2387# Check whether --enable-java was given.
     2388if test "${enable_java+set}" = set; then :
     2389  enableval=$enable_java; ENABLE_JAVA=$enableval
     2390else
     2391  ENABLE_JAVA=yes
     2392fi
     2393
     2394if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2395  ENABLE_JAVA=1
     2396  if test "x$JAVA_HOME" != "x" ; then
     2397    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2398    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2399    echo "and JAVA respectively"
     2400    export JAVA_HOME=
     2401  fi
     2402else
     2403  ENABLE_JAVA=0
     2404fi
     2405
     2406
     2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     2408$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    14552409arch_64bit=no
    14562410case "$host_cpu" in
     
    14592413
    14602414if test "$arch_64bit" = yes; then
    1461   echo "$as_me:$LINENO: result: yes" >&5
    1462 echo "${ECHO_T}yes" >&6
     2415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2416$as_echo "yes" >&6; }
    14632417  if test -z "$COMPAT32BITFLAGS" ; then
    14642418    COMPAT32BITFLAGS="-m32"
    14652419  fi
    14662420else
    1467   echo "$as_me:$LINENO: result: no" >&5
    1468 echo "${ECHO_T}no" >&6
     2421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2422$as_echo "no" >&6; }
    14692423  if test -z "$COMPAT32BITFLAGS" ; then
    14702424    COMPAT32BITFLAGS=
     
    14742428
    14752429
    1476 ac_ext=cc
     2430ac_ext=cpp
    14772431ac_cpp='$CXXCPP $CPPFLAGS'
    14782432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    14792433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    14802434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1481 if test -n "$ac_tool_prefix"; then
    1482   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2435if test -z "$CXX"; then
     2436  if test -n "$CCC"; then
     2437    CXX=$CCC
     2438  else
     2439    if test -n "$ac_tool_prefix"; then
     2440  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    14832441  do
    14842442    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    14852443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1488 if test "${ac_cv_prog_CXX+set}" = set; then
    1489   echo $ECHO_N "(cached) $ECHO_C" >&6
     2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2445$as_echo_n "checking for $ac_word... " >&6; }
     2446if test "${ac_cv_prog_CXX+set}" = set; then :
     2447  $as_echo_n "(cached) " >&6
    14902448else
    14912449  if test -n "$CXX"; then
     
    14972455  IFS=$as_save_IFS
    14982456  test -z "$as_dir" && as_dir=.
    1499   for ac_exec_ext in '' $ac_executable_extensions; do
    1500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2457    for ac_exec_ext in '' $ac_executable_extensions; do
     2458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15012459    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15032461    break 2
    15042462  fi
    15052463done
    1506 done
     2464  done
     2465IFS=$as_save_IFS
    15072466
    15082467fi
     
    15102469CXX=$ac_cv_prog_CXX
    15112470if test -n "$CXX"; then
    1512   echo "$as_me:$LINENO: result: $CXX" >&5
    1513 echo "${ECHO_T}$CXX" >&6
    1514 else
    1515   echo "$as_me:$LINENO: result: no" >&5
    1516 echo "${ECHO_T}no" >&6
    1517 fi
     2471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     2472$as_echo "$CXX" >&6; }
     2473else
     2474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2475$as_echo "no" >&6; }
     2476fi
     2477
    15182478
    15192479    test -n "$CXX" && break
     
    15222482if test -z "$CXX"; then
    15232483  ac_ct_CXX=$CXX
    1524   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2484  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    15252485do
    15262486  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15272487set dummy $ac_prog; ac_word=$2
    1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1530 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1531   echo $ECHO_N "(cached) $ECHO_C" >&6
     2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2489$as_echo_n "checking for $ac_word... " >&6; }
     2490if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     2491  $as_echo_n "(cached) " >&6
    15322492else
    15332493  if test -n "$ac_ct_CXX"; then
     
    15392499  IFS=$as_save_IFS
    15402500  test -z "$as_dir" && as_dir=.
    1541   for ac_exec_ext in '' $ac_executable_extensions; do
    1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2501    for ac_exec_ext in '' $ac_executable_extensions; do
     2502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15432503    ac_cv_prog_ac_ct_CXX="$ac_prog"
    1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15452505    break 2
    15462506  fi
    15472507done
    1548 done
     2508  done
     2509IFS=$as_save_IFS
    15492510
    15502511fi
     
    15522513ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    15532514if test -n "$ac_ct_CXX"; then
    1554   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    1555 echo "${ECHO_T}$ac_ct_CXX" >&6
    1556 else
    1557   echo "$as_me:$LINENO: result: no" >&5
    1558 echo "${ECHO_T}no" >&6
    1559 fi
     2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     2516$as_echo "$ac_ct_CXX" >&6; }
     2517else
     2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2519$as_echo "no" >&6; }
     2520fi
     2521
    15602522
    15612523  test -n "$ac_ct_CXX" && break
    15622524done
    1563 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1564 
    1565   CXX=$ac_ct_CXX
    1566 fi
    1567 
    1568 
     2525
     2526  if test "x$ac_ct_CXX" = x; then
     2527    CXX="g++"
     2528  else
     2529    case $cross_compiling:$ac_tool_warned in
     2530yes:)
     2531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2533ac_tool_warned=yes ;;
     2534esac
     2535    CXX=$ac_ct_CXX
     2536  fi
     2537fi
     2538
     2539  fi
     2540fi
    15692541# Provide some information about the compiler.
    1570 echo "$as_me:$LINENO:" \
    1571      "checking for C++ compiler version" >&5
    1572 ac_compiler=`set X $ac_compile; echo $2`
    1573 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1574   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2542$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     2543set X $ac_compile
     2544ac_compiler=$2
     2545for ac_option in --version -v -V -qversion; do
     2546  { { ac_try="$ac_compiler $ac_option >&5"
     2547case "(($ac_try" in
     2548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2549  *) ac_try_echo=$ac_try;;
     2550esac
     2551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2552$as_echo "$ac_try_echo"; } >&5
     2553  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    15752554  ac_status=$?
    1576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1577   (exit $ac_status); }
    1578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1579   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1580   ac_status=$?
    1581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1582   (exit $ac_status); }
    1583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1584   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1585   ac_status=$?
    1586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1587   (exit $ac_status); }
    1588 
    1589 cat >conftest.$ac_ext <<_ACEOF
    1590 /* confdefs.h.  */
    1591 _ACEOF
    1592 cat confdefs.h >>conftest.$ac_ext
    1593 cat >>conftest.$ac_ext <<_ACEOF
     2555  if test -s conftest.err; then
     2556    sed '10a\
     2557... rest of stderr output deleted ...
     2558         10q' conftest.err >conftest.er1
     2559    cat conftest.er1 >&5
     2560  fi
     2561  rm -f conftest.er1 conftest.err
     2562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2563  test $ac_status = 0; }
     2564done
     2565
     2566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    15942567/* end confdefs.h.  */
    15952568
     
    16032576_ACEOF
    16042577ac_clean_files_save=$ac_clean_files
    1605 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2578ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    16062579# Try to create an executable without -o first, disregard a.out.
    16072580# It will help us diagnose broken compilers, and finding out an intuition
    16082581# of exeext.
    1609 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
    1610 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    1611 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1612 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1613   (eval $ac_link_default) 2>&5
     2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
     2583$as_echo_n "checking whether the C++ compiler works... " >&6; }
     2584ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2585
     2586# The possible output files:
     2587ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2588
     2589ac_rmfiles=
     2590for ac_file in $ac_files
     2591do
     2592  case $ac_file in
     2593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2594    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2595  esac
     2596done
     2597rm -f $ac_rmfiles
     2598
     2599if { { ac_try="$ac_link_default"
     2600case "(($ac_try" in
     2601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2602  *) ac_try_echo=$ac_try;;
     2603esac
     2604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2605$as_echo "$ac_try_echo"; } >&5
     2606  (eval "$ac_link_default") 2>&5
    16142607  ac_status=$?
    1615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1616   (exit $ac_status); }; then
    1617   # Find the output, starting from the most likely.  This scheme is
    1618 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1619 # resort.
    1620 
    1621 # Be careful to initialize this variable, since it used to be cached.
    1622 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1623 ac_cv_exeext=
    1624 # b.out is created by i960 compilers.
    1625 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2609  test $ac_status = 0; }; then :
     2610  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2611# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2612# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2613# so that the user can short-circuit this test for compilers unknown to
     2614# Autoconf.
     2615for ac_file in $ac_files ''
    16262616do
    16272617  test -f "$ac_file" || continue
    16282618  case $ac_file in
    1629     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1630     ;;
    1631     conftest.$ac_ext )
    1632     # This is the source file.
     2619    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    16332620    ;;
    16342621    [ab].out )
     
    16372624    break;;
    16382625    *.* )
    1639     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1640     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1641     # but it would be cool to find out if it's true.  Does anybody
    1642     # maintain Libtool? --akim.
    1643     export ac_cv_exeext
     2626    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2627    then :; else
     2628       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2629    fi
     2630    # We set ac_cv_exeext here because the later test for it is not
     2631    # safe: cross compilers may not add the suffix if given an `-o'
     2632    # argument, so we may need to know it at that point already.
     2633    # Even if this section looks crufty: it has the advantage of
     2634    # actually working.
    16442635    break;;
    16452636    * )
     
    16472638  esac
    16482639done
    1649 else
    1650   echo "$as_me: failed program was:" >&5
     2640test "$ac_cv_exeext" = no && ac_cv_exeext=
     2641
     2642else
     2643  ac_file=''
     2644fi
     2645if test -z "$ac_file"; then :
     2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2647$as_echo "no" >&6; }
     2648$as_echo "$as_me: failed program was:" >&5
    16512649sed 's/^/| /' conftest.$ac_ext >&5
    16522650
    1653 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
    1654 See \`config.log' for more details." >&5
    1655 echo "$as_me: error: C++ compiler cannot create executables
    1656 See \`config.log' for more details." >&2;}
    1657    { (exit 77); exit 77; }; }
    1658 fi
    1659 
     2651{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2653as_fn_error 77 "C++ compiler cannot create executables
     2654See \`config.log' for more details" "$LINENO" 5 ; }
     2655else
     2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2657$as_echo "yes" >&6; }
     2658fi
     2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
     2660$as_echo_n "checking for C++ compiler default output file name... " >&6; }
     2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2662$as_echo "$ac_file" >&6; }
    16602663ac_exeext=$ac_cv_exeext
    1661 echo "$as_me:$LINENO: result: $ac_file" >&5
    1662 echo "${ECHO_T}$ac_file" >&6
    1663 
    1664 # Check the compiler produces executables we can run.  If not, either
    1665 # the compiler is broken, or we cross compile.
    1666 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    1667 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    1668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1669 # If not cross compiling, check that we can run a simple program.
    1670 if test "$cross_compiling" != yes; then
    1671   if { ac_try='./$ac_file'
    1672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1673   (eval $ac_try) 2>&5
     2664
     2665rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2666ac_clean_files=$ac_clean_files_save
     2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2668$as_echo_n "checking for suffix of executables... " >&6; }
     2669if { { ac_try="$ac_link"
     2670case "(($ac_try" in
     2671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2672  *) ac_try_echo=$ac_try;;
     2673esac
     2674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2675$as_echo "$ac_try_echo"; } >&5
     2676  (eval "$ac_link") 2>&5
    16742677  ac_status=$?
    1675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1676   (exit $ac_status); }; }; then
    1677     cross_compiling=no
    1678   else
    1679     if test "$cross_compiling" = maybe; then
    1680     cross_compiling=yes
    1681     else
    1682     { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
    1683 If you meant to cross compile, use \`--host'.
    1684 See \`config.log' for more details." >&5
    1685 echo "$as_me: error: cannot run C++ compiled programs.
    1686 If you meant to cross compile, use \`--host'.
    1687 See \`config.log' for more details." >&2;}
    1688    { (exit 1); exit 1; }; }
    1689     fi
    1690   fi
    1691 fi
    1692 echo "$as_me:$LINENO: result: yes" >&5
    1693 echo "${ECHO_T}yes" >&6
    1694 
    1695 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    1696 ac_clean_files=$ac_clean_files_save
    1697 # Check the compiler produces executables we can run.  If not, either
    1698 # the compiler is broken, or we cross compile.
    1699 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1700 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1701 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1702 echo "${ECHO_T}$cross_compiling" >&6
    1703 
    1704 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1705 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1707   (eval $ac_link) 2>&5
    1708   ac_status=$?
    1709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1710   (exit $ac_status); }; then
     2678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2679  test $ac_status = 0; }; then :
    17112680  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    17122681# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    17162685  test -f "$ac_file" || continue
    17172686  case $ac_file in
    1718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2687    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    17192688    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1720       export ac_cv_exeext
    17212689      break;;
    17222690    * ) break;;
     
    17242692done
    17252693else
    1726   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    1727 See \`config.log' for more details." >&5
    1728 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    1729 See \`config.log' for more details." >&2;}
    1730    { (exit 1); exit 1; }; }
    1731 fi
    1732 
    1733 rm -f conftest$ac_cv_exeext
    1734 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1735 echo "${ECHO_T}$ac_cv_exeext" >&6
     2694  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2696as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     2697See \`config.log' for more details" "$LINENO" 5 ; }
     2698fi
     2699rm -f conftest conftest$ac_cv_exeext
     2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2701$as_echo "$ac_cv_exeext" >&6; }
    17362702
    17372703rm -f conftest.$ac_ext
    17382704EXEEXT=$ac_cv_exeext
    17392705ac_exeext=$EXEEXT
    1740 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1741 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    1742 if test "${ac_cv_objext+set}" = set; then
    1743   echo $ECHO_N "(cached) $ECHO_C" >&6
    1744 else
    1745   cat >conftest.$ac_ext <<_ACEOF
    1746 /* confdefs.h.  */
    1747 _ACEOF
    1748 cat confdefs.h >>conftest.$ac_ext
    1749 cat >>conftest.$ac_ext <<_ACEOF
     2706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17502707/* end confdefs.h.  */
    1751 
     2708#include <stdio.h>
    17522709int
    17532710main ()
    17542711{
     2712FILE *f = fopen ("conftest.out", "w");
     2713 return ferror (f) || fclose (f) != 0;
    17552714
    17562715  ;
     
    17582717}
    17592718_ACEOF
     2719ac_clean_files="$ac_clean_files conftest.out"
     2720# Check that the compiler produces executables we can run.  If not, either
     2721# the compiler is broken, or we cross compile.
     2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     2723$as_echo_n "checking whether we are cross compiling... " >&6; }
     2724if test "$cross_compiling" != yes; then
     2725  { { ac_try="$ac_link"
     2726case "(($ac_try" in
     2727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2728  *) ac_try_echo=$ac_try;;
     2729esac
     2730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2731$as_echo "$ac_try_echo"; } >&5
     2732  (eval "$ac_link") 2>&5
     2733  ac_status=$?
     2734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2735  test $ac_status = 0; }
     2736  if { ac_try='./conftest$ac_cv_exeext'
     2737  { { case "(($ac_try" in
     2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2739  *) ac_try_echo=$ac_try;;
     2740esac
     2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2742$as_echo "$ac_try_echo"; } >&5
     2743  (eval "$ac_try") 2>&5
     2744  ac_status=$?
     2745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2746  test $ac_status = 0; }; }; then
     2747    cross_compiling=no
     2748  else
     2749    if test "$cross_compiling" = maybe; then
     2750    cross_compiling=yes
     2751    else
     2752    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2754as_fn_error $? "cannot run C++ compiled programs.
     2755If you meant to cross compile, use \`--host'.
     2756See \`config.log' for more details" "$LINENO" 5 ; }
     2757    fi
     2758  fi
     2759fi
     2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     2761$as_echo "$cross_compiling" >&6; }
     2762
     2763rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     2764ac_clean_files=$ac_clean_files_save
     2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     2766$as_echo_n "checking for suffix of object files... " >&6; }
     2767if test "${ac_cv_objext+set}" = set; then :
     2768  $as_echo_n "(cached) " >&6
     2769else
     2770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2771/* end confdefs.h.  */
     2772
     2773int
     2774main ()
     2775{
     2776
     2777  ;
     2778  return 0;
     2779}
     2780_ACEOF
    17602781rm -f conftest.o conftest.obj
    1761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1762   (eval $ac_compile) 2>&5
     2782if { { ac_try="$ac_compile"
     2783case "(($ac_try" in
     2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2785  *) ac_try_echo=$ac_try;;
     2786esac
     2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2788$as_echo "$ac_try_echo"; } >&5
     2789  (eval "$ac_compile") 2>&5
    17632790  ac_status=$?
    1764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1765   (exit $ac_status); }; then
    1766   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2792  test $ac_status = 0; }; then :
     2793  for ac_file in conftest.o conftest.obj conftest.*; do
     2794  test -f "$ac_file" || continue;
    17672795  case $ac_file in
    1768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    17692797    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    17702798       break;;
     
    17722800done
    17732801else
    1774   echo "$as_me: failed program was:" >&5
     2802  $as_echo "$as_me: failed program was:" >&5
    17752803sed 's/^/| /' conftest.$ac_ext >&5
    17762804
    1777 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    1778 See \`config.log' for more details." >&5
    1779 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    1780 See \`config.log' for more details." >&2;}
    1781    { (exit 1); exit 1; }; }
    1782 fi
    1783 
     2805{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2807as_fn_error $? "cannot compute suffix of object files: cannot compile
     2808See \`config.log' for more details" "$LINENO" 5 ; }
     2809fi
    17842810rm -f conftest.$ac_cv_objext conftest.$ac_ext
    17852811fi
    1786 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    1787 echo "${ECHO_T}$ac_cv_objext" >&6
     2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     2813$as_echo "$ac_cv_objext" >&6; }
    17882814OBJEXT=$ac_cv_objext
    17892815ac_objext=$OBJEXT
    1790 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    1791 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1792 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1793   echo $ECHO_N "(cached) $ECHO_C" >&6
    1794 else
    1795   cat >conftest.$ac_ext <<_ACEOF
    1796 /* confdefs.h.  */
    1797 _ACEOF
    1798 cat confdefs.h >>conftest.$ac_ext
    1799 cat >>conftest.$ac_ext <<_ACEOF
     2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     2817$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     2818if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     2819  $as_echo_n "(cached) " >&6
     2820else
     2821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    18002822/* end confdefs.h.  */
    18012823
     
    18112833}
    18122834_ACEOF
    1813 rm -f conftest.$ac_objext
    1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1815   (eval $ac_compile) 2>conftest.er1
    1816   ac_status=$?
    1817   grep -v '^ *+' conftest.er1 >conftest.err
    1818   rm -f conftest.er1
    1819   cat conftest.err >&5
    1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1821   (exit $ac_status); } &&
    1822      { ac_try='test -z "$ac_cxx_werror_flag"
    1823              || test ! -s conftest.err'
    1824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1825   (eval $ac_try) 2>&5
    1826   ac_status=$?
    1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1828   (exit $ac_status); }; } &&
    1829      { ac_try='test -s conftest.$ac_objext'
    1830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1831   (eval $ac_try) 2>&5
    1832   ac_status=$?
    1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1834   (exit $ac_status); }; }; then
     2835if ac_fn_cxx_try_compile "$LINENO"; then :
    18352836  ac_compiler_gnu=yes
    18362837else
    1837   echo "$as_me: failed program was:" >&5
    1838 sed 's/^/| /' conftest.$ac_ext >&5
    1839 
    1840 ac_compiler_gnu=no
    1841 fi
    1842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2838  ac_compiler_gnu=no
     2839fi
     2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    18432841ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    18442842
    18452843fi
    1846 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    1847 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1848 GXX=`test $ac_compiler_gnu = yes && echo yes`
     2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     2845$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     2846if test $ac_compiler_gnu = yes; then
     2847  GXX=yes
     2848else
     2849  GXX=
     2850fi
    18492851ac_test_CXXFLAGS=${CXXFLAGS+set}
    18502852ac_save_CXXFLAGS=$CXXFLAGS
    1851 CXXFLAGS="-g"
    1852 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    1853 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1854 if test "${ac_cv_prog_cxx_g+set}" = set; then
    1855   echo $ECHO_N "(cached) $ECHO_C" >&6
    1856 else
    1857   cat >conftest.$ac_ext <<_ACEOF
    1858 /* confdefs.h.  */
    1859 _ACEOF
    1860 cat confdefs.h >>conftest.$ac_ext
    1861 cat >>conftest.$ac_ext <<_ACEOF
     2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     2854$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     2855if test "${ac_cv_prog_cxx_g+set}" = set; then :
     2856  $as_echo_n "(cached) " >&6
     2857else
     2858  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     2859   ac_cxx_werror_flag=yes
     2860   ac_cv_prog_cxx_g=no
     2861   CXXFLAGS="-g"
     2862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    18622863/* end confdefs.h.  */
    18632864
     
    18702871}
    18712872_ACEOF
    1872 rm -f conftest.$ac_objext
    1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1874   (eval $ac_compile) 2>conftest.er1
    1875   ac_status=$?
    1876   grep -v '^ *+' conftest.er1 >conftest.err
    1877   rm -f conftest.er1
    1878   cat conftest.err >&5
    1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1880   (exit $ac_status); } &&
    1881      { ac_try='test -z "$ac_cxx_werror_flag"
    1882              || test ! -s conftest.err'
    1883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1884   (eval $ac_try) 2>&5
    1885   ac_status=$?
    1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1887   (exit $ac_status); }; } &&
    1888      { ac_try='test -s conftest.$ac_objext'
    1889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1890   (eval $ac_try) 2>&5
    1891   ac_status=$?
    1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1893   (exit $ac_status); }; }; then
     2873if ac_fn_cxx_try_compile "$LINENO"; then :
    18942874  ac_cv_prog_cxx_g=yes
    18952875else
    1896   echo "$as_me: failed program was:" >&5
    1897 sed 's/^/| /' conftest.$ac_ext >&5
    1898 
    1899 ac_cv_prog_cxx_g=no
    1900 fi
    1901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1902 fi
    1903 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    1904 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     2876  CXXFLAGS=""
     2877      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2878/* end confdefs.h.  */
     2879
     2880int
     2881main ()
     2882{
     2883
     2884  ;
     2885  return 0;
     2886}
     2887_ACEOF
     2888if ac_fn_cxx_try_compile "$LINENO"; then :
     2889
     2890else
     2891  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     2892     CXXFLAGS="-g"
     2893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2894/* end confdefs.h.  */
     2895
     2896int
     2897main ()
     2898{
     2899
     2900  ;
     2901  return 0;
     2902}
     2903_ACEOF
     2904if ac_fn_cxx_try_compile "$LINENO"; then :
     2905  ac_cv_prog_cxx_g=yes
     2906fi
     2907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2908fi
     2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2910fi
     2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2912   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     2913fi
     2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     2915$as_echo "$ac_cv_prog_cxx_g" >&6; }
    19052916if test "$ac_test_CXXFLAGS" = set; then
    19062917  CXXFLAGS=$ac_save_CXXFLAGS
     
    19182929  fi
    19192930fi
    1920 for ac_declaration in \
    1921    '' \
    1922    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1923    'extern "C" void std::exit (int); using std::exit;' \
    1924    'extern "C" void exit (int) throw ();' \
    1925    'extern "C" void exit (int);' \
    1926    'void exit (int);'
    1927 do
    1928   cat >conftest.$ac_ext <<_ACEOF
    1929 /* confdefs.h.  */
    1930 _ACEOF
    1931 cat confdefs.h >>conftest.$ac_ext
    1932 cat >>conftest.$ac_ext <<_ACEOF
    1933 /* end confdefs.h.  */
    1934 $ac_declaration
    1935 #include <stdlib.h>
    1936 int
    1937 main ()
    1938 {
    1939 exit (42);
    1940   ;
    1941   return 0;
    1942 }
    1943 _ACEOF
    1944 rm -f conftest.$ac_objext
    1945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1946   (eval $ac_compile) 2>conftest.er1
    1947   ac_status=$?
    1948   grep -v '^ *+' conftest.er1 >conftest.err
    1949   rm -f conftest.er1
    1950   cat conftest.err >&5
    1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1952   (exit $ac_status); } &&
    1953      { ac_try='test -z "$ac_cxx_werror_flag"
    1954              || test ! -s conftest.err'
    1955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1956   (eval $ac_try) 2>&5
    1957   ac_status=$?
    1958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1959   (exit $ac_status); }; } &&
    1960      { ac_try='test -s conftest.$ac_objext'
    1961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1962   (eval $ac_try) 2>&5
    1963   ac_status=$?
    1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1965   (exit $ac_status); }; }; then
    1966   :
    1967 else
    1968   echo "$as_me: failed program was:" >&5
    1969 sed 's/^/| /' conftest.$ac_ext >&5
    1970 
    1971 continue
    1972 fi
    1973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1974   cat >conftest.$ac_ext <<_ACEOF
    1975 /* confdefs.h.  */
    1976 _ACEOF
    1977 cat confdefs.h >>conftest.$ac_ext
    1978 cat >>conftest.$ac_ext <<_ACEOF
    1979 /* end confdefs.h.  */
    1980 $ac_declaration
    1981 int
    1982 main ()
    1983 {
    1984 exit (42);
    1985   ;
    1986   return 0;
    1987 }
    1988 _ACEOF
    1989 rm -f conftest.$ac_objext
    1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1991   (eval $ac_compile) 2>conftest.er1
    1992   ac_status=$?
    1993   grep -v '^ *+' conftest.er1 >conftest.err
    1994   rm -f conftest.er1
    1995   cat conftest.err >&5
    1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1997   (exit $ac_status); } &&
    1998      { ac_try='test -z "$ac_cxx_werror_flag"
    1999              || test ! -s conftest.err'
    2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2001   (eval $ac_try) 2>&5
    2002   ac_status=$?
    2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2004   (exit $ac_status); }; } &&
    2005      { ac_try='test -s conftest.$ac_objext'
    2006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2007   (eval $ac_try) 2>&5
    2008   ac_status=$?
    2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2010   (exit $ac_status); }; }; then
    2011   break
    2012 else
    2013   echo "$as_me: failed program was:" >&5
    2014 sed 's/^/| /' conftest.$ac_ext >&5
    2015 
    2016 fi
    2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2018 done
    2019 rm -f conftest*
    2020 if test -n "$ac_declaration"; then
    2021   echo '#ifdef __cplusplus' >>confdefs.h
    2022   echo $ac_declaration      >>confdefs.h
    2023   echo '#endif'             >>confdefs.h
    2024 fi
    2025 
    20262931ac_ext=c
    20272932ac_cpp='$CPP $CPPFLAGS'
     
    20342939  # Extract the first word of "$ac_prog", so it can be a program name with args.
    20352940set dummy $ac_prog; ac_word=$2
    2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2038 if test "${ac_cv_prog_AWK+set}" = set; then
    2039   echo $ECHO_N "(cached) $ECHO_C" >&6
     2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2942$as_echo_n "checking for $ac_word... " >&6; }
     2943if test "${ac_cv_prog_AWK+set}" = set; then :
     2944  $as_echo_n "(cached) " >&6
    20402945else
    20412946  if test -n "$AWK"; then
     
    20472952  IFS=$as_save_IFS
    20482953  test -z "$as_dir" && as_dir=.
    2049   for ac_exec_ext in '' $ac_executable_extensions; do
    2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2954    for ac_exec_ext in '' $ac_executable_extensions; do
     2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    20512956    ac_cv_prog_AWK="$ac_prog"
    2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    20532958    break 2
    20542959  fi
    20552960done
    2056 done
     2961  done
     2962IFS=$as_save_IFS
    20572963
    20582964fi
     
    20602966AWK=$ac_cv_prog_AWK
    20612967if test -n "$AWK"; then
    2062   echo "$as_me:$LINENO: result: $AWK" >&5
    2063 echo "${ECHO_T}$AWK" >&6
    2064 else
    2065   echo "$as_me:$LINENO: result: no" >&5
    2066 echo "${ECHO_T}no" >&6
    2067 fi
     2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     2969$as_echo "$AWK" >&6; }
     2970else
     2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2972$as_echo "no" >&6; }
     2973fi
     2974
    20682975
    20692976  test -n "$AWK" && break
     
    20742981  # Extract the first word of "$ac_prog", so it can be a program name with args.
    20752982set dummy $ac_prog; ac_word=$2
    2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2078 if test "${ac_cv_prog_YACC+set}" = set; then
    2079   echo $ECHO_N "(cached) $ECHO_C" >&6
     2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2984$as_echo_n "checking for $ac_word... " >&6; }
     2985if test "${ac_cv_prog_YACC+set}" = set; then :
     2986  $as_echo_n "(cached) " >&6
    20802987else
    20812988  if test -n "$YACC"; then
     
    20872994  IFS=$as_save_IFS
    20882995  test -z "$as_dir" && as_dir=.
    2089   for ac_exec_ext in '' $ac_executable_extensions; do
    2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2996    for ac_exec_ext in '' $ac_executable_extensions; do
     2997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    20912998    ac_cv_prog_YACC="$ac_prog"
    2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    20933000    break 2
    20943001  fi
    20953002done
    2096 done
     3003  done
     3004IFS=$as_save_IFS
    20973005
    20983006fi
     
    21003008YACC=$ac_cv_prog_YACC
    21013009if test -n "$YACC"; then
    2102   echo "$as_me:$LINENO: result: $YACC" >&5
    2103 echo "${ECHO_T}$YACC" >&6
    2104 else
    2105   echo "$as_me:$LINENO: result: no" >&5
    2106 echo "${ECHO_T}no" >&6
    2107 fi
     3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     3011$as_echo "$YACC" >&6; }
     3012else
     3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3014$as_echo "no" >&6; }
     3015fi
     3016
    21083017
    21093018  test -n "$YACC" && break
     
    21193028  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    21203029set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2123 if test "${ac_cv_prog_CC+set}" = set; then
    2124   echo $ECHO_N "(cached) $ECHO_C" >&6
     3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3031$as_echo_n "checking for $ac_word... " >&6; }
     3032if test "${ac_cv_prog_CC+set}" = set; then :
     3033  $as_echo_n "(cached) " >&6
    21253034else
    21263035  if test -n "$CC"; then
     
    21323041  IFS=$as_save_IFS
    21333042  test -z "$as_dir" && as_dir=.
    2134   for ac_exec_ext in '' $ac_executable_extensions; do
    2135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3043    for ac_exec_ext in '' $ac_executable_extensions; do
     3044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21363045    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21383047    break 2
    21393048  fi
    21403049done
    2141 done
     3050  done
     3051IFS=$as_save_IFS
    21423052
    21433053fi
     
    21453055CC=$ac_cv_prog_CC
    21463056if test -n "$CC"; then
    2147   echo "$as_me:$LINENO: result: $CC" >&5
    2148 echo "${ECHO_T}$CC" >&6
    2149 else
    2150   echo "$as_me:$LINENO: result: no" >&5
    2151 echo "${ECHO_T}no" >&6
    2152 fi
     3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3058$as_echo "$CC" >&6; }
     3059else
     3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3061$as_echo "no" >&6; }
     3062fi
     3063
    21533064
    21543065fi
     
    21573068  # Extract the first word of "gcc", so it can be a program name with args.
    21583069set dummy gcc; ac_word=$2
    2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2162   echo $ECHO_N "(cached) $ECHO_C" >&6
     3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3071$as_echo_n "checking for $ac_word... " >&6; }
     3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     3073  $as_echo_n "(cached) " >&6
    21633074else
    21643075  if test -n "$ac_ct_CC"; then
     
    21703081  IFS=$as_save_IFS
    21713082  test -z "$as_dir" && as_dir=.
    2172   for ac_exec_ext in '' $ac_executable_extensions; do
    2173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3083    for ac_exec_ext in '' $ac_executable_extensions; do
     3084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21743085    ac_cv_prog_ac_ct_CC="gcc"
    2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21763087    break 2
    21773088  fi
    21783089done
    2179 done
     3090  done
     3091IFS=$as_save_IFS
    21803092
    21813093fi
     
    21833095ac_ct_CC=$ac_cv_prog_ac_ct_CC
    21843096if test -n "$ac_ct_CC"; then
    2185   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2186 echo "${ECHO_T}$ac_ct_CC" >&6
    2187 else
    2188   echo "$as_me:$LINENO: result: no" >&5
    2189 echo "${ECHO_T}no" >&6
    2190 fi
    2191 
    2192   CC=$ac_ct_CC
     3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     3098$as_echo "$ac_ct_CC" >&6; }
     3099else
     3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3101$as_echo "no" >&6; }
     3102fi
     3103
     3104  if test "x$ac_ct_CC" = x; then
     3105    CC=""
     3106  else
     3107    case $cross_compiling:$ac_tool_warned in
     3108yes:)
     3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3111ac_tool_warned=yes ;;
     3112esac
     3113    CC=$ac_ct_CC
     3114  fi
    21933115else
    21943116  CC="$ac_cv_prog_CC"
     
    21963118
    21973119if test -z "$CC"; then
    2198   if test -n "$ac_tool_prefix"; then
    2199   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     3120          if test -n "$ac_tool_prefix"; then
     3121    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    22003122set dummy ${ac_tool_prefix}cc; ac_word=$2
    2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2203 if test "${ac_cv_prog_CC+set}" = set; then
    2204   echo $ECHO_N "(cached) $ECHO_C" >&6
     3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3124$as_echo_n "checking for $ac_word... " >&6; }
     3125if test "${ac_cv_prog_CC+set}" = set; then :
     3126  $as_echo_n "(cached) " >&6
    22053127else
    22063128  if test -n "$CC"; then
     
    22123134  IFS=$as_save_IFS
    22133135  test -z "$as_dir" && as_dir=.
    2214   for ac_exec_ext in '' $ac_executable_extensions; do
    2215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3136    for ac_exec_ext in '' $ac_executable_extensions; do
     3137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    22163138    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    22183140    break 2
    22193141  fi
    22203142done
    2221 done
     3143  done
     3144IFS=$as_save_IFS
    22223145
    22233146fi
     
    22253148CC=$ac_cv_prog_CC
    22263149if test -n "$CC"; then
    2227   echo "$as_me:$LINENO: result: $CC" >&5
    2228 echo "${ECHO_T}$CC" >&6
    2229 else
    2230   echo "$as_me:$LINENO: result: no" >&5
    2231 echo "${ECHO_T}no" >&6
    2232 fi
    2233 
    2234 fi
    2235 if test -z "$ac_cv_prog_CC"; then
    2236   ac_ct_CC=$CC
    2237   # Extract the first word of "cc", so it can be a program name with args.
    2238 set dummy cc; ac_word=$2
    2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2242   echo $ECHO_N "(cached) $ECHO_C" >&6
    2243 else
    2244   if test -n "$ac_ct_CC"; then
    2245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2246 else
    2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2248 for as_dir in $PATH
    2249 do
    2250   IFS=$as_save_IFS
    2251   test -z "$as_dir" && as_dir=.
    2252   for ac_exec_ext in '' $ac_executable_extensions; do
    2253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2254     ac_cv_prog_ac_ct_CC="cc"
    2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2256     break 2
     3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3151$as_echo "$CC" >&6; }
     3152else
     3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3154$as_echo "no" >&6; }
     3155fi
     3156
     3157
    22573158  fi
    2258 done
    2259 done
    2260 
    2261 fi
    2262 fi
    2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2264 if test -n "$ac_ct_CC"; then
    2265   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2266 echo "${ECHO_T}$ac_ct_CC" >&6
    2267 else
    2268   echo "$as_me:$LINENO: result: no" >&5
    2269 echo "${ECHO_T}no" >&6
    2270 fi
    2271 
    2272   CC=$ac_ct_CC
    2273 else
    2274   CC="$ac_cv_prog_CC"
    2275 fi
    2276 
    22773159fi
    22783160if test -z "$CC"; then
    22793161  # Extract the first word of "cc", so it can be a program name with args.
    22803162set dummy cc; ac_word=$2
    2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2283 if test "${ac_cv_prog_CC+set}" = set; then
    2284   echo $ECHO_N "(cached) $ECHO_C" >&6
     3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3164$as_echo_n "checking for $ac_word... " >&6; }
     3165if test "${ac_cv_prog_CC+set}" = set; then :
     3166  $as_echo_n "(cached) " >&6
    22853167else
    22863168  if test -n "$CC"; then
     
    22933175  IFS=$as_save_IFS
    22943176  test -z "$as_dir" && as_dir=.
    2295   for ac_exec_ext in '' $ac_executable_extensions; do
    2296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3177    for ac_exec_ext in '' $ac_executable_extensions; do
     3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    22973179    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    22983180       ac_prog_rejected=yes
     
    23003182     fi
    23013183    ac_cv_prog_CC="cc"
    2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23033185    break 2
    23043186  fi
    23053187done
    2306 done
     3188  done
     3189IFS=$as_save_IFS
    23073190
    23083191if test $ac_prog_rejected = yes; then
     
    23223205CC=$ac_cv_prog_CC
    23233206if test -n "$CC"; then
    2324   echo "$as_me:$LINENO: result: $CC" >&5
    2325 echo "${ECHO_T}$CC" >&6
    2326 else
    2327   echo "$as_me:$LINENO: result: no" >&5
    2328 echo "${ECHO_T}no" >&6
    2329 fi
     3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3208$as_echo "$CC" >&6; }
     3209else
     3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3211$as_echo "no" >&6; }
     3212fi
     3213
    23303214
    23313215fi
    23323216if test -z "$CC"; then
    23333217  if test -n "$ac_tool_prefix"; then
    2334   for ac_prog in cl
     3218  for ac_prog in cl.exe
    23353219  do
    23363220    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    23373221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2340 if test "${ac_cv_prog_CC+set}" = set; then
    2341   echo $ECHO_N "(cached) $ECHO_C" >&6
     3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3223$as_echo_n "checking for $ac_word... " >&6; }
     3224if test "${ac_cv_prog_CC+set}" = set; then :
     3225  $as_echo_n "(cached) " >&6
    23423226else
    23433227  if test -n "$CC"; then
     
    23493233  IFS=$as_save_IFS
    23503234  test -z "$as_dir" && as_dir=.
    2351   for ac_exec_ext in '' $ac_executable_extensions; do
    2352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3235    for ac_exec_ext in '' $ac_executable_extensions; do
     3236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    23533237    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23553239    break 2
    23563240  fi
    23573241done
    2358 done
     3242  done
     3243IFS=$as_save_IFS
    23593244
    23603245fi
     
    23623247CC=$ac_cv_prog_CC
    23633248if test -n "$CC"; then
    2364   echo "$as_me:$LINENO: result: $CC" >&5
    2365 echo "${ECHO_T}$CC" >&6
    2366 else
    2367   echo "$as_me:$LINENO: result: no" >&5
    2368 echo "${ECHO_T}no" >&6
    2369 fi
     3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3250$as_echo "$CC" >&6; }
     3251else
     3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3253$as_echo "no" >&6; }
     3254fi
     3255
    23703256
    23713257    test -n "$CC" && break
     
    23743260if test -z "$CC"; then
    23753261  ac_ct_CC=$CC
    2376   for ac_prog in cl
     3262  for ac_prog in cl.exe
    23773263do
    23783264  # Extract the first word of "$ac_prog", so it can be a program name with args.
    23793265set dummy $ac_prog; ac_word=$2
    2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2383   echo $ECHO_N "(cached) $ECHO_C" >&6
     3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3267$as_echo_n "checking for $ac_word... " >&6; }
     3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     3269  $as_echo_n "(cached) " >&6
    23843270else
    23853271  if test -n "$ac_ct_CC"; then
     
    23913277  IFS=$as_save_IFS
    23923278  test -z "$as_dir" && as_dir=.
    2393   for ac_exec_ext in '' $ac_executable_extensions; do
    2394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3279    for ac_exec_ext in '' $ac_executable_extensions; do
     3280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    23953281    ac_cv_prog_ac_ct_CC="$ac_prog"
    2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23973283    break 2
    23983284  fi
    23993285done
    2400 done
     3286  done
     3287IFS=$as_save_IFS
    24013288
    24023289fi
     
    24043291ac_ct_CC=$ac_cv_prog_ac_ct_CC
    24053292if test -n "$ac_ct_CC"; then
    2406   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2407 echo "${ECHO_T}$ac_ct_CC" >&6
    2408 else
    2409   echo "$as_me:$LINENO: result: no" >&5
    2410 echo "${ECHO_T}no" >&6
    2411 fi
     3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     3294$as_echo "$ac_ct_CC" >&6; }
     3295else
     3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3297$as_echo "no" >&6; }
     3298fi
     3299
    24123300
    24133301  test -n "$ac_ct_CC" && break
    24143302done
    24153303
    2416   CC=$ac_ct_CC
    2417 fi
    2418 
    2419 fi
    2420 
    2421 
    2422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2423 See \`config.log' for more details." >&5
    2424 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2425 See \`config.log' for more details." >&2;}
    2426    { (exit 1); exit 1; }; }
     3304  if test "x$ac_ct_CC" = x; then
     3305    CC=""
     3306  else
     3307    case $cross_compiling:$ac_tool_warned in
     3308yes:)
     3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3311ac_tool_warned=yes ;;
     3312esac
     3313    CC=$ac_ct_CC
     3314  fi
     3315fi
     3316
     3317fi
     3318
     3319
     3320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3322as_fn_error $? "no acceptable C compiler found in \$PATH
     3323See \`config.log' for more details" "$LINENO" 5 ; }
    24273324
    24283325# Provide some information about the compiler.
    2429 echo "$as_me:$LINENO:" \
    2430      "checking for C compiler version" >&5
    2431 ac_compiler=`set X $ac_compile; echo $2`
    2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2433   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     3327set X $ac_compile
     3328ac_compiler=$2
     3329for ac_option in --version -v -V -qversion; do
     3330  { { ac_try="$ac_compiler $ac_option >&5"
     3331case "(($ac_try" in
     3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3333  *) ac_try_echo=$ac_try;;
     3334esac
     3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3336$as_echo "$ac_try_echo"; } >&5
     3337  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    24343338  ac_status=$?
    2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2436   (exit $ac_status); }
    2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2438   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2439   ac_status=$?
    2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2441   (exit $ac_status); }
    2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2443   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2444   ac_status=$?
    2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2446   (exit $ac_status); }
    2447 
    2448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2451   echo $ECHO_N "(cached) $ECHO_C" >&6
    2452 else
    2453   cat >conftest.$ac_ext <<_ACEOF
    2454 /* confdefs.h.  */
    2455 _ACEOF
    2456 cat confdefs.h >>conftest.$ac_ext
    2457 cat >>conftest.$ac_ext <<_ACEOF
     3339  if test -s conftest.err; then
     3340    sed '10a\
     3341... rest of stderr output deleted ...
     3342         10q' conftest.err >conftest.er1
     3343    cat conftest.er1 >&5
     3344  fi
     3345  rm -f conftest.er1 conftest.err
     3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3347  test $ac_status = 0; }
     3348done
     3349
     3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3352if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3353  $as_echo_n "(cached) " >&6
     3354else
     3355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    24583356/* end confdefs.h.  */
    24593357
     
    24693367}
    24703368_ACEOF
    2471 rm -f conftest.$ac_objext
    2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2473   (eval $ac_compile) 2>conftest.er1
    2474   ac_status=$?
    2475   grep -v '^ *+' conftest.er1 >conftest.err
    2476   rm -f conftest.er1
    2477   cat conftest.err >&5
    2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2479   (exit $ac_status); } &&
    2480      { ac_try='test -z "$ac_c_werror_flag"
    2481              || test ! -s conftest.err'
    2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2483   (eval $ac_try) 2>&5
    2484   ac_status=$?
    2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2486   (exit $ac_status); }; } &&
    2487      { ac_try='test -s conftest.$ac_objext'
    2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2489   (eval $ac_try) 2>&5
    2490   ac_status=$?
    2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2492   (exit $ac_status); }; }; then
     3369if ac_fn_c_try_compile "$LINENO"; then :
    24933370  ac_compiler_gnu=yes
    24943371else
    2495   echo "$as_me: failed program was:" >&5
    2496 sed 's/^/| /' conftest.$ac_ext >&5
    2497 
    2498 ac_compiler_gnu=no
    2499 fi
    2500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3372  ac_compiler_gnu=no
     3373fi
     3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    25013375ac_cv_c_compiler_gnu=$ac_compiler_gnu
    25023376
    25033377fi
    2504 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2506 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3379$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3380if test $ac_compiler_gnu = yes; then
     3381  GCC=yes
     3382else
     3383  GCC=
     3384fi
    25073385ac_test_CFLAGS=${CFLAGS+set}
    25083386ac_save_CFLAGS=$CFLAGS
    2509 CFLAGS="-g"
    2510 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2512 if test "${ac_cv_prog_cc_g+set}" = set; then
    2513   echo $ECHO_N "(cached) $ECHO_C" >&6
    2514 else
    2515   cat >conftest.$ac_ext <<_ACEOF
    2516 /* confdefs.h.  */
    2517 _ACEOF
    2518 cat confdefs.h >>conftest.$ac_ext
    2519 cat >>conftest.$ac_ext <<_ACEOF
     3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3388$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3389if test "${ac_cv_prog_cc_g+set}" = set; then :
     3390  $as_echo_n "(cached) " >&6
     3391else
     3392  ac_save_c_werror_flag=$ac_c_werror_flag
     3393   ac_c_werror_flag=yes
     3394   ac_cv_prog_cc_g=no
     3395   CFLAGS="-g"
     3396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25203397/* end confdefs.h.  */
    25213398
     
    25283405}
    25293406_ACEOF
    2530 rm -f conftest.$ac_objext
    2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2532   (eval $ac_compile) 2>conftest.er1
    2533   ac_status=$?
    2534   grep -v '^ *+' conftest.er1 >conftest.err
    2535   rm -f conftest.er1
    2536   cat conftest.err >&5
    2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2538   (exit $ac_status); } &&
    2539      { ac_try='test -z "$ac_c_werror_flag"
    2540              || test ! -s conftest.err'
    2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2542   (eval $ac_try) 2>&5
    2543   ac_status=$?
    2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2545   (exit $ac_status); }; } &&
    2546      { ac_try='test -s conftest.$ac_objext'
    2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2548   (eval $ac_try) 2>&5
    2549   ac_status=$?
    2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2551   (exit $ac_status); }; }; then
     3407if ac_fn_c_try_compile "$LINENO"; then :
    25523408  ac_cv_prog_cc_g=yes
    25533409else
    2554   echo "$as_me: failed program was:" >&5
    2555 sed 's/^/| /' conftest.$ac_ext >&5
    2556 
    2557 ac_cv_prog_cc_g=no
    2558 fi
    2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2560 fi
    2561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2562 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3410  CFLAGS=""
     3411      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3412/* end confdefs.h.  */
     3413
     3414int
     3415main ()
     3416{
     3417
     3418  ;
     3419  return 0;
     3420}
     3421_ACEOF
     3422if ac_fn_c_try_compile "$LINENO"; then :
     3423
     3424else
     3425  ac_c_werror_flag=$ac_save_c_werror_flag
     3426     CFLAGS="-g"
     3427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3428/* end confdefs.h.  */
     3429
     3430int
     3431main ()
     3432{
     3433
     3434  ;
     3435  return 0;
     3436}
     3437_ACEOF
     3438if ac_fn_c_try_compile "$LINENO"; then :
     3439  ac_cv_prog_cc_g=yes
     3440fi
     3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3442fi
     3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3444fi
     3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3446   ac_c_werror_flag=$ac_save_c_werror_flag
     3447fi
     3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3449$as_echo "$ac_cv_prog_cc_g" >&6; }
    25633450if test "$ac_test_CFLAGS" = set; then
    25643451  CFLAGS=$ac_save_CFLAGS
     
    25763463  fi
    25773464fi
    2578 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2579 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2580 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2581   echo $ECHO_N "(cached) $ECHO_C" >&6
    2582 else
    2583   ac_cv_prog_cc_stdc=no
     3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3467if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3468  $as_echo_n "(cached) " >&6
     3469else
     3470  ac_cv_prog_cc_c89=no
    25843471ac_save_CC=$CC
    2585 cat >conftest.$ac_ext <<_ACEOF
    2586 /* confdefs.h.  */
    2587 _ACEOF
    2588 cat confdefs.h >>conftest.$ac_ext
    2589 cat >>conftest.$ac_ext <<_ACEOF
     3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25903473/* end confdefs.h.  */
    25913474#include <stdarg.h>
     
    26153498   function prototypes and stuff, but not '\xHH' hex character constants.
    26163499   These don't provoke an error unfortunately, instead are silently treated
    2617    as 'x'.  The following induces an error, until -std1 is added to get
     3500   as 'x'.  The following induces an error, until -std is added to get
    26183501   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    26193502   array size at least.  It's necessary to write '\x00'==0 to get something
    2620    that's true only with -std1.  */
     3503   that's true only with -std.  */
    26213504int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3505
     3506/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3507   inside strings and character constants.  */
     3508#define FOO(x) 'x'
     3509int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    26223510
    26233511int test (int i, double x);
     
    26353523}
    26363524_ACEOF
    2637 # Don't try gcc -ansi; that turns off useful extensions and
    2638 # breaks some systems' header files.
    2639 # AIX           -qlanglvl=ansi
    2640 # Ultrix and OSF/1  -std1
    2641 # HP-UX 10.20 and later -Ae
    2642 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2643 # SVR4          -Xc -D__EXTENSIONS__
    2644 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3525for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3526    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    26453527do
    26463528  CC="$ac_save_CC $ac_arg"
    2647   rm -f conftest.$ac_objext
    2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2649   (eval $ac_compile) 2>conftest.er1
    2650   ac_status=$?
    2651   grep -v '^ *+' conftest.er1 >conftest.err
    2652   rm -f conftest.er1
    2653   cat conftest.err >&5
    2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2655   (exit $ac_status); } &&
    2656      { ac_try='test -z "$ac_c_werror_flag"
    2657              || test ! -s conftest.err'
    2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2659   (eval $ac_try) 2>&5
    2660   ac_status=$?
    2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2662   (exit $ac_status); }; } &&
    2663      { ac_try='test -s conftest.$ac_objext'
    2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2665   (eval $ac_try) 2>&5
    2666   ac_status=$?
    2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2668   (exit $ac_status); }; }; then
    2669   ac_cv_prog_cc_stdc=$ac_arg
    2670 break
    2671 else
    2672   echo "$as_me: failed program was:" >&5
    2673 sed 's/^/| /' conftest.$ac_ext >&5
    2674 
    2675 fi
    2676 rm -f conftest.err conftest.$ac_objext
     3529  if ac_fn_c_try_compile "$LINENO"; then :
     3530  ac_cv_prog_cc_c89=$ac_arg
     3531fi
     3532rm -f core conftest.err conftest.$ac_objext
     3533  test "x$ac_cv_prog_cc_c89" != "xno" && break
    26773534done
    2678 rm -f conftest.$ac_ext conftest.$ac_objext
     3535rm -f conftest.$ac_ext
    26793536CC=$ac_save_CC
    26803537
    26813538fi
    2682 
    2683 case "x$ac_cv_prog_cc_stdc" in
    2684   x|xno)
    2685     echo "$as_me:$LINENO: result: none needed" >&5
    2686 echo "${ECHO_T}none needed" >&6 ;;
     3539# AC_CACHE_VAL
     3540case "x$ac_cv_prog_cc_c89" in
     3541  x)
     3542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3543$as_echo "none needed" >&6; } ;;
     3544  xno)
     3545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3546$as_echo "unsupported" >&6; } ;;
    26873547  *)
    2688     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2689 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2690     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3548    CC="$CC $ac_cv_prog_cc_c89"
     3549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3550$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    26913551esac
    2692 
    2693 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2694 # in C++ we need to declare it.  In case someone uses the same compiler
    2695 # for both compiling C and C++ we need to have the C++ compiler decide
    2696 # the declaration of exit, since it's the most demanding environment.
    2697 cat >conftest.$ac_ext <<_ACEOF
    2698 #ifndef __cplusplus
    2699   choke me
    2700 #endif
    2701 _ACEOF
    2702 rm -f conftest.$ac_objext
    2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2704   (eval $ac_compile) 2>conftest.er1
    2705   ac_status=$?
    2706   grep -v '^ *+' conftest.er1 >conftest.err
    2707   rm -f conftest.er1
    2708   cat conftest.err >&5
    2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2710   (exit $ac_status); } &&
    2711      { ac_try='test -z "$ac_c_werror_flag"
    2712              || test ! -s conftest.err'
    2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2714   (eval $ac_try) 2>&5
    2715   ac_status=$?
    2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2717   (exit $ac_status); }; } &&
    2718      { ac_try='test -s conftest.$ac_objext'
    2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2720   (eval $ac_try) 2>&5
    2721   ac_status=$?
    2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2723   (exit $ac_status); }; }; then
    2724   for ac_declaration in \
    2725    '' \
    2726    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2727    'extern "C" void std::exit (int); using std::exit;' \
    2728    'extern "C" void exit (int) throw ();' \
    2729    'extern "C" void exit (int);' \
    2730    'void exit (int);'
    2731 do
    2732   cat >conftest.$ac_ext <<_ACEOF
    2733 /* confdefs.h.  */
    2734 _ACEOF
    2735 cat confdefs.h >>conftest.$ac_ext
    2736 cat >>conftest.$ac_ext <<_ACEOF
    2737 /* end confdefs.h.  */
    2738 $ac_declaration
    2739 #include <stdlib.h>
    2740 int
    2741 main ()
    2742 {
    2743 exit (42);
    2744   ;
    2745   return 0;
    2746 }
    2747 _ACEOF
    2748 rm -f conftest.$ac_objext
    2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2750   (eval $ac_compile) 2>conftest.er1
    2751   ac_status=$?
    2752   grep -v '^ *+' conftest.er1 >conftest.err
    2753   rm -f conftest.er1
    2754   cat conftest.err >&5
    2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2756   (exit $ac_status); } &&
    2757      { ac_try='test -z "$ac_c_werror_flag"
    2758              || test ! -s conftest.err'
    2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2760   (eval $ac_try) 2>&5
    2761   ac_status=$?
    2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2763   (exit $ac_status); }; } &&
    2764      { ac_try='test -s conftest.$ac_objext'
    2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2766   (eval $ac_try) 2>&5
    2767   ac_status=$?
    2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2769   (exit $ac_status); }; }; then
    2770   :
    2771 else
    2772   echo "$as_me: failed program was:" >&5
    2773 sed 's/^/| /' conftest.$ac_ext >&5
    2774 
    2775 continue
    2776 fi
    2777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2778   cat >conftest.$ac_ext <<_ACEOF
    2779 /* confdefs.h.  */
    2780 _ACEOF
    2781 cat confdefs.h >>conftest.$ac_ext
    2782 cat >>conftest.$ac_ext <<_ACEOF
    2783 /* end confdefs.h.  */
    2784 $ac_declaration
    2785 int
    2786 main ()
    2787 {
    2788 exit (42);
    2789   ;
    2790   return 0;
    2791 }
    2792 _ACEOF
    2793 rm -f conftest.$ac_objext
    2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2795   (eval $ac_compile) 2>conftest.er1
    2796   ac_status=$?
    2797   grep -v '^ *+' conftest.er1 >conftest.err
    2798   rm -f conftest.er1
    2799   cat conftest.err >&5
    2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2801   (exit $ac_status); } &&
    2802      { ac_try='test -z "$ac_c_werror_flag"
    2803              || test ! -s conftest.err'
    2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2805   (eval $ac_try) 2>&5
    2806   ac_status=$?
    2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2808   (exit $ac_status); }; } &&
    2809      { ac_try='test -s conftest.$ac_objext'
    2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2811   (eval $ac_try) 2>&5
    2812   ac_status=$?
    2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2814   (exit $ac_status); }; }; then
    2815   break
    2816 else
    2817   echo "$as_me: failed program was:" >&5
    2818 sed 's/^/| /' conftest.$ac_ext >&5
    2819 
    2820 fi
    2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2822 done
    2823 rm -f conftest*
    2824 if test -n "$ac_declaration"; then
    2825   echo '#ifdef __cplusplus' >>confdefs.h
    2826   echo $ac_declaration      >>confdefs.h
    2827   echo '#endif'             >>confdefs.h
    2828 fi
    2829 
    2830 else
    2831   echo "$as_me: failed program was:" >&5
    2832 sed 's/^/| /' conftest.$ac_ext >&5
    2833 
    2834 fi
    2835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3552if test "x$ac_cv_prog_cc_c89" != xno; then :
     3553
     3554fi
     3555
    28363556ac_ext=c
    28373557ac_cpp='$CPP $CPPFLAGS'
     
    28533573# OS/2's system install, which has a completely different semantic
    28543574# ./install, which can be erroneously created by make from ./install.sh.
    2855 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3575# Reject install programs that cannot install multiple files.
     3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     3577$as_echo_n "checking for a BSD-compatible install... " >&6; }
    28573578if test -z "$INSTALL"; then
    2858 if test "${ac_cv_path_install+set}" = set; then
    2859   echo $ECHO_N "(cached) $ECHO_C" >&6
     3579if test "${ac_cv_path_install+set}" = set; then :
     3580  $as_echo_n "(cached) " >&6
    28603581else
    28613582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28643585  IFS=$as_save_IFS
    28653586  test -z "$as_dir" && as_dir=.
    2866   # Account for people who put trailing slashes in PATH elements.
    2867 case $as_dir/ in
    2868   ./ | .// | /cC/* | \
     3587    # Account for people who put trailing slashes in PATH elements.
     3588case $as_dir/ in #((
     3589  ./ | .// | /[cC]/* | \
    28693590  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2870   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3591  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    28713592  /usr/ucb/* ) ;;
    28723593  *)
     
    28763597    for ac_prog in ginstall scoinst install; do
    28773598      for ac_exec_ext in '' $ac_executable_extensions; do
    2878     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3599    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    28793600      if test $ac_prog = install &&
    28803601        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    28863607        :
    28873608      else
    2888         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2889         break 3
     3609        rm -rf conftest.one conftest.two conftest.dir
     3610        echo one > conftest.one
     3611        echo two > conftest.two
     3612        mkdir conftest.dir
     3613        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     3614          test -s conftest.one && test -s conftest.two &&
     3615          test -s conftest.dir/conftest.one &&
     3616          test -s conftest.dir/conftest.two
     3617        then
     3618          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3619          break 3
     3620        fi
    28903621      fi
    28913622    fi
     
    28943625    ;;
    28953626esac
    2896 done
    2897 
     3627
     3628  done
     3629IFS=$as_save_IFS
     3630
     3631rm -rf conftest.one conftest.two conftest.dir
    28983632
    28993633fi
     
    29013635    INSTALL=$ac_cv_path_install
    29023636  else
    2903     # As a last resort, use the slow shell script.  We don't cache a
    2904     # path for INSTALL within a source directory, because that will
     3637    # As a last resort, use the slow shell script.  Don't cache a
     3638    # value for INSTALL within a source directory, because that will
    29053639    # break other packages using the cache if that directory is
    2906     # removed, or if the path is relative.
     3640    # removed, or if the value is a relative name.
    29073641    INSTALL=$ac_install_sh
    29083642  fi
    29093643fi
    2910 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2911 echo "${ECHO_T}$INSTALL" >&6
     3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     3645$as_echo "$INSTALL" >&6; }
    29123646
    29133647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    29193653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    29203654
    2921 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2922 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     3656$as_echo_n "checking whether ln -s works... " >&6; }
    29233657LN_S=$as_ln_s
    29243658if test "$LN_S" = "ln -s"; then
    2925   echo "$as_me:$LINENO: result: yes" >&5
    2926 echo "${ECHO_T}yes" >&6
    2927 else
    2928   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    2929 echo "${ECHO_T}no, using $LN_S" >&6
    2930 fi
    2931 
    2932 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    2933 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    2935 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2936   echo $ECHO_N "(cached) $ECHO_C" >&6
     3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3660$as_echo "yes" >&6; }
     3661else
     3662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     3663$as_echo "no, using $LN_S" >&6; }
     3664fi
     3665
     3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3667$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     3668set x ${MAKE-make}
     3669ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     3670if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     3671  $as_echo_n "(cached) " >&6
    29373672else
    29383673  cat >conftest.make <<\_ACEOF
     3674SHELL = /bin/sh
    29393675all:
    2940     @echo 'ac_maketemp="$(MAKE)"'
    2941 _ACEOF
    2942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2943 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2944 if test -n "$ac_maketemp"; then
    2945   eval ac_cv_prog_make_${ac_make}_set=yes
    2946 else
    2947   eval ac_cv_prog_make_${ac_make}_set=no
    2948 fi
     3676    @echo '@@@%%%=$(MAKE)=@@@%%%'
     3677_ACEOF
     3678# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     3679case `${MAKE-make} -f conftest.make 2>/dev/null` in
     3680  *@@@%%%=?*=@@@%%%*)
     3681    eval ac_cv_prog_make_${ac_make}_set=yes;;
     3682  *)
     3683    eval ac_cv_prog_make_${ac_make}_set=no;;
     3684esac
    29493685rm -f conftest.make
    29503686fi
    2951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2952   echo "$as_me:$LINENO: result: yes" >&5
    2953 echo "${ECHO_T}yes" >&6
     3687if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     3688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3689$as_echo "yes" >&6; }
    29543690  SET_MAKE=
    29553691else
    2956   echo "$as_me:$LINENO: result: no" >&5
    2957 echo "${ECHO_T}no" >&6
     3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3693$as_echo "no" >&6; }
    29583694  SET_MAKE="MAKE=${MAKE-make}"
    29593695fi
     
    29623698  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    29633699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2966 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2967   echo $ECHO_N "(cached) $ECHO_C" >&6
     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_RANLIB+set}" = set; then :
     3703  $as_echo_n "(cached) " >&6
    29683704else
    29693705  if test -n "$RANLIB"; then
     
    29753711  IFS=$as_save_IFS
    29763712  test -z "$as_dir" && as_dir=.
    2977   for ac_exec_ext in '' $ac_executable_extensions; do
    2978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     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
    29793715    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    29813717    break 2
    29823718  fi
    29833719done
    2984 done
     3720  done
     3721IFS=$as_save_IFS
    29853722
    29863723fi
     
    29883725RANLIB=$ac_cv_prog_RANLIB
    29893726if test -n "$RANLIB"; then
    2990   echo "$as_me:$LINENO: result: $RANLIB" >&5
    2991 echo "${ECHO_T}$RANLIB" >&6
    2992 else
    2993   echo "$as_me:$LINENO: result: no" >&5
    2994 echo "${ECHO_T}no" >&6
    2995 fi
     3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     3728$as_echo "$RANLIB" >&6; }
     3729else
     3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3731$as_echo "no" >&6; }
     3732fi
     3733
    29963734
    29973735fi
     
    30003738  # Extract the first word of "ranlib", so it can be a program name with args.
    30013739set dummy ranlib; ac_word=$2
    3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3005   echo $ECHO_N "(cached) $ECHO_C" >&6
     3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3741$as_echo_n "checking for $ac_word... " >&6; }
     3742if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     3743  $as_echo_n "(cached) " >&6
    30063744else
    30073745  if test -n "$ac_ct_RANLIB"; then
     
    30133751  IFS=$as_save_IFS
    30143752  test -z "$as_dir" && as_dir=.
    3015   for ac_exec_ext in '' $ac_executable_extensions; do
    3016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3753    for ac_exec_ext in '' $ac_executable_extensions; do
     3754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    30173755    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    30193757    break 2
    30203758  fi
    30213759done
    3022 done
    3023 
    3024   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     3760  done
     3761IFS=$as_save_IFS
     3762
    30253763fi
    30263764fi
    30273765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    30283766if test -n "$ac_ct_RANLIB"; then
    3029   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3031 else
    3032   echo "$as_me:$LINENO: result: no" >&5
    3033 echo "${ECHO_T}no" >&6
    3034 fi
    3035 
    3036   RANLIB=$ac_ct_RANLIB
     3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     3768$as_echo "$ac_ct_RANLIB" >&6; }
     3769else
     3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3771$as_echo "no" >&6; }
     3772fi
     3773
     3774  if test "x$ac_ct_RANLIB" = x; then
     3775    RANLIB=":"
     3776  else
     3777    case $cross_compiling:$ac_tool_warned in
     3778yes:)
     3779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3781ac_tool_warned=yes ;;
     3782esac
     3783    RANLIB=$ac_ct_RANLIB
     3784  fi
    30373785else
    30383786  RANLIB="$ac_cv_prog_RANLIB"
    30393787fi
    30403788
     3789if test $ENABLE_JAVA = "1" ; then
     3790
     3791
     3792if test "x$JAVA" = x ; then
     3793        if test x$JAVAPREFIX = x; then
     3794        test x$JAVA = x && for ac_prog in java$EXEEXT
     3795do
     3796  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3797set dummy $ac_prog; ac_word=$2
     3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3799$as_echo_n "checking for $ac_word... " >&6; }
     3800if test "${ac_cv_prog_JAVA+set}" = set; then :
     3801  $as_echo_n "(cached) " >&6
     3802else
     3803  if test -n "$JAVA"; then
     3804  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3805else
     3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3807for as_dir in $PATH
     3808do
     3809  IFS=$as_save_IFS
     3810  test -z "$as_dir" && as_dir=.
     3811    for ac_exec_ext in '' $ac_executable_extensions; do
     3812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3813    ac_cv_prog_JAVA="$ac_prog"
     3814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3815    break 2
     3816  fi
     3817done
     3818  done
     3819IFS=$as_save_IFS
     3820
     3821fi
     3822fi
     3823JAVA=$ac_cv_prog_JAVA
     3824if test -n "$JAVA"; then
     3825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3826$as_echo "$JAVA" >&6; }
     3827else
     3828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3829$as_echo "no" >&6; }
     3830fi
     3831
     3832
     3833  test -n "$JAVA" && break
     3834done
     3835
     3836    else
     3837        test x$JAVA = x && for ac_prog in java$EXEEXT
     3838do
     3839  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3840set dummy $ac_prog; ac_word=$2
     3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3842$as_echo_n "checking for $ac_word... " >&6; }
     3843if test "${ac_cv_prog_JAVA+set}" = set; then :
     3844  $as_echo_n "(cached) " >&6
     3845else
     3846  if test -n "$JAVA"; then
     3847  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3848else
     3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3850for as_dir in $PATH
     3851do
     3852  IFS=$as_save_IFS
     3853  test -z "$as_dir" && as_dir=.
     3854    for ac_exec_ext in '' $ac_executable_extensions; do
     3855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3856    ac_cv_prog_JAVA="$ac_prog"
     3857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3858    break 2
     3859  fi
     3860done
     3861  done
     3862IFS=$as_save_IFS
     3863
     3864fi
     3865fi
     3866JAVA=$ac_cv_prog_JAVA
     3867if test -n "$JAVA"; then
     3868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3869$as_echo "$JAVA" >&6; }
     3870else
     3871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3872$as_echo "no" >&6; }
     3873fi
     3874
     3875
     3876  test -n "$JAVA" && break
     3877done
     3878test -n "$JAVA" || JAVA="$JAVAPREFIX"
     3879
     3880    fi
     3881    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     3882fi
     3883
     3884
     3885# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     3886set dummy uudecode$EXEEXT; ac_word=$2
     3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3888$as_echo_n "checking for $ac_word... " >&6; }
     3889if test "${ac_cv_prog_uudecode+set}" = set; then :
     3890  $as_echo_n "(cached) " >&6
     3891else
     3892  if test -n "$uudecode"; then
     3893  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     3894else
     3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3896for as_dir in $PATH
     3897do
     3898  IFS=$as_save_IFS
     3899  test -z "$as_dir" && as_dir=.
     3900    for ac_exec_ext in '' $ac_executable_extensions; do
     3901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3902    ac_cv_prog_uudecode="yes"
     3903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3904    break 2
     3905  fi
     3906done
     3907  done
     3908IFS=$as_save_IFS
     3909
     3910fi
     3911fi
     3912uudecode=$ac_cv_prog_uudecode
     3913if test -n "$uudecode"; then
     3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     3915$as_echo "$uudecode" >&6; }
     3916else
     3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3918$as_echo "no" >&6; }
     3919fi
     3920
     3921
     3922if test x$uudecode = xyes; then
     3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     3924$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     3925if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     3926  $as_echo_n "(cached) " >&6
     3927else
     3928
     3929cat << \EOF > Test.uue
     3930begin-base64 644 Test.class
     3931yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     3932bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     3933bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     3934YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     3935aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     3936AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     3937AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     3938====
     3939EOF
     3940if uudecode$EXEEXT Test.uue; then
     3941        ac_cv_prog_uudecode_base64=yes
     3942else
     3943        echo "configure: 3943: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     3944        echo "configure: failed file was:" >&5
     3945        cat Test.uue >&5
     3946        ac_cv_prog_uudecode_base64=no
     3947fi
     3948rm -f Test.uue
     3949fi
     3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     3951$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     3952fi
     3953if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3954        rm -f Test.class
     3955        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     3956$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     3957        if test x$ac_cv_prog_javac_works = xno; then
     3958                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     3959        fi
     3960        if test x$ac_cv_prog_javac_works = x; then
     3961
     3962if test "x$JAVAC" = x ; then
     3963    if test "x$JAVAPREFIX" = x; then
     3964    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3965do
     3966  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3967set dummy $ac_prog; ac_word=$2
     3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3969$as_echo_n "checking for $ac_word... " >&6; }
     3970if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3971  $as_echo_n "(cached) " >&6
     3972else
     3973  if test -n "$JAVAC"; then
     3974  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3975else
     3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3977for as_dir in $PATH
     3978do
     3979  IFS=$as_save_IFS
     3980  test -z "$as_dir" && as_dir=.
     3981    for ac_exec_ext in '' $ac_executable_extensions; do
     3982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3983    ac_cv_prog_JAVAC="$ac_prog"
     3984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3985    break 2
     3986  fi
     3987done
     3988  done
     3989IFS=$as_save_IFS
     3990
     3991fi
     3992fi
     3993JAVAC=$ac_cv_prog_JAVAC
     3994if test -n "$JAVAC"; then
     3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3996$as_echo "$JAVAC" >&6; }
     3997else
     3998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3999$as_echo "no" >&6; }
     4000fi
     4001
     4002
     4003  test -n "$JAVAC" && break
     4004done
     4005
     4006  else
     4007    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4008do
     4009  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4010set dummy $ac_prog; ac_word=$2
     4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4012$as_echo_n "checking for $ac_word... " >&6; }
     4013if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4014  $as_echo_n "(cached) " >&6
     4015else
     4016  if test -n "$JAVAC"; then
     4017  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4018else
     4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4020for as_dir in $PATH
     4021do
     4022  IFS=$as_save_IFS
     4023  test -z "$as_dir" && as_dir=.
     4024    for ac_exec_ext in '' $ac_executable_extensions; do
     4025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4026    ac_cv_prog_JAVAC="$ac_prog"
     4027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4028    break 2
     4029  fi
     4030done
     4031  done
     4032IFS=$as_save_IFS
     4033
     4034fi
     4035fi
     4036JAVAC=$ac_cv_prog_JAVAC
     4037if test -n "$JAVAC"; then
     4038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4039$as_echo "$JAVAC" >&6; }
     4040else
     4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4042$as_echo "no" >&6; }
     4043fi
     4044
     4045
     4046  test -n "$JAVAC" && break
     4047done
     4048test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     4049
     4050  fi
     4051  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4052else
     4053  echo "Checking for javac... $JAVAC"
     4054fi
     4055
     4056
     4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     4058$as_echo_n "checking if $JAVAC works... " >&6; }
     4059if test "${ac_cv_prog_javac_works+set}" = set; then :
     4060  $as_echo_n "(cached) " >&6
     4061else
     4062
     4063JAVA_TEST=Test.java
     4064CLASS_TEST=Test.class
     4065cat << \EOF > $JAVA_TEST
     4066/* #line 4066 "configure" */
     4067public class Test {
     4068}
     4069EOF
     4070if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4071  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4072  (eval $ac_try) 2>&5
     4073  ac_status=$?
     4074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4075  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4076  ac_cv_prog_javac_works=yes
     4077else
     4078  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4079  echo "configure: failed program was:" >&5
     4080  cat $JAVA_TEST >&5
     4081fi
     4082rm -f $JAVA_TEST $CLASS_TEST
     4083
     4084fi
     4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4086$as_echo "$ac_cv_prog_javac_works" >&6; }
     4087if test "x$JAVACFLAGS" = x ; then
     4088  JAVACFLAGS="-source 1.4 -target 1.4"
     4089fi
     4090
     4091
     4092
     4093        fi
     4094fi
     4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     4096$as_echo_n "checking if $JAVA works... " >&6; }
     4097if test "${ac_cv_prog_java_works+set}" = set; then :
     4098  $as_echo_n "(cached) " >&6
     4099else
     4100
     4101JAVA_TEST=Test.java
     4102CLASS_TEST=Test.class
     4103TEST=Test
     4104cat << \EOF > $JAVA_TEST
     4105/* [#]line 4105 "configure" */
     4106public class Test {
     4107public static void main (String args[]) {
     4108        System.exit (0);
     4109} }
     4110EOF
     4111if test x$ac_cv_prog_uudecode_base64 != xyes; then
     4112        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4113  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4114  (eval $ac_try) 2>&5
     4115  ac_status=$?
     4116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4117  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     4118                :
     4119        else
     4120          echo "configure: failed program was:" >&5
     4121          cat $JAVA_TEST >&5
     4122          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4123        fi
     4124fi
     4125if { ac_try='$JAVA $JAVAFLAGS $TEST'
     4126  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4127  (eval $ac_try) 2>&5
     4128  ac_status=$?
     4129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4130  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4131  ac_cv_prog_java_works=yes
     4132else
     4133  echo "configure: failed program was:" >&5
     4134  cat $JAVA_TEST >&5
     4135  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4136fi
     4137rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     4138
     4139fi
     4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     4141$as_echo "$ac_cv_prog_java_works" >&6; }
     4142
     4143
     4144
     4145
     4146if test "x$JAVAC" = x ; then
     4147    if test "x$JAVAPREFIX" = x; then
     4148    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4149do
     4150  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4151set dummy $ac_prog; ac_word=$2
     4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4153$as_echo_n "checking for $ac_word... " >&6; }
     4154if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4155  $as_echo_n "(cached) " >&6
     4156else
     4157  if test -n "$JAVAC"; then
     4158  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4159else
     4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4161for as_dir in $PATH
     4162do
     4163  IFS=$as_save_IFS
     4164  test -z "$as_dir" && as_dir=.
     4165    for ac_exec_ext in '' $ac_executable_extensions; do
     4166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4167    ac_cv_prog_JAVAC="$ac_prog"
     4168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4169    break 2
     4170  fi
     4171done
     4172  done
     4173IFS=$as_save_IFS
     4174
     4175fi
     4176fi
     4177JAVAC=$ac_cv_prog_JAVAC
     4178if test -n "$JAVAC"; then
     4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4180$as_echo "$JAVAC" >&6; }
     4181else
     4182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4183$as_echo "no" >&6; }
     4184fi
     4185
     4186
     4187  test -n "$JAVAC" && break
     4188done
     4189
     4190  else
     4191    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4192do
     4193  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4194set dummy $ac_prog; ac_word=$2
     4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4196$as_echo_n "checking for $ac_word... " >&6; }
     4197if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4198  $as_echo_n "(cached) " >&6
     4199else
     4200  if test -n "$JAVAC"; then
     4201  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4202else
     4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4204for as_dir in $PATH
     4205do
     4206  IFS=$as_save_IFS
     4207  test -z "$as_dir" && as_dir=.
     4208    for ac_exec_ext in '' $ac_executable_extensions; do
     4209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4210    ac_cv_prog_JAVAC="$ac_prog"
     4211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4212    break 2
     4213  fi
     4214done
     4215  done
     4216IFS=$as_save_IFS
     4217
     4218fi
     4219fi
     4220JAVAC=$ac_cv_prog_JAVAC
     4221if test -n "$JAVAC"; then
     4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4223$as_echo "$JAVAC" >&6; }
     4224else
     4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4226$as_echo "no" >&6; }
     4227fi
     4228
     4229
     4230  test -n "$JAVAC" && break
     4231done
     4232test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     4233
     4234  fi
     4235  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4236else
     4237  echo "Checking for javac... $JAVAC"
     4238fi
     4239
     4240
     4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     4242$as_echo_n "checking if $JAVAC works... " >&6; }
     4243if test "${ac_cv_prog_javac_works+set}" = set; then :
     4244  $as_echo_n "(cached) " >&6
     4245else
     4246
     4247JAVA_TEST=Test.java
     4248CLASS_TEST=Test.class
     4249cat << \EOF > $JAVA_TEST
     4250/* #line 4250 "configure" */
     4251public class Test {
     4252}
     4253EOF
     4254if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4255  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4256  (eval $ac_try) 2>&5
     4257  ac_status=$?
     4258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4259  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4260  ac_cv_prog_javac_works=yes
     4261else
     4262  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4263  echo "configure: failed program was:" >&5
     4264  cat $JAVA_TEST >&5
     4265fi
     4266rm -f $JAVA_TEST $CLASS_TEST
     4267
     4268fi
     4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4270$as_echo "$ac_cv_prog_javac_works" >&6; }
     4271if test "x$JAVACFLAGS" = x ; then
     4272  JAVACFLAGS="-source 1.4 -target 1.4"
     4273fi
     4274
     4275
     4276
     4277fi
    30414278
    30424279
     
    30464283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    30474284ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3048 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4286$as_echo_n "checking how to run the C preprocessor... " >&6; }
    30504287# On Suns, sometimes $CPP names a directory.
    30514288if test -n "$CPP" && test -d "$CPP"; then
     
    30534290fi
    30544291if test -z "$CPP"; then
    3055   if test "${ac_cv_prog_CPP+set}" = set; then
    3056   echo $ECHO_N "(cached) $ECHO_C" >&6
     4292  if test "${ac_cv_prog_CPP+set}" = set; then :
     4293  $as_echo_n "(cached) " >&6
    30574294else
    30584295      # Double quotes because CPP needs to be expanded
     
    30684305  # On the NeXT, cc -E runs the code through the compiler's parser,
    30694306  # not just through cpp. "Syntax error" is here to catch this case.
    3070   cat >conftest.$ac_ext <<_ACEOF
    3071 /* confdefs.h.  */
    3072 _ACEOF
    3073 cat confdefs.h >>conftest.$ac_ext
    3074 cat >>conftest.$ac_ext <<_ACEOF
     4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    30754308/* end confdefs.h.  */
    30764309#ifdef __STDC__
     
    30814314             Syntax error
    30824315_ACEOF
    3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3085   ac_status=$?
    3086   grep -v '^ *+' conftest.er1 >conftest.err
    3087   rm -f conftest.er1
    3088   cat conftest.err >&5
    3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3090   (exit $ac_status); } >/dev/null; then
    3091   if test -s conftest.err; then
    3092     ac_cpp_err=$ac_c_preproc_warn_flag
    3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3094   else
    3095     ac_cpp_err=
    3096   fi
    3097 else
    3098   ac_cpp_err=yes
    3099 fi
    3100 if test -z "$ac_cpp_err"; then
    3101   :
    3102 else
    3103   echo "$as_me: failed program was:" >&5
    3104 sed 's/^/| /' conftest.$ac_ext >&5
    3105 
     4316if ac_fn_c_try_cpp "$LINENO"; then :
     4317
     4318else
    31064319  # Broken: fails on valid input.
    31074320continue
    31084321fi
    3109 rm -f conftest.err conftest.$ac_ext
    3110 
    3111   # OK, works on sane cases.  Now check whether non-existent headers
     4322rm -f conftest.err conftest.i conftest.$ac_ext
     4323
     4324  # OK, works on sane cases.  Now check whether nonexistent headers
    31124325  # can be detected and how.
    3113   cat >conftest.$ac_ext <<_ACEOF
    3114 /* confdefs.h.  */
    3115 _ACEOF
    3116 cat confdefs.h >>conftest.$ac_ext
    3117 cat >>conftest.$ac_ext <<_ACEOF
     4326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    31184327/* end confdefs.h.  */
    31194328#include <ac_nonexistent.h>
    31204329_ACEOF
    3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3123   ac_status=$?
    3124   grep -v '^ *+' conftest.er1 >conftest.err
    3125   rm -f conftest.er1
    3126   cat conftest.err >&5
    3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3128   (exit $ac_status); } >/dev/null; then
    3129   if test -s conftest.err; then
    3130     ac_cpp_err=$ac_c_preproc_warn_flag
    3131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3132   else
    3133     ac_cpp_err=
    3134   fi
    3135 else
    3136   ac_cpp_err=yes
    3137 fi
    3138 if test -z "$ac_cpp_err"; then
     4330if ac_fn_c_try_cpp "$LINENO"; then :
    31394331  # Broken: success on invalid input.
    31404332continue
    31414333else
    3142   echo "$as_me: failed program was:" >&5
    3143 sed 's/^/| /' conftest.$ac_ext >&5
    3144 
    31454334  # Passes both tests.
    31464335ac_preproc_ok=:
    31474336break
    31484337fi
    3149 rm -f conftest.err conftest.$ac_ext
     4338rm -f conftest.err conftest.i conftest.$ac_ext
    31504339
    31514340done
    31524341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3153 rm -f conftest.err conftest.$ac_ext
    3154 if $ac_preproc_ok; then
     4342rm -f conftest.i conftest.err conftest.$ac_ext
     4343if $ac_preproc_ok; then :
    31554344  break
    31564345fi
     
    31644353  ac_cv_prog_CPP=$CPP
    31654354fi
    3166 echo "$as_me:$LINENO: result: $CPP" >&5
    3167 echo "${ECHO_T}$CPP" >&6
     4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4356$as_echo "$CPP" >&6; }
    31684357ac_preproc_ok=false
    31694358for ac_c_preproc_warn_flag in '' yes
     
    31754364  # On the NeXT, cc -E runs the code through the compiler's parser,
    31764365  # not just through cpp. "Syntax error" is here to catch this case.
    3177   cat >conftest.$ac_ext <<_ACEOF
    3178 /* confdefs.h.  */
    3179 _ACEOF
    3180 cat confdefs.h >>conftest.$ac_ext
    3181 cat >>conftest.$ac_ext <<_ACEOF
     4366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    31824367/* end confdefs.h.  */
    31834368#ifdef __STDC__
     
    31884373             Syntax error
    31894374_ACEOF
    3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3192   ac_status=$?
    3193   grep -v '^ *+' conftest.er1 >conftest.err
    3194   rm -f conftest.er1
    3195   cat conftest.err >&5
    3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3197   (exit $ac_status); } >/dev/null; then
    3198   if test -s conftest.err; then
    3199     ac_cpp_err=$ac_c_preproc_warn_flag
    3200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3201   else
    3202     ac_cpp_err=
    3203   fi
    3204 else
    3205   ac_cpp_err=yes
    3206 fi
    3207 if test -z "$ac_cpp_err"; then
    3208   :
    3209 else
    3210   echo "$as_me: failed program was:" >&5
    3211 sed 's/^/| /' conftest.$ac_ext >&5
    3212 
     4375if ac_fn_c_try_cpp "$LINENO"; then :
     4376
     4377else
    32134378  # Broken: fails on valid input.
    32144379continue
    32154380fi
    3216 rm -f conftest.err conftest.$ac_ext
    3217 
    3218   # OK, works on sane cases.  Now check whether non-existent headers
     4381rm -f conftest.err conftest.i conftest.$ac_ext
     4382
     4383  # OK, works on sane cases.  Now check whether nonexistent headers
    32194384  # can be detected and how.
    3220   cat >conftest.$ac_ext <<_ACEOF
    3221 /* confdefs.h.  */
    3222 _ACEOF
    3223 cat confdefs.h >>conftest.$ac_ext
    3224 cat >>conftest.$ac_ext <<_ACEOF
     4385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32254386/* end confdefs.h.  */
    32264387#include <ac_nonexistent.h>
    32274388_ACEOF
    3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3230   ac_status=$?
    3231   grep -v '^ *+' conftest.er1 >conftest.err
    3232   rm -f conftest.er1
    3233   cat conftest.err >&5
    3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3235   (exit $ac_status); } >/dev/null; then
    3236   if test -s conftest.err; then
    3237     ac_cpp_err=$ac_c_preproc_warn_flag
    3238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3239   else
    3240     ac_cpp_err=
    3241   fi
    3242 else
    3243   ac_cpp_err=yes
    3244 fi
    3245 if test -z "$ac_cpp_err"; then
     4389if ac_fn_c_try_cpp "$LINENO"; then :
    32464390  # Broken: success on invalid input.
    32474391continue
    32484392else
    3249   echo "$as_me: failed program was:" >&5
    3250 sed 's/^/| /' conftest.$ac_ext >&5
    3251 
    32524393  # Passes both tests.
    32534394ac_preproc_ok=:
    32544395break
    32554396fi
    3256 rm -f conftest.err conftest.$ac_ext
     4397rm -f conftest.err conftest.i conftest.$ac_ext
    32574398
    32584399done
    32594400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3260 rm -f conftest.err conftest.$ac_ext
    3261 if $ac_preproc_ok; then
    3262   :
    3263 else
    3264   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3265 See \`config.log' for more details." >&5
    3266 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3267 See \`config.log' for more details." >&2;}
    3268    { (exit 1); exit 1; }; }
     4401rm -f conftest.i conftest.err conftest.$ac_ext
     4402if $ac_preproc_ok; then :
     4403
     4404else
     4405  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4407as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4408See \`config.log' for more details" "$LINENO" 5 ; }
    32694409fi
    32704410
     
    32764416
    32774417
    3278 echo "$as_me:$LINENO: checking for egrep" >&5
    3279 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3280 if test "${ac_cv_prog_egrep+set}" = set; then
    3281   echo $ECHO_N "(cached) $ECHO_C" >&6
    3282 else
    3283   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3284     then ac_cv_prog_egrep='grep -E'
    3285     else ac_cv_prog_egrep='egrep'
     4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4419$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4420if test "${ac_cv_path_GREP+set}" = set; then :
     4421  $as_echo_n "(cached) " >&6
     4422else
     4423  if test -z "$GREP"; then
     4424  ac_path_GREP_found=false
     4425  # Loop through the user's path and test for each of PROGNAME-LIST
     4426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4427for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4428do
     4429  IFS=$as_save_IFS
     4430  test -z "$as_dir" && as_dir=.
     4431    for ac_prog in grep ggrep; do
     4432    for ac_exec_ext in '' $ac_executable_extensions; do
     4433      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4434      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4435# Check for GNU ac_path_GREP and select it if it is found.
     4436  # Check for GNU $ac_path_GREP
     4437case `"$ac_path_GREP" --version 2>&1` in
     4438*GNU*)
     4439  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4440*)
     4441  ac_count=0
     4442  $as_echo_n 0123456789 >"conftest.in"
     4443  while :
     4444  do
     4445    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4446    mv "conftest.tmp" "conftest.in"
     4447    cp "conftest.in" "conftest.nl"
     4448    $as_echo 'GREP' >> "conftest.nl"
     4449    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4450    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4451    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4452    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4453      # Best one so far, save it but keep looking for a better one
     4454      ac_cv_path_GREP="$ac_path_GREP"
     4455      ac_path_GREP_max=$ac_count
    32864456    fi
    3287 fi
    3288 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3289 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3290  EGREP=$ac_cv_prog_egrep
    3291 
    3292 
    3293 
    3294 echo "$as_me:$LINENO: checking for AIX" >&5
    3295 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3296 cat >conftest.$ac_ext <<_ACEOF
    3297 /* confdefs.h.  */
    3298 _ACEOF
    3299 cat confdefs.h >>conftest.$ac_ext
    3300 cat >>conftest.$ac_ext <<_ACEOF
    3301 /* end confdefs.h.  */
    3302 #ifdef _AIX
    3303   yes
    3304 #endif
    3305 
    3306 _ACEOF
    3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3308   $EGREP "yes" >/dev/null 2>&1; then
    3309   echo "$as_me:$LINENO: result: yes" >&5
    3310 echo "${ECHO_T}yes" >&6
    3311 cat >>confdefs.h <<\_ACEOF
    3312 #define _ALL_SOURCE 1
    3313 _ACEOF
    3314 
    3315 else
    3316   echo "$as_me:$LINENO: result: no" >&5
    3317 echo "${ECHO_T}no" >&6
    3318 fi
    3319 rm -f conftest*
    3320 
    3321 
    3322 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3323 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3324 if test "${ac_cv_search_strerror+set}" = set; then
    3325   echo $ECHO_N "(cached) $ECHO_C" >&6
    3326 else
    3327   ac_func_search_save_LIBS=$LIBS
    3328 ac_cv_search_strerror=no
    3329 cat >conftest.$ac_ext <<_ACEOF
    3330 /* confdefs.h.  */
    3331 _ACEOF
    3332 cat confdefs.h >>conftest.$ac_ext
    3333 cat >>conftest.$ac_ext <<_ACEOF
    3334 /* end confdefs.h.  */
    3335 
    3336 /* Override any gcc2 internal prototype to avoid an error.  */
    3337 #ifdef __cplusplus
    3338 extern "C"
    3339 #endif
    3340 /* We use char because int might match the return type of a gcc2
    3341    builtin and then its argument prototype would still apply.  */
    3342 char strerror ();
    3343 int
    3344 main ()
    3345 {
    3346 strerror ();
    3347   ;
    3348   return 0;
    3349 }
    3350 _ACEOF
    3351 rm -f conftest.$ac_objext conftest$ac_exeext
    3352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3353   (eval $ac_link) 2>conftest.er1
    3354   ac_status=$?
    3355   grep -v '^ *+' conftest.er1 >conftest.err
    3356   rm -f conftest.er1
    3357   cat conftest.err >&5
    3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3359   (exit $ac_status); } &&
    3360      { ac_try='test -z "$ac_c_werror_flag"
    3361              || test ! -s conftest.err'
    3362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3363   (eval $ac_try) 2>&5
    3364   ac_status=$?
    3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3366   (exit $ac_status); }; } &&
    3367      { ac_try='test -s conftest$ac_exeext'
    3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3369   (eval $ac_try) 2>&5
    3370   ac_status=$?
    3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3372   (exit $ac_status); }; }; then
    3373   ac_cv_search_strerror="none required"
    3374 else
    3375   echo "$as_me: failed program was:" >&5
    3376 sed 's/^/| /' conftest.$ac_ext >&5
    3377 
    3378 fi
    3379 rm -f conftest.err conftest.$ac_objext \
    3380       conftest$ac_exeext conftest.$ac_ext
    3381 if test "$ac_cv_search_strerror" = no; then
    3382   for ac_lib in cposix; do
    3383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3384     cat >conftest.$ac_ext <<_ACEOF
    3385 /* confdefs.h.  */
    3386 _ACEOF
    3387 cat confdefs.h >>conftest.$ac_ext
    3388 cat >>conftest.$ac_ext <<_ACEOF
    3389 /* end confdefs.h.  */
    3390 
    3391 /* Override any gcc2 internal prototype to avoid an error.  */
    3392 #ifdef __cplusplus
    3393 extern "C"
    3394 #endif
    3395 /* We use char because int might match the return type of a gcc2
    3396    builtin and then its argument prototype would still apply.  */
    3397 char strerror ();
    3398 int
    3399 main ()
    3400 {
    3401 strerror ();
    3402   ;
    3403   return 0;
    3404 }
    3405 _ACEOF
    3406 rm -f conftest.$ac_objext conftest$ac_exeext
    3407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3408   (eval $ac_link) 2>conftest.er1
    3409   ac_status=$?
    3410   grep -v '^ *+' conftest.er1 >conftest.err
    3411   rm -f conftest.er1
    3412   cat conftest.err >&5
    3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3414   (exit $ac_status); } &&
    3415      { ac_try='test -z "$ac_c_werror_flag"
    3416              || test ! -s conftest.err'
    3417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3418   (eval $ac_try) 2>&5
    3419   ac_status=$?
    3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3421   (exit $ac_status); }; } &&
    3422      { ac_try='test -s conftest$ac_exeext'
    3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3424   (eval $ac_try) 2>&5
    3425   ac_status=$?
    3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3427   (exit $ac_status); }; }; then
    3428   ac_cv_search_strerror="-l$ac_lib"
    3429 break
    3430 else
    3431   echo "$as_me: failed program was:" >&5
    3432 sed 's/^/| /' conftest.$ac_ext >&5
    3433 
    3434 fi
    3435 rm -f conftest.err conftest.$ac_objext \
    3436       conftest$ac_exeext conftest.$ac_ext
     4457    # 10*(2^10) chars as input seems more than enough
     4458    test $ac_count -gt 10 && break
    34374459  done
    3438 fi
    3439 LIBS=$ac_func_search_save_LIBS
    3440 fi
    3441 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3442 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3443 if test "$ac_cv_search_strerror" != no; then
    3444   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3445 
    3446 fi
    3447 
    3448 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3449 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3450 if test "${ac_cv_header_stdc+set}" = set; then
    3451   echo $ECHO_N "(cached) $ECHO_C" >&6
    3452 else
    3453   cat >conftest.$ac_ext <<_ACEOF
    3454 /* confdefs.h.  */
    3455 _ACEOF
    3456 cat confdefs.h >>conftest.$ac_ext
    3457 cat >>conftest.$ac_ext <<_ACEOF
     4460  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4461esac
     4462
     4463      $ac_path_GREP_found && break 3
     4464    done
     4465  done
     4466  done
     4467IFS=$as_save_IFS
     4468  if test -z "$ac_cv_path_GREP"; then
     4469    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4470  fi
     4471else
     4472  ac_cv_path_GREP=$GREP
     4473fi
     4474
     4475fi
     4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4477$as_echo "$ac_cv_path_GREP" >&6; }
     4478 GREP="$ac_cv_path_GREP"
     4479
     4480
     4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4482$as_echo_n "checking for egrep... " >&6; }
     4483if test "${ac_cv_path_EGREP+set}" = set; then :
     4484  $as_echo_n "(cached) " >&6
     4485else
     4486  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4487   then ac_cv_path_EGREP="$GREP -E"
     4488   else
     4489     if test -z "$EGREP"; then
     4490  ac_path_EGREP_found=false
     4491  # Loop through the user's path and test for each of PROGNAME-LIST
     4492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4494do
     4495  IFS=$as_save_IFS
     4496  test -z "$as_dir" && as_dir=.
     4497    for ac_prog in egrep; do
     4498    for ac_exec_ext in '' $ac_executable_extensions; do
     4499      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4500      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4501# Check for GNU ac_path_EGREP and select it if it is found.
     4502  # Check for GNU $ac_path_EGREP
     4503case `"$ac_path_EGREP" --version 2>&1` in
     4504*GNU*)
     4505  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4506*)
     4507  ac_count=0
     4508  $as_echo_n 0123456789 >"conftest.in"
     4509  while :
     4510  do
     4511    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4512    mv "conftest.tmp" "conftest.in"
     4513    cp "conftest.in" "conftest.nl"
     4514    $as_echo 'EGREP' >> "conftest.nl"
     4515    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4516    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4517    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4518    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4519      # Best one so far, save it but keep looking for a better one
     4520      ac_cv_path_EGREP="$ac_path_EGREP"
     4521      ac_path_EGREP_max=$ac_count
     4522    fi
     4523    # 10*(2^10) chars as input seems more than enough
     4524    test $ac_count -gt 10 && break
     4525  done
     4526  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4527esac
     4528
     4529      $ac_path_EGREP_found && break 3
     4530    done
     4531  done
     4532  done
     4533IFS=$as_save_IFS
     4534  if test -z "$ac_cv_path_EGREP"; then
     4535    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4536  fi
     4537else
     4538  ac_cv_path_EGREP=$EGREP
     4539fi
     4540
     4541   fi
     4542fi
     4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4544$as_echo "$ac_cv_path_EGREP" >&6; }
     4545 EGREP="$ac_cv_path_EGREP"
     4546
     4547
     4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4549$as_echo_n "checking for ANSI C header files... " >&6; }
     4550if test "${ac_cv_header_stdc+set}" = set; then :
     4551  $as_echo_n "(cached) " >&6
     4552else
     4553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34584554/* end confdefs.h.  */
    34594555#include <stdlib.h>
     
    34704566}
    34714567_ACEOF
    3472 rm -f conftest.$ac_objext
    3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3474   (eval $ac_compile) 2>conftest.er1
    3475   ac_status=$?
    3476   grep -v '^ *+' conftest.er1 >conftest.err
    3477   rm -f conftest.er1
    3478   cat conftest.err >&5
    3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3480   (exit $ac_status); } &&
    3481      { ac_try='test -z "$ac_c_werror_flag"
    3482              || test ! -s conftest.err'
    3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3484   (eval $ac_try) 2>&5
    3485   ac_status=$?
    3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3487   (exit $ac_status); }; } &&
    3488      { ac_try='test -s conftest.$ac_objext'
    3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3490   (eval $ac_try) 2>&5
    3491   ac_status=$?
    3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3493   (exit $ac_status); }; }; then
     4568if ac_fn_c_try_compile "$LINENO"; then :
    34944569  ac_cv_header_stdc=yes
    34954570else
    3496   echo "$as_me: failed program was:" >&5
    3497 sed 's/^/| /' conftest.$ac_ext >&5
    3498 
    3499 ac_cv_header_stdc=no
    3500 fi
    3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4571  ac_cv_header_stdc=no
     4572fi
     4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    35024574
    35034575if test $ac_cv_header_stdc = yes; then
    35044576  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3505   cat >conftest.$ac_ext <<_ACEOF
    3506 /* confdefs.h.  */
    3507 _ACEOF
    3508 cat confdefs.h >>conftest.$ac_ext
    3509 cat >>conftest.$ac_ext <<_ACEOF
     4577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35104578/* end confdefs.h.  */
    35114579#include <string.h>
     
    35134581_ACEOF
    35144582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3515   $EGREP "memchr" >/dev/null 2>&1; then
    3516   :
     4583  $EGREP "memchr" >/dev/null 2>&1; then :
     4584
    35174585else
    35184586  ac_cv_header_stdc=no
     
    35244592if test $ac_cv_header_stdc = yes; then
    35254593  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3526   cat >conftest.$ac_ext <<_ACEOF
    3527 /* confdefs.h.  */
    3528 _ACEOF
    3529 cat confdefs.h >>conftest.$ac_ext
    3530 cat >>conftest.$ac_ext <<_ACEOF
     4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35314595/* end confdefs.h.  */
    35324596#include <stdlib.h>
     
    35344598_ACEOF
    35354599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3536   $EGREP "free" >/dev/null 2>&1; then
    3537   :
     4600  $EGREP "free" >/dev/null 2>&1; then :
     4601
    35384602else
    35394603  ac_cv_header_stdc=no
     
    35454609if test $ac_cv_header_stdc = yes; then
    35464610  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3547   if test "$cross_compiling" = yes; then
     4611  if test "$cross_compiling" = yes; then :
    35484612  :
    35494613else
    3550   cat >conftest.$ac_ext <<_ACEOF
    3551 /* confdefs.h.  */
    3552 _ACEOF
    3553 cat confdefs.h >>conftest.$ac_ext
    3554 cat >>conftest.$ac_ext <<_ACEOF
     4614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35554615/* end confdefs.h.  */
    35564616#include <ctype.h>
     4617#include <stdlib.h>
    35574618#if ((' ' & 0x0FF) == 0x020)
    35584619# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    35744635    if (XOR (islower (i), ISLOWER (i))
    35754636    || toupper (i) != TOUPPER (i))
    3576       exit(2);
    3577   exit (0);
     4637      return 2;
     4638  return 0;
    35784639}
    35794640_ACEOF
    3580 rm -f conftest$ac_exeext
    3581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3582   (eval $ac_link) 2>&5
    3583   ac_status=$?
    3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3587   (eval $ac_try) 2>&5
    3588   ac_status=$?
    3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3590   (exit $ac_status); }; }; then
    3591   :
    3592 else
    3593   echo "$as_me: program exited with status $ac_status" >&5
    3594 echo "$as_me: failed program was:" >&5
    3595 sed 's/^/| /' conftest.$ac_ext >&5
    3596 
    3597 ( exit $ac_status )
    3598 ac_cv_header_stdc=no
    3599 fi
    3600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3601 fi
    3602 fi
    3603 fi
    3604 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3605 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4641if ac_fn_c_try_run "$LINENO"; then :
     4642
     4643else
     4644  ac_cv_header_stdc=no
     4645fi
     4646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4647  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4648fi
     4649
     4650fi
     4651fi
     4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4653$as_echo "$ac_cv_header_stdc" >&6; }
    36064654if test $ac_cv_header_stdc = yes; then
    36074655
    3608 cat >>confdefs.h <<\_ACEOF
    3609 #define STDC_HEADERS 1
    3610 _ACEOF
     4656$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    36114657
    36124658fi
    36134659
    36144660# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3615 
    3616 
    3617 
    3618 
    3619 
    3620 
    3621 
    3622 
    3623 
    36244661for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    36254662          inttypes.h stdint.h unistd.h
    3626 do
    3627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3628 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3631   echo $ECHO_N "(cached) $ECHO_C" >&6
    3632 else
    3633   cat >conftest.$ac_ext <<_ACEOF
    3634 /* confdefs.h.  */
    3635 _ACEOF
    3636 cat confdefs.h >>conftest.$ac_ext
    3637 cat >>conftest.$ac_ext <<_ACEOF
     4663do :
     4664  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4665ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4666"
     4667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4668  cat >>confdefs.h <<_ACEOF
     4669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4670_ACEOF
     4671
     4672fi
     4673
     4674done
     4675
     4676
     4677
     4678  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     4679if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     4680  MINIX=yes
     4681else
     4682  MINIX=
     4683fi
     4684
     4685
     4686  if test "$MINIX" = yes; then
     4687
     4688$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     4689
     4690
     4691$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     4692
     4693
     4694$as_echo "#define _MINIX 1" >>confdefs.h
     4695
     4696  fi
     4697
     4698
     4699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     4700$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     4701if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     4702  $as_echo_n "(cached) " >&6
     4703else
     4704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    36384705/* end confdefs.h.  */
    3639 $ac_includes_default
    3640 
    3641 #include <$ac_header>
    3642 _ACEOF
    3643 rm -f conftest.$ac_objext
    3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3645   (eval $ac_compile) 2>conftest.er1
    3646   ac_status=$?
    3647   grep -v '^ *+' conftest.er1 >conftest.err
    3648   rm -f conftest.er1
    3649   cat conftest.err >&5
    3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3651   (exit $ac_status); } &&
    3652      { ac_try='test -z "$ac_c_werror_flag"
    3653              || test ! -s conftest.err'
    3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3655   (eval $ac_try) 2>&5
    3656   ac_status=$?
    3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3658   (exit $ac_status); }; } &&
    3659      { ac_try='test -s conftest.$ac_objext'
    3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3661   (eval $ac_try) 2>&5
    3662   ac_status=$?
    3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3664   (exit $ac_status); }; }; then
    3665   eval "$as_ac_Header=yes"
    3666 else
    3667   echo "$as_me: failed program was:" >&5
    3668 sed 's/^/| /' conftest.$ac_ext >&5
    3669 
    3670 eval "$as_ac_Header=no"
    3671 fi
    3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3673 fi
    3674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3677   cat >>confdefs.h <<_ACEOF
    3678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3679 _ACEOF
    3680 
    3681 fi
    3682 
     4706
     4707#     define __EXTENSIONS__ 1
     4708      $ac_includes_default
     4709int
     4710main ()
     4711{
     4712
     4713  ;
     4714  return 0;
     4715}
     4716_ACEOF
     4717if ac_fn_c_try_compile "$LINENO"; then :
     4718  ac_cv_safe_to_define___extensions__=yes
     4719else
     4720  ac_cv_safe_to_define___extensions__=no
     4721fi
     4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4723fi
     4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     4725$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     4726  test $ac_cv_safe_to_define___extensions__ = yes &&
     4727    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     4728
     4729  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     4730
     4731  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     4732
     4733  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     4734
     4735  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     4736
     4737
     4738
     4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     4740$as_echo_n "checking for library containing strerror... " >&6; }
     4741if test "${ac_cv_search_strerror+set}" = set; then :
     4742  $as_echo_n "(cached) " >&6
     4743else
     4744  ac_func_search_save_LIBS=$LIBS
     4745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4746/* end confdefs.h.  */
     4747
     4748/* Override any GCC internal prototype to avoid an error.
     4749   Use char because int might match the return type of a GCC
     4750   builtin and then its argument prototype would still apply.  */
     4751#ifdef __cplusplus
     4752extern "C"
     4753#endif
     4754char strerror ();
     4755int
     4756main ()
     4757{
     4758return strerror ();
     4759  ;
     4760  return 0;
     4761}
     4762_ACEOF
     4763for ac_lib in '' cposix; do
     4764  if test -z "$ac_lib"; then
     4765    ac_res="none required"
     4766  else
     4767    ac_res=-l$ac_lib
     4768    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4769  fi
     4770  if ac_fn_c_try_link "$LINENO"; then :
     4771  ac_cv_search_strerror=$ac_res
     4772fi
     4773rm -f core conftest.err conftest.$ac_objext \
     4774    conftest$ac_exeext
     4775  if test "${ac_cv_search_strerror+set}" = set; then :
     4776  break
     4777fi
    36834778done
    3684 
    3685 
    3686 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3687   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3688 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3689 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3690   echo $ECHO_N "(cached) $ECHO_C" >&6
    3691 fi
    3692 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3693 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3694 else
    3695   # Is the header compilable?
    3696 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3697 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3698 cat >conftest.$ac_ext <<_ACEOF
    3699 /* confdefs.h.  */
    3700 _ACEOF
    3701 cat confdefs.h >>conftest.$ac_ext
    3702 cat >>conftest.$ac_ext <<_ACEOF
    3703 /* end confdefs.h.  */
    3704 $ac_includes_default
    3705 #include <minix/config.h>
    3706 _ACEOF
    3707 rm -f conftest.$ac_objext
    3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3709   (eval $ac_compile) 2>conftest.er1
    3710   ac_status=$?
    3711   grep -v '^ *+' conftest.er1 >conftest.err
    3712   rm -f conftest.er1
    3713   cat conftest.err >&5
    3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3715   (exit $ac_status); } &&
    3716      { ac_try='test -z "$ac_c_werror_flag"
    3717              || test ! -s conftest.err'
    3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3719   (eval $ac_try) 2>&5
    3720   ac_status=$?
    3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3722   (exit $ac_status); }; } &&
    3723      { ac_try='test -s conftest.$ac_objext'
    3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3725   (eval $ac_try) 2>&5
    3726   ac_status=$?
    3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3728   (exit $ac_status); }; }; then
    3729   ac_header_compiler=yes
    3730 else
    3731   echo "$as_me: failed program was:" >&5
    3732 sed 's/^/| /' conftest.$ac_ext >&5
    3733 
    3734 ac_header_compiler=no
    3735 fi
    3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3738 echo "${ECHO_T}$ac_header_compiler" >&6
    3739 
    3740 # Is the header present?
    3741 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    3742 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    3743 cat >conftest.$ac_ext <<_ACEOF
    3744 /* confdefs.h.  */
    3745 _ACEOF
    3746 cat confdefs.h >>conftest.$ac_ext
    3747 cat >>conftest.$ac_ext <<_ACEOF
    3748 /* end confdefs.h.  */
    3749 #include <minix/config.h>
    3750 _ACEOF
    3751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3753   ac_status=$?
    3754   grep -v '^ *+' conftest.er1 >conftest.err
    3755   rm -f conftest.er1
    3756   cat conftest.err >&5
    3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3758   (exit $ac_status); } >/dev/null; then
    3759   if test -s conftest.err; then
    3760     ac_cpp_err=$ac_c_preproc_warn_flag
    3761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3762   else
    3763     ac_cpp_err=
    3764   fi
    3765 else
    3766   ac_cpp_err=yes
    3767 fi
    3768 if test -z "$ac_cpp_err"; then
    3769   ac_header_preproc=yes
    3770 else
    3771   echo "$as_me: failed program was:" >&5
    3772 sed 's/^/| /' conftest.$ac_ext >&5
    3773 
    3774   ac_header_preproc=no
    3775 fi
    3776 rm -f conftest.err conftest.$ac_ext
    3777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3778 echo "${ECHO_T}$ac_header_preproc" >&6
    3779 
    3780 # So?  What about this header?
    3781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3782   yes:no: )
    3783     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    3784 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3785     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    3786 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    3787     ac_header_preproc=yes
    3788     ;;
    3789   no:yes:* )
    3790     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    3791 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    3792     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    3793 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    3794     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    3795 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    3796     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    3797 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    3798     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    3799 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    3800     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    3801 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    3802     (
    3803       cat <<\_ASBOX
    3804 ## ------------------------------------------ ##
    3805 ## Report this to the AC_PACKAGE_NAME lists.  ##
    3806 ## ------------------------------------------ ##
    3807 _ASBOX
    3808     ) |
    3809       sed "s/^/$as_me: WARNING:     /" >&2
    3810     ;;
    3811 esac
    3812 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3813 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3814 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3815   echo $ECHO_N "(cached) $ECHO_C" >&6
    3816 else
    3817   ac_cv_header_minix_config_h=$ac_header_preproc
    3818 fi
    3819 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3820 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3821 
    3822 fi
    3823 if test $ac_cv_header_minix_config_h = yes; then
    3824   MINIX=yes
    3825 else
    3826   MINIX=
    3827 fi
    3828 
    3829 
    3830 if test "$MINIX" = yes; then
    3831 
    3832 cat >>confdefs.h <<\_ACEOF
    3833 #define _POSIX_SOURCE 1
    3834 _ACEOF
    3835 
    3836 
    3837 cat >>confdefs.h <<\_ACEOF
    3838 #define _POSIX_1_SOURCE 2
    3839 _ACEOF
    3840 
    3841 
    3842 cat >>confdefs.h <<\_ACEOF
    3843 #define _MINIX 1
    3844 _ACEOF
    3845 
    3846 fi
    3847 
    3848 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    3849 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    3850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    3851   echo $ECHO_N "(cached) $ECHO_C" >&6
     4779if test "${ac_cv_search_strerror+set}" = set; then :
     4780
     4781else
     4782  ac_cv_search_strerror=no
     4783fi
     4784rm conftest.$ac_ext
     4785LIBS=$ac_func_search_save_LIBS
     4786fi
     4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     4788$as_echo "$ac_cv_search_strerror" >&6; }
     4789ac_res=$ac_cv_search_strerror
     4790if test "$ac_res" != no; then :
     4791  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     4792
     4793fi
     4794
     4795
     4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     4797$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     4798if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     4799  $as_echo_n "(cached) " >&6
    38524800else
    38534801  ac_cv_prog_cc_stdc=no
     
    38624810do
    38634811  CFLAGS="$ac_save_CFLAGS $ac_arg"
    3864   cat >conftest.$ac_ext <<_ACEOF
    3865 /* confdefs.h.  */
    3866 _ACEOF
    3867 cat confdefs.h >>conftest.$ac_ext
    3868 cat >>conftest.$ac_ext <<_ACEOF
     4812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38694813/* end confdefs.h.  */
    38704814#if !defined(__STDC__) || __STDC__ != 1
     
    38824826}
    38834827_ACEOF
    3884 rm -f conftest.$ac_objext
    3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3886   (eval $ac_compile) 2>conftest.er1
    3887   ac_status=$?
    3888   grep -v '^ *+' conftest.er1 >conftest.err
    3889   rm -f conftest.er1
    3890   cat conftest.err >&5
    3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3892   (exit $ac_status); } &&
    3893      { ac_try='test -z "$ac_c_werror_flag"
    3894              || test ! -s conftest.err'
    3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3896   (eval $ac_try) 2>&5
    3897   ac_status=$?
    3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3899   (exit $ac_status); }; } &&
    3900      { ac_try='test -s conftest.$ac_objext'
    3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3902   (eval $ac_try) 2>&5
    3903   ac_status=$?
    3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3905   (exit $ac_status); }; }; then
     4828if ac_fn_c_try_compile "$LINENO"; then :
    39064829  ac_cv_prog_cc_stdc="$ac_arg"; break
    3907 else
    3908   echo "$as_me: failed program was:" >&5
    3909 sed 's/^/| /' conftest.$ac_ext >&5
    3910 
    3911 fi
    3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4830fi
     4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    39134832done
    39144833CFLAGS="$ac_save_CFLAGS"
     
    39164835fi
    39174836
    3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    3919 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     4838$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    39204839case "x$ac_cv_prog_cc_stdc" in
    39214840  x|xno) ;;
     
    39244843
    39254844
    3926 echo "$as_me:$LINENO: checking for function prototypes" >&5
    3927 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     4846$as_echo_n "checking for function prototypes... " >&6; }
    39284847if test "$ac_cv_prog_cc_stdc" != no; then
    3929   echo "$as_me:$LINENO: result: yes" >&5
    3930 echo "${ECHO_T}yes" >&6
    3931   cat >>confdefs.h <<\_ACEOF
    3932 #define PROTOTYPES 1
    3933 _ACEOF
     4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4849$as_echo "yes" >&6; }
     4850  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    39344851
    39354852  U= ANSI2KNR=
    39364853else
    3937   echo "$as_me:$LINENO: result: no" >&5
    3938 echo "${ECHO_T}no" >&6
     4854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4855$as_echo "no" >&6; }
    39394856  U=_ ANSI2KNR=ansi2knr
    39404857fi
    39414858
    3942 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    3943 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    3944 if test "${ac_cv_c_const+set}" = set; then
    3945   echo $ECHO_N "(cached) $ECHO_C" >&6
    3946 else
    3947   cat >conftest.$ac_ext <<_ACEOF
    3948 /* confdefs.h.  */
    3949 _ACEOF
    3950 cat confdefs.h >>conftest.$ac_ext
    3951 cat >>conftest.$ac_ext <<_ACEOF
     4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     4860$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     4861if test "${ac_cv_c_const+set}" = set; then :
     4862  $as_echo_n "(cached) " >&6
     4863else
     4864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39524865/* end confdefs.h.  */
    39534866
     
    39594872  /* Ultrix mips cc rejects this.  */
    39604873  typedef int charset[2];
    3961   const charset x;
     4874  const charset cs;
    39624875  /* SunOS 4.1.1 cc rejects this.  */
    3963   char const *const *ccp;
    3964   char **p;
     4876  char const *const *pcpcc;
     4877  char **ppc;
    39654878  /* NEC SVR4.0.2 mips cc rejects this.  */
    39664879  struct point {int x, y;};
     
    39714884     expression */
    39724885  const char *g = "string";
    3973   ccp = &g + (g ? g-g : 0);
     4886  pcpcc = &g + (g ? g-g : 0);
    39744887  /* HPUX 7.0 cc rejects these. */
    3975   ++ccp;
    3976   p = (char**) ccp;
    3977   ccp = (char const *const *) p;
     4888  ++pcpcc;
     4889  ppc = (char**) pcpcc;
     4890  pcpcc = (char const *const *) ppc;
    39784891  { /* SCO 3.2v4 cc rejects this.  */
    39794892    char *t;
     
    39814894
    39824895    *t++ = 0;
     4896    if (s) return 0;
    39834897  }
    39844898  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    39994913  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    40004914    const int foo = 10;
     4915    if (!foo) return 0;
    40014916  }
     4917  return !cs[0] && !zero.x;
    40024918#endif
    40034919
     
    40064922}
    40074923_ACEOF
    4008 rm -f conftest.$ac_objext
    4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4010   (eval $ac_compile) 2>conftest.er1
    4011   ac_status=$?
    4012   grep -v '^ *+' conftest.er1 >conftest.err
    4013   rm -f conftest.er1
    4014   cat conftest.err >&5
    4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4016   (exit $ac_status); } &&
    4017      { ac_try='test -z "$ac_c_werror_flag"
    4018              || test ! -s conftest.err'
    4019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4020   (eval $ac_try) 2>&5
    4021   ac_status=$?
    4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4023   (exit $ac_status); }; } &&
    4024      { ac_try='test -s conftest.$ac_objext'
    4025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4026   (eval $ac_try) 2>&5
    4027   ac_status=$?
    4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4029   (exit $ac_status); }; }; then
     4924if ac_fn_c_try_compile "$LINENO"; then :
    40304925  ac_cv_c_const=yes
    40314926else
    4032   echo "$as_me: failed program was:" >&5
    4033 sed 's/^/| /' conftest.$ac_ext >&5
    4034 
    4035 ac_cv_c_const=no
    4036 fi
    4037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4038 fi
    4039 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4040 echo "${ECHO_T}$ac_cv_c_const" >&6
     4927  ac_cv_c_const=no
     4928fi
     4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4930fi
     4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     4932$as_echo "$ac_cv_c_const" >&6; }
    40414933if test $ac_cv_c_const = no; then
    40424934
    4043 cat >>confdefs.h <<\_ACEOF
    4044 #define const
    4045 _ACEOF
    4046 
    4047 fi
    4048 
    4049 echo "$as_me:$LINENO: checking for off_t" >&5
    4050 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4051 if test "${ac_cv_type_off_t+set}" = set; then
    4052   echo $ECHO_N "(cached) $ECHO_C" >&6
    4053 else
    4054   cat >conftest.$ac_ext <<_ACEOF
    4055 /* confdefs.h.  */
    4056 _ACEOF
    4057 cat confdefs.h >>conftest.$ac_ext
    4058 cat >>conftest.$ac_ext <<_ACEOF
    4059 /* end confdefs.h.  */
    4060 $ac_includes_default
    4061 int
    4062 main ()
    4063 {
    4064 if ((off_t *) 0)
    4065   return 0;
    4066 if (sizeof (off_t))
    4067   return 0;
    4068   ;
    4069   return 0;
    4070 }
    4071 _ACEOF
    4072 rm -f conftest.$ac_objext
    4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4074   (eval $ac_compile) 2>conftest.er1
    4075   ac_status=$?
    4076   grep -v '^ *+' conftest.er1 >conftest.err
    4077   rm -f conftest.er1
    4078   cat conftest.err >&5
    4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4080   (exit $ac_status); } &&
    4081      { ac_try='test -z "$ac_c_werror_flag"
    4082              || test ! -s conftest.err'
    4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4084   (eval $ac_try) 2>&5
    4085   ac_status=$?
    4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4087   (exit $ac_status); }; } &&
    4088      { ac_try='test -s conftest.$ac_objext'
    4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4090   (eval $ac_try) 2>&5
    4091   ac_status=$?
    4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4093   (exit $ac_status); }; }; then
    4094   ac_cv_type_off_t=yes
    4095 else
    4096   echo "$as_me: failed program was:" >&5
    4097 sed 's/^/| /' conftest.$ac_ext >&5
    4098 
    4099 ac_cv_type_off_t=no
    4100 fi
    4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4102 fi
    4103 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4104 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4105 if test $ac_cv_type_off_t = yes; then
    4106   :
     4935$as_echo "#define const /**/" >>confdefs.h
     4936
     4937fi
     4938
     4939ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     4940if test "x$ac_cv_type_off_t" = x""yes; then :
     4941
    41074942else
    41084943
    41094944cat >>confdefs.h <<_ACEOF
    4110 #define off_t long
    4111 _ACEOF
    4112 
    4113 fi
    4114 
    4115 echo "$as_me:$LINENO: checking for size_t" >&5
    4116 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4117 if test "${ac_cv_type_size_t+set}" = set; then
    4118   echo $ECHO_N "(cached) $ECHO_C" >&6
    4119 else
    4120   cat >conftest.$ac_ext <<_ACEOF
    4121 /* confdefs.h.  */
    4122 _ACEOF
    4123 cat confdefs.h >>conftest.$ac_ext
    4124 cat >>conftest.$ac_ext <<_ACEOF
    4125 /* end confdefs.h.  */
    4126 $ac_includes_default
    4127 int
    4128 main ()
    4129 {
    4130 if ((size_t *) 0)
    4131   return 0;
    4132 if (sizeof (size_t))
    4133   return 0;
    4134   ;
    4135   return 0;
    4136 }
    4137 _ACEOF
    4138 rm -f conftest.$ac_objext
    4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4140   (eval $ac_compile) 2>conftest.er1
    4141   ac_status=$?
    4142   grep -v '^ *+' conftest.er1 >conftest.err
    4143   rm -f conftest.er1
    4144   cat conftest.err >&5
    4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4146   (exit $ac_status); } &&
    4147      { ac_try='test -z "$ac_c_werror_flag"
    4148              || test ! -s conftest.err'
    4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4150   (eval $ac_try) 2>&5
    4151   ac_status=$?
    4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4153   (exit $ac_status); }; } &&
    4154      { ac_try='test -s conftest.$ac_objext'
    4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4156   (eval $ac_try) 2>&5
    4157   ac_status=$?
    4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4159   (exit $ac_status); }; }; then
    4160   ac_cv_type_size_t=yes
    4161 else
    4162   echo "$as_me: failed program was:" >&5
    4163 sed 's/^/| /' conftest.$ac_ext >&5
    4164 
    4165 ac_cv_type_size_t=no
    4166 fi
    4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4168 fi
    4169 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4170 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4171 if test $ac_cv_type_size_t = yes; then
    4172   :
     4945#define off_t long int
     4946_ACEOF
     4947
     4948fi
     4949
     4950ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     4951if test "x$ac_cv_type_size_t" = x""yes; then :
     4952
    41734953else
    41744954
    41754955cat >>confdefs.h <<_ACEOF
    4176 #define size_t unsigned
    4177 _ACEOF
    4178 
    4179 fi
    4180 
    4181 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4182 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4183 if test "${ac_cv_header_time+set}" = set; then
    4184   echo $ECHO_N "(cached) $ECHO_C" >&6
    4185 else
    4186   cat >conftest.$ac_ext <<_ACEOF
    4187 /* confdefs.h.  */
    4188 _ACEOF
    4189 cat confdefs.h >>conftest.$ac_ext
    4190 cat >>conftest.$ac_ext <<_ACEOF
     4956#define size_t unsigned int
     4957_ACEOF
     4958
     4959fi
     4960
     4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     4962$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     4963if test "${ac_cv_header_time+set}" = set; then :
     4964  $as_echo_n "(cached) " >&6
     4965else
     4966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    41914967/* end confdefs.h.  */
    41924968#include <sys/types.h>
     
    42034979}
    42044980_ACEOF
    4205 rm -f conftest.$ac_objext
    4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4207   (eval $ac_compile) 2>conftest.er1
    4208   ac_status=$?
    4209   grep -v '^ *+' conftest.er1 >conftest.err
    4210   rm -f conftest.er1
    4211   cat conftest.err >&5
    4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4213   (exit $ac_status); } &&
    4214      { ac_try='test -z "$ac_c_werror_flag"
    4215              || test ! -s conftest.err'
    4216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4217   (eval $ac_try) 2>&5
    4218   ac_status=$?
    4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4220   (exit $ac_status); }; } &&
    4221      { ac_try='test -s conftest.$ac_objext'
    4222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4223   (eval $ac_try) 2>&5
    4224   ac_status=$?
    4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4226   (exit $ac_status); }; }; then
     4981if ac_fn_c_try_compile "$LINENO"; then :
    42274982  ac_cv_header_time=yes
    42284983else
    4229   echo "$as_me: failed program was:" >&5
    4230 sed 's/^/| /' conftest.$ac_ext >&5
    4231 
    4232 ac_cv_header_time=no
    4233 fi
    4234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4235 fi
    4236 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4237 echo "${ECHO_T}$ac_cv_header_time" >&6
     4984  ac_cv_header_time=no
     4985fi
     4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4987fi
     4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     4989$as_echo "$ac_cv_header_time" >&6; }
    42384990if test $ac_cv_header_time = yes; then
    42394991
    4240 cat >>confdefs.h <<\_ACEOF
    4241 #define TIME_WITH_SYS_TIME 1
    4242 _ACEOF
    4243 
    4244 fi
    4245 
    4246 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4247 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4248 if test "${ac_cv_struct_tm+set}" = set; then
    4249   echo $ECHO_N "(cached) $ECHO_C" >&6
    4250 else
    4251   cat >conftest.$ac_ext <<_ACEOF
    4252 /* confdefs.h.  */
    4253 _ACEOF
    4254 cat confdefs.h >>conftest.$ac_ext
    4255 cat >>conftest.$ac_ext <<_ACEOF
     4992$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     4993
     4994fi
     4995
     4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     4997$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     4998if test "${ac_cv_struct_tm+set}" = set; then :
     4999  $as_echo_n "(cached) " >&6
     5000else
     5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42565002/* end confdefs.h.  */
    42575003#include <sys/types.h>
     
    42615007main ()
    42625008{
    4263 struct tm *tp; tp->tm_sec;
     5009struct tm tm;
     5010                     int *p = &tm.tm_sec;
     5011                     return !p;
    42645012  ;
    42655013  return 0;
    42665014}
    42675015_ACEOF
    4268 rm -f conftest.$ac_objext
    4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4270   (eval $ac_compile) 2>conftest.er1
    4271   ac_status=$?
    4272   grep -v '^ *+' conftest.er1 >conftest.err
    4273   rm -f conftest.er1
    4274   cat conftest.err >&5
    4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4276   (exit $ac_status); } &&
    4277      { ac_try='test -z "$ac_c_werror_flag"
    4278              || test ! -s conftest.err'
    4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4280   (eval $ac_try) 2>&5
    4281   ac_status=$?
    4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4283   (exit $ac_status); }; } &&
    4284      { ac_try='test -s conftest.$ac_objext'
    4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4286   (eval $ac_try) 2>&5
    4287   ac_status=$?
    4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4289   (exit $ac_status); }; }; then
     5016if ac_fn_c_try_compile "$LINENO"; then :
    42905017  ac_cv_struct_tm=time.h
    42915018else
    4292   echo "$as_me: failed program was:" >&5
    4293 sed 's/^/| /' conftest.$ac_ext >&5
    4294 
    4295 ac_cv_struct_tm=sys/time.h
    4296 fi
    4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4298 fi
    4299 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4300 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5019  ac_cv_struct_tm=sys/time.h
     5020fi
     5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5022fi
     5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5024$as_echo "$ac_cv_struct_tm" >&6; }
    43015025if test $ac_cv_struct_tm = sys/time.h; then
    43025026
    4303 cat >>confdefs.h <<\_ACEOF
    4304 #define TM_IN_SYS_TIME 1
    4305 _ACEOF
     5027$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    43065028
    43075029fi
     
    43095031
    43105032if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4311 cat >conftest.$ac_ext <<_ACEOF
    4312 /* confdefs.h.  */
    4313 _ACEOF
    4314 cat confdefs.h >>conftest.$ac_ext
    4315 cat >>conftest.$ac_ext <<_ACEOF
     5033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43165034/* end confdefs.h.  */
    43175035#include <stdio.h>
     
    43255043}
    43265044_ACEOF
    4327 rm -f conftest.$ac_objext
    4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4329   (eval $ac_compile) 2>conftest.er1
    4330   ac_status=$?
    4331   grep -v '^ *+' conftest.er1 >conftest.err
    4332   rm -f conftest.er1
    4333   cat conftest.err >&5
    4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4335   (exit $ac_status); } &&
    4336      { ac_try='test -z "$ac_c_werror_flag"
    4337              || test ! -s conftest.err'
    4338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4339   (eval $ac_try) 2>&5
    4340   ac_status=$?
    4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4342   (exit $ac_status); }; } &&
    4343      { ac_try='test -s conftest.$ac_objext'
    4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4345   (eval $ac_try) 2>&5
    4346   ac_status=$?
    4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4348   (exit $ac_status); }; }; then
    4349   :
    4350 else
    4351   echo "$as_me: failed program was:" >&5
    4352 sed 's/^/| /' conftest.$ac_ext >&5
    4353 
    4354 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4355 fi
    4356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4357 fi
    4358 
    4359 
    4360 
    4361 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4362 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4363 if test "${ac_cv_lib_m_main+set}" = set; then
    4364   echo $ECHO_N "(cached) $ECHO_C" >&6
     5045if ac_fn_c_try_compile "$LINENO"; then :
     5046
     5047else
     5048  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5049fi
     5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5051fi
     5052
     5053
     5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5055$as_echo_n "checking for main in -lm... " >&6; }
     5056if test "${ac_cv_lib_m_main+set}" = set; then :
     5057  $as_echo_n "(cached) " >&6
    43655058else
    43665059  ac_check_lib_save_LIBS=$LIBS
    43675060LIBS="-lm  $LIBS"
    4368 cat >conftest.$ac_ext <<_ACEOF
    4369 /* confdefs.h.  */
    4370 _ACEOF
    4371 cat confdefs.h >>conftest.$ac_ext
    4372 cat >>conftest.$ac_ext <<_ACEOF
     5061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43735062/* end confdefs.h.  */
    43745063
     
    43775066main ()
    43785067{
    4379 main ();
     5068return main ();
    43805069  ;
    43815070  return 0;
    43825071}
    43835072_ACEOF
    4384 rm -f conftest.$ac_objext conftest$ac_exeext
    4385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4386   (eval $ac_link) 2>conftest.er1
    4387   ac_status=$?
    4388   grep -v '^ *+' conftest.er1 >conftest.err
    4389   rm -f conftest.er1
    4390   cat conftest.err >&5
    4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4392   (exit $ac_status); } &&
    4393      { ac_try='test -z "$ac_c_werror_flag"
    4394              || test ! -s conftest.err'
    4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4396   (eval $ac_try) 2>&5
    4397   ac_status=$?
    4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4399   (exit $ac_status); }; } &&
    4400      { ac_try='test -s conftest$ac_exeext'
    4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4402   (eval $ac_try) 2>&5
    4403   ac_status=$?
    4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4405   (exit $ac_status); }; }; then
     5073if ac_fn_c_try_link "$LINENO"; then :
    44065074  ac_cv_lib_m_main=yes
    44075075else
    4408   echo "$as_me: failed program was:" >&5
    4409 sed 's/^/| /' conftest.$ac_ext >&5
    4410 
    4411 ac_cv_lib_m_main=no
    4412 fi
    4413 rm -f conftest.err conftest.$ac_objext \
    4414       conftest$ac_exeext conftest.$ac_ext
     5076  ac_cv_lib_m_main=no
     5077fi
     5078rm -f core conftest.err conftest.$ac_objext \
     5079    conftest$ac_exeext conftest.$ac_ext
    44155080LIBS=$ac_check_lib_save_LIBS
    44165081fi
    4417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4418 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4419 if test $ac_cv_lib_m_main = yes; then
     5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5083$as_echo "$ac_cv_lib_m_main" >&6; }
     5084if test "x$ac_cv_lib_m_main" = x""yes; then :
    44205085  cat >>confdefs.h <<_ACEOF
    44215086#define HAVE_LIBM 1
     
    44275092
    44285093
    4429 
    4430 
    4431 
    4432 
    4433 
    44345094ac_header_dirent=no
    44355095for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4436   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4437 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4438 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4440   echo $ECHO_N "(cached) $ECHO_C" >&6
    4441 else
    4442   cat >conftest.$ac_ext <<_ACEOF
    4443 /* confdefs.h.  */
    4444 _ACEOF
    4445 cat confdefs.h >>conftest.$ac_ext
    4446 cat >>conftest.$ac_ext <<_ACEOF
     5096  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5098$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5099if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5100  $as_echo_n "(cached) " >&6
     5101else
     5102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44475103/* end confdefs.h.  */
    44485104#include <sys/types.h>
     
    44585114}
    44595115_ACEOF
    4460 rm -f conftest.$ac_objext
    4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4462   (eval $ac_compile) 2>conftest.er1
    4463   ac_status=$?
    4464   grep -v '^ *+' conftest.er1 >conftest.err
    4465   rm -f conftest.er1
    4466   cat conftest.err >&5
    4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4468   (exit $ac_status); } &&
    4469      { ac_try='test -z "$ac_c_werror_flag"
    4470              || test ! -s conftest.err'
    4471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4472   (eval $ac_try) 2>&5
    4473   ac_status=$?
    4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4475   (exit $ac_status); }; } &&
    4476      { ac_try='test -s conftest.$ac_objext'
    4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4478   (eval $ac_try) 2>&5
    4479   ac_status=$?
    4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4481   (exit $ac_status); }; }; then
     5116if ac_fn_c_try_compile "$LINENO"; then :
    44825117  eval "$as_ac_Header=yes"
    44835118else
    4484   echo "$as_me: failed program was:" >&5
    4485 sed 's/^/| /' conftest.$ac_ext >&5
    4486 
    4487 eval "$as_ac_Header=no"
    4488 fi
    4489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4490 fi
    4491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5119  eval "$as_ac_Header=no"
     5120fi
     5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5122fi
     5123eval ac_res=\$$as_ac_Header
     5124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5125$as_echo "$ac_res" >&6; }
     5126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    44945127  cat >>confdefs.h <<_ACEOF
    4495 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5128#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    44965129_ACEOF
    44975130
     
    45025135# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    45035136if test $ac_header_dirent = dirent.h; then
    4504   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4505 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4506 if test "${ac_cv_search_opendir+set}" = set; then
    4507   echo $ECHO_N "(cached) $ECHO_C" >&6
     5137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5138$as_echo_n "checking for library containing opendir... " >&6; }
     5139if test "${ac_cv_search_opendir+set}" = set; then :
     5140  $as_echo_n "(cached) " >&6
    45085141else
    45095142  ac_func_search_save_LIBS=$LIBS
    4510 ac_cv_search_opendir=no
    4511 cat >conftest.$ac_ext <<_ACEOF
    4512 /* confdefs.h.  */
    4513 _ACEOF
    4514 cat confdefs.h >>conftest.$ac_ext
    4515 cat >>conftest.$ac_ext <<_ACEOF
     5143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45165144/* end confdefs.h.  */
    45175145
    4518 /* Override any gcc2 internal prototype to avoid an error.  */
     5146/* Override any GCC internal prototype to avoid an error.
     5147   Use char because int might match the return type of a GCC
     5148   builtin and then its argument prototype would still apply.  */
    45195149#ifdef __cplusplus
    45205150extern "C"
    45215151#endif
    4522 /* We use char because int might match the return type of a gcc2
    4523    builtin and then its argument prototype would still apply.  */
    45245152char opendir ();
    45255153int
    45265154main ()
    45275155{
    4528 opendir ();
     5156return opendir ();
    45295157  ;
    45305158  return 0;
    45315159}
    45325160_ACEOF
    4533 rm -f conftest.$ac_objext conftest$ac_exeext
    4534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4535   (eval $ac_link) 2>conftest.er1
    4536   ac_status=$?
    4537   grep -v '^ *+' conftest.er1 >conftest.err
    4538   rm -f conftest.er1
    4539   cat conftest.err >&5
    4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4541   (exit $ac_status); } &&
    4542      { ac_try='test -z "$ac_c_werror_flag"
    4543              || test ! -s conftest.err'
    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); }; } &&
    4549      { ac_try='test -s conftest$ac_exeext'
    4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4551   (eval $ac_try) 2>&5
    4552   ac_status=$?
    4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4554   (exit $ac_status); }; }; then
    4555   ac_cv_search_opendir="none required"
    4556 else
    4557   echo "$as_me: failed program was:" >&5
    4558 sed 's/^/| /' conftest.$ac_ext >&5
    4559 
    4560 fi
    4561 rm -f conftest.err conftest.$ac_objext \
    4562       conftest$ac_exeext conftest.$ac_ext
    4563 if test "$ac_cv_search_opendir" = no; then
    4564   for ac_lib in dir; do
     5161for ac_lib in '' dir; do
     5162  if test -z "$ac_lib"; then
     5163    ac_res="none required"
     5164  else
     5165    ac_res=-l$ac_lib
    45655166    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4566     cat >conftest.$ac_ext <<_ACEOF
    4567 /* confdefs.h.  */
    4568 _ACEOF
    4569 cat confdefs.h >>conftest.$ac_ext
    4570 cat >>conftest.$ac_ext <<_ACEOF
     5167  fi
     5168  if ac_fn_c_try_link "$LINENO"; then :
     5169  ac_cv_search_opendir=$ac_res
     5170fi
     5171rm -f core conftest.err conftest.$ac_objext \
     5172    conftest$ac_exeext
     5173  if test "${ac_cv_search_opendir+set}" = set; then :
     5174  break
     5175fi
     5176done
     5177if test "${ac_cv_search_opendir+set}" = set; then :
     5178
     5179else
     5180  ac_cv_search_opendir=no
     5181fi
     5182rm conftest.$ac_ext
     5183LIBS=$ac_func_search_save_LIBS
     5184fi
     5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5186$as_echo "$ac_cv_search_opendir" >&6; }
     5187ac_res=$ac_cv_search_opendir
     5188if test "$ac_res" != no; then :
     5189  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5190
     5191fi
     5192
     5193else
     5194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5195$as_echo_n "checking for library containing opendir... " >&6; }
     5196if test "${ac_cv_search_opendir+set}" = set; then :
     5197  $as_echo_n "(cached) " >&6
     5198else
     5199  ac_func_search_save_LIBS=$LIBS
     5200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45715201/* end confdefs.h.  */
    45725202
    4573 /* Override any gcc2 internal prototype to avoid an error.  */
     5203/* Override any GCC internal prototype to avoid an error.
     5204   Use char because int might match the return type of a GCC
     5205   builtin and then its argument prototype would still apply.  */
    45745206#ifdef __cplusplus
    45755207extern "C"
    45765208#endif
    4577 /* We use char because int might match the return type of a gcc2
    4578    builtin and then its argument prototype would still apply.  */
    45795209char opendir ();
    45805210int
    45815211main ()
    45825212{
    4583 opendir ();
     5213return opendir ();
    45845214  ;
    45855215  return 0;
    45865216}
    45875217_ACEOF
    4588 rm -f conftest.$ac_objext conftest$ac_exeext
    4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4590   (eval $ac_link) 2>conftest.er1
    4591   ac_status=$?
    4592   grep -v '^ *+' conftest.er1 >conftest.err
    4593   rm -f conftest.er1
    4594   cat conftest.err >&5
    4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4596   (exit $ac_status); } &&
    4597      { ac_try='test -z "$ac_c_werror_flag"
    4598              || test ! -s conftest.err'
    4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4600   (eval $ac_try) 2>&5
    4601   ac_status=$?
    4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4603   (exit $ac_status); }; } &&
    4604      { ac_try='test -s conftest$ac_exeext'
    4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4606   (eval $ac_try) 2>&5
    4607   ac_status=$?
    4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4609   (exit $ac_status); }; }; then
    4610   ac_cv_search_opendir="-l$ac_lib"
    4611 break
    4612 else
    4613   echo "$as_me: failed program was:" >&5
    4614 sed 's/^/| /' conftest.$ac_ext >&5
    4615 
    4616 fi
    4617 rm -f conftest.err conftest.$ac_objext \
    4618       conftest$ac_exeext conftest.$ac_ext
    4619   done
    4620 fi
     5218for ac_lib in '' x; do
     5219  if test -z "$ac_lib"; then
     5220    ac_res="none required"
     5221  else
     5222    ac_res=-l$ac_lib
     5223    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5224  fi
     5225  if ac_fn_c_try_link "$LINENO"; then :
     5226  ac_cv_search_opendir=$ac_res
     5227fi
     5228rm -f core conftest.err conftest.$ac_objext \
     5229    conftest$ac_exeext
     5230  if test "${ac_cv_search_opendir+set}" = set; then :
     5231  break
     5232fi
     5233done
     5234if test "${ac_cv_search_opendir+set}" = set; then :
     5235
     5236else
     5237  ac_cv_search_opendir=no
     5238fi
     5239rm conftest.$ac_ext
    46215240LIBS=$ac_func_search_save_LIBS
    46225241fi
    4623 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    4624 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    4625 if test "$ac_cv_search_opendir" != no; then
    4626   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    4627 
    4628 fi
    4629 
    4630 else
    4631   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4633 if test "${ac_cv_search_opendir+set}" = set; then
    4634   echo $ECHO_N "(cached) $ECHO_C" >&6
    4635 else
    4636   ac_func_search_save_LIBS=$LIBS
    4637 ac_cv_search_opendir=no
    4638 cat >conftest.$ac_ext <<_ACEOF
    4639 /* confdefs.h.  */
    4640 _ACEOF
    4641 cat confdefs.h >>conftest.$ac_ext
    4642 cat >>conftest.$ac_ext <<_ACEOF
    4643 /* end confdefs.h.  */
    4644 
    4645 /* Override any gcc2 internal prototype to avoid an error.  */
    4646 #ifdef __cplusplus
    4647 extern "C"
    4648 #endif
    4649 /* We use char because int might match the return type of a gcc2
    4650    builtin and then its argument prototype would still apply.  */
    4651 char opendir ();
    4652 int
    4653 main ()
    4654 {
    4655 opendir ();
    4656   ;
    4657   return 0;
    4658 }
    4659 _ACEOF
    4660 rm -f conftest.$ac_objext conftest$ac_exeext
    4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4662   (eval $ac_link) 2>conftest.er1
    4663   ac_status=$?
    4664   grep -v '^ *+' conftest.er1 >conftest.err
    4665   rm -f conftest.er1
    4666   cat conftest.err >&5
    4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4668   (exit $ac_status); } &&
    4669      { ac_try='test -z "$ac_c_werror_flag"
    4670              || test ! -s conftest.err'
    4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4672   (eval $ac_try) 2>&5
    4673   ac_status=$?
    4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4675   (exit $ac_status); }; } &&
    4676      { ac_try='test -s conftest$ac_exeext'
    4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4678   (eval $ac_try) 2>&5
    4679   ac_status=$?
    4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4681   (exit $ac_status); }; }; then
    4682   ac_cv_search_opendir="none required"
    4683 else
    4684   echo "$as_me: failed program was:" >&5
    4685 sed 's/^/| /' conftest.$ac_ext >&5
    4686 
    4687 fi
    4688 rm -f conftest.err conftest.$ac_objext \
    4689       conftest$ac_exeext conftest.$ac_ext
    4690 if test "$ac_cv_search_opendir" = no; then
    4691   for ac_lib in x; do
    4692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4693     cat >conftest.$ac_ext <<_ACEOF
    4694 /* confdefs.h.  */
    4695 _ACEOF
    4696 cat confdefs.h >>conftest.$ac_ext
    4697 cat >>conftest.$ac_ext <<_ACEOF
    4698 /* end confdefs.h.  */
    4699 
    4700 /* Override any gcc2 internal prototype to avoid an error.  */
    4701 #ifdef __cplusplus
    4702 extern "C"
    4703 #endif
    4704 /* We use char because int might match the return type of a gcc2
    4705    builtin and then its argument prototype would still apply.  */
    4706 char opendir ();
    4707 int
    4708 main ()
    4709 {
    4710 opendir ();
    4711   ;
    4712   return 0;
    4713 }
    4714 _ACEOF
    4715 rm -f conftest.$ac_objext conftest$ac_exeext
    4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4717   (eval $ac_link) 2>conftest.er1
    4718   ac_status=$?
    4719   grep -v '^ *+' conftest.er1 >conftest.err
    4720   rm -f conftest.er1
    4721   cat conftest.err >&5
    4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4723   (exit $ac_status); } &&
    4724      { ac_try='test -z "$ac_c_werror_flag"
    4725              || test ! -s conftest.err'
    4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4727   (eval $ac_try) 2>&5
    4728   ac_status=$?
    4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4730   (exit $ac_status); }; } &&
    4731      { ac_try='test -s conftest$ac_exeext'
    4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4733   (eval $ac_try) 2>&5
    4734   ac_status=$?
    4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4736   (exit $ac_status); }; }; then
    4737   ac_cv_search_opendir="-l$ac_lib"
    4738 break
    4739 else
    4740   echo "$as_me: failed program was:" >&5
    4741 sed 's/^/| /' conftest.$ac_ext >&5
    4742 
    4743 fi
    4744 rm -f conftest.err conftest.$ac_objext \
    4745       conftest$ac_exeext conftest.$ac_ext
    4746   done
    4747 fi
    4748 LIBS=$ac_func_search_save_LIBS
    4749 fi
    4750 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    4751 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    4752 if test "$ac_cv_search_opendir" != no; then
    4753   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    4754 
    4755 fi
    4756 
    4757 fi
    4758 
    4759 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    4760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    4761 if test "${ac_cv_header_stdc+set}" = set; then
    4762   echo $ECHO_N "(cached) $ECHO_C" >&6
    4763 else
    4764   cat >conftest.$ac_ext <<_ACEOF
    4765 /* confdefs.h.  */
    4766 _ACEOF
    4767 cat confdefs.h >>conftest.$ac_ext
    4768 cat >>conftest.$ac_ext <<_ACEOF
     5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5243$as_echo "$ac_cv_search_opendir" >&6; }
     5244ac_res=$ac_cv_search_opendir
     5245if test "$ac_res" != no; then :
     5246  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5247
     5248fi
     5249
     5250fi
     5251
     5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5253$as_echo_n "checking for ANSI C header files... " >&6; }
     5254if test "${ac_cv_header_stdc+set}" = set; then :
     5255  $as_echo_n "(cached) " >&6
     5256else
     5257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47695258/* end confdefs.h.  */
    47705259#include <stdlib.h>
     
    47815270}
    47825271_ACEOF
    4783 rm -f conftest.$ac_objext
    4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4785   (eval $ac_compile) 2>conftest.er1
    4786   ac_status=$?
    4787   grep -v '^ *+' conftest.er1 >conftest.err
    4788   rm -f conftest.er1
    4789   cat conftest.err >&5
    4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4791   (exit $ac_status); } &&
    4792      { ac_try='test -z "$ac_c_werror_flag"
    4793              || test ! -s conftest.err'
    4794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4795   (eval $ac_try) 2>&5
    4796   ac_status=$?
    4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4798   (exit $ac_status); }; } &&
    4799      { ac_try='test -s conftest.$ac_objext'
    4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4801   (eval $ac_try) 2>&5
    4802   ac_status=$?
    4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4804   (exit $ac_status); }; }; then
     5272if ac_fn_c_try_compile "$LINENO"; then :
    48055273  ac_cv_header_stdc=yes
    48065274else
    4807   echo "$as_me: failed program was:" >&5
    4808 sed 's/^/| /' conftest.$ac_ext >&5
    4809 
    4810 ac_cv_header_stdc=no
    4811 fi
    4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5275  ac_cv_header_stdc=no
     5276fi
     5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    48135278
    48145279if test $ac_cv_header_stdc = yes; then
    48155280  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    4816   cat >conftest.$ac_ext <<_ACEOF
    4817 /* confdefs.h.  */
    4818 _ACEOF
    4819 cat confdefs.h >>conftest.$ac_ext
    4820 cat >>conftest.$ac_ext <<_ACEOF
     5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48215282/* end confdefs.h.  */
    48225283#include <string.h>
     
    48245285_ACEOF
    48255286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4826   $EGREP "memchr" >/dev/null 2>&1; then
    4827   :
     5287  $EGREP "memchr" >/dev/null 2>&1; then :
     5288
    48285289else
    48295290  ac_cv_header_stdc=no
     
    48355296if test $ac_cv_header_stdc = yes; then
    48365297  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    4837   cat >conftest.$ac_ext <<_ACEOF
    4838 /* confdefs.h.  */
    4839 _ACEOF
    4840 cat confdefs.h >>conftest.$ac_ext
    4841 cat >>conftest.$ac_ext <<_ACEOF
     5298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48425299/* end confdefs.h.  */
    48435300#include <stdlib.h>
     
    48455302_ACEOF
    48465303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4847   $EGREP "free" >/dev/null 2>&1; then
    4848   :
     5304  $EGREP "free" >/dev/null 2>&1; then :
     5305
    48495306else
    48505307  ac_cv_header_stdc=no
     
    48565313if test $ac_cv_header_stdc = yes; then
    48575314  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    4858   if test "$cross_compiling" = yes; then
     5315  if test "$cross_compiling" = yes; then :
    48595316  :
    48605317else
    4861   cat >conftest.$ac_ext <<_ACEOF
    4862 /* confdefs.h.  */
    4863 _ACEOF
    4864 cat confdefs.h >>conftest.$ac_ext
    4865 cat >>conftest.$ac_ext <<_ACEOF
     5318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48665319/* end confdefs.h.  */
    48675320#include <ctype.h>
     5321#include <stdlib.h>
    48685322#if ((' ' & 0x0FF) == 0x020)
    48695323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    48855339    if (XOR (islower (i), ISLOWER (i))
    48865340    || toupper (i) != TOUPPER (i))
    4887       exit(2);
    4888   exit (0);
     5341      return 2;
     5342  return 0;
    48895343}
    48905344_ACEOF
    4891 rm -f conftest$ac_exeext
    4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4893   (eval $ac_link) 2>&5
    4894   ac_status=$?
    4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4898   (eval $ac_try) 2>&5
    4899   ac_status=$?
    4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4901   (exit $ac_status); }; }; then
    4902   :
    4903 else
    4904   echo "$as_me: program exited with status $ac_status" >&5
    4905 echo "$as_me: failed program was:" >&5
    4906 sed 's/^/| /' conftest.$ac_ext >&5
    4907 
    4908 ( exit $ac_status )
    4909 ac_cv_header_stdc=no
    4910 fi
    4911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    4912 fi
    4913 fi
    4914 fi
    4915 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    4916 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5345if ac_fn_c_try_run "$LINENO"; then :
     5346
     5347else
     5348  ac_cv_header_stdc=no
     5349fi
     5350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5351  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5352fi
     5353
     5354fi
     5355fi
     5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5357$as_echo "$ac_cv_header_stdc" >&6; }
    49175358if test $ac_cv_header_stdc = yes; then
    49185359
    4919 cat >>confdefs.h <<\_ACEOF
    4920 #define STDC_HEADERS 1
    4921 _ACEOF
    4922 
    4923 fi
    4924 
    4925 
    4926 
    4927 
    4928 
    4929 
    4930 
     5360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5361
     5362fi
    49315363
    49325364for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
    4933 do
    4934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4936   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4939   echo $ECHO_N "(cached) $ECHO_C" >&6
    4940 fi
    4941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4943 else
    4944   # Is the header compilable?
    4945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    4947 cat >conftest.$ac_ext <<_ACEOF
    4948 /* confdefs.h.  */
    4949 _ACEOF
    4950 cat confdefs.h >>conftest.$ac_ext
    4951 cat >>conftest.$ac_ext <<_ACEOF
    4952 /* end confdefs.h.  */
    4953 $ac_includes_default
    4954 #include <$ac_header>
    4955 _ACEOF
    4956 rm -f conftest.$ac_objext
    4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4958   (eval $ac_compile) 2>conftest.er1
    4959   ac_status=$?
    4960   grep -v '^ *+' conftest.er1 >conftest.err
    4961   rm -f conftest.er1
    4962   cat conftest.err >&5
    4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4964   (exit $ac_status); } &&
    4965      { ac_try='test -z "$ac_c_werror_flag"
    4966              || test ! -s conftest.err'
    4967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4968   (eval $ac_try) 2>&5
    4969   ac_status=$?
    4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4971   (exit $ac_status); }; } &&
    4972      { ac_try='test -s conftest.$ac_objext'
    4973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4974   (eval $ac_try) 2>&5
    4975   ac_status=$?
    4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4977   (exit $ac_status); }; }; then
    4978   ac_header_compiler=yes
    4979 else
    4980   echo "$as_me: failed program was:" >&5
    4981 sed 's/^/| /' conftest.$ac_ext >&5
    4982 
    4983 ac_header_compiler=no
    4984 fi
    4985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4987 echo "${ECHO_T}$ac_header_compiler" >&6
    4988 
    4989 # Is the header present?
    4990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    4992 cat >conftest.$ac_ext <<_ACEOF
    4993 /* confdefs.h.  */
    4994 _ACEOF
    4995 cat confdefs.h >>conftest.$ac_ext
    4996 cat >>conftest.$ac_ext <<_ACEOF
    4997 /* end confdefs.h.  */
    4998 #include <$ac_header>
    4999 _ACEOF
    5000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5002   ac_status=$?
    5003   grep -v '^ *+' conftest.er1 >conftest.err
    5004   rm -f conftest.er1
    5005   cat conftest.err >&5
    5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5007   (exit $ac_status); } >/dev/null; then
    5008   if test -s conftest.err; then
    5009     ac_cpp_err=$ac_c_preproc_warn_flag
    5010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5011   else
    5012     ac_cpp_err=
    5013   fi
    5014 else
    5015   ac_cpp_err=yes
    5016 fi
    5017 if test -z "$ac_cpp_err"; then
    5018   ac_header_preproc=yes
    5019 else
    5020   echo "$as_me: failed program was:" >&5
    5021 sed 's/^/| /' conftest.$ac_ext >&5
    5022 
    5023   ac_header_preproc=no
    5024 fi
    5025 rm -f conftest.err conftest.$ac_ext
    5026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5027 echo "${ECHO_T}$ac_header_preproc" >&6
    5028 
    5029 # So?  What about this header?
    5030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5031   yes:no: )
    5032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5036     ac_header_preproc=yes
    5037     ;;
    5038   no:yes:* )
    5039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5051     (
    5052       cat <<\_ASBOX
    5053 ## ------------------------------------------ ##
    5054 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5055 ## ------------------------------------------ ##
    5056 _ASBOX
    5057     ) |
    5058       sed "s/^/$as_me: WARNING:     /" >&2
    5059     ;;
    5060 esac
    5061 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5064   echo $ECHO_N "(cached) $ECHO_C" >&6
    5065 else
    5066   eval "$as_ac_Header=\$ac_header_preproc"
    5067 fi
    5068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5070 
    5071 fi
    5072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5365do :
     5366  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    50735369  cat >>confdefs.h <<_ACEOF
    5074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    50755371_ACEOF
    50765372
     
    50795375done
    50805376
    5081 cat >conftest.$ac_ext <<_ACEOF
    5082 /* confdefs.h.  */
    5083 _ACEOF
    5084 cat confdefs.h >>conftest.$ac_ext
    5085 cat >>conftest.$ac_ext <<_ACEOF
     5377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    50865378/* end confdefs.h.  */
    50875379#include <stdio.h>
     
    50895381_ACEOF
    50905382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5091   $EGREP "fread" >/dev/null 2>&1; then
    5092   cat >>confdefs.h <<\_ACEOF
    5093 #define HAVE_FREAD_DECL 1
    5094 _ACEOF
     5383  $EGREP "fread" >/dev/null 2>&1; then :
     5384  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    50955385
    50965386fi
    50975387rm -f conftest*
    50985388
    5099 cat >conftest.$ac_ext <<_ACEOF
    5100 /* confdefs.h.  */
    5101 _ACEOF
    5102 cat confdefs.h >>conftest.$ac_ext
    5103 cat >>conftest.$ac_ext <<_ACEOF
     5389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51045390/* end confdefs.h.  */
    51055391#include <stdio.h>
     
    51075393_ACEOF
    51085394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5109   $EGREP "fgetc" >/dev/null 2>&1; then
    5110   cat >>confdefs.h <<\_ACEOF
    5111 #define HAVE_FGETC_DECL 1
    5112 _ACEOF
     5395  $EGREP "fgetc" >/dev/null 2>&1; then :
     5396  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    51135397
    51145398fi
    51155399rm -f conftest*
    51165400
    5117 cat >conftest.$ac_ext <<_ACEOF
    5118 /* confdefs.h.  */
    5119 _ACEOF
    5120 cat confdefs.h >>conftest.$ac_ext
    5121 cat >>conftest.$ac_ext <<_ACEOF
     5401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51225402/* end confdefs.h.  */
    51235403#include <sys/procfs.h>
     
    51255405_ACEOF
    51265406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5127   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5128   cat >>confdefs.h <<\_ACEOF
    5129 #define HAVE_PR_BRKSIZE 1
    5130 _ACEOF
     5407  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5408  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    51315409
    51325410fi
     
    51365414# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    51375415# for constant arguments.  Useless!
    5138 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5139 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5140 if test "${ac_cv_working_alloca_h+set}" = set; then
    5141   echo $ECHO_N "(cached) $ECHO_C" >&6
    5142 else
    5143   cat >conftest.$ac_ext <<_ACEOF
    5144 /* confdefs.h.  */
    5145 _ACEOF
    5146 cat confdefs.h >>conftest.$ac_ext
    5147 cat >>conftest.$ac_ext <<_ACEOF
     5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5417$as_echo_n "checking for working alloca.h... " >&6; }
     5418if test "${ac_cv_working_alloca_h+set}" = set; then :
     5419  $as_echo_n "(cached) " >&6
     5420else
     5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51485422/* end confdefs.h.  */
    51495423#include <alloca.h>
     
    51525426{
    51535427char *p = (char *) alloca (2 * sizeof (int));
     5428              if (p) return 0;
    51545429  ;
    51555430  return 0;
    51565431}
    51575432_ACEOF
    5158 rm -f conftest.$ac_objext conftest$ac_exeext
    5159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5160   (eval $ac_link) 2>conftest.er1
    5161   ac_status=$?
    5162   grep -v '^ *+' conftest.er1 >conftest.err
    5163   rm -f conftest.er1
    5164   cat conftest.err >&5
    5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5166   (exit $ac_status); } &&
    5167      { ac_try='test -z "$ac_c_werror_flag"
    5168              || test ! -s conftest.err'
    5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5170   (eval $ac_try) 2>&5
    5171   ac_status=$?
    5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5173   (exit $ac_status); }; } &&
    5174      { ac_try='test -s conftest$ac_exeext'
    5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5176   (eval $ac_try) 2>&5
    5177   ac_status=$?
    5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5179   (exit $ac_status); }; }; then
     5433if ac_fn_c_try_link "$LINENO"; then :
    51805434  ac_cv_working_alloca_h=yes
    51815435else
    5182   echo "$as_me: failed program was:" >&5
    5183 sed 's/^/| /' conftest.$ac_ext >&5
    5184 
    5185 ac_cv_working_alloca_h=no
    5186 fi
    5187 rm -f conftest.err conftest.$ac_objext \
    5188       conftest$ac_exeext conftest.$ac_ext
    5189 fi
    5190 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5191 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5436  ac_cv_working_alloca_h=no
     5437fi
     5438rm -f core conftest.err conftest.$ac_objext \
     5439    conftest$ac_exeext conftest.$ac_ext
     5440fi
     5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5442$as_echo "$ac_cv_working_alloca_h" >&6; }
    51925443if test $ac_cv_working_alloca_h = yes; then
    51935444
    5194 cat >>confdefs.h <<\_ACEOF
    5195 #define HAVE_ALLOCA_H 1
    5196 _ACEOF
    5197 
    5198 fi
    5199 
    5200 echo "$as_me:$LINENO: checking for alloca" >&5
    5201 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5202 if test "${ac_cv_func_alloca_works+set}" = set; then
    5203   echo $ECHO_N "(cached) $ECHO_C" >&6
    5204 else
    5205   cat >conftest.$ac_ext <<_ACEOF
    5206 /* confdefs.h.  */
    5207 _ACEOF
    5208 cat confdefs.h >>conftest.$ac_ext
    5209 cat >>conftest.$ac_ext <<_ACEOF
     5445$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5446
     5447fi
     5448
     5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5450$as_echo_n "checking for alloca... " >&6; }
     5451if test "${ac_cv_func_alloca_works+set}" = set; then :
     5452  $as_echo_n "(cached) " >&6
     5453else
     5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52105455/* end confdefs.h.  */
    52115456#ifdef __GNUC__
     
    52165461#  define alloca _alloca
    52175462# else
    5218 #  if HAVE_ALLOCA_H
     5463#  ifdef HAVE_ALLOCA_H
    52195464#   include <alloca.h>
    52205465#  else
     
    52345479{
    52355480char *p = (char *) alloca (1);
     5481                    if (p) return 0;
    52365482  ;
    52375483  return 0;
    52385484}
    52395485_ACEOF
    5240 rm -f conftest.$ac_objext conftest$ac_exeext
    5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5242   (eval $ac_link) 2>conftest.er1
    5243   ac_status=$?
    5244   grep -v '^ *+' conftest.er1 >conftest.err
    5245   rm -f conftest.er1
    5246   cat conftest.err >&5
    5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5248   (exit $ac_status); } &&
    5249      { ac_try='test -z "$ac_c_werror_flag"
    5250              || test ! -s conftest.err'
    5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5252   (eval $ac_try) 2>&5
    5253   ac_status=$?
    5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5255   (exit $ac_status); }; } &&
    5256      { ac_try='test -s conftest$ac_exeext'
    5257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5258   (eval $ac_try) 2>&5
    5259   ac_status=$?
    5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5261   (exit $ac_status); }; }; then
     5486if ac_fn_c_try_link "$LINENO"; then :
    52625487  ac_cv_func_alloca_works=yes
    52635488else
    5264   echo "$as_me: failed program was:" >&5
    5265 sed 's/^/| /' conftest.$ac_ext >&5
    5266 
    5267 ac_cv_func_alloca_works=no
    5268 fi
    5269 rm -f conftest.err conftest.$ac_objext \
    5270       conftest$ac_exeext conftest.$ac_ext
    5271 fi
    5272 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5273 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5489  ac_cv_func_alloca_works=no
     5490fi
     5491rm -f core conftest.err conftest.$ac_objext \
     5492    conftest$ac_exeext conftest.$ac_ext
     5493fi
     5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5495$as_echo "$ac_cv_func_alloca_works" >&6; }
    52745496
    52755497if test $ac_cv_func_alloca_works = yes; then
    52765498
    5277 cat >>confdefs.h <<\_ACEOF
    5278 #define HAVE_ALLOCA 1
    5279 _ACEOF
     5499$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    52805500
    52815501else
     
    52855505# use ar to extract alloca.o from them instead of compiling alloca.c.
    52865506
    5287 ALLOCA=alloca.$ac_objext
    5288 
    5289 cat >>confdefs.h <<\_ACEOF
    5290 #define C_ALLOCA 1
    5291 _ACEOF
    5292 
    5293 
    5294 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5295 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5296 if test "${ac_cv_os_cray+set}" = set; then
    5297   echo $ECHO_N "(cached) $ECHO_C" >&6
    5298 else
    5299   cat >conftest.$ac_ext <<_ACEOF
    5300 /* confdefs.h.  */
    5301 _ACEOF
    5302 cat confdefs.h >>conftest.$ac_ext
    5303 cat >>conftest.$ac_ext <<_ACEOF
     5507ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5508
     5509$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5510
     5511
     5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5513$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5514if test "${ac_cv_os_cray+set}" = set; then :
     5515  $as_echo_n "(cached) " >&6
     5516else
     5517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    53045518/* end confdefs.h.  */
    5305 #if defined(CRAY) && ! defined(CRAY2)
     5519#if defined CRAY && ! defined CRAY2
    53065520webecray
    53075521#else
     
    53115525_ACEOF
    53125526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5313   $EGREP "webecray" >/dev/null 2>&1; then
     5527  $EGREP "webecray" >/dev/null 2>&1; then :
    53145528  ac_cv_os_cray=yes
    53155529else
     
    53195533
    53205534fi
    5321 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5322 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5536$as_echo "$ac_cv_os_cray" >&6; }
    53235537if test $ac_cv_os_cray = yes; then
    53245538  for ac_func in _getb67 GETB67 getb67; do
    5325     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5326 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5328 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5329   echo $ECHO_N "(cached) $ECHO_C" >&6
    5330 else
    5331   cat >conftest.$ac_ext <<_ACEOF
    5332 /* confdefs.h.  */
    5333 _ACEOF
    5334 cat confdefs.h >>conftest.$ac_ext
    5335 cat >>conftest.$ac_ext <<_ACEOF
    5336 /* end confdefs.h.  */
    5337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5339 #define $ac_func innocuous_$ac_func
    5340 
    5341 /* System header to define __stub macros and hopefully few prototypes,
    5342     which can conflict with char $ac_func (); below.
    5343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5344     <limits.h> exists even on freestanding compilers.  */
    5345 
    5346 #ifdef __STDC__
    5347 # include <limits.h>
    5348 #else
    5349 # include <assert.h>
    5350 #endif
    5351 
    5352 #undef $ac_func
    5353 
    5354 /* Override any gcc2 internal prototype to avoid an error.  */
    5355 #ifdef __cplusplus
    5356 extern "C"
    5357 {
    5358 #endif
    5359 /* We use char because int might match the return type of a gcc2
    5360    builtin and then its argument prototype would still apply.  */
    5361 char $ac_func ();
    5362 /* The GNU C library defines this for functions which it implements
    5363     to always fail with ENOSYS.  Some functions are actually named
    5364     something starting with __ and the normal name is an alias.  */
    5365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5366 choke me
    5367 #else
    5368 char (*f) () = $ac_func;
    5369 #endif
    5370 #ifdef __cplusplus
    5371 }
    5372 #endif
    5373 
    5374 int
    5375 main ()
    5376 {
    5377 return f != $ac_func;
    5378   ;
    5379   return 0;
    5380 }
    5381 _ACEOF
    5382 rm -f conftest.$ac_objext conftest$ac_exeext
    5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5384   (eval $ac_link) 2>conftest.er1
    5385   ac_status=$?
    5386   grep -v '^ *+' conftest.er1 >conftest.err
    5387   rm -f conftest.er1
    5388   cat conftest.err >&5
    5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5390   (exit $ac_status); } &&
    5391      { ac_try='test -z "$ac_c_werror_flag"
    5392              || test ! -s conftest.err'
    5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5394   (eval $ac_try) 2>&5
    5395   ac_status=$?
    5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5397   (exit $ac_status); }; } &&
    5398      { ac_try='test -s conftest$ac_exeext'
    5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5400   (eval $ac_try) 2>&5
    5401   ac_status=$?
    5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5403   (exit $ac_status); }; }; then
    5404   eval "$as_ac_var=yes"
    5405 else
    5406   echo "$as_me: failed program was:" >&5
    5407 sed 's/^/| /' conftest.$ac_ext >&5
    5408 
    5409 eval "$as_ac_var=no"
    5410 fi
    5411 rm -f conftest.err conftest.$ac_objext \
    5412       conftest$ac_exeext conftest.$ac_ext
    5413 fi
    5414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5416 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5539    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5540ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5541if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    54175542
    54185543cat >>confdefs.h <<_ACEOF
     
    54265551fi
    54275552
    5428 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5429 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5430 if test "${ac_cv_c_stack_direction+set}" = set; then
    5431   echo $ECHO_N "(cached) $ECHO_C" >&6
    5432 else
    5433   if test "$cross_compiling" = yes; then
     5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5554$as_echo_n "checking stack direction for C alloca... " >&6; }
     5555if test "${ac_cv_c_stack_direction+set}" = set; then :
     5556  $as_echo_n "(cached) " >&6
     5557else
     5558  if test "$cross_compiling" = yes; then :
    54345559  ac_cv_c_stack_direction=0
    54355560else
    5436   cat >conftest.$ac_ext <<_ACEOF
    5437 /* confdefs.h.  */
    5438 _ACEOF
    5439 cat confdefs.h >>conftest.$ac_ext
    5440 cat >>conftest.$ac_ext <<_ACEOF
     5561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54415562/* end confdefs.h.  */
     5563$ac_includes_default
    54425564int
    54435565find_stack_direction ()
     
    54575579main ()
    54585580{
    5459   exit (find_stack_direction () < 0);
     5581  return find_stack_direction () < 0;
    54605582}
    54615583_ACEOF
    5462 rm -f conftest$ac_exeext
    5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5464   (eval $ac_link) 2>&5
    5465   ac_status=$?
    5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5469   (eval $ac_try) 2>&5
    5470   ac_status=$?
    5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5472   (exit $ac_status); }; }; then
     5584if ac_fn_c_try_run "$LINENO"; then :
    54735585  ac_cv_c_stack_direction=1
    54745586else
    5475   echo "$as_me: program exited with status $ac_status" >&5
    5476 echo "$as_me: failed program was:" >&5
    5477 sed 's/^/| /' conftest.$ac_ext >&5
    5478 
    5479 ( exit $ac_status )
    5480 ac_cv_c_stack_direction=-1
    5481 fi
    5482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5483 fi
    5484 fi
    5485 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5486 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5487 
     5587  ac_cv_c_stack_direction=-1
     5588fi
     5589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5590  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5591fi
     5592
     5593fi
     5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     5595$as_echo "$ac_cv_c_stack_direction" >&6; }
    54885596cat >>confdefs.h <<_ACEOF
    54895597#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    54945602
    54955603if test $ac_cv_c_compiler_gnu = yes; then
    5496     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5497 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5498 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5499   echo $ECHO_N "(cached) $ECHO_C" >&6
     5604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     5605$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     5606if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     5607  $as_echo_n "(cached) " >&6
    55005608else
    55015609    ac_pattern="Autoconf.*'x'"
    5502   cat >conftest.$ac_ext <<_ACEOF
    5503 /* confdefs.h.  */
    5504 _ACEOF
    5505 cat confdefs.h >>conftest.$ac_ext
    5506 cat >>conftest.$ac_ext <<_ACEOF
     5610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55075611/* end confdefs.h.  */
    55085612#include <sgtty.h>
     
    55105614_ACEOF
    55115615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5512   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5616  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    55135617  ac_cv_prog_gcc_traditional=yes
    55145618else
     
    55195623
    55205624  if test $ac_cv_prog_gcc_traditional = no; then
    5521     cat >conftest.$ac_ext <<_ACEOF
    5522 /* confdefs.h.  */
    5523 _ACEOF
    5524 cat confdefs.h >>conftest.$ac_ext
    5525 cat >>conftest.$ac_ext <<_ACEOF
     5625    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55265626/* end confdefs.h.  */
    55275627#include <termio.h>
     
    55295629_ACEOF
    55305630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5531   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5631  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    55325632  ac_cv_prog_gcc_traditional=yes
    55335633fi
     
    55365636  fi
    55375637fi
    5538 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5539 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     5639$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    55405640  if test $ac_cv_prog_gcc_traditional = yes; then
    55415641    CC="$CC -traditional"
     
    55435643fi
    55445644
    5545 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5547 if test "${ac_cv_type_signal+set}" = set; then
    5548   echo $ECHO_N "(cached) $ECHO_C" >&6
    5549 else
    5550   cat >conftest.$ac_ext <<_ACEOF
    5551 /* confdefs.h.  */
    5552 _ACEOF
    5553 cat confdefs.h >>conftest.$ac_ext
    5554 cat >>conftest.$ac_ext <<_ACEOF
     5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     5646$as_echo_n "checking return type of signal handlers... " >&6; }
     5647if test "${ac_cv_type_signal+set}" = set; then :
     5648  $as_echo_n "(cached) " >&6
     5649else
     5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55555651/* end confdefs.h.  */
    55565652#include <sys/types.h>
    55575653#include <signal.h>
    5558 #ifdef signal
    5559 # undef signal
    5560 #endif
    5561 #ifdef __cplusplus
    5562 extern "C" void (*signal (int, void (*)(int)))(int);
    5563 #else
    5564 void (*signal ()) ();
    5565 #endif
    55665654
    55675655int
    55685656main ()
    55695657{
    5570 int i;
     5658return *(signal (0, 0)) (0) == 1;
    55715659  ;
    55725660  return 0;
    55735661}
    55745662_ACEOF
    5575 rm -f conftest.$ac_objext
    5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5577   (eval $ac_compile) 2>conftest.er1
    5578   ac_status=$?
    5579   grep -v '^ *+' conftest.er1 >conftest.err
    5580   rm -f conftest.er1
    5581   cat conftest.err >&5
    5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5583   (exit $ac_status); } &&
    5584      { ac_try='test -z "$ac_c_werror_flag"
    5585              || test ! -s conftest.err'
    5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5587   (eval $ac_try) 2>&5
    5588   ac_status=$?
    5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5590   (exit $ac_status); }; } &&
    5591      { ac_try='test -s conftest.$ac_objext'
    5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5593   (eval $ac_try) 2>&5
    5594   ac_status=$?
    5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5596   (exit $ac_status); }; }; then
     5663if ac_fn_c_try_compile "$LINENO"; then :
     5664  ac_cv_type_signal=int
     5665else
    55975666  ac_cv_type_signal=void
    5598 else
    5599   echo "$as_me: failed program was:" >&5
    5600 sed 's/^/| /' conftest.$ac_ext >&5
    5601 
    5602 ac_cv_type_signal=int
    5603 fi
    5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5605 fi
    5606 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    5607 echo "${ECHO_T}$ac_cv_type_signal" >&6
     5667fi
     5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5669fi
     5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     5671$as_echo "$ac_cv_type_signal" >&6; }
    56085672
    56095673cat >>confdefs.h <<_ACEOF
     
    56125676
    56135677
    5614 
    56155678for ac_func in vprintf
    5616 do
    5617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5618 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5620 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5621   echo $ECHO_N "(cached) $ECHO_C" >&6
    5622 else
    5623   cat >conftest.$ac_ext <<_ACEOF
    5624 /* confdefs.h.  */
    5625 _ACEOF
    5626 cat confdefs.h >>conftest.$ac_ext
    5627 cat >>conftest.$ac_ext <<_ACEOF
    5628 /* end confdefs.h.  */
    5629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5631 #define $ac_func innocuous_$ac_func
    5632 
    5633 /* System header to define __stub macros and hopefully few prototypes,
    5634     which can conflict with char $ac_func (); below.
    5635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5636     <limits.h> exists even on freestanding compilers.  */
    5637 
    5638 #ifdef __STDC__
    5639 # include <limits.h>
    5640 #else
    5641 # include <assert.h>
    5642 #endif
    5643 
    5644 #undef $ac_func
    5645 
    5646 /* Override any gcc2 internal prototype to avoid an error.  */
    5647 #ifdef __cplusplus
    5648 extern "C"
    5649 {
    5650 #endif
    5651 /* We use char because int might match the return type of a gcc2
    5652    builtin and then its argument prototype would still apply.  */
    5653 char $ac_func ();
    5654 /* The GNU C library defines this for functions which it implements
    5655     to always fail with ENOSYS.  Some functions are actually named
    5656     something starting with __ and the normal name is an alias.  */
    5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5658 choke me
    5659 #else
    5660 char (*f) () = $ac_func;
    5661 #endif
    5662 #ifdef __cplusplus
    5663 }
    5664 #endif
    5665 
    5666 int
    5667 main ()
    5668 {
    5669 return f != $ac_func;
    5670   ;
    5671   return 0;
    5672 }
    5673 _ACEOF
    5674 rm -f conftest.$ac_objext conftest$ac_exeext
    5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5676   (eval $ac_link) 2>conftest.er1
    5677   ac_status=$?
    5678   grep -v '^ *+' conftest.er1 >conftest.err
    5679   rm -f conftest.er1
    5680   cat conftest.err >&5
    5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5682   (exit $ac_status); } &&
    5683      { ac_try='test -z "$ac_c_werror_flag"
    5684              || test ! -s conftest.err'
    5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5686   (eval $ac_try) 2>&5
    5687   ac_status=$?
    5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5689   (exit $ac_status); }; } &&
    5690      { ac_try='test -s conftest$ac_exeext'
    5691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5692   (eval $ac_try) 2>&5
    5693   ac_status=$?
    5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5695   (exit $ac_status); }; }; then
    5696   eval "$as_ac_var=yes"
    5697 else
    5698   echo "$as_me: failed program was:" >&5
    5699 sed 's/^/| /' conftest.$ac_ext >&5
    5700 
    5701 eval "$as_ac_var=no"
    5702 fi
    5703 rm -f conftest.err conftest.$ac_objext \
    5704       conftest$ac_exeext conftest.$ac_ext
    5705 fi
    5706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5708 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5679do :
     5680  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     5681if test "x$ac_cv_func_vprintf" = x""yes; then :
    57095682  cat >>confdefs.h <<_ACEOF
    5710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5711 _ACEOF
    5712 
    5713 echo "$as_me:$LINENO: checking for _doprnt" >&5
    5714 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    5715 if test "${ac_cv_func__doprnt+set}" = set; then
    5716   echo $ECHO_N "(cached) $ECHO_C" >&6
    5717 else
    5718   cat >conftest.$ac_ext <<_ACEOF
    5719 /* confdefs.h.  */
    5720 _ACEOF
    5721 cat confdefs.h >>conftest.$ac_ext
    5722 cat >>conftest.$ac_ext <<_ACEOF
    5723 /* end confdefs.h.  */
    5724 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    5725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5726 #define _doprnt innocuous__doprnt
    5727 
    5728 /* System header to define __stub macros and hopefully few prototypes,
    5729     which can conflict with char _doprnt (); below.
    5730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5731     <limits.h> exists even on freestanding compilers.  */
    5732 
    5733 #ifdef __STDC__
    5734 # include <limits.h>
    5735 #else
    5736 # include <assert.h>
    5737 #endif
    5738 
    5739 #undef _doprnt
    5740 
    5741 /* Override any gcc2 internal prototype to avoid an error.  */
    5742 #ifdef __cplusplus
    5743 extern "C"
    5744 {
    5745 #endif
    5746 /* We use char because int might match the return type of a gcc2
    5747    builtin and then its argument prototype would still apply.  */
    5748 char _doprnt ();
    5749 /* The GNU C library defines this for functions which it implements
    5750     to always fail with ENOSYS.  Some functions are actually named
    5751     something starting with __ and the normal name is an alias.  */
    5752 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    5753 choke me
    5754 #else
    5755 char (*f) () = _doprnt;
    5756 #endif
    5757 #ifdef __cplusplus
    5758 }
    5759 #endif
    5760 
    5761 int
    5762 main ()
    5763 {
    5764 return f != _doprnt;
    5765   ;
    5766   return 0;
    5767 }
    5768 _ACEOF
    5769 rm -f conftest.$ac_objext conftest$ac_exeext
    5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5771   (eval $ac_link) 2>conftest.er1
    5772   ac_status=$?
    5773   grep -v '^ *+' conftest.er1 >conftest.err
    5774   rm -f conftest.er1
    5775   cat conftest.err >&5
    5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5777   (exit $ac_status); } &&
    5778      { ac_try='test -z "$ac_c_werror_flag"
    5779              || test ! -s conftest.err'
    5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5781   (eval $ac_try) 2>&5
    5782   ac_status=$?
    5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5784   (exit $ac_status); }; } &&
    5785      { ac_try='test -s conftest$ac_exeext'
    5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5787   (eval $ac_try) 2>&5
    5788   ac_status=$?
    5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5790   (exit $ac_status); }; }; then
    5791   ac_cv_func__doprnt=yes
    5792 else
    5793   echo "$as_me: failed program was:" >&5
    5794 sed 's/^/| /' conftest.$ac_ext >&5
    5795 
    5796 ac_cv_func__doprnt=no
    5797 fi
    5798 rm -f conftest.err conftest.$ac_objext \
    5799       conftest$ac_exeext conftest.$ac_ext
    5800 fi
    5801 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    5802 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    5803 if test $ac_cv_func__doprnt = yes; then
    5804 
    5805 cat >>confdefs.h <<\_ACEOF
    5806 #define HAVE_DOPRNT 1
    5807 _ACEOF
     5683#define HAVE_VPRINTF 1
     5684_ACEOF
     5685
     5686ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     5687if test "x$ac_cv_func__doprnt" = x""yes; then :
     5688
     5689$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    58085690
    58095691fi
     
    58135695
    58145696
    5815 
    5816 
    5817 
    5818 
    5819 
    5820 
    5821 
    5822 
    5823 
    58245697for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
    5825 do
    5826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5827 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5829 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5830   echo $ECHO_N "(cached) $ECHO_C" >&6
    5831 else
    5832   cat >conftest.$ac_ext <<_ACEOF
    5833 /* confdefs.h.  */
    5834 _ACEOF
    5835 cat confdefs.h >>conftest.$ac_ext
    5836 cat >>conftest.$ac_ext <<_ACEOF
    5837 /* end confdefs.h.  */
    5838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5840 #define $ac_func innocuous_$ac_func
    5841 
    5842 /* System header to define __stub macros and hopefully few prototypes,
    5843     which can conflict with char $ac_func (); below.
    5844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5845     <limits.h> exists even on freestanding compilers.  */
    5846 
    5847 #ifdef __STDC__
    5848 # include <limits.h>
    5849 #else
    5850 # include <assert.h>
    5851 #endif
    5852 
    5853 #undef $ac_func
    5854 
    5855 /* Override any gcc2 internal prototype to avoid an error.  */
    5856 #ifdef __cplusplus
    5857 extern "C"
    5858 {
    5859 #endif
    5860 /* We use char because int might match the return type of a gcc2
    5861    builtin and then its argument prototype would still apply.  */
    5862 char $ac_func ();
    5863 /* The GNU C library defines this for functions which it implements
    5864     to always fail with ENOSYS.  Some functions are actually named
    5865     something starting with __ and the normal name is an alias.  */
    5866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5867 choke me
    5868 #else
    5869 char (*f) () = $ac_func;
    5870 #endif
    5871 #ifdef __cplusplus
    5872 }
    5873 #endif
    5874 
    5875 int
    5876 main ()
    5877 {
    5878 return f != $ac_func;
    5879   ;
    5880   return 0;
    5881 }
    5882 _ACEOF
    5883 rm -f conftest.$ac_objext conftest$ac_exeext
    5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5885   (eval $ac_link) 2>conftest.er1
    5886   ac_status=$?
    5887   grep -v '^ *+' conftest.er1 >conftest.err
    5888   rm -f conftest.er1
    5889   cat conftest.err >&5
    5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5891   (exit $ac_status); } &&
    5892      { ac_try='test -z "$ac_c_werror_flag"
    5893              || test ! -s conftest.err'
    5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5895   (eval $ac_try) 2>&5
    5896   ac_status=$?
    5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5898   (exit $ac_status); }; } &&
    5899      { ac_try='test -s conftest$ac_exeext'
    5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5901   (eval $ac_try) 2>&5
    5902   ac_status=$?
    5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5904   (exit $ac_status); }; }; then
    5905   eval "$as_ac_var=yes"
    5906 else
    5907   echo "$as_me: failed program was:" >&5
    5908 sed 's/^/| /' conftest.$ac_ext >&5
    5909 
    5910 eval "$as_ac_var=no"
    5911 fi
    5912 rm -f conftest.err conftest.$ac_objext \
    5913       conftest$ac_exeext conftest.$ac_ext
    5914 fi
    5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5917 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5698do :
     5699  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5701if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    59185702  cat >>confdefs.h <<_ACEOF
    5919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    59205704_ACEOF
    59215705
     
    59235707done
    59245708
    5925 
    5926 
    5927 
    5928 for ac_func in ftruncate strstr strcasecmp
    5929 do
    5930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5931 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5933 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5934   echo $ECHO_N "(cached) $ECHO_C" >&6
    5935 else
    5936   cat >conftest.$ac_ext <<_ACEOF
    5937 /* confdefs.h.  */
    5938 _ACEOF
    5939 cat confdefs.h >>conftest.$ac_ext
    5940 cat >>conftest.$ac_ext <<_ACEOF
    5941 /* end confdefs.h.  */
    5942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5944 #define $ac_func innocuous_$ac_func
    5945 
    5946 /* System header to define __stub macros and hopefully few prototypes,
    5947     which can conflict with char $ac_func (); below.
    5948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5949     <limits.h> exists even on freestanding compilers.  */
    5950 
    5951 #ifdef __STDC__
    5952 # include <limits.h>
    5953 #else
    5954 # include <assert.h>
    5955 #endif
    5956 
    5957 #undef $ac_func
    5958 
    5959 /* Override any gcc2 internal prototype to avoid an error.  */
    5960 #ifdef __cplusplus
    5961 extern "C"
    5962 {
    5963 #endif
    5964 /* We use char because int might match the return type of a gcc2
    5965    builtin and then its argument prototype would still apply.  */
    5966 char $ac_func ();
    5967 /* The GNU C library defines this for functions which it implements
    5968     to always fail with ENOSYS.  Some functions are actually named
    5969     something starting with __ and the normal name is an alias.  */
    5970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5971 choke me
    5972 #else
    5973 char (*f) () = $ac_func;
    5974 #endif
    5975 #ifdef __cplusplus
    5976 }
    5977 #endif
    5978 
    5979 int
    5980 main ()
    5981 {
    5982 return f != $ac_func;
    5983   ;
    5984   return 0;
    5985 }
    5986 _ACEOF
    5987 rm -f conftest.$ac_objext conftest$ac_exeext
    5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5989   (eval $ac_link) 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_exeext'
    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
    6009   eval "$as_ac_var=yes"
    6010 else
    6011   echo "$as_me: failed program was:" >&5
    6012 sed 's/^/| /' conftest.$ac_ext >&5
    6013 
    6014 eval "$as_ac_var=no"
    6015 fi
    6016 rm -f conftest.err conftest.$ac_objext \
    6017       conftest$ac_exeext conftest.$ac_ext
    6018 fi
    6019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6021 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6022   cat >>confdefs.h <<_ACEOF
    6023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6024 _ACEOF
    6025 
    6026 else
    6027   case $LIBOBJS in
    6028     "$ac_func.$ac_objext"   | \
    6029   *" $ac_func.$ac_objext"   | \
    6030     "$ac_func.$ac_objext "* | \
    6031   *" $ac_func.$ac_objext "* ) ;;
    6032   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     5709ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     5710if test "x$ac_cv_func_ftruncate" = x""yes; then :
     5711  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     5712
     5713else
     5714  case " $LIBOBJS " in
     5715  *" ftruncate.$ac_objext "* ) ;;
     5716  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     5717 ;;
    60335718esac
    60345719
    60355720fi
    6036 done
     5721
     5722ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     5723if test "x$ac_cv_func_strstr" = x""yes; then :
     5724  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     5725
     5726else
     5727  case " $LIBOBJS " in
     5728  *" strstr.$ac_objext "* ) ;;
     5729  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     5730 ;;
     5731esac
     5732
     5733fi
     5734
     5735ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     5736if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     5737  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     5738
     5739else
     5740  case " $LIBOBJS " in
     5741  *" strcasecmp.$ac_objext "* ) ;;
     5742  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     5743 ;;
     5744esac
     5745
     5746fi
    60375747
    60385748
     
    60415751# *** Custom checking (based on GNU tar configure.in) ***
    60425752# ---------------------------------------------------------------------------
    6043 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6044 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     5754$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    60455755if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6046   echo "$as_me:$LINENO: result: yes" >&5
    6047 echo "${ECHO_T}yes" >&6
    6048   case $LIBOBJS in
    6049     "gmalloc.$ac_objext"   | \
    6050   *" gmalloc.$ac_objext"   | \
    6051     "gmalloc.$ac_objext "* | \
     5756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5757$as_echo "yes" >&6; }
     5758  case " $LIBOBJS " in
    60525759  *" gmalloc.$ac_objext "* ) ;;
    6053   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     5760  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     5761 ;;
    60545762esac
    60555763
    6056   cat >>confdefs.h <<\_ACEOF
     5764  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     5765
     5766else
     5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5768$as_echo "no" >&6; }
     5769  for ac_func in valloc
     5770do :
     5771  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     5772if test "x$ac_cv_func_valloc" = x""yes; then :
     5773  cat >>confdefs.h <<_ACEOF
    60575774#define HAVE_VALLOC 1
    6058 _ACEOF
    6059 
    6060 else
    6061   echo "$as_me:$LINENO: result: no" >&5
    6062 echo "${ECHO_T}no" >&6
    6063 
    6064 for ac_func in valloc
    6065 do
    6066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6067 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6069 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6070   echo $ECHO_N "(cached) $ECHO_C" >&6
    6071 else
    6072   cat >conftest.$ac_ext <<_ACEOF
    6073 /* confdefs.h.  */
    6074 _ACEOF
    6075 cat confdefs.h >>conftest.$ac_ext
    6076 cat >>conftest.$ac_ext <<_ACEOF
    6077 /* end confdefs.h.  */
    6078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6080 #define $ac_func innocuous_$ac_func
    6081 
    6082 /* System header to define __stub macros and hopefully few prototypes,
    6083     which can conflict with char $ac_func (); below.
    6084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6085     <limits.h> exists even on freestanding compilers.  */
    6086 
    6087 #ifdef __STDC__
    6088 # include <limits.h>
    6089 #else
    6090 # include <assert.h>
    6091 #endif
    6092 
    6093 #undef $ac_func
    6094 
    6095 /* Override any gcc2 internal prototype to avoid an error.  */
    6096 #ifdef __cplusplus
    6097 extern "C"
    6098 {
    6099 #endif
    6100 /* We use char because int might match the return type of a gcc2
    6101    builtin and then its argument prototype would still apply.  */
    6102 char $ac_func ();
    6103 /* The GNU C library defines this for functions which it implements
    6104     to always fail with ENOSYS.  Some functions are actually named
    6105     something starting with __ and the normal name is an alias.  */
    6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6107 choke me
    6108 #else
    6109 char (*f) () = $ac_func;
    6110 #endif
    6111 #ifdef __cplusplus
    6112 }
    6113 #endif
    6114 
    6115 int
    6116 main ()
    6117 {
    6118 return f != $ac_func;
    6119   ;
    6120   return 0;
    6121 }
    6122 _ACEOF
    6123 rm -f conftest.$ac_objext conftest$ac_exeext
    6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6125   (eval $ac_link) 2>conftest.er1
    6126   ac_status=$?
    6127   grep -v '^ *+' conftest.er1 >conftest.err
    6128   rm -f conftest.er1
    6129   cat conftest.err >&5
    6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6131   (exit $ac_status); } &&
    6132      { ac_try='test -z "$ac_c_werror_flag"
    6133              || test ! -s conftest.err'
    6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6135   (eval $ac_try) 2>&5
    6136   ac_status=$?
    6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6138   (exit $ac_status); }; } &&
    6139      { ac_try='test -s conftest$ac_exeext'
    6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6141   (eval $ac_try) 2>&5
    6142   ac_status=$?
    6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6144   (exit $ac_status); }; }; then
    6145   eval "$as_ac_var=yes"
    6146 else
    6147   echo "$as_me: failed program was:" >&5
    6148 sed 's/^/| /' conftest.$ac_ext >&5
    6149 
    6150 eval "$as_ac_var=no"
    6151 fi
    6152 rm -f conftest.err conftest.$ac_objext \
    6153       conftest$ac_exeext conftest.$ac_ext
    6154 fi
    6155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6157 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6158   cat >>confdefs.h <<_ACEOF
    6159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    61605775_ACEOF
    61615776
     
    61685783# a non-standard Path
    61695784# is there a better way to do this??
    6170 echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
    6171 echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
     5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
     5786$as_echo_n "checking for OS to set JNI options... " >&6; }
    61725787# set defaults
    61735788JNIINC=""
     
    61765791
    61775792if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6178   echo "$as_me:$LINENO: result: Darwin" >&5
    6179 echo "${ECHO_T}Darwin" >&6
     5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
     5794$as_echo "Darwin" >&6; }
    61805795  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    61815796  JNISUFFIX="jnilib"
     
    61835798fi
    61845799if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
    6185   echo "$as_me:$LINENO: result: Solaris" >&5
    6186 echo "${ECHO_T}Solaris" >&6
     5800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
     5801$as_echo "Solaris" >&6; }
    61875802  JNIINC="-I\$(JAVA_HOME)/include/solaris "
    61885803fi
    61895804if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
    6190   echo "$as_me:$LINENO: result: Linux" >&5
    6191 echo "${ECHO_T}Linux" >&6
     5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
     5806$as_echo "Linux" >&6; }
    61925807  JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
    61935808fi
     
    61975812
    61985813
    6199 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6200 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6201 
    6202 # Check whether --with-dmalloc or --without-dmalloc was given.
    6203 if test "${with_dmalloc+set}" = set; then
    6204   withval="$with_dmalloc"
    6205   if test "$withval" = yes; then
    6206   echo "$as_me:$LINENO: result: yes" >&5
    6207 echo "${ECHO_T}yes" >&6
    6208   cat >>confdefs.h <<\_ACEOF
    6209 #define WITH_DMALLOC 1
    6210 _ACEOF
     5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     5815$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     5816
     5817# Check whether --with-dmalloc was given.
     5818if test "${with_dmalloc+set}" = set; then :
     5819  withval=$with_dmalloc; if test "$withval" = yes; then
     5820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5821$as_echo "yes" >&6; }
     5822  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
    62115823
    62125824  LIBS="$LIBS -ldmalloc"
    62135825  LDFLAGS="$LDFLAGS -g"
    62145826else
    6215   echo "$as_me:$LINENO: result: no" >&5
    6216 echo "${ECHO_T}no" >&6
    6217 fi
    6218 else
    6219   echo "$as_me:$LINENO: result: no" >&5
    6220 echo "${ECHO_T}no" >&6
    6221 fi;
    6222 
    6223 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6224 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6225 
    6226 # Check whether --with-regex or --without-regex was given.
    6227 if test "${with_regex+set}" = set; then
    6228   withval="$with_regex"
    6229   if test "$withval" = yes; then
     5827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5828$as_echo "no" >&6; }
     5829fi
     5830else
     5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5832$as_echo "no" >&6; }
     5833fi
     5834
     5835
     5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     5837$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     5838
     5839# Check whether --with-regex was given.
     5840if test "${with_regex+set}" = set; then :
     5841  withval=$with_regex; if test "$withval" = yes; then
    62305842  ac_with_regex=1
    6231   echo "$as_me:$LINENO: result: regex" >&5
    6232 echo "${ECHO_T}regex" >&6
    6233   cat >>confdefs.h <<\_ACEOF
    6234 #define WITH_REGEX 1
    6235 _ACEOF
    6236 
    6237   case $LIBOBJS in
    6238     "regex.$ac_objext"   | \
    6239   *" regex.$ac_objext"   | \
    6240     "regex.$ac_objext "* | \
     5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     5844$as_echo "regex" >&6; }
     5845  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     5846
     5847  case " $LIBOBJS " in
    62415848  *" regex.$ac_objext "* ) ;;
    6242   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     5849  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     5850 ;;
    62435851esac
    62445852
    62455853fi
    6246 fi;
     5854fi
     5855
    62475856if test -z "$ac_with_regex"; then
    6248   echo "$as_me:$LINENO: result: rx" >&5
    6249 echo "${ECHO_T}rx" >&6
    6250   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6251 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6252 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6253   echo $ECHO_N "(cached) $ECHO_C" >&6
    6254 else
    6255   cat >conftest.$ac_ext <<_ACEOF
    6256 /* confdefs.h.  */
    6257 _ACEOF
    6258 cat confdefs.h >>conftest.$ac_ext
    6259 cat >>conftest.$ac_ext <<_ACEOF
     5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     5858$as_echo "rx" >&6; }
     5859  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     5860if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     5861
     5862else
     5863  case " $LIBOBJS " in
     5864  *" rx.$ac_objext "* ) ;;
     5865  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     5866 ;;
     5867esac
     5868
     5869fi
     5870
     5871fi
     5872
     5873
     5874# text for endianness
     5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     5876$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     5877if test "${ac_cv_c_bigendian+set}" = set; then :
     5878  $as_echo_n "(cached) " >&6
     5879else
     5880  ac_cv_c_bigendian=unknown
     5881    # See if we're dealing with a universal compiler.
     5882    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    62605883/* end confdefs.h.  */
    6261 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6263 #define re_rx_search innocuous_re_rx_search
    6264 
    6265 /* System header to define __stub macros and hopefully few prototypes,
    6266     which can conflict with char re_rx_search (); below.
    6267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6268     <limits.h> exists even on freestanding compilers.  */
    6269 
    6270 #ifdef __STDC__
    6271 # include <limits.h>
    6272 #else
    6273 # include <assert.h>
    6274 #endif
    6275 
    6276 #undef re_rx_search
    6277 
    6278 /* Override any gcc2 internal prototype to avoid an error.  */
    6279 #ifdef __cplusplus
    6280 extern "C"
    6281 {
    6282 #endif
    6283 /* We use char because int might match the return type of a gcc2
    6284    builtin and then its argument prototype would still apply.  */
    6285 char re_rx_search ();
    6286 /* The GNU C library defines this for functions which it implements
    6287     to always fail with ENOSYS.  Some functions are actually named
    6288     something starting with __ and the normal name is an alias.  */
    6289 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6290 choke me
    6291 #else
    6292 char (*f) () = re_rx_search;
    6293 #endif
    6294 #ifdef __cplusplus
    6295 }
    6296 #endif
     5884#ifndef __APPLE_CC__
     5885           not a universal capable compiler
     5886         #endif
     5887         typedef int dummy;
     5888
     5889_ACEOF
     5890if ac_fn_c_try_compile "$LINENO"; then :
     5891
     5892    # Check for potential -arch flags.  It is not universal unless
     5893    # there are at least two -arch flags with different values.
     5894    ac_arch=
     5895    ac_prev=
     5896    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     5897     if test -n "$ac_prev"; then
     5898       case $ac_word in
     5899         i?86 | x86_64 | ppc | ppc64)
     5900           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     5901         ac_arch=$ac_word
     5902           else
     5903         ac_cv_c_bigendian=universal
     5904         break
     5905           fi
     5906           ;;
     5907       esac
     5908       ac_prev=
     5909     elif test "x$ac_word" = "x-arch"; then
     5910       ac_prev=arch
     5911     fi
     5912       done
     5913fi
     5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5915    if test $ac_cv_c_bigendian = unknown; then
     5916      # See if sys/param.h defines the BYTE_ORDER macro.
     5917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5918/* end confdefs.h.  */
     5919#include <sys/types.h>
     5920         #include <sys/param.h>
    62975921
    62985922int
    62995923main ()
    63005924{
    6301 return f != re_rx_search;
     5925#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     5926             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     5927             && LITTLE_ENDIAN)
     5928          bogus endian macros
     5929         #endif
     5930
    63025931  ;
    63035932  return 0;
    63045933}
    63055934_ACEOF
    6306 rm -f conftest.$ac_objext conftest$ac_exeext
    6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6308   (eval $ac_link) 2>conftest.er1
    6309   ac_status=$?
    6310   grep -v '^ *+' conftest.er1 >conftest.err
    6311   rm -f conftest.er1
    6312   cat conftest.err >&5
    6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6314   (exit $ac_status); } &&
    6315      { ac_try='test -z "$ac_c_werror_flag"
    6316              || test ! -s conftest.err'
    6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6318   (eval $ac_try) 2>&5
    6319   ac_status=$?
    6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6321   (exit $ac_status); }; } &&
    6322      { ac_try='test -s conftest$ac_exeext'
    6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6324   (eval $ac_try) 2>&5
    6325   ac_status=$?
    6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6327   (exit $ac_status); }; }; then
    6328   ac_cv_func_re_rx_search=yes
    6329 else
    6330   echo "$as_me: failed program was:" >&5
    6331 sed 's/^/| /' conftest.$ac_ext >&5
    6332 
    6333 ac_cv_func_re_rx_search=no
    6334 fi
    6335 rm -f conftest.err conftest.$ac_objext \
    6336       conftest$ac_exeext conftest.$ac_ext
    6337 fi
    6338 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6339 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6340 if test $ac_cv_func_re_rx_search = yes; then
    6341   :
    6342 else
    6343   case $LIBOBJS in
    6344     "rx.$ac_objext"   | \
    6345   *" rx.$ac_objext"   | \
    6346     "rx.$ac_objext "* | \
    6347   *" rx.$ac_objext "* ) ;;
    6348   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
    6349 esac
    6350 
    6351 fi
    6352 
    6353 fi
    6354 
    6355 
    6356 # text for endianness
    6357 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    6358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    6359 if test "${ac_cv_c_bigendian+set}" = set; then
    6360   echo $ECHO_N "(cached) $ECHO_C" >&6
    6361 else
    6362   # See if sys/param.h defines the BYTE_ORDER macro.
    6363 cat >conftest.$ac_ext <<_ACEOF
    6364 /* confdefs.h.  */
    6365 _ACEOF
    6366 cat confdefs.h >>conftest.$ac_ext
    6367 cat >>conftest.$ac_ext <<_ACEOF
     5935if ac_fn_c_try_compile "$LINENO"; then :
     5936  # It does; now see whether it defined to BIG_ENDIAN or not.
     5937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    63685938/* end confdefs.h.  */
    63695939#include <sys/types.h>
    6370 #include <sys/param.h>
    6371 
    6372 int
    6373 main ()
    6374 {
    6375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    6376  bogus endian macros
    6377 #endif
    6378 
    6379   ;
    6380   return 0;
    6381 }
    6382 _ACEOF
    6383 rm -f conftest.$ac_objext
    6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6385   (eval $ac_compile) 2>conftest.er1
    6386   ac_status=$?
    6387   grep -v '^ *+' conftest.er1 >conftest.err
    6388   rm -f conftest.er1
    6389   cat conftest.err >&5
    6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6391   (exit $ac_status); } &&
    6392      { ac_try='test -z "$ac_c_werror_flag"
    6393              || test ! -s conftest.err'
    6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6395   (eval $ac_try) 2>&5
    6396   ac_status=$?
    6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6398   (exit $ac_status); }; } &&
    6399      { ac_try='test -s conftest.$ac_objext'
    6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6401   (eval $ac_try) 2>&5
    6402   ac_status=$?
    6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6404   (exit $ac_status); }; }; then
    6405   # It does; now see whether it defined to BIG_ENDIAN or not.
    6406 cat >conftest.$ac_ext <<_ACEOF
    6407 /* confdefs.h.  */
    6408 _ACEOF
    6409 cat confdefs.h >>conftest.$ac_ext
    6410 cat >>conftest.$ac_ext <<_ACEOF
    6411 /* end confdefs.h.  */
    6412 #include <sys/types.h>
    6413 #include <sys/param.h>
     5940        #include <sys/param.h>
    64145941
    64155942int
     
    64175944{
    64185945#if BYTE_ORDER != BIG_ENDIAN
    6419  not big endian
    6420 #endif
     5946        not big endian
     5947        #endif
    64215948
    64225949  ;
     
    64245951}
    64255952_ACEOF
    6426 rm -f conftest.$ac_objext
    6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6428   (eval $ac_compile) 2>conftest.er1
    6429   ac_status=$?
    6430   grep -v '^ *+' conftest.er1 >conftest.err
    6431   rm -f conftest.er1
    6432   cat conftest.err >&5
    6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6434   (exit $ac_status); } &&
    6435      { ac_try='test -z "$ac_c_werror_flag"
    6436              || test ! -s conftest.err'
    6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6438   (eval $ac_try) 2>&5
    6439   ac_status=$?
    6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6441   (exit $ac_status); }; } &&
    6442      { ac_try='test -s conftest.$ac_objext'
    6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6444   (eval $ac_try) 2>&5
    6445   ac_status=$?
    6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6447   (exit $ac_status); }; }; then
     5953if ac_fn_c_try_compile "$LINENO"; then :
    64485954  ac_cv_c_bigendian=yes
    64495955else
    6450   echo "$as_me: failed program was:" >&5
    6451 sed 's/^/| /' conftest.$ac_ext >&5
    6452 
    6453 ac_cv_c_bigendian=no
    6454 fi
    6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6456 else
    6457   echo "$as_me: failed program was:" >&5
    6458 sed 's/^/| /' conftest.$ac_ext >&5
    6459 
    6460 # It does not; compile a test program.
    6461 if test "$cross_compiling" = yes; then
    6462   # try to guess the endianness by grepping values into an object file
    6463   ac_cv_c_bigendian=unknown
    6464   cat >conftest.$ac_ext <<_ACEOF
    6465 /* confdefs.h.  */
    6466 _ACEOF
    6467 cat confdefs.h >>conftest.$ac_ext
    6468 cat >>conftest.$ac_ext <<_ACEOF
     5956  ac_cv_c_bigendian=no
     5957fi
     5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5959fi
     5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5961    fi
     5962    if test $ac_cv_c_bigendian = unknown; then
     5963      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     5964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    64695965/* end confdefs.h.  */
    6470 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    6471 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    6472 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    6473 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    6474 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    6475 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     5966#include <limits.h>
     5967
    64765968int
    64775969main ()
    64785970{
    6479  _ascii (); _ebcdic ();
     5971#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     5972          bogus endian macros
     5973         #endif
     5974
    64805975  ;
    64815976  return 0;
    64825977}
    64835978_ACEOF
    6484 rm -f conftest.$ac_objext
    6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6486   (eval $ac_compile) 2>conftest.er1
    6487   ac_status=$?
    6488   grep -v '^ *+' conftest.er1 >conftest.err
    6489   rm -f conftest.er1
    6490   cat conftest.err >&5
    6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6492   (exit $ac_status); } &&
    6493      { ac_try='test -z "$ac_c_werror_flag"
    6494              || test ! -s conftest.err'
    6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6496   (eval $ac_try) 2>&5
    6497   ac_status=$?
    6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6499   (exit $ac_status); }; } &&
    6500      { ac_try='test -s conftest.$ac_objext'
    6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6502   (eval $ac_try) 2>&5
    6503   ac_status=$?
    6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6505   (exit $ac_status); }; }; then
    6506   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    6507   ac_cv_c_bigendian=yes
    6508 fi
    6509 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    6510   if test "$ac_cv_c_bigendian" = unknown; then
    6511     ac_cv_c_bigendian=no
    6512   else
    6513     # finding both strings is unlikely to happen, but who knows?
    6514     ac_cv_c_bigendian=unknown
    6515   fi
    6516 fi
    6517 else
    6518   echo "$as_me: failed program was:" >&5
    6519 sed 's/^/| /' conftest.$ac_ext >&5
    6520 
    6521 fi
    6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6523 else
    6524   cat >conftest.$ac_ext <<_ACEOF
    6525 /* confdefs.h.  */
    6526 _ACEOF
    6527 cat confdefs.h >>conftest.$ac_ext
    6528 cat >>conftest.$ac_ext <<_ACEOF
     5979if ac_fn_c_try_compile "$LINENO"; then :
     5980  # It does; now see whether it defined to _BIG_ENDIAN or not.
     5981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    65295982/* end confdefs.h.  */
     5983#include <limits.h>
     5984
    65305985int
    65315986main ()
    65325987{
    6533   /* Are we little or big endian?  From Harbison&Steele.  */
    6534   union
    6535   {
    6536     long l;
    6537     char c[sizeof (long)];
    6538   } u;
    6539   u.l = 1;
    6540   exit (u.c[sizeof (long) - 1] == 1);
     5988#ifndef _BIG_ENDIAN
     5989         not big endian
     5990        #endif
     5991
     5992  ;
     5993  return 0;
    65415994}
    65425995_ACEOF
    6543 rm -f conftest$ac_exeext
    6544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6545   (eval $ac_link) 2>&5
    6546   ac_status=$?
    6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6550   (eval $ac_try) 2>&5
    6551   ac_status=$?
    6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6553   (exit $ac_status); }; }; then
     5996if ac_fn_c_try_compile "$LINENO"; then :
     5997  ac_cv_c_bigendian=yes
     5998else
    65545999  ac_cv_c_bigendian=no
    6555 else
    6556   echo "$as_me: program exited with status $ac_status" >&5
    6557 echo "$as_me: failed program was:" >&5
    6558 sed 's/^/| /' conftest.$ac_ext >&5
    6559 
    6560 ( exit $ac_status )
    6561 ac_cv_c_bigendian=yes
    6562 fi
    6563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6564 fi
    6565 fi
    6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6567 fi
    6568 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    6569 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    6570 case $ac_cv_c_bigendian in
    6571   yes)
    6572 
    6573 cat >>confdefs.h <<\_ACEOF
    6574 #define WORDS_BIGENDIAN 1
    6575 _ACEOF
    6576  ;;
    6577   no)
    6578      ;;
    6579   *)
    6580     { { echo "$as_me:$LINENO: error: unknown endianness
    6581 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    6582 echo "$as_me: error: unknown endianness
    6583 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    6584    { (exit 1); exit 1; }; } ;;
    6585 esac
     6000fi
     6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6002fi
     6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6004    fi
     6005    if test $ac_cv_c_bigendian = unknown; then
     6006      # Compile a test program.
     6007      if test "$cross_compiling" = yes; then :
     6008  # Try to guess by grepping values from an object file.
     6009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6010/* end confdefs.h.  */
     6011short int ascii_mm[] =
     6012          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6013        short int ascii_ii[] =
     6014          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6015        int use_ascii (int i) {
     6016          return ascii_mm[i] + ascii_ii[i];
     6017        }
     6018        short int ebcdic_ii[] =
     6019          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6020        short int ebcdic_mm[] =
     6021          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6022        int use_ebcdic (int i) {
     6023          return ebcdic_mm[i] + ebcdic_ii[i];
     6024        }
     6025        extern int foo;
     6026
     6027int
     6028main ()
     6029{
     6030return use_ascii (foo) == use_ebcdic (foo);
     6031  ;
     6032  return 0;
     6033}
     6034_ACEOF
     6035if ac_fn_c_try_compile "$LINENO"; then :
     6036  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6037          ac_cv_c_bigendian=yes
     6038        fi
     6039        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6040          if test "$ac_cv_c_bigendian" = unknown; then
     6041        ac_cv_c_bigendian=no
     6042          else
     6043        # finding both strings is unlikely to happen, but who knows?
     6044        ac_cv_c_bigendian=unknown
     6045          fi
     6046        fi
     6047fi
     6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6049else
     6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6051/* end confdefs.h.  */
     6052$ac_includes_default
     6053int
     6054main ()
     6055{
     6056
     6057         /* Are we little or big endian?  From Harbison&Steele.  */
     6058         union
     6059         {
     6060           long int l;
     6061           char c[sizeof (long int)];
     6062         } u;
     6063         u.l = 1;
     6064         return u.c[sizeof (long int) - 1] == 1;
     6065
     6066  ;
     6067  return 0;
     6068}
     6069_ACEOF
     6070if ac_fn_c_try_run "$LINENO"; then :
     6071  ac_cv_c_bigendian=no
     6072else
     6073  ac_cv_c_bigendian=yes
     6074fi
     6075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6076  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6077fi
     6078
     6079    fi
     6080fi
     6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6082$as_echo "$ac_cv_c_bigendian" >&6; }
     6083 case $ac_cv_c_bigendian in #(
     6084   yes)
     6085     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6086;; #(
     6087   no)
     6088      ;; #(
     6089   universal)
     6090
     6091$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6092
     6093     ;; #(
     6094   *)
     6095     as_fn_error $? "unknown endianness
     6096 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6097 esac
    65866098
    65876099
    65886100# ---------------------------------------------------------------------------
    65896101if test "$ac_cv_func_alloca" = 'no'; then
    6590   case $LIBOBJS in
    6591     "xmalloc.$ac_objext"   | \
    6592   *" xmalloc.$ac_objext"   | \
    6593     "xmalloc.$ac_objext "* | \
     6102  case " $LIBOBJS " in
    65946103  *" xmalloc.$ac_objext "* ) ;;
    6595   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6104  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6105 ;;
    65966106esac
    65976107
    6598   case $LIBOBJS in
    6599     "error.$ac_objext"   | \
    6600   *" error.$ac_objext"   | \
    6601     "error.$ac_objext "* | \
     6108  case " $LIBOBJS " in
    66026109  *" error.$ac_objext "* ) ;;
    6603   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6110  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6111 ;;
    66046112esac
    66056113
     
    66096117# ---------------------------------------------------------------------------
    66106118
    6611                                                   ac_config_files="$ac_config_files Makefile src/text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
    6612           ac_config_commands="$ac_config_commands default"
     6119ac_config_files="$ac_config_files Makefile src/text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
     6120
     6121ac_config_commands="$ac_config_commands default"
     6122
    66136123cat >confcache <<\_ACEOF
    66146124# This file is a shell script that caches the results of configure
     
    66296139# The following way of writing the cache mishandles newlines in values,
    66306140# but we know of no workaround that is simple, portable, and efficient.
    6631 # So, don't put newlines in cache variables' values.
     6141# So, we kill variables containing newlines.
    66326142# Ultrix sh set writes to stderr and can't be redirected directly,
    66336143# and sets the high bit in the cache file unless we assign to the vars.
    6634 {
     6144(
     6145  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6146    eval ac_val=\$$ac_var
     6147    case $ac_val in #(
     6148    *${as_nl}*)
     6149      case $ac_var in #(
     6150      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6151$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6152      esac
     6153      case $ac_var in #(
     6154      _ | IFS | as_nl) ;; #(
     6155      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6156      *) { eval $ac_var=; unset $ac_var;} ;;
     6157      esac ;;
     6158    esac
     6159  done
     6160
    66356161  (set) 2>&1 |
    6636     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    6637     *ac_space=\ *)
    6638       # `set' does not quote correctly, so add quotes (double-quote
    6639       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6162    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6163    *${as_nl}ac_space=\ *)
     6164      # `set' does not quote correctly, so add quotes: double-quote
     6165      # substitution turns \\\\ into \\, and sed turns \\ into \.
    66406166      sed -n \
    66416167    "s/'/'\\\\''/g;
    66426168      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    6643       ;;
     6169      ;; #(
    66446170    *)
    66456171      # `set' quotes correctly as required by POSIX, so do not add quotes.
    6646       sed -n \
    6647     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    66486173      ;;
    6649     esac;
    6650 } |
     6174    esac |
     6175    sort
     6176) |
    66516177  sed '
     6178     /^ac_cv_env_/b end
    66526179     t clear
    6653      : clear
     6180     :clear
    66546181     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    66556182     t end
    6656      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    6657      : end' >>confcache
    6658 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    6659   if test -w $cache_file; then
    6660     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6183     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6184     :end' >>confcache
     6185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6186  if test -w "$cache_file"; then
     6187    test "x$cache_file" != "x/dev/null" &&
     6188      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6189$as_echo "$as_me: updating cache $cache_file" >&6;}
    66616190    cat confcache >$cache_file
    66626191  else
    6663     echo "not updating unwritable cache $cache_file"
     6192    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6193$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    66646194  fi
    66656195fi
     
    66706200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    66716201
    6672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    6673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    6674 # trailing colons and then remove the whole line if VPATH becomes empty
    6675 # (actually we leave an empty line to preserve line numbers).
    6676 if test "x$srcdir" = x.; then
    6677   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    6678 s/:*\$(srcdir):*/:/;
    6679 s/:*\${srcdir}:*/:/;
    6680 s/:*@srcdir@:*/:/;
    6681 s/^\([^=]*=[     ]*\):*/\1/;
    6682 s/:*$//;
    6683 s/^[^=]*=[   ]*$//;
    6684 }'
    6685 fi
    6686 
    66876202DEFS=-DHAVE_CONFIG_H
    66886203
    66896204ac_libobjs=
    66906205ac_ltlibobjs=
     6206U=
    66916207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    66926208  # 1. Remove the extension, and $U if already installed.
    6693   ac_i=`echo "$ac_i" |
    6694      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    6695   # 2. Add them.
    6696   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    6697   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6209  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6210  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6211  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6212  #    will be set to the directory where LIBOBJS objects are built.
     6213  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6214  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    66986215done
    66996216LIBOBJS=$ac_libobjs
     
    67036220
    67046221
     6222
    67056223: ${CONFIG_STATUS=./config.status}
     6224ac_write_fail=0
    67066225ac_clean_files_save=$ac_clean_files
    67076226ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    6708 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    6709 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    6710 cat >$CONFIG_STATUS <<_ACEOF
     6227{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6228$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6229as_write_fail=0
     6230cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    67116231#! $SHELL
    67126232# Generated by $as_me.
     
    67186238ac_cs_recheck=false
    67196239ac_cs_silent=false
     6240
    67206241SHELL=\${CONFIG_SHELL-$SHELL}
    6721 _ACEOF
    6722 
    6723 cat >>$CONFIG_STATUS <<\_ACEOF
    6724 ## --------------------- ##
    6725 ## M4sh Initialization.  ##
    6726 ## --------------------- ##
    6727 
    6728 # Be Bourne compatible
    6729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6242export SHELL
     6243_ASEOF
     6244cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6245## -------------------- ##
     6246## M4sh Initialization. ##
     6247## -------------------- ##
     6248
     6249# Be more Bourne compatible
     6250DUALCASE=1; export DUALCASE # for MKS sh
     6251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    67306252  emulate sh
    67316253  NULLCMD=:
    6732   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6254  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    67336255  # is contrary to our usage.  Disable this feature.
    67346256  alias -g '${1+"$@"}'='"$@"'
    6735 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    6736   set -o posix
    6737 fi
    6738 DUALCASE=1; export DUALCASE # for MKS sh
    6739 
    6740 # Support unset when possible.
    6741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    6742   as_unset=unset
    6743 else
    6744   as_unset=false
    6745 fi
    6746 
    6747 
    6748 # Work around bugs in pre-3.0 UWIN ksh.
    6749 $as_unset ENV MAIL MAILPATH
     6257  setopt NO_GLOB_SUBST
     6258else
     6259  case `(set -o) 2>/dev/null` in #(
     6260  *posix*) :
     6261    set -o posix ;; #(
     6262  *) :
     6263     ;;
     6264esac
     6265fi
     6266
     6267
     6268as_nl='
     6269'
     6270export as_nl
     6271# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6272as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6275# Prefer a ksh shell builtin over an external printf program on Solaris,
     6276# but without wasting forks for bash or zsh.
     6277if test -z "$BASH_VERSION$ZSH_VERSION" \
     6278    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6279  as_echo='print -r --'
     6280  as_echo_n='print -rn --'
     6281elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6282  as_echo='printf %s\n'
     6283  as_echo_n='printf %s'
     6284else
     6285  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6286    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6287    as_echo_n='/usr/ucb/echo -n'
     6288  else
     6289    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6290    as_echo_n_body='eval
     6291      arg=$1;
     6292      case $arg in #(
     6293      *"$as_nl"*)
     6294    expr "X$arg" : "X\\(.*\\)$as_nl";
     6295    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6296      esac;
     6297      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6298    '
     6299    export as_echo_n_body
     6300    as_echo_n='sh -c $as_echo_n_body as_echo'
     6301  fi
     6302  export as_echo_body
     6303  as_echo='sh -c $as_echo_body as_echo'
     6304fi
     6305
     6306# The user is always right.
     6307if test "${PATH_SEPARATOR+set}" != set; then
     6308  PATH_SEPARATOR=:
     6309  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6310    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6311      PATH_SEPARATOR=';'
     6312  }
     6313fi
     6314
     6315
     6316# IFS
     6317# We need space, tab and new line, in precisely that order.  Quoting is
     6318# there to prevent editors from complaining about space-tab.
     6319# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6320# splitting by setting IFS to empty value.)
     6321IFS=" ""    $as_nl"
     6322
     6323# Find who we are.  Look in the path if we contain no directory separator.
     6324case $0 in #((
     6325  *[\\/]* ) as_myself=$0 ;;
     6326  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6327for as_dir in $PATH
     6328do
     6329  IFS=$as_save_IFS
     6330  test -z "$as_dir" && as_dir=.
     6331    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6332  done
     6333IFS=$as_save_IFS
     6334
     6335     ;;
     6336esac
     6337# We did not find ourselves, most probably we were run as `sh COMMAND'
     6338# in which case we are not to be found in the path.
     6339if test "x$as_myself" = x; then
     6340  as_myself=$0
     6341fi
     6342if test ! -f "$as_myself"; then
     6343  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6344  exit 1
     6345fi
     6346
     6347# Unset variables that we do not need and which cause bugs (e.g. in
     6348# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6349# suppresses any "Segmentation fault" message there.  '((' could
     6350# trigger a bug in pdksh 5.2.14.
     6351for as_var in BASH_ENV ENV MAIL MAILPATH
     6352do eval test x\${$as_var+set} = xset \
     6353  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6354done
    67506355PS1='$ '
    67516356PS2='> '
     
    67536358
    67546359# NLS nuisances.
    6755 for as_var in \
    6756   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    6757   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    6758   LC_TELEPHONE LC_TIME
    6759 do
    6760   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    6761     eval $as_var=C; export $as_var
    6762   else
    6763     $as_unset $as_var
     6360LC_ALL=C
     6361export LC_ALL
     6362LANGUAGE=C
     6363export LANGUAGE
     6364
     6365# CDPATH.
     6366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6367
     6368
     6369# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6370# ----------------------------------------
     6371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6373# script with STATUS, using 1 if that was 0.
     6374as_fn_error ()
     6375{
     6376  as_status=$1; test $as_status -eq 0 && as_status=1
     6377  if test "$4"; then
     6378    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6379    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    67646380  fi
    6765 done
    6766 
    6767 # Required to use basename.
    6768 if expr a : '\(a\)' >/dev/null 2>&1; then
     6381  $as_echo "$as_me: error: $2" >&2
     6382  as_fn_exit $as_status
     6383} # as_fn_error
     6384
     6385
     6386# as_fn_set_status STATUS
     6387# -----------------------
     6388# Set $? to STATUS, without forking.
     6389as_fn_set_status ()
     6390{
     6391  return $1
     6392} # as_fn_set_status
     6393
     6394# as_fn_exit STATUS
     6395# -----------------
     6396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6397as_fn_exit ()
     6398{
     6399  set +e
     6400  as_fn_set_status $1
     6401  exit $1
     6402} # as_fn_exit
     6403
     6404# as_fn_unset VAR
     6405# ---------------
     6406# Portably unset VAR.
     6407as_fn_unset ()
     6408{
     6409  { eval $1=; unset $1;}
     6410}
     6411as_unset=as_fn_unset
     6412# as_fn_append VAR VALUE
     6413# ----------------------
     6414# Append the text in VALUE to the end of the definition contained in VAR. Take
     6415# advantage of any shell optimizations that allow amortized linear growth over
     6416# repeated appends, instead of the typical quadratic growth present in naive
     6417# implementations.
     6418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6419  eval 'as_fn_append ()
     6420  {
     6421    eval $1+=\$2
     6422  }'
     6423else
     6424  as_fn_append ()
     6425  {
     6426    eval $1=\$$1\$2
     6427  }
     6428fi # as_fn_append
     6429
     6430# as_fn_arith ARG...
     6431# ------------------
     6432# Perform arithmetic evaluation on the ARGs, and store the result in the
     6433# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6434# must be portable across $(()) and expr.
     6435if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6436  eval 'as_fn_arith ()
     6437  {
     6438    as_val=$(( $* ))
     6439  }'
     6440else
     6441  as_fn_arith ()
     6442  {
     6443    as_val=`expr "$@" || test $? -eq 1`
     6444  }
     6445fi # as_fn_arith
     6446
     6447
     6448if expr a : '\(a\)' >/dev/null 2>&1 &&
     6449   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    67696450  as_expr=expr
    67706451else
     
    67726453fi
    67736454
    6774 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6455if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    67756456  as_basename=basename
    67766457else
     
    67786459fi
    67796460
    6780 
    6781 # Name of the executable.
    6782 as_me=`$as_basename "$0" ||
     6461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     6462  as_dirname=dirname
     6463else
     6464  as_dirname=false
     6465fi
     6466
     6467as_me=`$as_basename -- "$0" ||
    67836468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    67846469     X"$0" : 'X\(//\)$' \| \
    6785      X"$0" : 'X\(/\)$' \| \
    6786      .     : '\(.\)' 2>/dev/null ||
    6787 echo X/"$0" |
    6788     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    6789       /^X\/\(\/\/\)$/{ s//\1/; q; }
    6790       /^X\/\(\/\).*/{ s//\1/; q; }
    6791       s/.*/./; q'`
    6792 
    6793 
    6794 # PATH needs CR, and LINENO needs CR and PATH.
     6470     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     6471$as_echo X/"$0" |
     6472    sed '/^.*\/\([^/][^/]*\)\/*$/{
     6473        s//\1/
     6474        q
     6475      }
     6476      /^X\/\(\/\/\)$/{
     6477        s//\1/
     6478        q
     6479      }
     6480      /^X\/\(\/\).*/{
     6481        s//\1/
     6482        q
     6483      }
     6484      s/.*/./; q'`
     6485
    67956486# Avoid depending upon Character Ranges.
    67966487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    68006491as_cr_alnum=$as_cr_Letters$as_cr_digits
    68016492
    6802 # The user is always right.
    6803 if test "${PATH_SEPARATOR+set}" != set; then
    6804   echo "#! /bin/sh" >conf$$.sh
    6805   echo  "exit 0"   >>conf$$.sh
    6806   chmod +x conf$$.sh
    6807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    6808     PATH_SEPARATOR=';'
     6493ECHO_C= ECHO_N= ECHO_T=
     6494case `echo -n x` in #(((((
     6495-n*)
     6496  case `echo 'xy\c'` in
     6497  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     6498  xy)  ECHO_C='\c';;
     6499  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     6500       ECHO_T=' ';;
     6501  esac;;
     6502*)
     6503  ECHO_N='-n';;
     6504esac
     6505
     6506rm -f conf$$ conf$$.exe conf$$.file
     6507if test -d conf$$.dir; then
     6508  rm -f conf$$.dir/conf$$.file
     6509else
     6510  rm -f conf$$.dir
     6511  mkdir conf$$.dir 2>/dev/null
     6512fi
     6513if (echo >conf$$.file) 2>/dev/null; then
     6514  if ln -s conf$$.file conf$$ 2>/dev/null; then
     6515    as_ln_s='ln -s'
     6516    # ... but there are two gotchas:
     6517    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     6518    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     6519    # In both cases, we have to default to `cp -p'.
     6520    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     6521      as_ln_s='cp -p'
     6522  elif ln conf$$.file conf$$ 2>/dev/null; then
     6523    as_ln_s=ln
    68096524  else
    6810     PATH_SEPARATOR=:
     6525    as_ln_s='cp -p'
    68116526  fi
    6812   rm -f conf$$.sh
    6813 fi
    6814 
    6815 
    6816   as_lineno_1=$LINENO
    6817   as_lineno_2=$LINENO
    6818   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    6819   test "x$as_lineno_1" != "x$as_lineno_2" &&
    6820   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    6821   # Find who we are.  Look in the path if we contain no path at all
    6822   # relative or not.
    6823   case $0 in
    6824     *[\\/]* ) as_myself=$0 ;;
    6825     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    6826 for as_dir in $PATH
    6827 do
    6828   IFS=$as_save_IFS
    6829   test -z "$as_dir" && as_dir=.
    6830   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    6831 done
    6832 
    6833        ;;
     6527else
     6528  as_ln_s='cp -p'
     6529fi
     6530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     6531rmdir conf$$.dir 2>/dev/null
     6532
     6533
     6534# as_fn_mkdir_p
     6535# -------------
     6536# Create "$as_dir" as a directory, including parents if necessary.
     6537as_fn_mkdir_p ()
     6538{
     6539
     6540  case $as_dir in #(
     6541  -*) as_dir=./$as_dir;;
    68346542  esac
    6835   # We did not find ourselves, most probably we were run as `sh COMMAND'
    6836   # in which case we are not to be found in the path.
    6837   if test "x$as_myself" = x; then
    6838     as_myself=$0
    6839   fi
    6840   if test ! -f "$as_myself"; then
    6841     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    6842 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    6843    { (exit 1); exit 1; }; }
    6844   fi
    6845   case $CONFIG_SHELL in
    6846   '')
    6847     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    6848 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    6849 do
    6850   IFS=$as_save_IFS
    6851   test -z "$as_dir" && as_dir=.
    6852   for as_base in sh bash ksh sh5; do
    6853      case $as_dir in
    6854      /*)
    6855        if ("$as_dir/$as_base" -c '
    6856   as_lineno_1=$LINENO
    6857   as_lineno_2=$LINENO
    6858   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    6859   test "x$as_lineno_1" != "x$as_lineno_2" &&
    6860   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    6861          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    6862          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    6863          CONFIG_SHELL=$as_dir/$as_base
    6864          export CONFIG_SHELL
    6865          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    6866        fi;;
    6867      esac
    6868        done
    6869 done
    6870 ;;
    6871   esac
    6872 
    6873   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    6874   # uniformly replaced by the line number.  The first 'sed' inserts a
    6875   # line-number line before each line; the second 'sed' does the real
    6876   # work.  The second script uses 'N' to pair each line-number line
    6877   # with the numbered line, and appends trailing '-' during
    6878   # substitution so that $LINENO is not a special case at line end.
    6879   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    6880   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    6881   sed '=' <$as_myself |
    6882     sed '
    6883       N
    6884       s,$,-,
    6885       : loop
    6886       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    6887       t loop
    6888       s,-$,,
    6889       s,^['$as_cr_digits']*\n,,
    6890     ' >$as_me.lineno &&
    6891   chmod +x $as_me.lineno ||
    6892     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    6893 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    6894    { (exit 1); exit 1; }; }
    6895 
    6896   # Don't try to exec as it changes $[0], causing all sort of problems
    6897   # (the dirname of $[0] is not the place where we might find the
    6898   # original and so on.  Autoconf is especially sensible to this).
    6899   . ./$as_me.lineno
    6900   # Exit status is that of the last command.
    6901   exit
    6902 }
    6903 
    6904 
    6905 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    6906   *c*,-n*) ECHO_N= ECHO_C='
    6907 ' ECHO_T='  ' ;;
    6908   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    6909   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    6910 esac
    6911 
    6912 if expr a : '\(a\)' >/dev/null 2>&1; then
    6913   as_expr=expr
    6914 else
    6915   as_expr=false
    6916 fi
    6917 
    6918 rm -f conf$$ conf$$.exe conf$$.file
    6919 echo >conf$$.file
    6920 if ln -s conf$$.file conf$$ 2>/dev/null; then
    6921   # We could just check for DJGPP; but this test a) works b) is more generic
    6922   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    6923   if test -f conf$$.exe; then
    6924     # Don't use ln at all; we don't have any links
    6925     as_ln_s='cp -p'
    6926   else
    6927     as_ln_s='ln -s'
    6928   fi
    6929 elif ln conf$$.file conf$$ 2>/dev/null; then
    6930   as_ln_s=ln
    6931 else
    6932   as_ln_s='cp -p'
    6933 fi
    6934 rm -f conf$$ conf$$.exe conf$$.file
    6935 
     6543  test -d "$as_dir" || eval $as_mkdir_p || {
     6544    as_dirs=
     6545    while :; do
     6546      case $as_dir in #(
     6547      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     6548      *) as_qdir=$as_dir;;
     6549      esac
     6550      as_dirs="'$as_qdir' $as_dirs"
     6551      as_dir=`$as_dirname -- "$as_dir" ||
     6552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6553     X"$as_dir" : 'X\(//\)[^/]' \| \
     6554     X"$as_dir" : 'X\(//\)$' \| \
     6555     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     6556$as_echo X"$as_dir" |
     6557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     6558        s//\1/
     6559        q
     6560      }
     6561      /^X\(\/\/\)[^/].*/{
     6562        s//\1/
     6563        q
     6564      }
     6565      /^X\(\/\/\)$/{
     6566        s//\1/
     6567        q
     6568      }
     6569      /^X\(\/\).*/{
     6570        s//\1/
     6571        q
     6572      }
     6573      s/.*/./; q'`
     6574      test -d "$as_dir" && break
     6575    done
     6576    test -z "$as_dirs" || eval "mkdir $as_dirs"
     6577  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     6578
     6579
     6580} # as_fn_mkdir_p
    69366581if mkdir -p . 2>/dev/null; then
    6937   as_mkdir_p=:
     6582  as_mkdir_p='mkdir -p "$as_dir"'
    69386583else
    69396584  test -d ./-p && rmdir ./-p
     
    69416586fi
    69426587
    6943 as_executable_p="test -f"
     6588if test -x / >/dev/null 2>&1; then
     6589  as_test_x='test -x'
     6590else
     6591  if ls -dL / >/dev/null 2>&1; then
     6592    as_ls_L_option=L
     6593  else
     6594    as_ls_L_option=
     6595  fi
     6596  as_test_x='
     6597    eval sh -c '\''
     6598      if test -d "$1"; then
     6599    test -d "$1/.";
     6600      else
     6601    case $1 in #(
     6602    -*)set "./$1";;
     6603    esac;
     6604    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     6605    ???[sx]*):;;*)false;;esac;fi
     6606    '\'' sh
     6607  '
     6608fi
     6609as_executable_p=$as_test_x
    69446610
    69456611# Sed expression to map a string onto a valid CPP name.
     
    69506616
    69516617
    6952 # IFS
    6953 # We need space, tab and new line, in precisely that order.
    6954 as_nl='
    6955 '
    6956 IFS="   $as_nl"
    6957 
    6958 # CDPATH.
    6959 $as_unset CDPATH
    6960 
    69616618exec 6>&1
    6962 
    6963 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     6619## ----------------------------------- ##
     6620## Main body of $CONFIG_STATUS script. ##
     6621## ----------------------------------- ##
     6622_ASEOF
     6623test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     6624
     6625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6626# Save the log message, to keep $0 and so on meaningful, and to
    69646627# report actual input values of CONFIG_FILES etc. instead of their
    6965 # values after options handling.  Logging --version etc. is OK.
     6628# values after options handling.
     6629ac_log="
     6630This file was extended by $as_me, which was
     6631generated by GNU Autoconf 2.67.  Invocation command line was
     6632
     6633  CONFIG_FILES    = $CONFIG_FILES
     6634  CONFIG_HEADERS  = $CONFIG_HEADERS
     6635  CONFIG_LINKS    = $CONFIG_LINKS
     6636  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6637  $ $0 $@
     6638
     6639on `(hostname || uname -n) 2>/dev/null | sed 1q`
     6640"
     6641
     6642_ACEOF
     6643
     6644case $ac_config_files in *"
     6645"*) set x $ac_config_files; shift; ac_config_files=$*;;
     6646esac
     6647
     6648case $ac_config_headers in *"
     6649"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     6650esac
     6651
     6652
     6653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6654# Files that config.status was made for.
     6655config_files="$ac_config_files"
     6656config_headers="$ac_config_headers"
     6657config_commands="$ac_config_commands"
     6658
     6659_ACEOF
     6660
     6661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6662ac_cs_usage="\
     6663\`$as_me' instantiates files and other configuration actions
     6664from templates according to the current configuration.  Unless the files
     6665and actions are specified as TAGs, all are instantiated by default.
     6666
     6667Usage: $0 [OPTION]... [TAG]...
     6668
     6669  -h, --help       print this help, then exit
     6670  -V, --version    print version number and configuration settings, then exit
     6671      --config     print configuration, then exit
     6672  -q, --quiet, --silent
     6673                   do not print progress messages
     6674  -d, --debug      don't remove temporary files
     6675      --recheck    update $as_me by reconfiguring in the same conditions
     6676      --file=FILE[:TEMPLATE]
     6677                   instantiate the configuration file FILE
     6678      --header=FILE[:TEMPLATE]
     6679                   instantiate the configuration header FILE
     6680
     6681Configuration files:
     6682$config_files
     6683
     6684Configuration headers:
     6685$config_headers
     6686
     6687Configuration commands:
     6688$config_commands
     6689
     6690Report bugs to the package provider."
     6691
     6692_ACEOF
     6693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6694ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     6695ac_cs_version="\\
     6696config.status
     6697configured by $0, generated by GNU Autoconf 2.67,
     6698  with options \\"\$ac_cs_config\\"
     6699
     6700Copyright (C) 2010 Free Software Foundation, Inc.
     6701This config.status script is free software; the Free Software Foundation
     6702gives unlimited permission to copy, distribute and modify it."
     6703
     6704ac_pwd='$ac_pwd'
     6705srcdir='$srcdir'
     6706INSTALL='$INSTALL'
     6707AWK='$AWK'
     6708test -n "\$AWK" || AWK=awk
     6709_ACEOF
     6710
     6711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6712# The default lists apply if the user does not specify any file.
     6713ac_need_defaults=:
     6714while test $# != 0
     6715do
     6716  case $1 in
     6717  --*=?*)
     6718    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     6719    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     6720    ac_shift=:
     6721    ;;
     6722  --*=)
     6723    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     6724    ac_optarg=
     6725    ac_shift=:
     6726    ;;
     6727  *)
     6728    ac_option=$1
     6729    ac_optarg=$2
     6730    ac_shift=shift
     6731    ;;
     6732  esac
     6733
     6734  case $ac_option in
     6735  # Handling of the options.
     6736  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     6737    ac_cs_recheck=: ;;
     6738  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     6739    $as_echo "$ac_cs_version"; exit ;;
     6740  --config | --confi | --conf | --con | --co | --c )
     6741    $as_echo "$ac_cs_config"; exit ;;
     6742  --debug | --debu | --deb | --de | --d | -d )
     6743    debug=: ;;
     6744  --file | --fil | --fi | --f )
     6745    $ac_shift
     6746    case $ac_optarg in
     6747    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     6748    '') as_fn_error $? "missing file argument" ;;
     6749    esac
     6750    as_fn_append CONFIG_FILES " '$ac_optarg'"
     6751    ac_need_defaults=false;;
     6752  --header | --heade | --head | --hea )
     6753    $ac_shift
     6754    case $ac_optarg in
     6755    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     6756    esac
     6757    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     6758    ac_need_defaults=false;;
     6759  --he | --h)
     6760    # Conflict between --help and --header
     6761    as_fn_error $? "ambiguous option: \`$1'
     6762Try \`$0 --help' for more information.";;
     6763  --help | --hel | -h )
     6764    $as_echo "$ac_cs_usage"; exit ;;
     6765  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6766  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6767    ac_cs_silent=: ;;
     6768
     6769  # This is an error.
     6770  -*) as_fn_error $? "unrecognized option: \`$1'
     6771Try \`$0 --help' for more information." ;;
     6772
     6773  *) as_fn_append ac_config_targets " $1"
     6774     ac_need_defaults=false ;;
     6775
     6776  esac
     6777  shift
     6778done
     6779
     6780ac_configure_extra_args=
     6781
     6782if $ac_cs_silent; then
     6783  exec 6>/dev/null
     6784  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6785fi
     6786
     6787_ACEOF
     6788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6789if \$ac_cs_recheck; then
     6790  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6791  shift
     6792  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     6793  CONFIG_SHELL='$SHELL'
     6794  export CONFIG_SHELL
     6795  exec "\$@"
     6796fi
     6797
     6798_ACEOF
     6799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    69666800exec 5>>config.log
    69676801{
     
    69706804## Running $as_me. ##
    69716805_ASBOX
     6806  $as_echo "$ac_log"
    69726807} >&5
    6973 cat >&5 <<_CSEOF
    6974 
    6975 This file was extended by $as_me, which was
    6976 generated by GNU Autoconf 2.59.  Invocation command line was
    6977 
    6978   CONFIG_FILES    = $CONFIG_FILES
    6979   CONFIG_HEADERS  = $CONFIG_HEADERS
    6980   CONFIG_LINKS    = $CONFIG_LINKS
    6981   CONFIG_COMMANDS = $CONFIG_COMMANDS
    6982   $ $0 $@
    6983 
    6984 _CSEOF
    6985 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    6986 echo >&5
    6987 _ACEOF
    6988 
    6989 # Files that config.status was made for.
    6990 if test -n "$ac_config_files"; then
    6991   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    6992 fi
    6993 
    6994 if test -n "$ac_config_headers"; then
    6995   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    6996 fi
    6997 
    6998 if test -n "$ac_config_links"; then
    6999   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    7000 fi
    7001 
    7002 if test -n "$ac_config_commands"; then
    7003   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    7004 fi
    7005 
    7006 cat >>$CONFIG_STATUS <<\_ACEOF
    7007 
    7008 ac_cs_usage="\
    7009 \`$as_me' instantiates files from templates according to the
    7010 current configuration.
    7011 
    7012 Usage: $0 [OPTIONS] [FILE]...
    7013 
    7014   -h, --help       print this help, then exit
    7015   -V, --version    print version number, then exit
    7016   -q, --quiet      do not print progress messages
    7017   -d, --debug      don't remove temporary files
    7018       --recheck    update $as_me by reconfiguring in the same conditions
    7019   --file=FILE[:TEMPLATE]
    7020            instantiate the configuration file FILE
    7021   --header=FILE[:TEMPLATE]
    7022            instantiate the configuration header FILE
    7023 
    7024 Configuration files:
    7025 $config_files
    7026 
    7027 Configuration headers:
    7028 $config_headers
    7029 
    7030 Configuration commands:
    7031 $config_commands
    7032 
    7033 Report bugs to <[email protected]>."
    7034 _ACEOF
    7035 
    7036 cat >>$CONFIG_STATUS <<_ACEOF
    7037 ac_cs_version="\\
    7038 config.status
    7039 configured by $0, generated by GNU Autoconf 2.59,
    7040   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    7041 
    7042 Copyright (C) 2003 Free Software Foundation, Inc.
    7043 This config.status script is free software; the Free Software Foundation
    7044 gives unlimited permission to copy, distribute and modify it."
    7045 srcdir=$srcdir
    7046 INSTALL="$INSTALL"
    7047 _ACEOF
    7048 
    7049 cat >>$CONFIG_STATUS <<\_ACEOF
    7050 # If no file are specified by the user, then we need to provide default
    7051 # value.  By we need to know if files were specified by the user.
    7052 ac_need_defaults=:
    7053 while test $# != 0
    7054 do
    7055   case $1 in
    7056   --*=*)
    7057     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    7058     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    7059     ac_shift=:
    7060     ;;
    7061   -*)
    7062     ac_option=$1
    7063     ac_optarg=$2
    7064     ac_shift=shift
    7065     ;;
    7066   *) # This is not an option, so the user has probably given explicit
    7067      # arguments.
    7068      ac_option=$1
    7069      ac_need_defaults=false;;
    7070   esac
    7071 
    7072   case $ac_option in
    7073   # Handling of the options.
    7074 _ACEOF
    7075 cat >>$CONFIG_STATUS <<\_ACEOF
    7076   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    7077     ac_cs_recheck=: ;;
    7078   --version | --vers* | -V )
    7079     echo "$ac_cs_version"; exit 0 ;;
    7080   --he | --h)
    7081     # Conflict between --help and --header
    7082     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    7083 Try \`$0 --help' for more information." >&5
    7084 echo "$as_me: error: ambiguous option: $1
    7085 Try \`$0 --help' for more information." >&2;}
    7086    { (exit 1); exit 1; }; };;
    7087   --help | --hel | -h )
    7088     echo "$ac_cs_usage"; exit 0 ;;
    7089   --debug | --d* | -d )
    7090     debug=: ;;
    7091   --file | --fil | --fi | --f )
    7092     $ac_shift
    7093     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    7094     ac_need_defaults=false;;
    7095   --header | --heade | --head | --hea )
    7096     $ac_shift
    7097     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    7098     ac_need_defaults=false;;
    7099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    7100   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    7101     ac_cs_silent=: ;;
    7102 
    7103   # This is an error.
    7104   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    7105 Try \`$0 --help' for more information." >&5
    7106 echo "$as_me: error: unrecognized option: $1
    7107 Try \`$0 --help' for more information." >&2;}
    7108    { (exit 1); exit 1; }; } ;;
    7109 
    7110   *) ac_config_targets="$ac_config_targets $1" ;;
    7111 
    7112   esac
    7113   shift
    7114 done
    7115 
    7116 ac_configure_extra_args=
    7117 
    7118 if $ac_cs_silent; then
    7119   exec 6>/dev/null
    7120   ac_configure_extra_args="$ac_configure_extra_args --silent"
    7121 fi
    7122 
    7123 _ACEOF
    7124 cat >>$CONFIG_STATUS <<_ACEOF
    7125 if \$ac_cs_recheck; then
    7126   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    7127   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    7128 fi
    7129 
    7130 _ACEOF
    7131 
    7132 
    7133 
    7134 
    7135 
    7136 cat >>$CONFIG_STATUS <<\_ACEOF
     6808
     6809_ACEOF
     6810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6811_ACEOF
     6812
     6813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6814
     6815# Handling of arguments.
    71376816for ac_config_target in $ac_config_targets
    71386817do
    7139   case "$ac_config_target" in
    7140   # Handling of arguments.
    7141   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7142   "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
    7143   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    7144   "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    7145   "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
    7146   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    7147   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    7148   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    7149 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    7150    { (exit 1); exit 1; }; };;
     6818  case $ac_config_target in
     6819    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6820    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6821    "src/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
     6822    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     6823    "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     6824    "java/org/greenstone/mg/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
     6825    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     6826
     6827  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    71516828  esac
    71526829done
     6830
    71536831
    71546832# If the user did not use the arguments to specify the items to instantiate,
     
    71636841
    71646842# Have a temporary directory for convenience.  Make it in the build tree
    7165 # simply because there is no reason to put it here, and in addition,
     6843# simply because there is no reason against having it here, and in addition,
    71666844# creating and moving files from /tmp can sometimes cause problems.
    7167 # Create a temporary directory, and hook for its removal unless debugging.
     6845# Hook for its removal unless debugging.
     6846# Note that there is a small window in which the directory will not be cleaned:
     6847# after its creation but before its name has been assigned to `$tmp'.
    71686848$debug ||
    71696849{
    7170   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    7171   trap '{ (exit 1); exit 1; }' 1 2 13 15
     6850  tmp=
     6851  trap 'exit_status=$?
     6852  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     6853' 0
     6854  trap 'as_fn_exit 1' 1 2 13 15
    71726855}
    7173 
    71746856# Create a (secure) tmp directory for tmp files.
    71756857
    71766858{
    7177   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     6859  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    71786860  test -n "$tmp" && test -d "$tmp"
    71796861}  ||
    71806862{
    7181   tmp=./confstat$$-$RANDOM
    7182   (umask 077 && mkdir $tmp)
    7183 } ||
     6863  tmp=./conf$$-$RANDOM
     6864  (umask 077 && mkdir "$tmp")
     6865} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     6866
     6867# Set up the scripts for CONFIG_FILES section.
     6868# No need to generate them if there are no CONFIG_FILES.
     6869# This happens for instance with `./config.status config.h'.
     6870if test -n "$CONFIG_FILES"; then
     6871
     6872
     6873ac_cr=`echo X | tr X '\015'`
     6874# On cygwin, bash can eat \r inside `` if the user requested igncr.
     6875# But we know of no other shell where ac_cr would be empty at this
     6876# point, so we can use a bashism as a fallback.
     6877if test "x$ac_cr" = x; then
     6878  eval ac_cr=\$\'\\r\'
     6879fi
     6880ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     6881if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     6882  ac_cs_awk_cr='\\r'
     6883else
     6884  ac_cs_awk_cr=$ac_cr
     6885fi
     6886
     6887echo 'BEGIN {' >"$tmp/subs1.awk" &&
     6888_ACEOF
     6889
     6890
    71846891{
    7185    echo "$me: cannot create a temporary directory in ." >&2
    7186    { (exit 1); exit 1; }
     6892  echo "cat >conf$$subs.awk <<_ACEOF" &&
     6893  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     6894  echo "_ACEOF"
     6895} >conf$$subs.sh ||
     6896  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     6897ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     6898ac_delim='%!_!# '
     6899for ac_last_try in false false false false false :; do
     6900  . ./conf$$subs.sh ||
     6901    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     6902
     6903  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     6904  if test $ac_delim_n = $ac_delim_num; then
     6905    break
     6906  elif $ac_last_try; then
     6907    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     6908  else
     6909    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     6910  fi
     6911done
     6912rm -f conf$$subs.sh
     6913
     6914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6915cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     6916_ACEOF
     6917sed -n '
     6918h
     6919s/^/S["/; s/!.*/"]=/
     6920p
     6921g
     6922s/^[^!]*!//
     6923:repl
     6924t repl
     6925s/'"$ac_delim"'$//
     6926t delim
     6927:nl
     6928h
     6929s/\(.\{148\}\)..*/\1/
     6930t more1
     6931s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     6932p
     6933n
     6934b repl
     6935:more1
     6936s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     6937p
     6938g
     6939s/.\{148\}//
     6940t nl
     6941:delim
     6942h
     6943s/\(.\{148\}\)..*/\1/
     6944t more2
     6945s/["\\]/\\&/g; s/^/"/; s/$/"/
     6946p
     6947b
     6948:more2
     6949s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     6950p
     6951g
     6952s/.\{148\}//
     6953t delim
     6954' <conf$$subs.awk | sed '
     6955/^[^""]/{
     6956  N
     6957  s/\n//
    71876958}
    7188 
    7189 _ACEOF
    7190 
    7191 cat >>$CONFIG_STATUS <<_ACEOF
    7192 
    7193 #
    7194 # CONFIG_FILES section.
    7195 #
    7196 
    7197 # No need to generate the scripts if there are no CONFIG_FILES.
    7198 # This happens for instance when ./config.status config.h
    7199 if test -n "\$CONFIG_FILES"; then
    7200   # Protect against being on the right side of a sed subst in config.status.
    7201   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    7202    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    7203 s,@SHELL@,$SHELL,;t t
    7204 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    7205 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    7206 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    7207 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    7208 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    7209 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    7210 s,@exec_prefix@,$exec_prefix,;t t
    7211 s,@prefix@,$prefix,;t t
    7212 s,@program_transform_name@,$program_transform_name,;t t
    7213 s,@bindir@,$bindir,;t t
    7214 s,@sbindir@,$sbindir,;t t
    7215 s,@libexecdir@,$libexecdir,;t t
    7216 s,@datadir@,$datadir,;t t
    7217 s,@sysconfdir@,$sysconfdir,;t t
    7218 s,@sharedstatedir@,$sharedstatedir,;t t
    7219 s,@localstatedir@,$localstatedir,;t t
    7220 s,@libdir@,$libdir,;t t
    7221 s,@includedir@,$includedir,;t t
    7222 s,@oldincludedir@,$oldincludedir,;t t
    7223 s,@infodir@,$infodir,;t t
    7224 s,@mandir@,$mandir,;t t
    7225 s,@build_alias@,$build_alias,;t t
    7226 s,@host_alias@,$host_alias,;t t
    7227 s,@target_alias@,$target_alias,;t t
    7228 s,@DEFS@,$DEFS,;t t
    7229 s,@ECHO_C@,$ECHO_C,;t t
    7230 s,@ECHO_N@,$ECHO_N,;t t
    7231 s,@ECHO_T@,$ECHO_T,;t t
    7232 s,@LIBS@,$LIBS,;t t
    7233 s,@build@,$build,;t t
    7234 s,@build_cpu@,$build_cpu,;t t
    7235 s,@build_vendor@,$build_vendor,;t t
    7236 s,@build_os@,$build_os,;t t
    7237 s,@host@,$host,;t t
    7238 s,@host_cpu@,$host_cpu,;t t
    7239 s,@host_vendor@,$host_vendor,;t t
    7240 s,@host_os@,$host_os,;t t
    7241 s,@target@,$target,;t t
    7242 s,@target_cpu@,$target_cpu,;t t
    7243 s,@target_vendor@,$target_vendor,;t t
    7244 s,@target_os@,$target_os,;t t
    7245 s,@PACKAGE@,$PACKAGE,;t t
    7246 s,@VERSION@,$VERSION,;t t
    7247 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    7248 s,@CXX@,$CXX,;t t
    7249 s,@CXXFLAGS@,$CXXFLAGS,;t t
    7250 s,@LDFLAGS@,$LDFLAGS,;t t
    7251 s,@CPPFLAGS@,$CPPFLAGS,;t t
    7252 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    7253 s,@EXEEXT@,$EXEEXT,;t t
    7254 s,@OBJEXT@,$OBJEXT,;t t
    7255 s,@AWK@,$AWK,;t t
    7256 s,@YACC@,$YACC,;t t
    7257 s,@CC@,$CC,;t t
    7258 s,@CFLAGS@,$CFLAGS,;t t
    7259 s,@ac_ct_CC@,$ac_ct_CC,;t t
    7260 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    7261 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    7262 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    7263 s,@LN_S@,$LN_S,;t t
    7264 s,@SET_MAKE@,$SET_MAKE,;t t
    7265 s,@RANLIB@,$RANLIB,;t t
    7266 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    7267 s,@CPP@,$CPP,;t t
    7268 s,@EGREP@,$EGREP,;t t
    7269 s,@U@,$U,;t t
    7270 s,@ANSI2KNR@,$ANSI2KNR,;t t
    7271 s,@ALLOCA@,$ALLOCA,;t t
    7272 s,@LIBOBJS@,$LIBOBJS,;t t
    7273 s,@JNIINC@,$JNIINC,;t t
    7274 s,@JNISUFFIX@,$JNISUFFIX,;t t
    7275 s,@JNIFLAGS@,$JNIFLAGS,;t t
    7276 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    7277 CEOF
    7278 
    7279 _ACEOF
    7280 
    7281   cat >>$CONFIG_STATUS <<\_ACEOF
    7282   # Split the substitutions into bite-sized pieces for seds with
    7283   # small command number limits, like on Digital OSF/1 and HP-UX.
    7284   ac_max_sed_lines=48
    7285   ac_sed_frag=1 # Number of current file.
    7286   ac_beg=1 # First line for current file.
    7287   ac_end=$ac_max_sed_lines # Line after last line for current file.
    7288   ac_more_lines=:
    7289   ac_sed_cmds=
    7290   while $ac_more_lines; do
    7291     if test $ac_beg -gt 1; then
    7292       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    7293     else
    7294       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     6959' >>$CONFIG_STATUS || ac_write_fail=1
     6960rm -f conf$$subs.awk
     6961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     6962_ACAWK
     6963cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     6964  for (key in S) S_is_set[key] = 1
     6965  FS = ""
     6966
     6967}
     6968{
     6969  line = $ 0
     6970  nfields = split(line, field, "@")
     6971  substed = 0
     6972  len = length(field[1])
     6973  for (i = 2; i < nfields; i++) {
     6974    key = field[i]
     6975    keylen = length(key)
     6976    if (S_is_set[key]) {
     6977      value = S[key]
     6978      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     6979      len += length(value) + length(field[++i])
     6980      substed = 1
     6981    } else
     6982      len += 1 + keylen
     6983  }
     6984
     6985  print line
     6986}
     6987
     6988_ACAWK
     6989_ACEOF
     6990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     6991if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     6992  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     6993else
     6994  cat
     6995fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     6996  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     6997_ACEOF
     6998
     6999# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7000# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7001# trailing colons and then remove the whole line if VPATH becomes empty
     7002# (actually we leave an empty line to preserve line numbers).
     7003if test "x$srcdir" = x.; then
     7004  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7005h
     7006s///
     7007s/^/:/
     7008s/[  ]*$/:/
     7009s/:\$(srcdir):/:/g
     7010s/:\${srcdir}:/:/g
     7011s/:@srcdir@:/:/g
     7012s/^:*//
     7013s/:*$//
     7014x
     7015s/\(=[   ]*\).*/\1/
     7016G
     7017s/\n//
     7018s/^[^=]*=[   ]*$//
     7019}'
     7020fi
     7021
     7022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7023fi # test -n "$CONFIG_FILES"
     7024
     7025# Set up the scripts for CONFIG_HEADERS section.
     7026# No need to generate them if there are no CONFIG_HEADERS.
     7027# This happens for instance with `./config.status Makefile'.
     7028if test -n "$CONFIG_HEADERS"; then
     7029cat >"$tmp/defines.awk" <<\_ACAWK ||
     7030BEGIN {
     7031_ACEOF
     7032
     7033# Transform confdefs.h into an awk script `defines.awk', embedded as
     7034# here-document in config.status, that substitutes the proper values into
     7035# config.h.in to produce config.h.
     7036
     7037# Create a delimiter string that does not exist in confdefs.h, to ease
     7038# handling of long lines.
     7039ac_delim='%!_!# '
     7040for ac_last_try in false false :; do
     7041  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7042  if test -z "$ac_t"; then
     7043    break
     7044  elif $ac_last_try; then
     7045    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7046  else
     7047    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7048  fi
     7049done
     7050
     7051# For the awk script, D is an array of macro values keyed by name,
     7052# likewise P contains macro parameters if any.  Preserve backslash
     7053# newline sequences.
     7054
     7055ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7056sed -n '
     7057s/.\{148\}/&'"$ac_delim"'/g
     7058t rset
     7059:rset
     7060s/^[     ]*#[    ]*define[   ][  ]*/ /
     7061t def
     7062d
     7063:def
     7064s/\\$//
     7065t bsnl
     7066s/["\\]/\\&/g
     7067s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7068D["\1"]=" \3"/p
     7069s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7070d
     7071:bsnl
     7072s/["\\]/\\&/g
     7073s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7074D["\1"]=" \3\\\\\\n"\\/p
     7075t cont
     7076s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7077t cont
     7078d
     7079:cont
     7080n
     7081s/.\{148\}/&'"$ac_delim"'/g
     7082t clear
     7083:clear
     7084s/\\$//
     7085t bsnlc
     7086s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7087d
     7088:bsnlc
     7089s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7090b cont
     7091' <confdefs.h | sed '
     7092s/'"$ac_delim"'/"\\\
     7093"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7094
     7095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7096  for (key in D) D_is_set[key] = 1
     7097  FS = ""
     7098}
     7099/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7100  line = \$ 0
     7101  split(line, arg, " ")
     7102  if (arg[1] == "#") {
     7103    defundef = arg[2]
     7104    mac1 = arg[3]
     7105  } else {
     7106    defundef = substr(arg[1], 2)
     7107    mac1 = arg[2]
     7108  }
     7109  split(mac1, mac2, "(") #)
     7110  macro = mac2[1]
     7111  prefix = substr(line, 1, index(line, defundef) - 1)
     7112  if (D_is_set[macro]) {
     7113    # Preserve the white space surrounding the "#".
     7114    print prefix "define", macro P[macro] D[macro]
     7115    next
     7116  } else {
     7117    # Replace #undef with comments.  This is necessary, for example,
     7118    # in the case of _POSIX_SOURCE, which is predefined and required
     7119    # on some systems where configure will not decide to define it.
     7120    if (defundef == "undef") {
     7121      print "/*", prefix defundef, macro, "*/"
     7122      next
     7123    }
     7124  }
     7125}
     7126{ print }
     7127_ACAWK
     7128_ACEOF
     7129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7130  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7131fi # test -n "$CONFIG_HEADERS"
     7132
     7133
     7134eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
     7135shift
     7136for ac_tag
     7137do
     7138  case $ac_tag in
     7139  :[FHLC]) ac_mode=$ac_tag; continue;;
     7140  esac
     7141  case $ac_mode$ac_tag in
     7142  :[FHL]*:*);;
     7143  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7144  :[FH]-) ac_tag=-:-;;
     7145  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7146  esac
     7147  ac_save_IFS=$IFS
     7148  IFS=:
     7149  set x $ac_tag
     7150  IFS=$ac_save_IFS
     7151  shift
     7152  ac_file=$1
     7153  shift
     7154
     7155  case $ac_mode in
     7156  :L) ac_source=$1;;
     7157  :[FH])
     7158    ac_file_inputs=
     7159    for ac_f
     7160    do
     7161      case $ac_f in
     7162      -) ac_f="$tmp/stdin";;
     7163      *) # Look for the file first in the build tree, then in the source tree
     7164     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7165     # because $ac_f cannot contain `:'.
     7166     test -f "$ac_f" ||
     7167       case $ac_f in
     7168       [\\/$]*) false;;
     7169       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7170       esac ||
     7171       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7172      esac
     7173      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7174      as_fn_append ac_file_inputs " '$ac_f'"
     7175    done
     7176
     7177    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7178    # use $as_me), people would be surprised to read:
     7179    #    /* config.h.  Generated by config.status.  */
     7180    configure_input='Generated from '`
     7181      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7182    `' by configure.'
     7183    if test x"$ac_file" != x-; then
     7184      configure_input="$ac_file.  $configure_input"
     7185      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7186$as_echo "$as_me: creating $ac_file" >&6;}
    72957187    fi
    7296     if test ! -s $tmp/subs.frag; then
    7297       ac_more_lines=false
    7298     else
    7299       # The purpose of the label and of the branching condition is to
    7300       # speed up the sed processing (if there are no `@' at all, there
    7301       # is no need to browse any of the substitutions).
    7302       # These are the two extra sed commands mentioned above.
    7303       (echo ':t
    7304   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    7305       if test -z "$ac_sed_cmds"; then
    7306     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    7307       else
    7308     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    7309       fi
    7310       ac_sed_frag=`expr $ac_sed_frag + 1`
    7311       ac_beg=$ac_end
    7312       ac_end=`expr $ac_end + $ac_max_sed_lines`
    7313     fi
    7314   done
    7315   if test -z "$ac_sed_cmds"; then
    7316     ac_sed_cmds=cat
    7317   fi
    7318 fi # test -n "$CONFIG_FILES"
    7319 
    7320 _ACEOF
    7321 cat >>$CONFIG_STATUS <<\_ACEOF
    7322 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    7323   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    7324   case $ac_file in
    7325   - | *:- | *:-:* ) # input from stdin
    7326     cat >$tmp/stdin
    7327     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    7328     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    7329   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    7330     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    7331   * )   ac_file_in=$ac_file.in ;;
     7188    # Neutralize special characters interpreted by sed in replacement strings.
     7189    case $configure_input in #(
     7190    *\&* | *\|* | *\\* )
     7191       ac_sed_conf_input=`$as_echo "$configure_input" |
     7192       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7193    *) ac_sed_conf_input=$configure_input;;
     7194    esac
     7195
     7196    case $ac_tag in
     7197    *:-:* | *:-) cat >"$tmp/stdin" \
     7198      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7199    esac
     7200    ;;
    73327201  esac
    73337202
    7334   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    7335   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7203  ac_dir=`$as_dirname -- "$ac_file" ||
    73367204$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    73377205     X"$ac_file" : 'X\(//\)[^/]' \| \
    73387206     X"$ac_file" : 'X\(//\)$' \| \
    7339      X"$ac_file" : 'X\(/\)' \| \
    7340      .     : '\(.\)' 2>/dev/null ||
    7341 echo X"$ac_file" |
    7342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7343       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7344       /^X\(\/\/\)$/{ s//\1/; q; }
    7345       /^X\(\/\).*/{ s//\1/; q; }
    7346       s/.*/./; q'`
    7347   { if $as_mkdir_p; then
    7348     mkdir -p "$ac_dir"
    7349   else
    7350     as_dir="$ac_dir"
    7351     as_dirs=
    7352     while test ! -d "$as_dir"; do
    7353       as_dirs="$as_dir $as_dirs"
    7354       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    7355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7356      X"$as_dir" : 'X\(//\)[^/]' \| \
    7357      X"$as_dir" : 'X\(//\)$' \| \
    7358      X"$as_dir" : 'X\(/\)' \| \
    7359      .     : '\(.\)' 2>/dev/null ||
    7360 echo X"$as_dir" |
    7361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7362       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7363       /^X\(\/\/\)$/{ s//\1/; q; }
    7364       /^X\(\/\).*/{ s//\1/; q; }
    7365       s/.*/./; q'`
    7366     done
    7367     test ! -n "$as_dirs" || mkdir $as_dirs
    7368   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    7369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    7370    { (exit 1); exit 1; }; }; }
    7371 
     7207     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7208$as_echo X"$ac_file" |
     7209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7210        s//\1/
     7211        q
     7212      }
     7213      /^X\(\/\/\)[^/].*/{
     7214        s//\1/
     7215        q
     7216      }
     7217      /^X\(\/\/\)$/{
     7218        s//\1/
     7219        q
     7220      }
     7221      /^X\(\/\).*/{
     7222        s//\1/
     7223        q
     7224      }
     7225      s/.*/./; q'`
     7226  as_dir="$ac_dir"; as_fn_mkdir_p
    73727227  ac_builddir=.
    73737228
    7374 if test "$ac_dir" != .; then
    7375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    7376   # A "../" for each directory in $ac_dir_suffix.
    7377   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    7378 else
    7379   ac_dir_suffix= ac_top_builddir=
    7380 fi
     7229case "$ac_dir" in
     7230.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7231*)
     7232  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7233  # A ".." for each directory in $ac_dir_suffix.
     7234  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7235  case $ac_top_builddir_sub in
     7236  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7237  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7238  esac ;;
     7239esac
     7240ac_abs_top_builddir=$ac_pwd
     7241ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7242# for backward compatibility:
     7243ac_top_builddir=$ac_top_build_prefix
    73817244
    73827245case $srcdir in
    7383   .)  # No --srcdir option.  We are building in place.
     7246  .)  # We are building in place.
    73847247    ac_srcdir=.
    7385     if test -z "$ac_top_builddir"; then
    7386        ac_top_srcdir=.
    7387     else
    7388        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    7389     fi ;;
    7390   [\\/]* | ?:[\\/]* )  # Absolute path.
     7248    ac_top_srcdir=$ac_top_builddir_sub
     7249    ac_abs_top_srcdir=$ac_pwd ;;
     7250  [\\/]* | ?:[\\/]* )  # Absolute name.
    73917251    ac_srcdir=$srcdir$ac_dir_suffix;
    7392     ac_top_srcdir=$srcdir ;;
    7393   *) # Relative path.
    7394     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    7395     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7252    ac_top_srcdir=$srcdir
     7253    ac_abs_top_srcdir=$srcdir ;;
     7254  *) # Relative name.
     7255    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7256    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7257    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    73967258esac
    7397 
    7398 # Do not use `cd foo && pwd` to compute absolute paths, because
    7399 # the directories may not exist.
    7400 case `pwd` in
    7401 .) ac_abs_builddir="$ac_dir";;
    7402 *)
    7403   case "$ac_dir" in
    7404   .) ac_abs_builddir=`pwd`;;
    7405   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    7406   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    7407   esac;;
    7408 esac
    7409 case $ac_abs_builddir in
    7410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    7411 *)
    7412   case ${ac_top_builddir}. in
    7413   .) ac_abs_top_builddir=$ac_abs_builddir;;
    7414   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    7415   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    7416   esac;;
    7417 esac
    7418 case $ac_abs_builddir in
    7419 .) ac_abs_srcdir=$ac_srcdir;;
    7420 *)
    7421   case $ac_srcdir in
    7422   .) ac_abs_srcdir=$ac_abs_builddir;;
    7423   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    7424   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    7425   esac;;
    7426 esac
    7427 case $ac_abs_builddir in
    7428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    7429 *)
    7430   case $ac_top_srcdir in
    7431   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    7432   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    7433   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    7434   esac;;
    7435 esac
    7436 
     7259ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7260
     7261
     7262  case $ac_mode in
     7263  :F)
     7264  #
     7265  # CONFIG_FILE
     7266  #
    74377267
    74387268  case $INSTALL in
    74397269  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    7440   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7270  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    74417271  esac
    7442 
    7443   if test x"$ac_file" != x-; then
    7444     { echo "$as_me:$LINENO: creating $ac_file" >&5
    7445 echo "$as_me: creating $ac_file" >&6;}
    7446     rm -f "$ac_file"
    7447   fi
    7448   # Let's still pretend it is `configure' which instantiates (i.e., don't
    7449   # use $as_me), people would be surprised to read:
    7450   #    /* config.h.  Generated by config.status.  */
    7451   if test x"$ac_file" = x-; then
    7452     configure_input=
    7453   else
    7454     configure_input="$ac_file.  "
    7455   fi
    7456   configure_input=$configure_input"Generated from `echo $ac_file_in |
    7457                      sed 's,.*/,,'` by configure."
    7458 
    7459   # First look for the input files in the build tree, otherwise in the
    7460   # src tree.
    7461   ac_file_inputs=`IFS=:
    7462     for f in $ac_file_in; do
    7463       case $f in
    7464       -) echo $tmp/stdin ;;
    7465       [\\/$]*)
    7466      # Absolute (can't be DOS-style, as IFS=:)
    7467      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    7468 echo "$as_me: error: cannot find input file: $f" >&2;}
    7469    { (exit 1); exit 1; }; }
    7470      echo "$f";;
    7471       *) # Relative
    7472      if test -f "$f"; then
    7473        # Build tree
    7474        echo "$f"
    7475      elif test -f "$srcdir/$f"; then
    7476        # Source tree
    7477        echo "$srcdir/$f"
    7478      else
    7479        # /dev/null tree
    7480        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    7481 echo "$as_me: error: cannot find input file: $f" >&2;}
    7482    { (exit 1); exit 1; }; }
    7483      fi;;
    7484       esac
    7485     done` || { (exit 1); exit 1; }
    7486 _ACEOF
    7487 cat >>$CONFIG_STATUS <<_ACEOF
    7488   sed "$ac_vpsub
     7272_ACEOF
     7273
     7274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7275# If the template does not know about datarootdir, expand it.
     7276# FIXME: This hack should be removed a few years after 2.60.
     7277ac_datarootdir_hack=; ac_datarootdir_seen=
     7278ac_sed_dataroot='
     7279/datarootdir/ {
     7280  p
     7281  q
     7282}
     7283/@datadir@/p
     7284/@docdir@/p
     7285/@infodir@/p
     7286/@localedir@/p
     7287/@mandir@/p'
     7288case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7289*datarootdir*) ac_datarootdir_seen=yes;;
     7290*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7291  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7292$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7293_ACEOF
     7294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7295  ac_datarootdir_hack='
     7296  s&@datadir@&$datadir&g
     7297  s&@docdir@&$docdir&g
     7298  s&@infodir@&$infodir&g
     7299  s&@localedir@&$localedir&g
     7300  s&@mandir@&$mandir&g
     7301  s&\\\${datarootdir}&$datarootdir&g' ;;
     7302esac
     7303_ACEOF
     7304
     7305# Neutralize VPATH when `$srcdir' = `.'.
     7306# Shell code in configure.ac might set extrasub.
     7307# FIXME: do we really want to maintain this feature?
     7308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7309ac_sed_extra="$ac_vpsub
    74897310$extrasub
    74907311_ACEOF
    7491 cat >>$CONFIG_STATUS <<\_ACEOF
     7312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    74927313:t
    74937314/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    7494 s,@configure_input@,$configure_input,;t t
    7495 s,@srcdir@,$ac_srcdir,;t t
    7496 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    7497 s,@top_srcdir@,$ac_top_srcdir,;t t
    7498 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    7499 s,@builddir@,$ac_builddir,;t t
    7500 s,@abs_builddir@,$ac_abs_builddir,;t t
    7501 s,@top_builddir@,$ac_top_builddir,;t t
    7502 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    7503 s,@INSTALL@,$ac_INSTALL,;t t
    7504 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    7505   rm -f $tmp/stdin
     7315s|@configure_input@|$ac_sed_conf_input|;t t
     7316s&@top_builddir@&$ac_top_builddir_sub&;t t
     7317s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7318s&@srcdir@&$ac_srcdir&;t t
     7319s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7320s&@top_srcdir@&$ac_top_srcdir&;t t
     7321s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7322s&@builddir@&$ac_builddir&;t t
     7323s&@abs_builddir@&$ac_abs_builddir&;t t
     7324s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7325s&@INSTALL@&$ac_INSTALL&;t t
     7326$ac_datarootdir_hack
     7327"
     7328eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7329  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7330
     7331test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7332  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7333  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7334  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7335which seems to be undefined.  Please make sure it is defined" >&5
     7336$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7337which seems to be undefined.  Please make sure it is defined" >&2;}
     7338
     7339  rm -f "$tmp/stdin"
     7340  case $ac_file in
     7341  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7342  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7343  esac \
     7344  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7345 ;;
     7346  :H)
     7347  #
     7348  # CONFIG_HEADER
     7349  #
    75067350  if test x"$ac_file" != x-; then
    7507     mv $tmp/out $ac_file
    7508   else
    7509     cat $tmp/out
    7510     rm -f $tmp/out
    7511   fi
    7512 
    7513 done
    7514 _ACEOF
    7515 cat >>$CONFIG_STATUS <<\_ACEOF
    7516 
    7517 #
    7518 # CONFIG_HEADER section.
    7519 #
    7520 
    7521 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    7522 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    7523 #
    7524 # ac_d sets the value in "#define NAME VALUE" lines.
    7525 ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
    7526 ac_dB='[     ].*$,\1#\2'
    7527 ac_dC=' '
    7528 ac_dD=',;t'
    7529 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    7530 ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    7531 ac_uB='$,\1#\2define\3'
    7532 ac_uC=' '
    7533 ac_uD=',;t'
    7534 
    7535 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    7536   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    7537   case $ac_file in
    7538   - | *:- | *:-:* ) # input from stdin
    7539     cat >$tmp/stdin
    7540     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    7541     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    7542   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    7543     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    7544   * )   ac_file_in=$ac_file.in ;;
    7545   esac
    7546 
    7547   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    7548 echo "$as_me: creating $ac_file" >&6;}
    7549 
    7550   # First look for the input files in the build tree, otherwise in the
    7551   # src tree.
    7552   ac_file_inputs=`IFS=:
    7553     for f in $ac_file_in; do
    7554       case $f in
    7555       -) echo $tmp/stdin ;;
    7556       [\\/$]*)
    7557      # Absolute (can't be DOS-style, as IFS=:)
    7558      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    7559 echo "$as_me: error: cannot find input file: $f" >&2;}
    7560    { (exit 1); exit 1; }; }
    7561      # Do quote $f, to prevent DOS paths from being IFS'd.
    7562      echo "$f";;
    7563       *) # Relative
    7564      if test -f "$f"; then
    7565        # Build tree
    7566        echo "$f"
    7567      elif test -f "$srcdir/$f"; then
    7568        # Source tree
    7569        echo "$srcdir/$f"
    7570      else
    7571        # /dev/null tree
    7572        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    7573 echo "$as_me: error: cannot find input file: $f" >&2;}
    7574    { (exit 1); exit 1; }; }
    7575      fi;;
    7576       esac
    7577     done` || { (exit 1); exit 1; }
    7578   # Remove the trailing spaces.
    7579   sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
    7580 
    7581 _ACEOF
    7582 
    7583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    7584 # `conftest.undefs', that substitutes the proper values into
    7585 # config.h.in to produce config.h.  The first handles `#define'
    7586 # templates, and the second `#undef' templates.
    7587 # And first: Protect against being on the right side of a sed subst in
    7588 # config.status.  Protect against being in an unquoted here document
    7589 # in config.status.
    7590 rm -f conftest.defines conftest.undefs
    7591 # Using a here document instead of a string reduces the quoting nightmare.
    7592 # Putting comments in sed scripts is not portable.
    7593 #
    7594 # `end' is used to avoid that the second main sed command (meant for
    7595 # 0-ary CPP macros) applies to n-ary macro definitions.
    7596 # See the Autoconf documentation for `clear'.
    7597 cat >confdef2sed.sed <<\_ACEOF
    7598 s/[\\&,]/\\&/g
    7599 s,[\\$`],\\&,g
    7600 t clear
    7601 : clear
    7602 s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    7603 t end
    7604 s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    7605 : end
    7606 _ACEOF
    7607 # If some macros were called several times there might be several times
    7608 # the same #defines, which is useless.  Nevertheless, we may not want to
    7609 # sort them, since we want the *last* AC-DEFINE to be honored.
    7610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    7611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    7612 rm -f confdef2sed.sed
    7613 
    7614 # This sed command replaces #undef with comments.  This is necessary, for
    7615 # example, in the case of _POSIX_SOURCE, which is predefined and required
    7616 # on some systems where configure will not decide to define it.
    7617 cat >>conftest.undefs <<\_ACEOF
    7618 s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    7619 _ACEOF
    7620 
    7621 # Break up conftest.defines because some shells have a limit on the size
    7622 # of here documents, and old seds have small limits too (100 cmds).
    7623 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    7624 echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    7625 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    7626 echo '  :' >>$CONFIG_STATUS
    7627 rm -f conftest.tail
    7628 while grep . conftest.defines >/dev/null
    7629 do
    7630   # Write a limited-size here document to $tmp/defines.sed.
    7631   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    7632   # Speed up: don't consider the non `#define' lines.
    7633   echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    7634   # Work around the forget-to-reset-the-flag bug.
    7635   echo 't clr' >>$CONFIG_STATUS
    7636   echo ': clr' >>$CONFIG_STATUS
    7637   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    7638   echo 'CEOF
    7639   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    7640   rm -f $tmp/in
    7641   mv $tmp/out $tmp/in
    7642 ' >>$CONFIG_STATUS
    7643   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    7644   rm -f conftest.defines
    7645   mv conftest.tail conftest.defines
    7646 done
    7647 rm -f conftest.defines
    7648 echo '  fi # grep' >>$CONFIG_STATUS
    7649 echo >>$CONFIG_STATUS
    7650 
    7651 # Break up conftest.undefs because some shells have a limit on the size
    7652 # of here documents, and old seds have small limits too (100 cmds).
    7653 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    7654 rm -f conftest.tail
    7655 while grep . conftest.undefs >/dev/null
    7656 do
    7657   # Write a limited-size here document to $tmp/undefs.sed.
    7658   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    7659   # Speed up: don't consider the non `#undef'
    7660   echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    7661   # Work around the forget-to-reset-the-flag bug.
    7662   echo 't clr' >>$CONFIG_STATUS
    7663   echo ': clr' >>$CONFIG_STATUS
    7664   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    7665   echo 'CEOF
    7666   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    7667   rm -f $tmp/in
    7668   mv $tmp/out $tmp/in
    7669 ' >>$CONFIG_STATUS
    7670   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    7671   rm -f conftest.undefs
    7672   mv conftest.tail conftest.undefs
    7673 done
    7674 rm -f conftest.undefs
    7675 
    7676 cat >>$CONFIG_STATUS <<\_ACEOF
    7677   # Let's still pretend it is `configure' which instantiates (i.e., don't
    7678   # use $as_me), people would be surprised to read:
    7679   #    /* config.h.  Generated by config.status.  */
    7680   if test x"$ac_file" = x-; then
    7681     echo "/* Generated by configure.  */" >$tmp/config.h
    7682   else
    7683     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    7684   fi
    7685   cat $tmp/in >>$tmp/config.h
    7686   rm -f $tmp/in
    7687   if test x"$ac_file" != x-; then
    7688     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    7689       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    7690 echo "$as_me: $ac_file is unchanged" >&6;}
     7351    {
     7352      $as_echo "/* $configure_input  */" \
     7353      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7354    } >"$tmp/config.h" \
     7355      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7356    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7357      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7358$as_echo "$as_me: $ac_file is unchanged" >&6;}
    76917359    else
    7692       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    7693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7694      X"$ac_file" : 'X\(//\)[^/]' \| \
    7695      X"$ac_file" : 'X\(//\)$' \| \
    7696      X"$ac_file" : 'X\(/\)' \| \
    7697      .     : '\(.\)' 2>/dev/null ||
    7698 echo X"$ac_file" |
    7699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7700       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7701       /^X\(\/\/\)$/{ s//\1/; q; }
    7702       /^X\(\/\).*/{ s//\1/; q; }
    7703       s/.*/./; q'`
    7704       { if $as_mkdir_p; then
    7705     mkdir -p "$ac_dir"
    7706   else
    7707     as_dir="$ac_dir"
    7708     as_dirs=
    7709     while test ! -d "$as_dir"; do
    7710       as_dirs="$as_dir $as_dirs"
    7711       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    7712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7713      X"$as_dir" : 'X\(//\)[^/]' \| \
    7714      X"$as_dir" : 'X\(//\)$' \| \
    7715      X"$as_dir" : 'X\(/\)' \| \
    7716      .     : '\(.\)' 2>/dev/null ||
    7717 echo X"$as_dir" |
    7718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7719       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7720       /^X\(\/\/\)$/{ s//\1/; q; }
    7721       /^X\(\/\).*/{ s//\1/; q; }
    7722       s/.*/./; q'`
    7723     done
    7724     test ! -n "$as_dirs" || mkdir $as_dirs
    7725   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    7726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    7727    { (exit 1); exit 1; }; }; }
    7728 
    7729       rm -f $ac_file
    7730       mv $tmp/config.h $ac_file
     7360      rm -f "$ac_file"
     7361      mv "$tmp/config.h" "$ac_file" \
     7362    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    77317363    fi
    77327364  else
    7733     cat $tmp/config.h
    7734     rm -f $tmp/config.h
     7365    $as_echo "/* $configure_input  */" \
     7366      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7367      || as_fn_error $? "could not create -" "$LINENO" 5
    77357368  fi
    7736 done
    7737 _ACEOF
    7738 cat >>$CONFIG_STATUS <<\_ACEOF
    7739 
    7740 #
    7741 # CONFIG_COMMANDS section.
    7742 #
    7743 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    7744   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    7745   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    7746   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
    7747 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7748      X"$ac_dest" : 'X\(//\)[^/]' \| \
    7749      X"$ac_dest" : 'X\(//\)$' \| \
    7750      X"$ac_dest" : 'X\(/\)' \| \
    7751      .     : '\(.\)' 2>/dev/null ||
    7752 echo X"$ac_dest" |
    7753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7754       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7755       /^X\(\/\/\)$/{ s//\1/; q; }
    7756       /^X\(\/\).*/{ s//\1/; q; }
    7757       s/.*/./; q'`
    7758   { if $as_mkdir_p; then
    7759     mkdir -p "$ac_dir"
    7760   else
    7761     as_dir="$ac_dir"
    7762     as_dirs=
    7763     while test ! -d "$as_dir"; do
    7764       as_dirs="$as_dir $as_dirs"
    7765       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    7766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7767      X"$as_dir" : 'X\(//\)[^/]' \| \
    7768      X"$as_dir" : 'X\(//\)$' \| \
    7769      X"$as_dir" : 'X\(/\)' \| \
    7770      .     : '\(.\)' 2>/dev/null ||
    7771 echo X"$as_dir" |
    7772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    7773       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    7774       /^X\(\/\/\)$/{ s//\1/; q; }
    7775       /^X\(\/\).*/{ s//\1/; q; }
    7776       s/.*/./; q'`
    7777     done
    7778     test ! -n "$as_dirs" || mkdir $as_dirs
    7779   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    7780 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    7781    { (exit 1); exit 1; }; }; }
    7782 
    7783   ac_builddir=.
    7784 
    7785 if test "$ac_dir" != .; then
    7786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    7787   # A "../" for each directory in $ac_dir_suffix.
    7788   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    7789 else
    7790   ac_dir_suffix= ac_top_builddir=
    7791 fi
    7792 
    7793 case $srcdir in
    7794   .)  # No --srcdir option.  We are building in place.
    7795     ac_srcdir=.
    7796     if test -z "$ac_top_builddir"; then
    7797        ac_top_srcdir=.
    7798     else
    7799        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    7800     fi ;;
    7801   [\\/]* | ?:[\\/]* )  # Absolute path.
    7802     ac_srcdir=$srcdir$ac_dir_suffix;
    7803     ac_top_srcdir=$srcdir ;;
    7804   *) # Relative path.
    7805     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    7806     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    7807 esac
    7808 
    7809 # Do not use `cd foo && pwd` to compute absolute paths, because
    7810 # the directories may not exist.
    7811 case `pwd` in
    7812 .) ac_abs_builddir="$ac_dir";;
    7813 *)
    7814   case "$ac_dir" in
    7815   .) ac_abs_builddir=`pwd`;;
    7816   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    7817   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    7818   esac;;
    7819 esac
    7820 case $ac_abs_builddir in
    7821 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    7822 *)
    7823   case ${ac_top_builddir}. in
    7824   .) ac_abs_top_builddir=$ac_abs_builddir;;
    7825   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    7826   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    7827   esac;;
    7828 esac
    7829 case $ac_abs_builddir in
    7830 .) ac_abs_srcdir=$ac_srcdir;;
    7831 *)
    7832   case $ac_srcdir in
    7833   .) ac_abs_srcdir=$ac_abs_builddir;;
    7834   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    7835   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    7836   esac;;
    7837 esac
    7838 case $ac_abs_builddir in
    7839 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    7840 *)
    7841   case $ac_top_srcdir in
    7842   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    7843   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    7844   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    7845   esac;;
    7846 esac
    7847 
    7848 
    7849   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
    7850 echo "$as_me: executing $ac_dest commands" >&6;}
    7851   case $ac_dest in
    7852     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     7369 ;;
     7370
     7371  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
     7372$as_echo "$as_me: executing $ac_file commands" >&6;}
     7373 ;;
    78537374  esac
    7854 done
    7855 _ACEOF
    7856 
    7857 cat >>$CONFIG_STATUS <<\_ACEOF
    7858 
    7859 { (exit 0); exit 0; }
    7860 _ACEOF
    7861 chmod +x $CONFIG_STATUS
     7375
     7376
     7377  case $ac_file$ac_mode in
     7378    "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     7379
     7380  esac
     7381done # for ac_tag
     7382
     7383
     7384as_fn_exit 0
     7385_ACEOF
    78627386ac_clean_files=$ac_clean_files_save
     7387
     7388test $ac_write_fail = 0 ||
     7389  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    78637390
    78647391
     
    78817408  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    78827409  # would make configure fail if this is the last instruction.
    7883   $ac_cs_success || { (exit 1); exit 1; }
     7410  $ac_cs_success || as_fn_exit 1
     7411fi
     7412if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     7413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     7414$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    78847415fi
    78857416
  • main/trunk/greenstone2/common-src/indexers/mg/configure.in

    r22070 r23356  
    1717AC_SUBST(VERSION)
    1818
     19dnl
     20dnl Disable all Java compilation
     21dnl
     22AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     23if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     24  ENABLE_JAVA=1
     25  if test "x$JAVA_HOME" != "x" ; then
     26    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     27    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     28    echo "and JAVA respectively"
     29    export JAVA_HOME=
     30  fi
     31else
     32  ENABLE_JAVA=0
     33fi
     34AC_SUBST(ENABLE_JAVA)
    1935
    2036AC_MSG_CHECKING(to see if architecture is 64-bit)
     
    4763AC_PROG_MAKE_SET
    4864AC_PROG_RANLIB
     65if test $ENABLE_JAVA = "1" ; then
     66  AC_PROG_JAVA
     67  AC_PROG_JAVAC
     68fi
    4969
    5070dnl Checks for typedefs, structures, and compiler characteristics.
  • main/trunk/greenstone2/common-src/indexers/mg/java/org/greenstone/mg/Makefile.in

    r19802 r23356  
    1414CC = @CC@
    1515CXX = @CXX@
    16 JAVAC = javac
     16JAVAC = @JAVAC@
    1717JAVAH = javah
    1818JAR = jar
    1919CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
    2020CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -DSILENT -DSHORT_SUFFIX
     21JAVACFLAGS = @JAVACFLAGS@
    2122DEFS = @DEFS@
    2223RANLIB = @RANLIB@
     
    4748
    4849compile: setup
    49     "$(JAVAC)" -d "$(JAVACLASSDIR)" -sourcepath "$(JAVASRCDIR)" $(JAVACOPTIONS) *.java
     50    "$(JAVAC)" $(JAVACFLAGS) -d "$(JAVACLASSDIR)" -sourcepath "$(JAVASRCDIR)" $(JAVACOPTIONS) *.java
    5051    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGHOME)/jni" org.greenstone.mg.MGWrapper
    5152    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGHOME)/jni" org.greenstone.mg.MGPassesWrapper
  • main/trunk/greenstone2/common-src/indexers/mgpp/aclocal.m4

    r16583 r23356  
    223223#  fi
    224224#])
     225dnl @synopsis AC_PROG_JAVAC
     226dnl
     227dnl AC_PROG_JAVAC tests an existing Java compiler. It uses the
     228dnl environment variable JAVAC then tests in sequence various common
     229dnl Java compilers. For political reasons, it starts with the free
     230dnl ones.
     231dnl
     232dnl If you want to force a specific compiler:
     233dnl
     234dnl - at the configure.in level, set JAVAC=yourcompiler before calling
     235dnl AC_PROG_JAVAC
     236dnl
     237dnl - at the configure level, setenv JAVAC
     238dnl
     239dnl You can use the JAVAC variable in your Makefile.in, with @JAVAC@.
     240dnl
     241dnl *Warning*: its success or failure can depend on a proper setting of
     242dnl the CLASSPATH env. variable.
     243dnl
     244dnl TODO: allow to exclude compilers (rationale: most Java programs
     245dnl cannot compile with some compilers like guavac).
     246dnl
     247dnl Note: This is part of the set of autoconf M4 macros for Java
     248dnl programs. It is VERY IMPORTANT that you download the whole set,
     249dnl some macros depend on other. Unfortunately, the autoconf archive
     250dnl does not support the concept of set of macros, so I had to break it
     251dnl for submission. The general documentation, as well as the sample
     252dnl configure.in, is included in the AC_PROG_JAVA macro.
     253dnl
     254dnl @category Java
     255dnl @author Stephane Bortzmeyer <[email protected]>
     256dnl @version 2000-07-19
     257dnl @license GPLWithACException
     258
     259AC_DEFUN([AC_PROG_JAVAC],[
     260if test "x$JAVAC" = x ; then
     261  AC_REQUIRE([AC_EXEEXT])dnl
     262  if test "x$JAVAPREFIX" = x; then
     263    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT)
     264  else
     265    test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT, $JAVAPREFIX)
     266  fi
     267  test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
     268else
     269  echo "Checking for javac... $JAVAC"
     270fi
     271AC_SUBST(JAVAC)
     272AC_PROG_JAVAC_WORKS
     273AC_PROVIDE([$0])dnl
     274])
     275
     276dnl @synopsis AC_PROG_JAVAC_WORKS
     277dnl
     278dnl Internal use ONLY.
     279dnl
     280dnl Note: This is part of the set of autoconf M4 macros for Java
     281dnl programs. It is VERY IMPORTANT that you download the whole set,
     282dnl some macros depend on other. Unfortunately, the autoconf archive
     283dnl does not support the concept of set of macros, so I had to break it
     284dnl for submission. The general documentation, as well as the sample
     285dnl configure.in, is included in the AC_PROG_JAVA macro.
     286dnl
     287dnl @category Java
     288dnl @author Stephane Bortzmeyer <[email protected]>
     289dnl @version 2000-07-19
     290dnl @license GPLWithACException
     291
     292AC_DEFUN([AC_PROG_JAVAC_WORKS],[
     293AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
     294JAVA_TEST=Test.java
     295CLASS_TEST=Test.class
     296cat << \EOF > $JAVA_TEST
     297/* [#]line __oline__ "configure" */
     298public class Test {
     299}
     300EOF
     301if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
     302  ac_cv_prog_javac_works=yes
     303else
     304  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
     305  echo "configure: failed program was:" >&AC_FD_CC
     306  cat $JAVA_TEST >&AC_FD_CC
     307fi
     308rm -f $JAVA_TEST $CLASS_TEST
     309])
     310AC_PROVIDE([$0])dnl
     311if test "x$JAVACFLAGS" = x ; then
     312   JAVACFLAGS="-source 1.4 -target 1.4"
     313fi
     314AC_SUBST(JAVACFLAGS)
     315])
     316
     317dnl @synopsis AC_PROG_JAVA
     318dnl
     319dnl Here is a summary of the main macros:
     320dnl
     321dnl AC_PROG_JAVAC: finds a Java compiler.
     322dnl
     323dnl AC_PROG_JAVA: finds a Java virtual machine.
     324dnl
     325dnl AC_CHECK_CLASS: finds if we have the given class (beware of
     326dnl CLASSPATH!).
     327dnl
     328dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops
     329dnl otherwise.
     330dnl
     331dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
     332dnl
     333dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
     334dnl
     335dnl AC_JAVA_OPTIONS: adds Java configure options.
     336dnl
     337dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the
     338dnl environment variable JAVA then tests in sequence various common
     339dnl Java virtual machines. For political reasons, it starts with the
     340dnl free ones. You *must* call [AC_PROG_JAVAC] before.
     341dnl
     342dnl If you want to force a specific VM:
     343dnl
     344dnl - at the configure.in level, set JAVA=yourvm before calling
     345dnl AC_PROG_JAVA
     346dnl
     347dnl   (but after AC_INIT)
     348dnl
     349dnl - at the configure level, setenv JAVA
     350dnl
     351dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.
     352dnl
     353dnl *Warning*: its success or failure can depend on a proper setting of
     354dnl the CLASSPATH env. variable.
     355dnl
     356dnl TODO: allow to exclude virtual machines (rationale: most Java
     357dnl programs cannot run with some VM like kaffe).
     358dnl
     359dnl Note: This is part of the set of autoconf M4 macros for Java
     360dnl programs. It is VERY IMPORTANT that you download the whole set,
     361dnl some macros depend on other. Unfortunately, the autoconf archive
     362dnl does not support the concept of set of macros, so I had to break it
     363dnl for submission.
     364dnl
     365dnl A Web page, with a link to the latest CVS snapshot is at
     366dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
     367dnl
     368dnl This is a sample configure.in Process this file with autoconf to
     369dnl produce a configure script.
     370dnl
     371dnl    AC_INIT(UnTag.java)
     372dnl
     373dnl    dnl Checks for programs.
     374dnl    AC_CHECK_CLASSPATH
     375dnl    AC_PROG_JAVAC
     376dnl    AC_PROG_JAVA
     377dnl
     378dnl    dnl Checks for classes
     379dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
     380dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
     381dnl
     382dnl    AC_OUTPUT(Makefile)
     383dnl
     384dnl @category Java
     385dnl @author Stephane Bortzmeyer <[email protected]>
     386dnl @version 2000-07-19
     387dnl @license GPLWithACException
     388
     389AC_DEFUN([AC_PROG_JAVA],[
     390if test "x$JAVA" = x ; then
     391    AC_REQUIRE([AC_EXEEXT])dnl
     392    if test x$JAVAPREFIX = x; then
     393        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT)
     394    else
     395        test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT, $JAVAPREFIX)
     396    fi
     397    test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
     398fi
     399AC_SUBST(JAVA)
     400AC_PROG_JAVA_WORKS
     401AC_PROVIDE([$0])dnl
     402])
     403
     404dnl @synopsis AC_PROG_JAVA_WORKS
     405dnl
     406dnl Internal use ONLY.
     407dnl
     408dnl Note: This is part of the set of autoconf M4 macros for Java
     409dnl programs. It is VERY IMPORTANT that you download the whole set,
     410dnl some macros depend on other. Unfortunately, the autoconf archive
     411dnl does not support the concept of set of macros, so I had to break it
     412dnl for submission. The general documentation, as well as the sample
     413dnl configure.in, is included in the AC_PROG_JAVA macro.
     414dnl
     415dnl @category Java
     416dnl @author Stephane Bortzmeyer <[email protected]>
     417dnl @version 2000-07-19
     418dnl @license GPLWithACException
     419
     420AC_DEFUN([AC_PROG_JAVA_WORKS], [
     421AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)
     422if test x$uudecode = xyes; then
     423AC_CACHE_CHECK([if uudecode can decode base 64 file], ac_cv_prog_uudecode_base64, [
     424dnl /**
     425dnl  * Test.java: used to test if java compiler works.
     426dnl  */
     427dnl public class Test
     428dnl {
     429dnl
     430dnl public static void
     431dnl main( String[] argv )
     432dnl {
     433dnl     System.exit (0);
     434dnl }
     435dnl
     436dnl }
     437cat << \EOF > Test.uue
     438begin-base64 644 Test.class
     439yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     440bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     441bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     442YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     443aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     444AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     445AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     446====
     447EOF
     448if uudecode$EXEEXT Test.uue; then
     449        ac_cv_prog_uudecode_base64=yes
     450else
     451        echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC
     452        echo "configure: failed file was:" >&AC_FD_CC
     453        cat Test.uue >&AC_FD_CC
     454        ac_cv_prog_uudecode_base64=no
     455fi
     456rm -f Test.uue])
     457fi
     458if test x$ac_cv_prog_uudecode_base64 != xyes; then
     459        rm -f Test.class
     460        AC_MSG_WARN([I have to compile Test.class from scratch])
     461        if test x$ac_cv_prog_javac_works = xno; then
     462                AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly])
     463        fi
     464        if test x$ac_cv_prog_javac_works = x; then
     465                AC_PROG_JAVAC
     466        fi
     467fi
     468AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [
     469JAVA_TEST=Test.java
     470CLASS_TEST=Test.class
     471TEST=Test
     472changequote(, )dnl
     473cat << \EOF > $JAVA_TEST
     474/* [#]line __oline__ "configure" */
     475public class Test {
     476public static void main (String args[]) {
     477        System.exit (0);
     478} }
     479EOF
     480changequote([, ])dnl
     481if test x$ac_cv_prog_uudecode_base64 != xyes; then
     482        if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then
     483                :
     484        else
     485          echo "configure: failed program was:" >&AC_FD_CC
     486          cat $JAVA_TEST >&AC_FD_CC
     487          AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))
     488        fi
     489fi
     490if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
     491  ac_cv_prog_java_works=yes
     492else
     493  echo "configure: failed program was:" >&AC_FD_CC
     494  cat $JAVA_TEST >&AC_FD_CC
     495  AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
     496fi
     497rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     498])
     499AC_PROVIDE([$0])dnl
     500]
     501)
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure

    r22070 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
    274557ac_unique_file="text/MGQuery.cpp"
     
    276559ac_includes_default="\
    277560#include <stdio.h>
    278 #if HAVE_SYS_TYPES_H
     561#ifdef HAVE_SYS_TYPES_H
    279562# include <sys/types.h>
    280563#endif
    281 #if HAVE_SYS_STAT_H
     564#ifdef HAVE_SYS_STAT_H
    282565# include <sys/stat.h>
    283566#endif
    284 #if STDC_HEADERS
     567#ifdef STDC_HEADERS
    285568# include <stdlib.h>
    286569# include <stddef.h>
    287570#else
    288 # if HAVE_STDLIB_H
     571# ifdef HAVE_STDLIB_H
    289572#  include <stdlib.h>
    290573# endif
    291574#endif
    292 #if HAVE_STRING_H
    293 # if !STDC_HEADERS && HAVE_MEMORY_H
     575#ifdef HAVE_STRING_H
     576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    294577#  include <memory.h>
    295578# endif
    296579# include <string.h>
    297580#endif
    298 #if HAVE_STRINGS_H
     581#ifdef HAVE_STRINGS_H
    299582# include <strings.h>
    300583#endif
    301 #if HAVE_INTTYPES_H
     584#ifdef HAVE_INTTYPES_H
    302585# include <inttypes.h>
    303 #else
    304 # if HAVE_STDINT_H
    305 #  include <stdint.h>
    306 # endif
    307586#endif
    308 #if HAVE_UNISTD_H
     587#ifdef HAVE_STDINT_H
     588# include <stdint.h>
     589#endif
     590#ifdef HAVE_UNISTD_H
    309591# include <unistd.h>
    310592#endif"
    311593
    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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PACKAGE VERSION COMPAT32BITFLAGS ENABLE_ACCENTFOLD CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR UNAC_DIR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
     594ac_subst_vars='LTLIBOBJS
     595JNIFLAGS
     596JNISUFFIX
     597JNIINC
     598LIBOBJS
     599ALLOCA
     600UNAC_DIR
     601ANSI2KNR
     602U
     603EGREP
     604GREP
     605CPP
     606JAVACFLAGS
     607JAVAC
     608uudecode
     609JAVA
     610RANLIB
     611SET_MAKE
     612LN_S
     613INSTALL_DATA
     614INSTALL_SCRIPT
     615INSTALL_PROGRAM
     616ac_ct_CC
     617CFLAGS
     618CC
     619YFLAGS
     620YACC
     621AWK
     622OBJEXT
     623EXEEXT
     624ac_ct_CXX
     625CPPFLAGS
     626LDFLAGS
     627CXXFLAGS
     628CXX
     629ENABLE_ACCENTFOLD
     630COMPAT32BITFLAGS
     631ENABLE_JAVA
     632VERSION
     633PACKAGE
     634target_os
     635target_vendor
     636target_cpu
     637target
     638host_os
     639host_vendor
     640host_cpu
     641host
     642build_os
     643build_vendor
     644build_cpu
     645build
     646target_alias
     647host_alias
     648build_alias
     649LIBS
     650ECHO_T
     651ECHO_N
     652ECHO_C
     653DEFS
     654mandir
     655localedir
     656libdir
     657psdir
     658pdfdir
     659dvidir
     660htmldir
     661infodir
     662docdir
     663oldincludedir
     664includedir
     665localstatedir
     666sharedstatedir
     667sysconfdir
     668datadir
     669datarootdir
     670libexecdir
     671sbindir
     672bindir
     673program_transform_name
     674prefix
     675exec_prefix
     676PACKAGE_URL
     677PACKAGE_BUGREPORT
     678PACKAGE_STRING
     679PACKAGE_VERSION
     680PACKAGE_TARNAME
     681PACKAGE_NAME
     682PATH_SEPARATOR
     683SHELL'
    313684ac_subst_files=''
     685ac_user_opts='
     686enable_option_checking
     687enable_java
     688enable_accentfold
     689with_unac
     690with_dmalloc
     691with_regex
     692with_gnu_readline
     693enable_override_longlong
     694'
     695      ac_precious_vars='build_alias
     696host_alias
     697target_alias
     698CXX
     699CXXFLAGS
     700LDFLAGS
     701LIBS
     702CPPFLAGS
     703CCC
     704YACC
     705YFLAGS
     706CC
     707CFLAGS
     708CPP'
     709
    314710
    315711# Initialize some variables set by options.
    316712ac_init_help=
    317713ac_init_version=false
     714ac_unrecognized_opts=
     715ac_unrecognized_sep=
    318716# The variables have the same names as the options, with
    319717# dashes changed to underlines.
     
    338736# by default will actually change.
    339737# Use braces instead of parens because sh, perl, etc. also accept them.
     738# (The list follows the same order as the GNU Coding Standards.)
    340739bindir='${exec_prefix}/bin'
    341740sbindir='${exec_prefix}/sbin'
    342741libexecdir='${exec_prefix}/libexec'
    343 datadir='${prefix}/share'
     742datarootdir='${prefix}/share'
     743datadir='${datarootdir}'
    344744sysconfdir='${prefix}/etc'
    345745sharedstatedir='${prefix}/com'
    346746localstatedir='${prefix}/var'
    347 libdir='${exec_prefix}/lib'
    348747includedir='${prefix}/include'
    349748oldincludedir='/usr/include'
    350 infodir='${prefix}/info'
    351 mandir='${prefix}/man'
     749docdir='${datarootdir}/doc/${PACKAGE}'
     750infodir='${datarootdir}/info'
     751htmldir='${docdir}'
     752dvidir='${docdir}'
     753pdfdir='${docdir}'
     754psdir='${docdir}'
     755libdir='${exec_prefix}/lib'
     756localedir='${datarootdir}/locale'
     757mandir='${datarootdir}/man'
    352758
    353759ac_prev=
     760ac_dashdash=
    354761for ac_option
    355762do
    356763  # If the previous option needs an argument, assign it.
    357764  if test -n "$ac_prev"; then
    358     eval "$ac_prev=\$ac_option"
     765    eval $ac_prev=\$ac_option
    359766    ac_prev=
    360767    continue
    361768  fi
    362769
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     770  case $ac_option in
     771  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     772  *=)   ac_optarg= ;;
     773  *)    ac_optarg=yes ;;
     774  esac
    364775
    365776  # Accept the important Cygnus configure options, so we can diagnose typos.
    366777
    367   case $ac_option in
     778  case $ac_dashdash$ac_option in
     779  --)
     780    ac_dashdash=yes ;;
    368781
    369782  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    387800    cache_file=config.cache ;;
    388801
    389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     802  -datadir | --datadir | --datadi | --datad)
    390803    ac_prev=datadir ;;
    391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392   | --da=*)
     804  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    393805    datadir=$ac_optarg ;;
    394806
     807  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     808  | --dataroo | --dataro | --datar)
     809    ac_prev=datarootdir ;;
     810  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     811  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     812    datarootdir=$ac_optarg ;;
     813
    395814  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     815    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    397816    # 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" ;;
     817    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     818      as_fn_error $? "invalid feature name: $ac_useropt"
     819    ac_useropt_orig=$ac_useropt
     820    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     821    case $ac_user_opts in
     822      *"
     823"enable_$ac_useropt"
     824"*) ;;
     825      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     826     ac_unrecognized_sep=', ';;
     827    esac
     828    eval enable_$ac_useropt=no ;;
     829
     830  -docdir | --docdir | --docdi | --doc | --do)
     831    ac_prev=docdir ;;
     832  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     833    docdir=$ac_optarg ;;
     834
     835  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     836    ac_prev=dvidir ;;
     837  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     838    dvidir=$ac_optarg ;;
    403839
    404840  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     841    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    406842    # 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 ;;
     843    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     844      as_fn_error $? "invalid feature name: $ac_useropt"
     845    ac_useropt_orig=$ac_useropt
     846    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     847    case $ac_user_opts in
     848      *"
     849"enable_$ac_useropt"
     850"*) ;;
     851      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     852     ac_unrecognized_sep=', ';;
    414853    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     854    eval enable_$ac_useropt=\$ac_optarg ;;
    416855
    417856  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    440879    host_alias=$ac_optarg ;;
    441880
     881  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     882    ac_prev=htmldir ;;
     883  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     884  | --ht=*)
     885    htmldir=$ac_optarg ;;
     886
    442887  -includedir | --includedir | --includedi | --included | --include \
    443888  | --includ | --inclu | --incl | --inc)
     
    464909    libexecdir=$ac_optarg ;;
    465910
     911  -localedir | --localedir | --localedi | --localed | --locale)
     912    ac_prev=localedir ;;
     913  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     914    localedir=$ac_optarg ;;
     915
    466916  -localstatedir | --localstatedir | --localstatedi | --localstated \
    467   | --localstate | --localstat | --localsta | --localst \
    468   | --locals | --local | --loca | --loc | --lo)
     917  | --localstate | --localstat | --localsta | --localst | --locals)
    469918    ac_prev=localstatedir ;;
    470919  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     920  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    473921    localstatedir=$ac_optarg ;;
    474922
     
    535983    program_transform_name=$ac_optarg ;;
    536984
     985  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     986    ac_prev=pdfdir ;;
     987  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     988    pdfdir=$ac_optarg ;;
     989
     990  -psdir | --psdir | --psdi | --psd | --ps)
     991    ac_prev=psdir ;;
     992  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     993    psdir=$ac_optarg ;;
     994
    537995  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    538996  | -silent | --silent | --silen | --sile | --sil)
     
    5851043
    5861044  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1045    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5881046    # 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 ;;
     1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1048      as_fn_error $? "invalid package name: $ac_useropt"
     1049    ac_useropt_orig=$ac_useropt
     1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1051    case $ac_user_opts in
     1052      *"
     1053"with_$ac_useropt"
     1054"*) ;;
     1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1056     ac_unrecognized_sep=', ';;
    5961057    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     1058    eval with_$ac_useropt=\$ac_optarg ;;
    5981059
    5991060  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1061    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6011062    # 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" ;;
     1063    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1064      as_fn_error $? "invalid package name: $ac_useropt"
     1065    ac_useropt_orig=$ac_useropt
     1066    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1067    case $ac_user_opts in
     1068      *"
     1069"with_$ac_useropt"
     1070"*) ;;
     1071      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1072     ac_unrecognized_sep=', ';;
     1073    esac
     1074    eval with_$ac_useropt=no ;;
    6071075
    6081076  --x)
     
    6241092    x_libraries=$ac_optarg ;;
    6251093
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     1094  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1095Try \`$0 --help' for more information"
    6291096    ;;
    6301097
     
    6321099    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6331100    # 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'"
     1101    case $ac_envvar in #(
     1102      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1103      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1104    esac
     1105    eval $ac_envvar=\$ac_optarg
    6391106    export $ac_envvar ;;
    6401107
    6411108  *)
    6421109    # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1110    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6441111    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1112      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6461113    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6471114    ;;
     
    6521119if test -n "$ac_prev"; then
    6531120  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
     1121  as_fn_error $? "missing argument to $ac_option"
     1122fi
     1123
     1124if test -n "$ac_unrecognized_opts"; then
     1125  case $enable_option_checking in
     1126    no) ;;
     1127    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1128    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1129  esac
     1130fi
     1131
     1132# Check all directory arguments for consistency.
     1133for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1134        datadir sysconfdir sharedstatedir localstatedir includedir \
     1135        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1136        libdir localedir mandir
    6601137do
    661   eval ac_val=$`echo $ac_var`
     1138  eval ac_val=\$$ac_var
     1139  # Remove trailing slashes.
    6621140  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; }; };;
     1141    */ )
     1142      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1143      eval $ac_var=\$ac_val;;
    6661144  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`
     1145  # Be sure to have absolute directory names.
    6741146  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; }; };;
     1147    [\\/$]* | ?:[\\/]* )  continue;;
     1148    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6781149  esac
     1150  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6791151done
    6801152
     
    6901162  if test "x$build_alias" = x; then
    6911163    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
     1164    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1165    If a cross compiler is detected then cross compile mode will be used" >&2
    6941166  elif test "x$build_alias" != "x$host_alias"; then
    6951167    cross_compiling=yes
     
    7031175
    7041176
     1177ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1178ac_ls_di=`ls -di .` &&
     1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1180  as_fn_error $? "working directory cannot be determined"
     1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1182  as_fn_error $? "pwd does not report name of working directory"
     1183
     1184
    7051185# Find the source files, if location was not specified.
    7061186if test -z "$srcdir"; then
    7071187  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'`
     1188  # Try the directory containing this script, then the parent directory.
     1189  ac_confdir=`$as_dirname -- "$as_myself" ||
     1190$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1191     X"$as_myself" : 'X\(//\)[^/]' \| \
     1192     X"$as_myself" : 'X\(//\)$' \| \
     1193     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1194$as_echo X"$as_myself" |
     1195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1196        s//\1/
     1197        q
     1198      }
     1199      /^X\(\/\/\)[^/].*/{
     1200        s//\1/
     1201        q
     1202      }
     1203      /^X\(\/\/\)$/{
     1204        s//\1/
     1205        q
     1206      }
     1207      /^X\(\/\).*/{
     1208        s//\1/
     1209        q
     1210      }
     1211      s/.*/./; q'`
    7211212  srcdir=$ac_confdir
    722   if test ! -r $srcdir/$ac_unique_file; then
     1213  if test ! -r "$srcdir/$ac_unique_file"; then
    7231214    srcdir=..
    7241215  fi
     
    7261217  ac_srcdir_defaulted=no
    7271218fi
    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_CXX_set=${CXX+set}
    754 ac_env_CXX_value=$CXX
    755 ac_cv_env_CXX_set=${CXX+set}
    756 ac_cv_env_CXX_value=$CXX
    757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    758 ac_env_CXXFLAGS_value=$CXXFLAGS
    759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    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_CC_set=${CC+set}
    770 ac_env_CC_value=$CC
    771 ac_cv_env_CC_set=${CC+set}
    772 ac_cv_env_CC_value=$CC
    773 ac_env_CFLAGS_set=${CFLAGS+set}
    774 ac_env_CFLAGS_value=$CFLAGS
    775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    776 ac_cv_env_CFLAGS_value=$CFLAGS
    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
     1219if test ! -r "$srcdir/$ac_unique_file"; then
     1220  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1221  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1222fi
     1223ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1224ac_abs_confdir=`(
     1225    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1226    pwd)`
     1227# When building in place, set srcdir=.
     1228if test "$ac_abs_confdir" = "$ac_pwd"; then
     1229  srcdir=.
     1230fi
     1231# Remove unnecessary trailing slashes from srcdir.
     1232# Double slashes in file names in object file debugging info
     1233# mess up M-x gdb in Emacs.
     1234case $srcdir in
     1235*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1236esac
     1237for ac_var in $ac_precious_vars; do
     1238  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1239  eval ac_env_${ac_var}_value=\$${ac_var}
     1240  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1241  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1242done
    7811243
    7821244#
     
    8011263      --help=recursive    display the short help of all the included packages
    8021264  -V, --version           display version information and exit
    803   -q, --quiet, --silent   do not print \`checking...' messages
     1265  -q, --quiet, --silent   do not print \`checking ...' messages
    8041266      --cache-file=FILE   cache test results in FILE [disabled]
    8051267  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8071269      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8081270
    809 _ACEOF
    810 
    811   cat <<_ACEOF
    8121271Installation directories:
    8131272  --prefix=PREFIX         install architecture-independent files in PREFIX
    814               [$ac_default_prefix]
     1273                          [$ac_default_prefix]
    8151274  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    816               [PREFIX]
     1275                          [PREFIX]
    8171276
    8181277By default, \`make install' will install all the files in
     
    8241283
    8251284Fine 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]
     1285  --bindir=DIR            user executables [EPREFIX/bin]
     1286  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1287  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1288  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1289  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1290  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1291  --libdir=DIR            object code libraries [EPREFIX/lib]
     1292  --includedir=DIR        C header files [PREFIX/include]
     1293  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1294  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1295  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1296  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1297  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1298  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1299  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1300  --htmldir=DIR           html documentation [DOCDIR]
     1301  --dvidir=DIR            dvi documentation [DOCDIR]
     1302  --pdfdir=DIR            pdf documentation [DOCDIR]
     1303  --psdir=DIR             ps documentation [DOCDIR]
    8381304_ACEOF
    8391305
     
    8571323
    8581324Optional Features:
     1325  --disable-option-checking  ignore unrecognized --enable/--with options
    8591326  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8601327  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1328  --disable-java          Disable Java compilation
    8611329  --disable-accentfold    Disable Accent Folding for MGPP
    8621330  --enable-override-longlong
     
    8771345  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8781346              nonstandard directory <lib dir>
    879   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    880               headers in a nonstandard directory <include dir>
     1347  LIBS        libraries to pass to the linker, e.g. -l<library>
     1348  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1349              you have headers in a nonstandard directory <include dir>
     1350  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1351              the first program found out of: `bison -y', `byacc', `yacc'.
     1352  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1353              This script will default YFLAGS to the empty string to avoid a
     1354              default value of `-d' given by some make applications.
    8811355  CC          C compiler command
    8821356  CFLAGS      C compiler flags
     
    8861360it to find libraries and programs with nonstandard names/locations.
    8871361
    888 _ACEOF
     1362Report bugs to the package provider.
     1363_ACEOF
     1364ac_status=$?
    8891365fi
    8901366
    8911367if test "$ac_init_help" = "recursive"; then
    8921368  # If there are subdirs, report their specific --help.
    893   ac_popdir=`pwd`
    8941369  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    895     test -d $ac_dir || continue
     1370    test -d "$ac_dir" ||
     1371      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1372      continue
    8961373    ac_builddir=.
    8971374
    898 if test "$ac_dir" != .; then
    899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    900   # A "../" for each directory in $ac_dir_suffix.
    901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    902 else
    903   ac_dir_suffix= ac_top_builddir=
    904 fi
     1375case "$ac_dir" in
     1376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1377*)
     1378  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1379  # A ".." for each directory in $ac_dir_suffix.
     1380  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1381  case $ac_top_builddir_sub in
     1382  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1383  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1384  esac ;;
     1385esac
     1386ac_abs_top_builddir=$ac_pwd
     1387ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1388# for backward compatibility:
     1389ac_top_builddir=$ac_top_build_prefix
    9051390
    9061391case $srcdir in
    907   .)  # No --srcdir option.  We are building in place.
     1392  .)  # We are building in place.
    9081393    ac_srcdir=.
    909     if test -z "$ac_top_builddir"; then
    910        ac_top_srcdir=.
     1394    ac_top_srcdir=$ac_top_builddir_sub
     1395    ac_abs_top_srcdir=$ac_pwd ;;
     1396  [\\/]* | ?:[\\/]* )  # Absolute name.
     1397    ac_srcdir=$srcdir$ac_dir_suffix;
     1398    ac_top_srcdir=$srcdir
     1399    ac_abs_top_srcdir=$srcdir ;;
     1400  *) # Relative name.
     1401    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1402    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1403    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1404esac
     1405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1406
     1407    cd "$ac_dir" || { ac_status=$?; continue; }
     1408    # Check for guested configure.
     1409    if test -f "$ac_srcdir/configure.gnu"; then
     1410      echo &&
     1411      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1412    elif test -f "$ac_srcdir/configure"; then
     1413      echo &&
     1414      $SHELL "$ac_srcdir/configure" --help=recursive
    9111415    else
    912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    913     fi ;;
    914   [\\/]* | ?:[\\/]* )  # Absolute path.
    915     ac_srcdir=$srcdir$ac_dir_suffix;
    916     ac_top_srcdir=$srcdir ;;
    917   *) # Relative path.
    918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    920 esac
    921 
    922 # Do not use `cd foo && pwd` to compute absolute paths, because
    923 # the directories may not exist.
    924 case `pwd` in
    925 .) ac_abs_builddir="$ac_dir";;
    926 *)
    927   case "$ac_dir" in
    928   .) ac_abs_builddir=`pwd`;;
    929   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    930   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    931   esac;;
    932 esac
    933 case $ac_abs_builddir in
    934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    935 *)
    936   case ${ac_top_builddir}. in
    937   .) ac_abs_top_builddir=$ac_abs_builddir;;
    938   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    939   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    940   esac;;
    941 esac
    942 case $ac_abs_builddir in
    943 .) ac_abs_srcdir=$ac_srcdir;;
    944 *)
    945   case $ac_srcdir in
    946   .) ac_abs_srcdir=$ac_abs_builddir;;
    947   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    948   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    949   esac;;
    950 esac
    951 case $ac_abs_builddir in
    952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    953 *)
    954   case $ac_top_srcdir in
    955   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    956   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    957   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    958   esac;;
    959 esac
    960 
    961     cd $ac_dir
    962     # Check for guested configure; otherwise get Cygnus style configure.
    963     if test -f $ac_srcdir/configure.gnu; then
    964       echo
    965       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    966     elif test -f $ac_srcdir/configure; then
    967       echo
    968       $SHELL $ac_srcdir/configure  --help=recursive
    969     elif test -f $ac_srcdir/configure.ac ||
    970        test -f $ac_srcdir/configure.in; then
    971       echo
    972       $ac_configure --help
    973     else
    974       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    975     fi
    976     cd $ac_popdir
     1416      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1417    fi || ac_status=$?
     1418    cd "$ac_pwd" || { ac_status=$?; break; }
    9771419  done
    9781420fi
    9791421
    980 test -n "$ac_init_help" && exit 0
     1422test -n "$ac_init_help" && exit $ac_status
    9811423if $ac_init_version; then
    9821424  cat <<\_ACEOF
    983 
    984 Copyright (C) 2003 Free Software Foundation, Inc.
     1425configure
     1426generated by GNU Autoconf 2.67
     1427
     1428Copyright (C) 2010 Free Software Foundation, Inc.
    9851429This configure script is free software; the Free Software Foundation
    9861430gives unlimited permission to copy, distribute and modify it.
    9871431_ACEOF
    988   exit 0
    989 fi
    990 exec 5>config.log
    991 cat >&5 <<_ACEOF
     1432  exit
     1433fi
     1434
     1435## ------------------------ ##
     1436## Autoconf initialization. ##
     1437## ------------------------ ##
     1438
     1439# ac_fn_cxx_try_compile LINENO
     1440# ----------------------------
     1441# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1442ac_fn_cxx_try_compile ()
     1443{
     1444  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1445  rm -f conftest.$ac_objext
     1446  if { { ac_try="$ac_compile"
     1447case "(($ac_try" in
     1448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1449  *) ac_try_echo=$ac_try;;
     1450esac
     1451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1452$as_echo "$ac_try_echo"; } >&5
     1453  (eval "$ac_compile") 2>conftest.err
     1454  ac_status=$?
     1455  if test -s conftest.err; then
     1456    grep -v '^ *+' conftest.err >conftest.er1
     1457    cat conftest.er1 >&5
     1458    mv -f conftest.er1 conftest.err
     1459  fi
     1460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1461  test $ac_status = 0; } && {
     1462     test -z "$ac_cxx_werror_flag" ||
     1463     test ! -s conftest.err
     1464       } && test -s conftest.$ac_objext; then :
     1465  ac_retval=0
     1466else
     1467  $as_echo "$as_me: failed program was:" >&5
     1468sed 's/^/| /' conftest.$ac_ext >&5
     1469
     1470    ac_retval=1
     1471fi
     1472  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1473  as_fn_set_status $ac_retval
     1474
     1475} # ac_fn_cxx_try_compile
     1476
     1477# ac_fn_c_try_compile LINENO
     1478# --------------------------
     1479# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1480ac_fn_c_try_compile ()
     1481{
     1482  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1483  rm -f conftest.$ac_objext
     1484  if { { ac_try="$ac_compile"
     1485case "(($ac_try" in
     1486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1487  *) ac_try_echo=$ac_try;;
     1488esac
     1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1490$as_echo "$ac_try_echo"; } >&5
     1491  (eval "$ac_compile") 2>conftest.err
     1492  ac_status=$?
     1493  if test -s conftest.err; then
     1494    grep -v '^ *+' conftest.err >conftest.er1
     1495    cat conftest.er1 >&5
     1496    mv -f conftest.er1 conftest.err
     1497  fi
     1498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1499  test $ac_status = 0; } && {
     1500     test -z "$ac_c_werror_flag" ||
     1501     test ! -s conftest.err
     1502       } && test -s conftest.$ac_objext; then :
     1503  ac_retval=0
     1504else
     1505  $as_echo "$as_me: failed program was:" >&5
     1506sed 's/^/| /' conftest.$ac_ext >&5
     1507
     1508    ac_retval=1
     1509fi
     1510  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1511  as_fn_set_status $ac_retval
     1512
     1513} # ac_fn_c_try_compile
     1514
     1515# ac_fn_c_try_cpp LINENO
     1516# ----------------------
     1517# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1518ac_fn_c_try_cpp ()
     1519{
     1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1521  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1522case "(($ac_try" in
     1523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1524  *) ac_try_echo=$ac_try;;
     1525esac
     1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1527$as_echo "$ac_try_echo"; } >&5
     1528  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1529  ac_status=$?
     1530  if test -s conftest.err; then
     1531    grep -v '^ *+' conftest.err >conftest.er1
     1532    cat conftest.er1 >&5
     1533    mv -f conftest.er1 conftest.err
     1534  fi
     1535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1536  test $ac_status = 0; } > conftest.i && {
     1537     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1538     test ! -s conftest.err
     1539       }; then :
     1540  ac_retval=0
     1541else
     1542  $as_echo "$as_me: failed program was:" >&5
     1543sed 's/^/| /' conftest.$ac_ext >&5
     1544
     1545    ac_retval=1
     1546fi
     1547  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1548  as_fn_set_status $ac_retval
     1549
     1550} # ac_fn_c_try_cpp
     1551
     1552# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1553# -------------------------------------------------------
     1554# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1555# the include files in INCLUDES and setting the cache variable VAR
     1556# accordingly.
     1557ac_fn_c_check_header_mongrel ()
     1558{
     1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1560  if eval "test \"\${$3+set}\"" = set; then :
     1561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1562$as_echo_n "checking for $2... " >&6; }
     1563if eval "test \"\${$3+set}\"" = set; then :
     1564  $as_echo_n "(cached) " >&6
     1565fi
     1566eval ac_res=\$$3
     1567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1568$as_echo "$ac_res" >&6; }
     1569else
     1570  # Is the header compilable?
     1571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1572$as_echo_n "checking $2 usability... " >&6; }
     1573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1574/* end confdefs.h.  */
     1575$4
     1576#include <$2>
     1577_ACEOF
     1578if ac_fn_c_try_compile "$LINENO"; then :
     1579  ac_header_compiler=yes
     1580else
     1581  ac_header_compiler=no
     1582fi
     1583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1585$as_echo "$ac_header_compiler" >&6; }
     1586
     1587# Is the header present?
     1588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1589$as_echo_n "checking $2 presence... " >&6; }
     1590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1591/* end confdefs.h.  */
     1592#include <$2>
     1593_ACEOF
     1594if ac_fn_c_try_cpp "$LINENO"; then :
     1595  ac_header_preproc=yes
     1596else
     1597  ac_header_preproc=no
     1598fi
     1599rm -f conftest.err conftest.i conftest.$ac_ext
     1600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1601$as_echo "$ac_header_preproc" >&6; }
     1602
     1603# So?  What about this header?
     1604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1605  yes:no: )
     1606    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1607$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1608    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1609$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1610    ;;
     1611  no:yes:* )
     1612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1613$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1615$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1616    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1617$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1619$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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    ;;
     1623esac
     1624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1625$as_echo_n "checking for $2... " >&6; }
     1626if eval "test \"\${$3+set}\"" = set; then :
     1627  $as_echo_n "(cached) " >&6
     1628else
     1629  eval "$3=\$ac_header_compiler"
     1630fi
     1631eval ac_res=\$$3
     1632           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1633$as_echo "$ac_res" >&6; }
     1634fi
     1635  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1636
     1637} # ac_fn_c_check_header_mongrel
     1638
     1639# ac_fn_c_try_run LINENO
     1640# ----------------------
     1641# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1642# that executables *can* be run.
     1643ac_fn_c_try_run ()
     1644{
     1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1646  if { { ac_try="$ac_link"
     1647case "(($ac_try" in
     1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1649  *) ac_try_echo=$ac_try;;
     1650esac
     1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1652$as_echo "$ac_try_echo"; } >&5
     1653  (eval "$ac_link") 2>&5
     1654  ac_status=$?
     1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1656  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1657  { { case "(($ac_try" in
     1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1659  *) ac_try_echo=$ac_try;;
     1660esac
     1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1662$as_echo "$ac_try_echo"; } >&5
     1663  (eval "$ac_try") 2>&5
     1664  ac_status=$?
     1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1666  test $ac_status = 0; }; }; then :
     1667  ac_retval=0
     1668else
     1669  $as_echo "$as_me: program exited with status $ac_status" >&5
     1670       $as_echo "$as_me: failed program was:" >&5
     1671sed 's/^/| /' conftest.$ac_ext >&5
     1672
     1673       ac_retval=$ac_status
     1674fi
     1675  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1677  as_fn_set_status $ac_retval
     1678
     1679} # ac_fn_c_try_run
     1680
     1681# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1682# -------------------------------------------------------
     1683# Tests whether HEADER exists and can be compiled using the include files in
     1684# INCLUDES, setting the cache variable VAR accordingly.
     1685ac_fn_c_check_header_compile ()
     1686{
     1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1689$as_echo_n "checking for $2... " >&6; }
     1690if eval "test \"\${$3+set}\"" = set; then :
     1691  $as_echo_n "(cached) " >&6
     1692else
     1693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1694/* end confdefs.h.  */
     1695$4
     1696#include <$2>
     1697_ACEOF
     1698if ac_fn_c_try_compile "$LINENO"; then :
     1699  eval "$3=yes"
     1700else
     1701  eval "$3=no"
     1702fi
     1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1704fi
     1705eval ac_res=\$$3
     1706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1707$as_echo "$ac_res" >&6; }
     1708  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1709
     1710} # ac_fn_c_check_header_compile
     1711
     1712# ac_fn_c_try_link LINENO
     1713# -----------------------
     1714# Try to link conftest.$ac_ext, and return whether this succeeded.
     1715ac_fn_c_try_link ()
     1716{
     1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1718  rm -f conftest.$ac_objext conftest$ac_exeext
     1719  if { { ac_try="$ac_link"
     1720case "(($ac_try" in
     1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1722  *) ac_try_echo=$ac_try;;
     1723esac
     1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1725$as_echo "$ac_try_echo"; } >&5
     1726  (eval "$ac_link") 2>conftest.err
     1727  ac_status=$?
     1728  if test -s conftest.err; then
     1729    grep -v '^ *+' conftest.err >conftest.er1
     1730    cat conftest.er1 >&5
     1731    mv -f conftest.er1 conftest.err
     1732  fi
     1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1734  test $ac_status = 0; } && {
     1735     test -z "$ac_c_werror_flag" ||
     1736     test ! -s conftest.err
     1737       } && test -s conftest$ac_exeext && {
     1738     test "$cross_compiling" = yes ||
     1739     $as_test_x conftest$ac_exeext
     1740       }; then :
     1741  ac_retval=0
     1742else
     1743  $as_echo "$as_me: failed program was:" >&5
     1744sed 's/^/| /' conftest.$ac_ext >&5
     1745
     1746    ac_retval=1
     1747fi
     1748  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1749  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1750  # interfere with the next link command; also delete a directory that is
     1751  # left behind by Apple's compiler.  We do this before executing the actions.
     1752  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1753  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1754  as_fn_set_status $ac_retval
     1755
     1756} # ac_fn_c_try_link
     1757
     1758# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1759# -------------------------------------------
     1760# Tests whether TYPE exists after having included INCLUDES, setting cache
     1761# variable VAR accordingly.
     1762ac_fn_c_check_type ()
     1763{
     1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1766$as_echo_n "checking for $2... " >&6; }
     1767if eval "test \"\${$3+set}\"" = set; then :
     1768  $as_echo_n "(cached) " >&6
     1769else
     1770  eval "$3=no"
     1771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1772/* end confdefs.h.  */
     1773$4
     1774int
     1775main ()
     1776{
     1777if (sizeof ($2))
     1778     return 0;
     1779  ;
     1780  return 0;
     1781}
     1782_ACEOF
     1783if ac_fn_c_try_compile "$LINENO"; then :
     1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1785/* end confdefs.h.  */
     1786$4
     1787int
     1788main ()
     1789{
     1790if (sizeof (($2)))
     1791        return 0;
     1792  ;
     1793  return 0;
     1794}
     1795_ACEOF
     1796if ac_fn_c_try_compile "$LINENO"; then :
     1797
     1798else
     1799  eval "$3=yes"
     1800fi
     1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1802fi
     1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1804fi
     1805eval ac_res=\$$3
     1806           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1807$as_echo "$ac_res" >&6; }
     1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1809
     1810} # ac_fn_c_check_type
     1811
     1812# ac_fn_c_check_func LINENO FUNC VAR
     1813# ----------------------------------
     1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1815ac_fn_c_check_func ()
     1816{
     1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1819$as_echo_n "checking for $2... " >&6; }
     1820if eval "test \"\${$3+set}\"" = set; then :
     1821  $as_echo_n "(cached) " >&6
     1822else
     1823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1824/* end confdefs.h.  */
     1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1827#define $2 innocuous_$2
     1828
     1829/* System header to define __stub macros and hopefully few prototypes,
     1830    which can conflict with char $2 (); below.
     1831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1832    <limits.h> exists even on freestanding compilers.  */
     1833
     1834#ifdef __STDC__
     1835# include <limits.h>
     1836#else
     1837# include <assert.h>
     1838#endif
     1839
     1840#undef $2
     1841
     1842/* Override any GCC internal prototype to avoid an error.
     1843   Use char because int might match the return type of a GCC
     1844   builtin and then its argument prototype would still apply.  */
     1845#ifdef __cplusplus
     1846extern "C"
     1847#endif
     1848char $2 ();
     1849/* The GNU C library defines this for functions which it implements
     1850    to always fail with ENOSYS.  Some functions are actually named
     1851    something starting with __ and the normal name is an alias.  */
     1852#if defined __stub_$2 || defined __stub___$2
     1853choke me
     1854#endif
     1855
     1856int
     1857main ()
     1858{
     1859return $2 ();
     1860  ;
     1861  return 0;
     1862}
     1863_ACEOF
     1864if ac_fn_c_try_link "$LINENO"; then :
     1865  eval "$3=yes"
     1866else
     1867  eval "$3=no"
     1868fi
     1869rm -f core conftest.err conftest.$ac_objext \
     1870    conftest$ac_exeext conftest.$ac_ext
     1871fi
     1872eval ac_res=\$$3
     1873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1874$as_echo "$ac_res" >&6; }
     1875  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1876
     1877} # ac_fn_c_check_func
     1878
     1879# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
     1880# --------------------------------------------
     1881# Tries to find the compile-time value of EXPR in a program that includes
     1882# INCLUDES, setting VAR accordingly. Returns whether the value could be
     1883# computed
     1884ac_fn_c_compute_int ()
     1885{
     1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1887  if test "$cross_compiling" = yes; then
     1888    # Depending upon the size, compute the lo and hi bounds.
     1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1890/* end confdefs.h.  */
     1891$4
     1892int
     1893main ()
     1894{
     1895static int test_array [1 - 2 * !(($2) >= 0)];
     1896test_array [0] = 0
     1897
     1898  ;
     1899  return 0;
     1900}
     1901_ACEOF
     1902if ac_fn_c_try_compile "$LINENO"; then :
     1903  ac_lo=0 ac_mid=0
     1904  while :; do
     1905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1906/* end confdefs.h.  */
     1907$4
     1908int
     1909main ()
     1910{
     1911static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     1912test_array [0] = 0
     1913
     1914  ;
     1915  return 0;
     1916}
     1917_ACEOF
     1918if ac_fn_c_try_compile "$LINENO"; then :
     1919  ac_hi=$ac_mid; break
     1920else
     1921  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
     1922            if test $ac_lo -le $ac_mid; then
     1923              ac_lo= ac_hi=
     1924              break
     1925            fi
     1926            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
     1927fi
     1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1929  done
     1930else
     1931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1932/* end confdefs.h.  */
     1933$4
     1934int
     1935main ()
     1936{
     1937static int test_array [1 - 2 * !(($2) < 0)];
     1938test_array [0] = 0
     1939
     1940  ;
     1941  return 0;
     1942}
     1943_ACEOF
     1944if ac_fn_c_try_compile "$LINENO"; then :
     1945  ac_hi=-1 ac_mid=-1
     1946  while :; do
     1947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1948/* end confdefs.h.  */
     1949$4
     1950int
     1951main ()
     1952{
     1953static int test_array [1 - 2 * !(($2) >= $ac_mid)];
     1954test_array [0] = 0
     1955
     1956  ;
     1957  return 0;
     1958}
     1959_ACEOF
     1960if ac_fn_c_try_compile "$LINENO"; then :
     1961  ac_lo=$ac_mid; break
     1962else
     1963  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
     1964            if test $ac_mid -le $ac_hi; then
     1965              ac_lo= ac_hi=
     1966              break
     1967            fi
     1968            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
     1969fi
     1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1971  done
     1972else
     1973  ac_lo= ac_hi=
     1974fi
     1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1976fi
     1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1978# Binary search between lo and hi bounds.
     1979while test "x$ac_lo" != "x$ac_hi"; do
     1980  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     1981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1982/* end confdefs.h.  */
     1983$4
     1984int
     1985main ()
     1986{
     1987static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     1988test_array [0] = 0
     1989
     1990  ;
     1991  return 0;
     1992}
     1993_ACEOF
     1994if ac_fn_c_try_compile "$LINENO"; then :
     1995  ac_hi=$ac_mid
     1996else
     1997  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
     1998fi
     1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2000done
     2001case $ac_lo in #((
     2002?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
     2003'') ac_retval=1 ;;
     2004esac
     2005  else
     2006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2007/* end confdefs.h.  */
     2008$4
     2009static long int longval () { return $2; }
     2010static unsigned long int ulongval () { return $2; }
     2011#include <stdio.h>
     2012#include <stdlib.h>
     2013int
     2014main ()
     2015{
     2016
     2017  FILE *f = fopen ("conftest.val", "w");
     2018  if (! f)
     2019    return 1;
     2020  if (($2) < 0)
     2021    {
     2022      long int i = longval ();
     2023      if (i != ($2))
     2024    return 1;
     2025      fprintf (f, "%ld", i);
     2026    }
     2027  else
     2028    {
     2029      unsigned long int i = ulongval ();
     2030      if (i != ($2))
     2031    return 1;
     2032      fprintf (f, "%lu", i);
     2033    }
     2034  /* Do not output a trailing newline, as this causes \r\n confusion
     2035     on some platforms.  */
     2036  return ferror (f) || fclose (f) != 0;
     2037
     2038  ;
     2039  return 0;
     2040}
     2041_ACEOF
     2042if ac_fn_c_try_run "$LINENO"; then :
     2043  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
     2044else
     2045  ac_retval=1
     2046fi
     2047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     2048  conftest.$ac_objext conftest.beam conftest.$ac_ext
     2049rm -f conftest.val
     2050
     2051  fi
     2052  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2053  as_fn_set_status $ac_retval
     2054
     2055} # ac_fn_c_compute_int
     2056cat >config.log <<_ACEOF
    9922057This file contains any messages produced by compilers while
    9932058running configure, to aid debugging if configure makes a mistake.
    9942059
    9952060It was created by $as_me, which was
    996 generated by GNU Autoconf 2.59.  Invocation command line was
     2061generated by GNU Autoconf 2.67.  Invocation command line was
    9972062
    9982063  $ $0 $@
    9992064
    10002065_ACEOF
     2066exec 5>>config.log
    10012067{
    10022068cat <<_ASUNAME
     
    10172083/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10182084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     2085/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10202086/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10212087/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10292095  IFS=$as_save_IFS
    10302096  test -z "$as_dir" && as_dir=.
    1031   echo "PATH: $as_dir"
    1032 done
     2097    $as_echo "PATH: $as_dir"
     2098  done
     2099IFS=$as_save_IFS
    10332100
    10342101} >&5
     
    10522119ac_configure_args0=
    10532120ac_configure_args1=
    1054 ac_sep=
    10552121ac_must_keep_next=false
    10562122for ac_pass in 1 2
     
    10632129    | -silent | --silent | --silen | --sile | --sil)
    10642130      continue ;;
    1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2131    *\'*)
     2132      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10672133    esac
    10682134    case $ac_pass in
    1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2135    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10702136    2)
    1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2137      as_fn_append ac_configure_args1 " '$ac_arg'"
    10722138      if test $ac_must_keep_next = true; then
    10732139    ac_must_keep_next=false # Got value, back to normal.
     
    10852151    esac
    10862152      fi
    1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1088       # Get rid of the leading space.
    1089       ac_sep=" "
     2153      as_fn_append ac_configure_args " '$ac_arg'"
    10902154      ;;
    10912155    esac
    10922156  done
    10932157done
    1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2158{ ac_configure_args0=; unset ac_configure_args0;}
     2159{ ac_configure_args1=; unset ac_configure_args1;}
    10962160
    10972161# When interrupted or exit'd, cleanup temporary files, and complete
    10982162# config.log.  We remove comments because anyway the quotes in there
    10992163# would cause problems or look ugly.
    1100 # WARNING: Be sure not to use single quotes in there, as some shells,
    1101 # such as our DU 5.0 friend, will then `close' the trap.
     2164# WARNING: Use '\'' to represent an apostrophe within the trap.
     2165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11022166trap 'exit_status=$?
    11032167  # Save into config.log some information that might help in debugging.
     
    11052169    echo
    11062170
    1107     cat <<\_ASBOX
    1108 ## ---------------- ##
     2171    $as_echo "## ---------------- ##
    11092172## Cache variables. ##
    1110 ## ---------------- ##
    1111 _ASBOX
     2173## ---------------- ##"
    11122174    echo
    11132175    # The following way of writing the cache mishandles newlines in values,
    1114 {
     2176(
     2177  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2178    eval ac_val=\$$ac_var
     2179    case $ac_val in #(
     2180    *${as_nl}*)
     2181      case $ac_var in #(
     2182      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2184      esac
     2185      case $ac_var in #(
     2186      _ | IFS | as_nl) ;; #(
     2187      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2188      *) { eval $ac_var=; unset $ac_var;} ;;
     2189      esac ;;
     2190    esac
     2191  done
    11152192  (set) 2>&1 |
    1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1117     *ac_space=\ *)
     2193    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2194    *${as_nl}ac_space=\ *)
    11182195      sed -n \
    1119     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1120       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2196    "s/'\''/'\''\\\\'\'''\''/g;
     2197      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2198      ;; #(
     2199    *)
     2200      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11212201      ;;
    1122     *)
    1123       sed -n \
    1124     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1125       ;;
    1126     esac;
    1127 }
     2202    esac |
     2203    sort
     2204)
    11282205    echo
    11292206
    1130     cat <<\_ASBOX
    1131 ## ----------------- ##
     2207    $as_echo "## ----------------- ##
    11322208## Output variables. ##
    1133 ## ----------------- ##
    1134 _ASBOX
     2209## ----------------- ##"
    11352210    echo
    11362211    for ac_var in $ac_subst_vars
    11372212    do
    1138       eval ac_val=$`echo $ac_var`
    1139       echo "$ac_var='"'"'$ac_val'"'"'"
     2213      eval ac_val=\$$ac_var
     2214      case $ac_val in
     2215      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2216      esac
     2217      $as_echo "$ac_var='\''$ac_val'\''"
    11402218    done | sort
    11412219    echo
    11422220
    11432221    if test -n "$ac_subst_files"; then
    1144       cat <<\_ASBOX
    1145 ## ------------- ##
    1146 ## Output files. ##
    1147 ## ------------- ##
    1148 _ASBOX
     2222      $as_echo "## ------------------- ##
     2223## File substitutions. ##
     2224## ------------------- ##"
    11492225      echo
    11502226      for ac_var in $ac_subst_files
    11512227      do
    1152     eval ac_val=$`echo $ac_var`
    1153     echo "$ac_var='"'"'$ac_val'"'"'"
     2228    eval ac_val=\$$ac_var
     2229    case $ac_val in
     2230    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2231    esac
     2232    $as_echo "$ac_var='\''$ac_val'\''"
    11542233      done | sort
    11552234      echo
     
    11572236
    11582237    if test -s confdefs.h; then
    1159       cat <<\_ASBOX
    1160 ## ----------- ##
     2238      $as_echo "## ----------- ##
    11612239## confdefs.h. ##
    1162 ## ----------- ##
    1163 _ASBOX
     2240## ----------- ##"
    11642241      echo
    1165       sed "/^$/d" confdefs.h | sort
     2242      cat confdefs.h
    11662243      echo
    11672244    fi
    11682245    test "$ac_signal" != 0 &&
    1169       echo "$as_me: caught signal $ac_signal"
    1170     echo "$as_me: exit $exit_status"
     2246      $as_echo "$as_me: caught signal $ac_signal"
     2247    $as_echo "$as_me: exit $exit_status"
    11712248  } >&5
    1172   rm -f core *.core &&
    1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2249  rm -f core *.core core.conftest.* &&
     2250    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11742251    exit $exit_status
    1175      ' 0
     2252' 0
    11762253for ac_signal in 1 2 13 15; do
    1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2254  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11782255done
    11792256ac_signal=0
    11802257
    11812258# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1182 rm -rf conftest* confdefs.h
    1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1184 echo >confdefs.h
     2259rm -f -r conftest* confdefs.h
     2260
     2261$as_echo "/* confdefs.h */" > confdefs.h
    11852262
    11862263# Predefined preprocessor variables.
     
    11902267_ACEOF
    11912268
    1192 
    11932269cat >>confdefs.h <<_ACEOF
    11942270#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11952271_ACEOF
    11962272
    1197 
    11982273cat >>confdefs.h <<_ACEOF
    11992274#define PACKAGE_VERSION "$PACKAGE_VERSION"
    12002275_ACEOF
    12012276
    1202 
    12032277cat >>confdefs.h <<_ACEOF
    12042278#define PACKAGE_STRING "$PACKAGE_STRING"
    12052279_ACEOF
    12062280
    1207 
    12082281cat >>confdefs.h <<_ACEOF
    12092282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12102283_ACEOF
    12112284
     2285cat >>confdefs.h <<_ACEOF
     2286#define PACKAGE_URL "$PACKAGE_URL"
     2287_ACEOF
     2288
    12122289
    12132290# Let the site file select an alternate cache file if it wants to.
    1214 # Prefer explicitly selected file to automatically selected ones.
    1215 if test -z "$CONFIG_SITE"; then
    1216   if test "x$prefix" != xNONE; then
    1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1218   else
    1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1220   fi
    1221 fi
    1222 for ac_site_file in $CONFIG_SITE; do
    1223   if test -r "$ac_site_file"; then
    1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1225 echo "$as_me: loading site script $ac_site_file" >&6;}
     2291# Prefer an explicitly selected file to automatically selected ones.
     2292ac_site_file1=NONE
     2293ac_site_file2=NONE
     2294if test -n "$CONFIG_SITE"; then
     2295  # We do not want a PATH search for config.site.
     2296  case $CONFIG_SITE in #((
     2297    -*)  ac_site_file1=./$CONFIG_SITE;;
     2298    */*) ac_site_file1=$CONFIG_SITE;;
     2299    *)   ac_site_file1=./$CONFIG_SITE;;
     2300  esac
     2301elif test "x$prefix" != xNONE; then
     2302  ac_site_file1=$prefix/share/config.site
     2303  ac_site_file2=$prefix/etc/config.site
     2304else
     2305  ac_site_file1=$ac_default_prefix/share/config.site
     2306  ac_site_file2=$ac_default_prefix/etc/config.site
     2307fi
     2308for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2309do
     2310  test "x$ac_site_file" = xNONE && continue
     2311  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2312    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2313$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12262314    sed 's/^/| /' "$ac_site_file" >&5
    1227     . "$ac_site_file"
     2315    . "$ac_site_file" \
     2316      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2318as_fn_error $? "failed to load site script $ac_site_file
     2319See \`config.log' for more details" "$LINENO" 5 ; }
    12282320  fi
    12292321done
    12302322
    12312323if test -r "$cache_file"; then
    1232   # Some versions of bash will fail to source /dev/null (special
    1233   # files actually), so we avoid doing that.
    1234   if test -f "$cache_file"; then
    1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1236 echo "$as_me: loading cache $cache_file" >&6;}
     2324  # Some versions of bash will fail to source /dev/null (special files
     2325  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2326  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2327    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2328$as_echo "$as_me: loading cache $cache_file" >&6;}
    12372329    case $cache_file in
    1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1239       *)                      . ./$cache_file;;
     2330      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2331      *)                      . "./$cache_file";;
    12402332    esac
    12412333  fi
    12422334else
    1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1244 echo "$as_me: creating cache $cache_file" >&6;}
     2335  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2336$as_echo "$as_me: creating cache $cache_file" >&6;}
    12452337  >$cache_file
    12462338fi
     
    12492341# value.
    12502342ac_cache_corrupted=false
    1251 for ac_var in `(set) 2>&1 |
    1252            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2343for ac_var in $ac_precious_vars; do
    12532344  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12542345  eval ac_new_set=\$ac_env_${ac_var}_set
    1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1256   eval ac_new_val="\$ac_env_${ac_var}_value"
     2346  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2347  eval ac_new_val=\$ac_env_${ac_var}_value
    12572348  case $ac_old_set,$ac_new_set in
    12582349    set,)
    1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2350      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2351$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12612352      ac_cache_corrupted=: ;;
    12622353    ,set)
    1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2354      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2355$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12652356      ac_cache_corrupted=: ;;
    12662357    ,);;
    12672358    *)
    12682359      if test "x$ac_old_val" != "x$ac_new_val"; then
    1269     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1271     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1273     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1274 echo "$as_me:   current value: $ac_new_val" >&2;}
    1275     ac_cache_corrupted=:
     2360    # differences in whitespace do not lead to failure.
     2361    ac_old_val_w=`echo x $ac_old_val`
     2362    ac_new_val_w=`echo x $ac_new_val`
     2363    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2364      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2365$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2366      ac_cache_corrupted=:
     2367    else
     2368      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2369$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2370      eval $ac_var=\$ac_old_val
     2371    fi
     2372    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2373$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2374    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2375$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12762376      fi;;
    12772377  esac
     
    12792379  if test "$ac_new_set" = set; then
    12802380    case $ac_new_val in
    1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2381    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12832382    *) ac_arg=$ac_var=$ac_new_val ;;
    12842383    esac
    12852384    case " $ac_configure_args " in
    12862385      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2386      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12882387    esac
    12892388  fi
    12902389done
    12912390if $ac_cache_corrupted; then
    1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1296    { (exit 1); exit 1; }; }
    1297 fi
     2391  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2393  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2394$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2395  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2396fi
     2397## -------------------- ##
     2398## Main body of script. ##
     2399## -------------------- ##
    12982400
    12992401ac_ext=c
     
    13042406
    13052407
    1306 
    1307 
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323           ac_config_headers="$ac_config_headers config.h"
     2408ac_config_headers="$ac_config_headers config.h"
    13242409
    13252410
    13262411ac_aux_dir=
    1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1328   if test -f $ac_dir/install-sh; then
     2412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     2413  if test -f "$ac_dir/install-sh"; then
    13292414    ac_aux_dir=$ac_dir
    13302415    ac_install_sh="$ac_aux_dir/install-sh -c"
    13312416    break
    1332   elif test -f $ac_dir/install.sh; then
     2417  elif test -f "$ac_dir/install.sh"; then
    13332418    ac_aux_dir=$ac_dir
    13342419    ac_install_sh="$ac_aux_dir/install.sh -c"
    13352420    break
    1336   elif test -f $ac_dir/shtool; then
     2421  elif test -f "$ac_dir/shtool"; then
    13372422    ac_aux_dir=$ac_dir
    13382423    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    13412426done
    13422427if test -z "$ac_aux_dir"; then
    1343   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1345    { (exit 1); exit 1; }; }
    1346 fi
    1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2428  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     2429fi
     2430
     2431# These three variables are undocumented and unsupported,
     2432# and are intended to be withdrawn in a future Autoconf release.
     2433# They can cause serious problems if a builder's source tree is in a directory
     2434# whose full name contains unusual characters.
     2435ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     2436ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     2437ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     2438
    13502439
    13512440# Make sure we can run config.sub.
    1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1353   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1355    { (exit 1); exit 1; }; }
    1356 
    1357 echo "$as_me:$LINENO: checking build system type" >&5
    1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1359 if test "${ac_cv_build+set}" = set; then
    1360   echo $ECHO_N "(cached) $ECHO_C" >&6
    1361 else
    1362   ac_cv_build_alias=$build_alias
    1363 test -z "$ac_cv_build_alias" &&
    1364   ac_cv_build_alias=`$ac_config_guess`
    1365 test -z "$ac_cv_build_alias" &&
    1366   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1368    { (exit 1); exit 1; }; }
    1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1370   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    1372    { (exit 1); exit 1; }; }
    1373 
    1374 fi
    1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1376 echo "${ECHO_T}$ac_cv_build" >&6
     2441$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2442  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2443
     2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2445$as_echo_n "checking build system type... " >&6; }
     2446if test "${ac_cv_build+set}" = set; then :
     2447  $as_echo_n "(cached) " >&6
     2448else
     2449  ac_build_alias=$build_alias
     2450test "x$ac_build_alias" = x &&
     2451  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2452test "x$ac_build_alias" = x &&
     2453  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2454ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2455  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2456
     2457fi
     2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2459$as_echo "$ac_cv_build" >&6; }
     2460case $ac_cv_build in
     2461*-*-*) ;;
     2462*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     2463esac
    13772464build=$ac_cv_build
    1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1381 
    1382 
    1383 echo "$as_me:$LINENO: checking host system type" >&5
    1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    1385 if test "${ac_cv_host+set}" = set; then
    1386   echo $ECHO_N "(cached) $ECHO_C" >&6
    1387 else
    1388   ac_cv_host_alias=$host_alias
    1389 test -z "$ac_cv_host_alias" &&
    1390   ac_cv_host_alias=$ac_cv_build_alias
    1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    1394    { (exit 1); exit 1; }; }
    1395 
    1396 fi
    1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    1398 echo "${ECHO_T}$ac_cv_host" >&6
     2465ac_save_IFS=$IFS; IFS='-'
     2466set x $ac_cv_build
     2467shift
     2468build_cpu=$1
     2469build_vendor=$2
     2470shift; shift
     2471# Remember, the first character of IFS is used to create $*,
     2472# except with old shells:
     2473build_os=$*
     2474IFS=$ac_save_IFS
     2475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2476
     2477
     2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2479$as_echo_n "checking host system type... " >&6; }
     2480if test "${ac_cv_host+set}" = set; then :
     2481  $as_echo_n "(cached) " >&6
     2482else
     2483  if test "x$host_alias" = x; then
     2484  ac_cv_host=$ac_cv_build
     2485else
     2486  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2487    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2488fi
     2489
     2490fi
     2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2492$as_echo "$ac_cv_host" >&6; }
     2493case $ac_cv_host in
     2494*-*-*) ;;
     2495*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     2496esac
    13992497host=$ac_cv_host
    1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1403 
    1404 
    1405 echo "$as_me:$LINENO: checking target system type" >&5
    1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    1407 if test "${ac_cv_target+set}" = set; then
    1408   echo $ECHO_N "(cached) $ECHO_C" >&6
    1409 else
    1410   ac_cv_target_alias=$target_alias
    1411 test "x$ac_cv_target_alias" = "x" &&
    1412   ac_cv_target_alias=$ac_cv_host_alias
    1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    1416    { (exit 1); exit 1; }; }
    1417 
    1418 fi
    1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    1420 echo "${ECHO_T}$ac_cv_target" >&6
     2498ac_save_IFS=$IFS; IFS='-'
     2499set x $ac_cv_host
     2500shift
     2501host_cpu=$1
     2502host_vendor=$2
     2503shift; shift
     2504# Remember, the first character of IFS is used to create $*,
     2505# except with old shells:
     2506host_os=$*
     2507IFS=$ac_save_IFS
     2508case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2509
     2510
     2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     2512$as_echo_n "checking target system type... " >&6; }
     2513if test "${ac_cv_target+set}" = set; then :
     2514  $as_echo_n "(cached) " >&6
     2515else
     2516  if test "x$target_alias" = x; then
     2517  ac_cv_target=$ac_cv_host
     2518else
     2519  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     2520    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     2521fi
     2522
     2523fi
     2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     2525$as_echo "$ac_cv_target" >&6; }
     2526case $ac_cv_target in
     2527*-*-*) ;;
     2528*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     2529esac
    14212530target=$ac_cv_target
    1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2531ac_save_IFS=$IFS; IFS='-'
     2532set x $ac_cv_target
     2533shift
     2534target_cpu=$1
     2535target_vendor=$2
     2536shift; shift
     2537# Remember, the first character of IFS is used to create $*,
     2538# except with old shells:
     2539target_os=$*
     2540IFS=$ac_save_IFS
     2541case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    14252542
    14262543
     
    14312548    NONENONEs,x,x, &&
    14322549  program_prefix=${target_alias}-
     2550
    14332551test "$program_prefix" != NONE &&
    1434   program_transform_name="s,^,$program_prefix,;$program_transform_name"
     2552  program_transform_name="s&^&$program_prefix&;$program_transform_name"
    14352553# Use a double $ so make ignores it.
    14362554test "$program_suffix" != NONE &&
    1437   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    1438 # Double any \ or $.  echo might interpret backslashes.
     2555  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
     2556# Double any \ or $.
    14392557# By default was `s,x,x', remove it if useless.
    1440 cat <<\_ACEOF >conftest.sed
    1441 s/[\\$]/&&/g;s/;s,x,x,$//
    1442 _ACEOF
    1443 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    1444 rm conftest.sed
     2558ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
     2559program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
    14452560
    14462561
     
    14592574
    14602575
    1461 
    1462 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    1463 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     2576# Check whether --enable-java was given.
     2577if test "${enable_java+set}" = set; then :
     2578  enableval=$enable_java; ENABLE_JAVA=$enableval
     2579else
     2580  ENABLE_JAVA=yes
     2581fi
     2582
     2583if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2584  ENABLE_JAVA=1
     2585  if test "x$JAVA_HOME" != "x" ; then
     2586    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2587    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2588    echo "and JAVA respectively"
     2589    export JAVA_HOME=
     2590  fi
     2591else
     2592  ENABLE_JAVA=0
     2593fi
     2594
     2595
     2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     2597$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    14642598arch_64bit=no
    14652599case "$host_cpu" in
     
    14682602
    14692603if test "$arch_64bit" = yes; then
    1470   echo "$as_me:$LINENO: result: yes" >&5
    1471 echo "${ECHO_T}yes" >&6
     2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2605$as_echo "yes" >&6; }
    14722606  if test -z "$COMPAT32BITFLAGS" ; then
    14732607    COMPAT32BITFLAGS="-m32"
    14742608  fi
    14752609else
    1476   echo "$as_me:$LINENO: result: no" >&5
    1477 echo "${ECHO_T}no" >&6
     2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2611$as_echo "no" >&6; }
    14782612  if test -z "$COMPAT32BITFLAGS" ; then
    14792613    COMPAT32BITFLAGS=
     
    14822616
    14832617
    1484 # Check whether --enable-accentfold or --disable-accentfold was given.
    1485 if test "${enable_accentfold+set}" = set; then
    1486   enableval="$enable_accentfold"
    1487   ENABLE_ACCENTFOLD=$enableval
     2618# Check whether --enable-accentfold was given.
     2619if test "${enable_accentfold+set}" = set; then :
     2620  enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
    14882621else
    14892622  ENABLE_ACCENTFOLD=yes
    1490 fi;
     2623fi
     2624
    14912625if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
    14922626  ENABLE_ACCENTFOLD=1
    1493   cat >>confdefs.h <<\_ACEOF
    1494 #define ENABLE_ACCENTFOLD
    1495 _ACEOF
     2627  $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
    14962628
    14972629else
     
    15012633
    15022634
    1503 ac_ext=cc
     2635ac_ext=cpp
    15042636ac_cpp='$CXXCPP $CPPFLAGS'
    15052637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    15062638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    15072639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1508 if test -n "$ac_tool_prefix"; then
    1509   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2640if test -z "$CXX"; then
     2641  if test -n "$CCC"; then
     2642    CXX=$CCC
     2643  else
     2644    if test -n "$ac_tool_prefix"; then
     2645  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    15102646  do
    15112647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    15122648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1515 if test "${ac_cv_prog_CXX+set}" = set; then
    1516   echo $ECHO_N "(cached) $ECHO_C" >&6
     2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2650$as_echo_n "checking for $ac_word... " >&6; }
     2651if test "${ac_cv_prog_CXX+set}" = set; then :
     2652  $as_echo_n "(cached) " >&6
    15172653else
    15182654  if test -n "$CXX"; then
     
    15242660  IFS=$as_save_IFS
    15252661  test -z "$as_dir" && as_dir=.
    1526   for ac_exec_ext in '' $ac_executable_extensions; do
    1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2662    for ac_exec_ext in '' $ac_executable_extensions; do
     2663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15282664    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15302666    break 2
    15312667  fi
    15322668done
    1533 done
     2669  done
     2670IFS=$as_save_IFS
    15342671
    15352672fi
     
    15372674CXX=$ac_cv_prog_CXX
    15382675if test -n "$CXX"; then
    1539   echo "$as_me:$LINENO: result: $CXX" >&5
    1540 echo "${ECHO_T}$CXX" >&6
    1541 else
    1542   echo "$as_me:$LINENO: result: no" >&5
    1543 echo "${ECHO_T}no" >&6
    1544 fi
     2676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     2677$as_echo "$CXX" >&6; }
     2678else
     2679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2680$as_echo "no" >&6; }
     2681fi
     2682
    15452683
    15462684    test -n "$CXX" && break
     
    15492687if test -z "$CXX"; then
    15502688  ac_ct_CXX=$CXX
    1551   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2689  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    15522690do
    15532691  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15542692set dummy $ac_prog; ac_word=$2
    1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1557 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1558   echo $ECHO_N "(cached) $ECHO_C" >&6
     2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2694$as_echo_n "checking for $ac_word... " >&6; }
     2695if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     2696  $as_echo_n "(cached) " >&6
    15592697else
    15602698  if test -n "$ac_ct_CXX"; then
     
    15662704  IFS=$as_save_IFS
    15672705  test -z "$as_dir" && as_dir=.
    1568   for ac_exec_ext in '' $ac_executable_extensions; do
    1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2706    for ac_exec_ext in '' $ac_executable_extensions; do
     2707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15702708    ac_cv_prog_ac_ct_CXX="$ac_prog"
    1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    15722710    break 2
    15732711  fi
    15742712done
    1575 done
     2713  done
     2714IFS=$as_save_IFS
    15762715
    15772716fi
     
    15792718ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    15802719if test -n "$ac_ct_CXX"; then
    1581   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    1582 echo "${ECHO_T}$ac_ct_CXX" >&6
    1583 else
    1584   echo "$as_me:$LINENO: result: no" >&5
    1585 echo "${ECHO_T}no" >&6
    1586 fi
     2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     2721$as_echo "$ac_ct_CXX" >&6; }
     2722else
     2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2724$as_echo "no" >&6; }
     2725fi
     2726
    15872727
    15882728  test -n "$ac_ct_CXX" && break
    15892729done
    1590 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1591 
    1592   CXX=$ac_ct_CXX
    1593 fi
    1594 
    1595 
     2730
     2731  if test "x$ac_ct_CXX" = x; then
     2732    CXX="g++"
     2733  else
     2734    case $cross_compiling:$ac_tool_warned in
     2735yes:)
     2736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2738ac_tool_warned=yes ;;
     2739esac
     2740    CXX=$ac_ct_CXX
     2741  fi
     2742fi
     2743
     2744  fi
     2745fi
    15962746# Provide some information about the compiler.
    1597 echo "$as_me:$LINENO:" \
    1598      "checking for C++ compiler version" >&5
    1599 ac_compiler=`set X $ac_compile; echo $2`
    1600 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1601   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2747$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     2748set X $ac_compile
     2749ac_compiler=$2
     2750for ac_option in --version -v -V -qversion; do
     2751  { { ac_try="$ac_compiler $ac_option >&5"
     2752case "(($ac_try" in
     2753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2754  *) ac_try_echo=$ac_try;;
     2755esac
     2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2757$as_echo "$ac_try_echo"; } >&5
     2758  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    16022759  ac_status=$?
    1603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1604   (exit $ac_status); }
    1605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1606   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1607   ac_status=$?
    1608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1609   (exit $ac_status); }
    1610 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1611   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1612   ac_status=$?
    1613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1614   (exit $ac_status); }
    1615 
    1616 cat >conftest.$ac_ext <<_ACEOF
    1617 /* confdefs.h.  */
    1618 _ACEOF
    1619 cat confdefs.h >>conftest.$ac_ext
    1620 cat >>conftest.$ac_ext <<_ACEOF
     2760  if test -s conftest.err; then
     2761    sed '10a\
     2762... rest of stderr output deleted ...
     2763         10q' conftest.err >conftest.er1
     2764    cat conftest.er1 >&5
     2765  fi
     2766  rm -f conftest.er1 conftest.err
     2767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2768  test $ac_status = 0; }
     2769done
     2770
     2771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    16212772/* end confdefs.h.  */
    16222773
     
    16302781_ACEOF
    16312782ac_clean_files_save=$ac_clean_files
    1632 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2783ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    16332784# Try to create an executable without -o first, disregard a.out.
    16342785# It will help us diagnose broken compilers, and finding out an intuition
    16352786# of exeext.
    1636 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
    1637 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    1638 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1639 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1640   (eval $ac_link_default) 2>&5
     2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
     2788$as_echo_n "checking whether the C++ compiler works... " >&6; }
     2789ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2790
     2791# The possible output files:
     2792ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2793
     2794ac_rmfiles=
     2795for ac_file in $ac_files
     2796do
     2797  case $ac_file in
     2798    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2799    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2800  esac
     2801done
     2802rm -f $ac_rmfiles
     2803
     2804if { { ac_try="$ac_link_default"
     2805case "(($ac_try" in
     2806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2807  *) ac_try_echo=$ac_try;;
     2808esac
     2809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2810$as_echo "$ac_try_echo"; } >&5
     2811  (eval "$ac_link_default") 2>&5
    16412812  ac_status=$?
    1642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1643   (exit $ac_status); }; then
    1644   # Find the output, starting from the most likely.  This scheme is
    1645 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1646 # resort.
    1647 
    1648 # Be careful to initialize this variable, since it used to be cached.
    1649 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1650 ac_cv_exeext=
    1651 # b.out is created by i960 compilers.
    1652 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2814  test $ac_status = 0; }; then :
     2815  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2817# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2818# so that the user can short-circuit this test for compilers unknown to
     2819# Autoconf.
     2820for ac_file in $ac_files ''
    16532821do
    16542822  test -f "$ac_file" || continue
    16552823  case $ac_file in
    1656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1657     ;;
    1658     conftest.$ac_ext )
    1659     # This is the source file.
     2824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    16602825    ;;
    16612826    [ab].out )
     
    16642829    break;;
    16652830    *.* )
    1666     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1667     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1668     # but it would be cool to find out if it's true.  Does anybody
    1669     # maintain Libtool? --akim.
    1670     export ac_cv_exeext
     2831    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2832    then :; else
     2833       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2834    fi
     2835    # We set ac_cv_exeext here because the later test for it is not
     2836    # safe: cross compilers may not add the suffix if given an `-o'
     2837    # argument, so we may need to know it at that point already.
     2838    # Even if this section looks crufty: it has the advantage of
     2839    # actually working.
    16712840    break;;
    16722841    * )
     
    16742843  esac
    16752844done
    1676 else
    1677   echo "$as_me: failed program was:" >&5
     2845test "$ac_cv_exeext" = no && ac_cv_exeext=
     2846
     2847else
     2848  ac_file=''
     2849fi
     2850if test -z "$ac_file"; then :
     2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2852$as_echo "no" >&6; }
     2853$as_echo "$as_me: failed program was:" >&5
    16782854sed 's/^/| /' conftest.$ac_ext >&5
    16792855
    1680 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
    1681 See \`config.log' for more details." >&5
    1682 echo "$as_me: error: C++ compiler cannot create executables
    1683 See \`config.log' for more details." >&2;}
    1684    { (exit 77); exit 77; }; }
    1685 fi
    1686 
     2856{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2858as_fn_error 77 "C++ compiler cannot create executables
     2859See \`config.log' for more details" "$LINENO" 5 ; }
     2860else
     2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2862$as_echo "yes" >&6; }
     2863fi
     2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
     2865$as_echo_n "checking for C++ compiler default output file name... " >&6; }
     2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2867$as_echo "$ac_file" >&6; }
    16872868ac_exeext=$ac_cv_exeext
    1688 echo "$as_me:$LINENO: result: $ac_file" >&5
    1689 echo "${ECHO_T}$ac_file" >&6
    1690 
    1691 # Check the compiler produces executables we can run.  If not, either
    1692 # the compiler is broken, or we cross compile.
    1693 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    1694 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    1695 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1696 # If not cross compiling, check that we can run a simple program.
    1697 if test "$cross_compiling" != yes; then
    1698   if { ac_try='./$ac_file'
    1699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1700   (eval $ac_try) 2>&5
     2869
     2870rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2871ac_clean_files=$ac_clean_files_save
     2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2873$as_echo_n "checking for suffix of executables... " >&6; }
     2874if { { ac_try="$ac_link"
     2875case "(($ac_try" in
     2876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2877  *) ac_try_echo=$ac_try;;
     2878esac
     2879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2880$as_echo "$ac_try_echo"; } >&5
     2881  (eval "$ac_link") 2>&5
    17012882  ac_status=$?
    1702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1703   (exit $ac_status); }; }; then
    1704     cross_compiling=no
    1705   else
    1706     if test "$cross_compiling" = maybe; then
    1707     cross_compiling=yes
    1708     else
    1709     { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
    1710 If you meant to cross compile, use \`--host'.
    1711 See \`config.log' for more details." >&5
    1712 echo "$as_me: error: cannot run C++ compiled programs.
    1713 If you meant to cross compile, use \`--host'.
    1714 See \`config.log' for more details." >&2;}
    1715    { (exit 1); exit 1; }; }
    1716     fi
    1717   fi
    1718 fi
    1719 echo "$as_me:$LINENO: result: yes" >&5
    1720 echo "${ECHO_T}yes" >&6
    1721 
    1722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    1723 ac_clean_files=$ac_clean_files_save
    1724 # Check the compiler produces executables we can run.  If not, either
    1725 # the compiler is broken, or we cross compile.
    1726 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1728 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1729 echo "${ECHO_T}$cross_compiling" >&6
    1730 
    1731 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1734   (eval $ac_link) 2>&5
    1735   ac_status=$?
    1736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1737   (exit $ac_status); }; then
     2883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2884  test $ac_status = 0; }; then :
    17382885  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    17392886# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    17432890  test -f "$ac_file" || continue
    17442891  case $ac_file in
    1745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2892    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    17462893    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1747       export ac_cv_exeext
    17482894      break;;
    17492895    * ) break;;
     
    17512897done
    17522898else
    1753   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    1754 See \`config.log' for more details." >&5
    1755 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    1756 See \`config.log' for more details." >&2;}
    1757    { (exit 1); exit 1; }; }
    1758 fi
    1759 
    1760 rm -f conftest$ac_cv_exeext
    1761 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1762 echo "${ECHO_T}$ac_cv_exeext" >&6
     2899  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2901as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     2902See \`config.log' for more details" "$LINENO" 5 ; }
     2903fi
     2904rm -f conftest conftest$ac_cv_exeext
     2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2906$as_echo "$ac_cv_exeext" >&6; }
    17632907
    17642908rm -f conftest.$ac_ext
    17652909EXEEXT=$ac_cv_exeext
    17662910ac_exeext=$EXEEXT
    1767 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1768 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    1769 if test "${ac_cv_objext+set}" = set; then
    1770   echo $ECHO_N "(cached) $ECHO_C" >&6
    1771 else
    1772   cat >conftest.$ac_ext <<_ACEOF
    1773 /* confdefs.h.  */
    1774 _ACEOF
    1775 cat confdefs.h >>conftest.$ac_ext
    1776 cat >>conftest.$ac_ext <<_ACEOF
     2911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    17772912/* end confdefs.h.  */
    1778 
     2913#include <stdio.h>
    17792914int
    17802915main ()
    17812916{
     2917FILE *f = fopen ("conftest.out", "w");
     2918 return ferror (f) || fclose (f) != 0;
    17822919
    17832920  ;
     
    17852922}
    17862923_ACEOF
     2924ac_clean_files="$ac_clean_files conftest.out"
     2925# Check that the compiler produces executables we can run.  If not, either
     2926# the compiler is broken, or we cross compile.
     2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     2928$as_echo_n "checking whether we are cross compiling... " >&6; }
     2929if test "$cross_compiling" != yes; then
     2930  { { ac_try="$ac_link"
     2931case "(($ac_try" in
     2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2933  *) ac_try_echo=$ac_try;;
     2934esac
     2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2936$as_echo "$ac_try_echo"; } >&5
     2937  (eval "$ac_link") 2>&5
     2938  ac_status=$?
     2939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2940  test $ac_status = 0; }
     2941  if { ac_try='./conftest$ac_cv_exeext'
     2942  { { case "(($ac_try" in
     2943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2944  *) ac_try_echo=$ac_try;;
     2945esac
     2946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2947$as_echo "$ac_try_echo"; } >&5
     2948  (eval "$ac_try") 2>&5
     2949  ac_status=$?
     2950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2951  test $ac_status = 0; }; }; then
     2952    cross_compiling=no
     2953  else
     2954    if test "$cross_compiling" = maybe; then
     2955    cross_compiling=yes
     2956    else
     2957    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2959as_fn_error $? "cannot run C++ compiled programs.
     2960If you meant to cross compile, use \`--host'.
     2961See \`config.log' for more details" "$LINENO" 5 ; }
     2962    fi
     2963  fi
     2964fi
     2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     2966$as_echo "$cross_compiling" >&6; }
     2967
     2968rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     2969ac_clean_files=$ac_clean_files_save
     2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     2971$as_echo_n "checking for suffix of object files... " >&6; }
     2972if test "${ac_cv_objext+set}" = set; then :
     2973  $as_echo_n "(cached) " >&6
     2974else
     2975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2976/* end confdefs.h.  */
     2977
     2978int
     2979main ()
     2980{
     2981
     2982  ;
     2983  return 0;
     2984}
     2985_ACEOF
    17872986rm -f conftest.o conftest.obj
    1788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1789   (eval $ac_compile) 2>&5
     2987if { { ac_try="$ac_compile"
     2988case "(($ac_try" in
     2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2990  *) ac_try_echo=$ac_try;;
     2991esac
     2992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2993$as_echo "$ac_try_echo"; } >&5
     2994  (eval "$ac_compile") 2>&5
    17902995  ac_status=$?
    1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1792   (exit $ac_status); }; then
    1793   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2997  test $ac_status = 0; }; then :
     2998  for ac_file in conftest.o conftest.obj conftest.*; do
     2999  test -f "$ac_file" || continue;
    17943000  case $ac_file in
    1795     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     3001    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    17963002    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    17973003       break;;
     
    17993005done
    18003006else
    1801   echo "$as_me: failed program was:" >&5
     3007  $as_echo "$as_me: failed program was:" >&5
    18023008sed 's/^/| /' conftest.$ac_ext >&5
    18033009
    1804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    1805 See \`config.log' for more details." >&5
    1806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    1807 See \`config.log' for more details." >&2;}
    1808    { (exit 1); exit 1; }; }
    1809 fi
    1810 
     3010{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3012as_fn_error $? "cannot compute suffix of object files: cannot compile
     3013See \`config.log' for more details" "$LINENO" 5 ; }
     3014fi
    18113015rm -f conftest.$ac_cv_objext conftest.$ac_ext
    18123016fi
    1813 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    1814 echo "${ECHO_T}$ac_cv_objext" >&6
     3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3018$as_echo "$ac_cv_objext" >&6; }
    18153019OBJEXT=$ac_cv_objext
    18163020ac_objext=$OBJEXT
    1817 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    1818 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1819 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1820   echo $ECHO_N "(cached) $ECHO_C" >&6
    1821 else
    1822   cat >conftest.$ac_ext <<_ACEOF
    1823 /* confdefs.h.  */
    1824 _ACEOF
    1825 cat confdefs.h >>conftest.$ac_ext
    1826 cat >>conftest.$ac_ext <<_ACEOF
     3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     3022$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3023if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3024  $as_echo_n "(cached) " >&6
     3025else
     3026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    18273027/* end confdefs.h.  */
    18283028
     
    18383038}
    18393039_ACEOF
    1840 rm -f conftest.$ac_objext
    1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1842   (eval $ac_compile) 2>conftest.er1
    1843   ac_status=$?
    1844   grep -v '^ *+' conftest.er1 >conftest.err
    1845   rm -f conftest.er1
    1846   cat conftest.err >&5
    1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1848   (exit $ac_status); } &&
    1849      { ac_try='test -z "$ac_cxx_werror_flag"
    1850              || test ! -s conftest.err'
    1851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1852   (eval $ac_try) 2>&5
    1853   ac_status=$?
    1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1855   (exit $ac_status); }; } &&
    1856      { ac_try='test -s conftest.$ac_objext'
    1857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1858   (eval $ac_try) 2>&5
    1859   ac_status=$?
    1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1861   (exit $ac_status); }; }; then
     3040if ac_fn_cxx_try_compile "$LINENO"; then :
    18623041  ac_compiler_gnu=yes
    18633042else
    1864   echo "$as_me: failed program was:" >&5
    1865 sed 's/^/| /' conftest.$ac_ext >&5
    1866 
    1867 ac_compiler_gnu=no
    1868 fi
    1869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3043  ac_compiler_gnu=no
     3044fi
     3045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    18703046ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    18713047
    18723048fi
    1873 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    1874 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1875 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     3050$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3051if test $ac_compiler_gnu = yes; then
     3052  GXX=yes
     3053else
     3054  GXX=
     3055fi
    18763056ac_test_CXXFLAGS=${CXXFLAGS+set}
    18773057ac_save_CXXFLAGS=$CXXFLAGS
    1878 CXXFLAGS="-g"
    1879 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    1880 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1881 if test "${ac_cv_prog_cxx_g+set}" = set; then
    1882   echo $ECHO_N "(cached) $ECHO_C" >&6
    1883 else
    1884   cat >conftest.$ac_ext <<_ACEOF
    1885 /* confdefs.h.  */
    1886 _ACEOF
    1887 cat confdefs.h >>conftest.$ac_ext
    1888 cat >>conftest.$ac_ext <<_ACEOF
     3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     3059$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3060if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3061  $as_echo_n "(cached) " >&6
     3062else
     3063  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3064   ac_cxx_werror_flag=yes
     3065   ac_cv_prog_cxx_g=no
     3066   CXXFLAGS="-g"
     3067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    18893068/* end confdefs.h.  */
    18903069
     
    18973076}
    18983077_ACEOF
    1899 rm -f conftest.$ac_objext
    1900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1901   (eval $ac_compile) 2>conftest.er1
    1902   ac_status=$?
    1903   grep -v '^ *+' conftest.er1 >conftest.err
    1904   rm -f conftest.er1
    1905   cat conftest.err >&5
    1906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1907   (exit $ac_status); } &&
    1908      { ac_try='test -z "$ac_cxx_werror_flag"
    1909              || test ! -s conftest.err'
    1910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1911   (eval $ac_try) 2>&5
    1912   ac_status=$?
    1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1914   (exit $ac_status); }; } &&
    1915      { ac_try='test -s conftest.$ac_objext'
    1916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1917   (eval $ac_try) 2>&5
    1918   ac_status=$?
    1919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1920   (exit $ac_status); }; }; then
     3078if ac_fn_cxx_try_compile "$LINENO"; then :
    19213079  ac_cv_prog_cxx_g=yes
    19223080else
    1923   echo "$as_me: failed program was:" >&5
    1924 sed 's/^/| /' conftest.$ac_ext >&5
    1925 
    1926 ac_cv_prog_cxx_g=no
    1927 fi
    1928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1929 fi
    1930 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    1931 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3081  CXXFLAGS=""
     3082      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3083/* end confdefs.h.  */
     3084
     3085int
     3086main ()
     3087{
     3088
     3089  ;
     3090  return 0;
     3091}
     3092_ACEOF
     3093if ac_fn_cxx_try_compile "$LINENO"; then :
     3094
     3095else
     3096  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3097     CXXFLAGS="-g"
     3098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3099/* end confdefs.h.  */
     3100
     3101int
     3102main ()
     3103{
     3104
     3105  ;
     3106  return 0;
     3107}
     3108_ACEOF
     3109if ac_fn_cxx_try_compile "$LINENO"; then :
     3110  ac_cv_prog_cxx_g=yes
     3111fi
     3112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3113fi
     3114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3115fi
     3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3117   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3118fi
     3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     3120$as_echo "$ac_cv_prog_cxx_g" >&6; }
    19323121if test "$ac_test_CXXFLAGS" = set; then
    19333122  CXXFLAGS=$ac_save_CXXFLAGS
     
    19453134  fi
    19463135fi
    1947 for ac_declaration in \
    1948    '' \
    1949    'extern "C" void std::exit (int) throw (); using std::exit;' \
    1950    'extern "C" void std::exit (int); using std::exit;' \
    1951    'extern "C" void exit (int) throw ();' \
    1952    'extern "C" void exit (int);' \
    1953    'void exit (int);'
    1954 do
    1955   cat >conftest.$ac_ext <<_ACEOF
    1956 /* confdefs.h.  */
    1957 _ACEOF
    1958 cat confdefs.h >>conftest.$ac_ext
    1959 cat >>conftest.$ac_ext <<_ACEOF
    1960 /* end confdefs.h.  */
    1961 $ac_declaration
    1962 #include <stdlib.h>
    1963 int
    1964 main ()
    1965 {
    1966 exit (42);
    1967   ;
    1968   return 0;
    1969 }
    1970 _ACEOF
    1971 rm -f conftest.$ac_objext
    1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1973   (eval $ac_compile) 2>conftest.er1
    1974   ac_status=$?
    1975   grep -v '^ *+' conftest.er1 >conftest.err
    1976   rm -f conftest.er1
    1977   cat conftest.err >&5
    1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1979   (exit $ac_status); } &&
    1980      { ac_try='test -z "$ac_cxx_werror_flag"
    1981              || test ! -s conftest.err'
    1982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1983   (eval $ac_try) 2>&5
    1984   ac_status=$?
    1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1986   (exit $ac_status); }; } &&
    1987      { ac_try='test -s conftest.$ac_objext'
    1988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1989   (eval $ac_try) 2>&5
    1990   ac_status=$?
    1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1992   (exit $ac_status); }; }; then
    1993   :
    1994 else
    1995   echo "$as_me: failed program was:" >&5
    1996 sed 's/^/| /' conftest.$ac_ext >&5
    1997 
    1998 continue
    1999 fi
    2000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2001   cat >conftest.$ac_ext <<_ACEOF
    2002 /* confdefs.h.  */
    2003 _ACEOF
    2004 cat confdefs.h >>conftest.$ac_ext
    2005 cat >>conftest.$ac_ext <<_ACEOF
    2006 /* end confdefs.h.  */
    2007 $ac_declaration
    2008 int
    2009 main ()
    2010 {
    2011 exit (42);
    2012   ;
    2013   return 0;
    2014 }
    2015 _ACEOF
    2016 rm -f conftest.$ac_objext
    2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2018   (eval $ac_compile) 2>conftest.er1
    2019   ac_status=$?
    2020   grep -v '^ *+' conftest.er1 >conftest.err
    2021   rm -f conftest.er1
    2022   cat conftest.err >&5
    2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2024   (exit $ac_status); } &&
    2025      { ac_try='test -z "$ac_cxx_werror_flag"
    2026              || test ! -s conftest.err'
    2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2028   (eval $ac_try) 2>&5
    2029   ac_status=$?
    2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2031   (exit $ac_status); }; } &&
    2032      { ac_try='test -s conftest.$ac_objext'
    2033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2034   (eval $ac_try) 2>&5
    2035   ac_status=$?
    2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2037   (exit $ac_status); }; }; then
    2038   break
    2039 else
    2040   echo "$as_me: failed program was:" >&5
    2041 sed 's/^/| /' conftest.$ac_ext >&5
    2042 
    2043 fi
    2044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2045 done
    2046 rm -f conftest*
    2047 if test -n "$ac_declaration"; then
    2048   echo '#ifdef __cplusplus' >>confdefs.h
    2049   echo $ac_declaration      >>confdefs.h
    2050   echo '#endif'             >>confdefs.h
    2051 fi
    2052 
    20533136ac_ext=c
    20543137ac_cpp='$CPP $CPPFLAGS'
     
    20613144  # Extract the first word of "$ac_prog", so it can be a program name with args.
    20623145set dummy $ac_prog; ac_word=$2
    2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2065 if test "${ac_cv_prog_AWK+set}" = set; then
    2066   echo $ECHO_N "(cached) $ECHO_C" >&6
     3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3147$as_echo_n "checking for $ac_word... " >&6; }
     3148if test "${ac_cv_prog_AWK+set}" = set; then :
     3149  $as_echo_n "(cached) " >&6
    20673150else
    20683151  if test -n "$AWK"; then
     
    20743157  IFS=$as_save_IFS
    20753158  test -z "$as_dir" && as_dir=.
    2076   for ac_exec_ext in '' $ac_executable_extensions; do
    2077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3159    for ac_exec_ext in '' $ac_executable_extensions; do
     3160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    20783161    ac_cv_prog_AWK="$ac_prog"
    2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    20803163    break 2
    20813164  fi
    20823165done
    2083 done
     3166  done
     3167IFS=$as_save_IFS
    20843168
    20853169fi
     
    20873171AWK=$ac_cv_prog_AWK
    20883172if test -n "$AWK"; then
    2089   echo "$as_me:$LINENO: result: $AWK" >&5
    2090 echo "${ECHO_T}$AWK" >&6
    2091 else
    2092   echo "$as_me:$LINENO: result: no" >&5
    2093 echo "${ECHO_T}no" >&6
    2094 fi
     3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     3174$as_echo "$AWK" >&6; }
     3175else
     3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3177$as_echo "no" >&6; }
     3178fi
     3179
    20953180
    20963181  test -n "$AWK" && break
     
    21013186  # Extract the first word of "$ac_prog", so it can be a program name with args.
    21023187set dummy $ac_prog; ac_word=$2
    2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2105 if test "${ac_cv_prog_YACC+set}" = set; then
    2106   echo $ECHO_N "(cached) $ECHO_C" >&6
     3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3189$as_echo_n "checking for $ac_word... " >&6; }
     3190if test "${ac_cv_prog_YACC+set}" = set; then :
     3191  $as_echo_n "(cached) " >&6
    21073192else
    21083193  if test -n "$YACC"; then
     
    21143199  IFS=$as_save_IFS
    21153200  test -z "$as_dir" && as_dir=.
    2116   for ac_exec_ext in '' $ac_executable_extensions; do
    2117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3201    for ac_exec_ext in '' $ac_executable_extensions; do
     3202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21183203    ac_cv_prog_YACC="$ac_prog"
    2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21203205    break 2
    21213206  fi
    21223207done
    2123 done
     3208  done
     3209IFS=$as_save_IFS
    21243210
    21253211fi
     
    21273213YACC=$ac_cv_prog_YACC
    21283214if test -n "$YACC"; then
    2129   echo "$as_me:$LINENO: result: $YACC" >&5
    2130 echo "${ECHO_T}$YACC" >&6
    2131 else
    2132   echo "$as_me:$LINENO: result: no" >&5
    2133 echo "${ECHO_T}no" >&6
    2134 fi
     3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     3216$as_echo "$YACC" >&6; }
     3217else
     3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3219$as_echo "no" >&6; }
     3220fi
     3221
    21353222
    21363223  test -n "$YACC" && break
     
    21463233  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    21473234set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2150 if test "${ac_cv_prog_CC+set}" = set; then
    2151   echo $ECHO_N "(cached) $ECHO_C" >&6
     3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3236$as_echo_n "checking for $ac_word... " >&6; }
     3237if test "${ac_cv_prog_CC+set}" = set; then :
     3238  $as_echo_n "(cached) " >&6
    21523239else
    21533240  if test -n "$CC"; then
     
    21593246  IFS=$as_save_IFS
    21603247  test -z "$as_dir" && as_dir=.
    2161   for ac_exec_ext in '' $ac_executable_extensions; do
    2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3248    for ac_exec_ext in '' $ac_executable_extensions; do
     3249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21633250    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21653252    break 2
    21663253  fi
    21673254done
    2168 done
     3255  done
     3256IFS=$as_save_IFS
    21693257
    21703258fi
     
    21723260CC=$ac_cv_prog_CC
    21733261if test -n "$CC"; then
    2174   echo "$as_me:$LINENO: result: $CC" >&5
    2175 echo "${ECHO_T}$CC" >&6
    2176 else
    2177   echo "$as_me:$LINENO: result: no" >&5
    2178 echo "${ECHO_T}no" >&6
    2179 fi
     3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3263$as_echo "$CC" >&6; }
     3264else
     3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3266$as_echo "no" >&6; }
     3267fi
     3268
    21803269
    21813270fi
     
    21843273  # Extract the first word of "gcc", so it can be a program name with args.
    21853274set dummy gcc; ac_word=$2
    2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2189   echo $ECHO_N "(cached) $ECHO_C" >&6
     3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3276$as_echo_n "checking for $ac_word... " >&6; }
     3277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     3278  $as_echo_n "(cached) " >&6
    21903279else
    21913280  if test -n "$ac_ct_CC"; then
     
    21973286  IFS=$as_save_IFS
    21983287  test -z "$as_dir" && as_dir=.
    2199   for ac_exec_ext in '' $ac_executable_extensions; do
    2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3288    for ac_exec_ext in '' $ac_executable_extensions; do
     3289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    22013290    ac_cv_prog_ac_ct_CC="gcc"
    2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    22033292    break 2
    22043293  fi
    22053294done
    2206 done
     3295  done
     3296IFS=$as_save_IFS
    22073297
    22083298fi
     
    22103300ac_ct_CC=$ac_cv_prog_ac_ct_CC
    22113301if test -n "$ac_ct_CC"; then
    2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2213 echo "${ECHO_T}$ac_ct_CC" >&6
    2214 else
    2215   echo "$as_me:$LINENO: result: no" >&5
    2216 echo "${ECHO_T}no" >&6
    2217 fi
    2218 
    2219   CC=$ac_ct_CC
     3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     3303$as_echo "$ac_ct_CC" >&6; }
     3304else
     3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3306$as_echo "no" >&6; }
     3307fi
     3308
     3309  if test "x$ac_ct_CC" = x; then
     3310    CC=""
     3311  else
     3312    case $cross_compiling:$ac_tool_warned in
     3313yes:)
     3314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3316ac_tool_warned=yes ;;
     3317esac
     3318    CC=$ac_ct_CC
     3319  fi
    22203320else
    22213321  CC="$ac_cv_prog_CC"
     
    22233323
    22243324if test -z "$CC"; then
    2225   if test -n "$ac_tool_prefix"; then
    2226   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     3325          if test -n "$ac_tool_prefix"; then
     3326    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    22273327set dummy ${ac_tool_prefix}cc; ac_word=$2
    2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2230 if test "${ac_cv_prog_CC+set}" = set; then
    2231   echo $ECHO_N "(cached) $ECHO_C" >&6
     3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3329$as_echo_n "checking for $ac_word... " >&6; }
     3330if test "${ac_cv_prog_CC+set}" = set; then :
     3331  $as_echo_n "(cached) " >&6
    22323332else
    22333333  if test -n "$CC"; then
     
    22393339  IFS=$as_save_IFS
    22403340  test -z "$as_dir" && as_dir=.
    2241   for ac_exec_ext in '' $ac_executable_extensions; do
    2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3341    for ac_exec_ext in '' $ac_executable_extensions; do
     3342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    22433343    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    22453345    break 2
    22463346  fi
    22473347done
    2248 done
     3348  done
     3349IFS=$as_save_IFS
    22493350
    22503351fi
     
    22523353CC=$ac_cv_prog_CC
    22533354if test -n "$CC"; then
    2254   echo "$as_me:$LINENO: result: $CC" >&5
    2255 echo "${ECHO_T}$CC" >&6
    2256 else
    2257   echo "$as_me:$LINENO: result: no" >&5
    2258 echo "${ECHO_T}no" >&6
    2259 fi
    2260 
    2261 fi
    2262 if test -z "$ac_cv_prog_CC"; then
    2263   ac_ct_CC=$CC
    2264   # Extract the first word of "cc", so it can be a program name with args.
    2265 set dummy cc; ac_word=$2
    2266 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2269   echo $ECHO_N "(cached) $ECHO_C" >&6
    2270 else
    2271   if test -n "$ac_ct_CC"; then
    2272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2273 else
    2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2275 for as_dir in $PATH
    2276 do
    2277   IFS=$as_save_IFS
    2278   test -z "$as_dir" && as_dir=.
    2279   for ac_exec_ext in '' $ac_executable_extensions; do
    2280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2281     ac_cv_prog_ac_ct_CC="cc"
    2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2283     break 2
     3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3356$as_echo "$CC" >&6; }
     3357else
     3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3359$as_echo "no" >&6; }
     3360fi
     3361
     3362
    22843363  fi
    2285 done
    2286 done
    2287 
    2288 fi
    2289 fi
    2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2291 if test -n "$ac_ct_CC"; then
    2292   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2293 echo "${ECHO_T}$ac_ct_CC" >&6
    2294 else
    2295   echo "$as_me:$LINENO: result: no" >&5
    2296 echo "${ECHO_T}no" >&6
    2297 fi
    2298 
    2299   CC=$ac_ct_CC
    2300 else
    2301   CC="$ac_cv_prog_CC"
    2302 fi
    2303 
    23043364fi
    23053365if test -z "$CC"; then
    23063366  # Extract the first word of "cc", so it can be a program name with args.
    23073367set dummy cc; ac_word=$2
    2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2310 if test "${ac_cv_prog_CC+set}" = set; then
    2311   echo $ECHO_N "(cached) $ECHO_C" >&6
     3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3369$as_echo_n "checking for $ac_word... " >&6; }
     3370if test "${ac_cv_prog_CC+set}" = set; then :
     3371  $as_echo_n "(cached) " >&6
    23123372else
    23133373  if test -n "$CC"; then
     
    23203380  IFS=$as_save_IFS
    23213381  test -z "$as_dir" && as_dir=.
    2322   for ac_exec_ext in '' $ac_executable_extensions; do
    2323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3382    for ac_exec_ext in '' $ac_executable_extensions; do
     3383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    23243384    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    23253385       ac_prog_rejected=yes
     
    23273387     fi
    23283388    ac_cv_prog_CC="cc"
    2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23303390    break 2
    23313391  fi
    23323392done
    2333 done
     3393  done
     3394IFS=$as_save_IFS
    23343395
    23353396if test $ac_prog_rejected = yes; then
     
    23493410CC=$ac_cv_prog_CC
    23503411if test -n "$CC"; then
    2351   echo "$as_me:$LINENO: result: $CC" >&5
    2352 echo "${ECHO_T}$CC" >&6
    2353 else
    2354   echo "$as_me:$LINENO: result: no" >&5
    2355 echo "${ECHO_T}no" >&6
    2356 fi
     3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3413$as_echo "$CC" >&6; }
     3414else
     3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3416$as_echo "no" >&6; }
     3417fi
     3418
    23573419
    23583420fi
    23593421if test -z "$CC"; then
    23603422  if test -n "$ac_tool_prefix"; then
    2361   for ac_prog in cl
     3423  for ac_prog in cl.exe
    23623424  do
    23633425    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    23643426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2367 if test "${ac_cv_prog_CC+set}" = set; then
    2368   echo $ECHO_N "(cached) $ECHO_C" >&6
     3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3428$as_echo_n "checking for $ac_word... " >&6; }
     3429if test "${ac_cv_prog_CC+set}" = set; then :
     3430  $as_echo_n "(cached) " >&6
    23693431else
    23703432  if test -n "$CC"; then
     
    23763438  IFS=$as_save_IFS
    23773439  test -z "$as_dir" && as_dir=.
    2378   for ac_exec_ext in '' $ac_executable_extensions; do
    2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3440    for ac_exec_ext in '' $ac_executable_extensions; do
     3441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    23803442    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23823444    break 2
    23833445  fi
    23843446done
    2385 done
     3447  done
     3448IFS=$as_save_IFS
    23863449
    23873450fi
     
    23893452CC=$ac_cv_prog_CC
    23903453if test -n "$CC"; then
    2391   echo "$as_me:$LINENO: result: $CC" >&5
    2392 echo "${ECHO_T}$CC" >&6
    2393 else
    2394   echo "$as_me:$LINENO: result: no" >&5
    2395 echo "${ECHO_T}no" >&6
    2396 fi
     3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3455$as_echo "$CC" >&6; }
     3456else
     3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3458$as_echo "no" >&6; }
     3459fi
     3460
    23973461
    23983462    test -n "$CC" && break
     
    24013465if test -z "$CC"; then
    24023466  ac_ct_CC=$CC
    2403   for ac_prog in cl
     3467  for ac_prog in cl.exe
    24043468do
    24053469  # Extract the first word of "$ac_prog", so it can be a program name with args.
    24063470set dummy $ac_prog; ac_word=$2
    2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2410   echo $ECHO_N "(cached) $ECHO_C" >&6
     3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3472$as_echo_n "checking for $ac_word... " >&6; }
     3473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     3474  $as_echo_n "(cached) " >&6
    24113475else
    24123476  if test -n "$ac_ct_CC"; then
     
    24183482  IFS=$as_save_IFS
    24193483  test -z "$as_dir" && as_dir=.
    2420   for ac_exec_ext in '' $ac_executable_extensions; do
    2421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3484    for ac_exec_ext in '' $ac_executable_extensions; do
     3485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    24223486    ac_cv_prog_ac_ct_CC="$ac_prog"
    2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    24243488    break 2
    24253489  fi
    24263490done
    2427 done
     3491  done
     3492IFS=$as_save_IFS
    24283493
    24293494fi
     
    24313496ac_ct_CC=$ac_cv_prog_ac_ct_CC
    24323497if test -n "$ac_ct_CC"; then
    2433   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2434 echo "${ECHO_T}$ac_ct_CC" >&6
    2435 else
    2436   echo "$as_me:$LINENO: result: no" >&5
    2437 echo "${ECHO_T}no" >&6
    2438 fi
     3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     3499$as_echo "$ac_ct_CC" >&6; }
     3500else
     3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3502$as_echo "no" >&6; }
     3503fi
     3504
    24393505
    24403506  test -n "$ac_ct_CC" && break
    24413507done
    24423508
    2443   CC=$ac_ct_CC
    2444 fi
    2445 
    2446 fi
    2447 
    2448 
    2449 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2450 See \`config.log' for more details." >&5
    2451 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2452 See \`config.log' for more details." >&2;}
    2453    { (exit 1); exit 1; }; }
     3509  if test "x$ac_ct_CC" = x; then
     3510    CC=""
     3511  else
     3512    case $cross_compiling:$ac_tool_warned in
     3513yes:)
     3514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3516ac_tool_warned=yes ;;
     3517esac
     3518    CC=$ac_ct_CC
     3519  fi
     3520fi
     3521
     3522fi
     3523
     3524
     3525test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3527as_fn_error $? "no acceptable C compiler found in \$PATH
     3528See \`config.log' for more details" "$LINENO" 5 ; }
    24543529
    24553530# Provide some information about the compiler.
    2456 echo "$as_me:$LINENO:" \
    2457      "checking for C compiler version" >&5
    2458 ac_compiler=`set X $ac_compile; echo $2`
    2459 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2460   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     3532set X $ac_compile
     3533ac_compiler=$2
     3534for ac_option in --version -v -V -qversion; do
     3535  { { ac_try="$ac_compiler $ac_option >&5"
     3536case "(($ac_try" in
     3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3538  *) ac_try_echo=$ac_try;;
     3539esac
     3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3541$as_echo "$ac_try_echo"; } >&5
     3542  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    24613543  ac_status=$?
    2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2463   (exit $ac_status); }
    2464 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2465   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2466   ac_status=$?
    2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2468   (exit $ac_status); }
    2469 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2470   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2471   ac_status=$?
    2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2473   (exit $ac_status); }
    2474 
    2475 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2476 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2478   echo $ECHO_N "(cached) $ECHO_C" >&6
    2479 else
    2480   cat >conftest.$ac_ext <<_ACEOF
    2481 /* confdefs.h.  */
    2482 _ACEOF
    2483 cat confdefs.h >>conftest.$ac_ext
    2484 cat >>conftest.$ac_ext <<_ACEOF
     3544  if test -s conftest.err; then
     3545    sed '10a\
     3546... rest of stderr output deleted ...
     3547         10q' conftest.err >conftest.er1
     3548    cat conftest.er1 >&5
     3549  fi
     3550  rm -f conftest.er1 conftest.err
     3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3552  test $ac_status = 0; }
     3553done
     3554
     3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3556$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3557if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3558  $as_echo_n "(cached) " >&6
     3559else
     3560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    24853561/* end confdefs.h.  */
    24863562
     
    24963572}
    24973573_ACEOF
    2498 rm -f conftest.$ac_objext
    2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2500   (eval $ac_compile) 2>conftest.er1
    2501   ac_status=$?
    2502   grep -v '^ *+' conftest.er1 >conftest.err
    2503   rm -f conftest.er1
    2504   cat conftest.err >&5
    2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2506   (exit $ac_status); } &&
    2507      { ac_try='test -z "$ac_c_werror_flag"
    2508              || test ! -s conftest.err'
    2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2510   (eval $ac_try) 2>&5
    2511   ac_status=$?
    2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2513   (exit $ac_status); }; } &&
    2514      { ac_try='test -s conftest.$ac_objext'
    2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2516   (eval $ac_try) 2>&5
    2517   ac_status=$?
    2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2519   (exit $ac_status); }; }; then
     3574if ac_fn_c_try_compile "$LINENO"; then :
    25203575  ac_compiler_gnu=yes
    25213576else
    2522   echo "$as_me: failed program was:" >&5
    2523 sed 's/^/| /' conftest.$ac_ext >&5
    2524 
    2525 ac_compiler_gnu=no
    2526 fi
    2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3577  ac_compiler_gnu=no
     3578fi
     3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    25283580ac_cv_c_compiler_gnu=$ac_compiler_gnu
    25293581
    25303582fi
    2531 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2532 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2533 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3584$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3585if test $ac_compiler_gnu = yes; then
     3586  GCC=yes
     3587else
     3588  GCC=
     3589fi
    25343590ac_test_CFLAGS=${CFLAGS+set}
    25353591ac_save_CFLAGS=$CFLAGS
    2536 CFLAGS="-g"
    2537 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2538 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2539 if test "${ac_cv_prog_cc_g+set}" = set; then
    2540   echo $ECHO_N "(cached) $ECHO_C" >&6
    2541 else
    2542   cat >conftest.$ac_ext <<_ACEOF
    2543 /* confdefs.h.  */
    2544 _ACEOF
    2545 cat confdefs.h >>conftest.$ac_ext
    2546 cat >>conftest.$ac_ext <<_ACEOF
     3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3593$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3594if test "${ac_cv_prog_cc_g+set}" = set; then :
     3595  $as_echo_n "(cached) " >&6
     3596else
     3597  ac_save_c_werror_flag=$ac_c_werror_flag
     3598   ac_c_werror_flag=yes
     3599   ac_cv_prog_cc_g=no
     3600   CFLAGS="-g"
     3601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25473602/* end confdefs.h.  */
    25483603
     
    25553610}
    25563611_ACEOF
    2557 rm -f conftest.$ac_objext
    2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2559   (eval $ac_compile) 2>conftest.er1
    2560   ac_status=$?
    2561   grep -v '^ *+' conftest.er1 >conftest.err
    2562   rm -f conftest.er1
    2563   cat conftest.err >&5
    2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2565   (exit $ac_status); } &&
    2566      { ac_try='test -z "$ac_c_werror_flag"
    2567              || test ! -s conftest.err'
    2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2569   (eval $ac_try) 2>&5
    2570   ac_status=$?
    2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2572   (exit $ac_status); }; } &&
    2573      { ac_try='test -s conftest.$ac_objext'
    2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2575   (eval $ac_try) 2>&5
    2576   ac_status=$?
    2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2578   (exit $ac_status); }; }; then
     3612if ac_fn_c_try_compile "$LINENO"; then :
    25793613  ac_cv_prog_cc_g=yes
    25803614else
    2581   echo "$as_me: failed program was:" >&5
    2582 sed 's/^/| /' conftest.$ac_ext >&5
    2583 
    2584 ac_cv_prog_cc_g=no
    2585 fi
    2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2587 fi
    2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3615  CFLAGS=""
     3616      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3617/* end confdefs.h.  */
     3618
     3619int
     3620main ()
     3621{
     3622
     3623  ;
     3624  return 0;
     3625}
     3626_ACEOF
     3627if ac_fn_c_try_compile "$LINENO"; then :
     3628
     3629else
     3630  ac_c_werror_flag=$ac_save_c_werror_flag
     3631     CFLAGS="-g"
     3632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3633/* end confdefs.h.  */
     3634
     3635int
     3636main ()
     3637{
     3638
     3639  ;
     3640  return 0;
     3641}
     3642_ACEOF
     3643if ac_fn_c_try_compile "$LINENO"; then :
     3644  ac_cv_prog_cc_g=yes
     3645fi
     3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3647fi
     3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3649fi
     3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3651   ac_c_werror_flag=$ac_save_c_werror_flag
     3652fi
     3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3654$as_echo "$ac_cv_prog_cc_g" >&6; }
    25903655if test "$ac_test_CFLAGS" = set; then
    25913656  CFLAGS=$ac_save_CFLAGS
     
    26033668  fi
    26043669fi
    2605 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2606 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2607 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2608   echo $ECHO_N "(cached) $ECHO_C" >&6
    2609 else
    2610   ac_cv_prog_cc_stdc=no
     3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3671$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3672if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3673  $as_echo_n "(cached) " >&6
     3674else
     3675  ac_cv_prog_cc_c89=no
    26113676ac_save_CC=$CC
    2612 cat >conftest.$ac_ext <<_ACEOF
    2613 /* confdefs.h.  */
    2614 _ACEOF
    2615 cat confdefs.h >>conftest.$ac_ext
    2616 cat >>conftest.$ac_ext <<_ACEOF
     3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26173678/* end confdefs.h.  */
    26183679#include <stdarg.h>
     
    26423703   function prototypes and stuff, but not '\xHH' hex character constants.
    26433704   These don't provoke an error unfortunately, instead are silently treated
    2644    as 'x'.  The following induces an error, until -std1 is added to get
     3705   as 'x'.  The following induces an error, until -std is added to get
    26453706   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    26463707   array size at least.  It's necessary to write '\x00'==0 to get something
    2647    that's true only with -std1.  */
     3708   that's true only with -std.  */
    26483709int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3710
     3711/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3712   inside strings and character constants.  */
     3713#define FOO(x) 'x'
     3714int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    26493715
    26503716int test (int i, double x);
     
    26623728}
    26633729_ACEOF
    2664 # Don't try gcc -ansi; that turns off useful extensions and
    2665 # breaks some systems' header files.
    2666 # AIX           -qlanglvl=ansi
    2667 # Ultrix and OSF/1  -std1
    2668 # HP-UX 10.20 and later -Ae
    2669 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2670 # SVR4          -Xc -D__EXTENSIONS__
    2671 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3730for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3731    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    26723732do
    26733733  CC="$ac_save_CC $ac_arg"
    2674   rm -f conftest.$ac_objext
    2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2676   (eval $ac_compile) 2>conftest.er1
    2677   ac_status=$?
    2678   grep -v '^ *+' conftest.er1 >conftest.err
    2679   rm -f conftest.er1
    2680   cat conftest.err >&5
    2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2682   (exit $ac_status); } &&
    2683      { ac_try='test -z "$ac_c_werror_flag"
    2684              || test ! -s conftest.err'
    2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2686   (eval $ac_try) 2>&5
    2687   ac_status=$?
    2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2689   (exit $ac_status); }; } &&
    2690      { ac_try='test -s conftest.$ac_objext'
    2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2692   (eval $ac_try) 2>&5
    2693   ac_status=$?
    2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2695   (exit $ac_status); }; }; then
    2696   ac_cv_prog_cc_stdc=$ac_arg
    2697 break
    2698 else
    2699   echo "$as_me: failed program was:" >&5
    2700 sed 's/^/| /' conftest.$ac_ext >&5
    2701 
    2702 fi
    2703 rm -f conftest.err conftest.$ac_objext
     3734  if ac_fn_c_try_compile "$LINENO"; then :
     3735  ac_cv_prog_cc_c89=$ac_arg
     3736fi
     3737rm -f core conftest.err conftest.$ac_objext
     3738  test "x$ac_cv_prog_cc_c89" != "xno" && break
    27043739done
    2705 rm -f conftest.$ac_ext conftest.$ac_objext
     3740rm -f conftest.$ac_ext
    27063741CC=$ac_save_CC
    27073742
    27083743fi
    2709 
    2710 case "x$ac_cv_prog_cc_stdc" in
    2711   x|xno)
    2712     echo "$as_me:$LINENO: result: none needed" >&5
    2713 echo "${ECHO_T}none needed" >&6 ;;
     3744# AC_CACHE_VAL
     3745case "x$ac_cv_prog_cc_c89" in
     3746  x)
     3747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3748$as_echo "none needed" >&6; } ;;
     3749  xno)
     3750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3751$as_echo "unsupported" >&6; } ;;
    27143752  *)
    2715     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2716 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2717     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3753    CC="$CC $ac_cv_prog_cc_c89"
     3754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3755$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    27183756esac
    2719 
    2720 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2721 # in C++ we need to declare it.  In case someone uses the same compiler
    2722 # for both compiling C and C++ we need to have the C++ compiler decide
    2723 # the declaration of exit, since it's the most demanding environment.
    2724 cat >conftest.$ac_ext <<_ACEOF
    2725 #ifndef __cplusplus
    2726   choke me
    2727 #endif
    2728 _ACEOF
    2729 rm -f conftest.$ac_objext
    2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2731   (eval $ac_compile) 2>conftest.er1
    2732   ac_status=$?
    2733   grep -v '^ *+' conftest.er1 >conftest.err
    2734   rm -f conftest.er1
    2735   cat conftest.err >&5
    2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2737   (exit $ac_status); } &&
    2738      { ac_try='test -z "$ac_c_werror_flag"
    2739              || test ! -s conftest.err'
    2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2741   (eval $ac_try) 2>&5
    2742   ac_status=$?
    2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2744   (exit $ac_status); }; } &&
    2745      { ac_try='test -s conftest.$ac_objext'
    2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2747   (eval $ac_try) 2>&5
    2748   ac_status=$?
    2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2750   (exit $ac_status); }; }; then
    2751   for ac_declaration in \
    2752    '' \
    2753    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2754    'extern "C" void std::exit (int); using std::exit;' \
    2755    'extern "C" void exit (int) throw ();' \
    2756    'extern "C" void exit (int);' \
    2757    'void exit (int);'
    2758 do
    2759   cat >conftest.$ac_ext <<_ACEOF
    2760 /* confdefs.h.  */
    2761 _ACEOF
    2762 cat confdefs.h >>conftest.$ac_ext
    2763 cat >>conftest.$ac_ext <<_ACEOF
    2764 /* end confdefs.h.  */
    2765 $ac_declaration
    2766 #include <stdlib.h>
    2767 int
    2768 main ()
    2769 {
    2770 exit (42);
    2771   ;
    2772   return 0;
    2773 }
    2774 _ACEOF
    2775 rm -f conftest.$ac_objext
    2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2777   (eval $ac_compile) 2>conftest.er1
    2778   ac_status=$?
    2779   grep -v '^ *+' conftest.er1 >conftest.err
    2780   rm -f conftest.er1
    2781   cat conftest.err >&5
    2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2783   (exit $ac_status); } &&
    2784      { ac_try='test -z "$ac_c_werror_flag"
    2785              || test ! -s conftest.err'
    2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2787   (eval $ac_try) 2>&5
    2788   ac_status=$?
    2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2790   (exit $ac_status); }; } &&
    2791      { ac_try='test -s conftest.$ac_objext'
    2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2793   (eval $ac_try) 2>&5
    2794   ac_status=$?
    2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2796   (exit $ac_status); }; }; then
    2797   :
    2798 else
    2799   echo "$as_me: failed program was:" >&5
    2800 sed 's/^/| /' conftest.$ac_ext >&5
    2801 
    2802 continue
    2803 fi
    2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2805   cat >conftest.$ac_ext <<_ACEOF
    2806 /* confdefs.h.  */
    2807 _ACEOF
    2808 cat confdefs.h >>conftest.$ac_ext
    2809 cat >>conftest.$ac_ext <<_ACEOF
    2810 /* end confdefs.h.  */
    2811 $ac_declaration
    2812 int
    2813 main ()
    2814 {
    2815 exit (42);
    2816   ;
    2817   return 0;
    2818 }
    2819 _ACEOF
    2820 rm -f conftest.$ac_objext
    2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2822   (eval $ac_compile) 2>conftest.er1
    2823   ac_status=$?
    2824   grep -v '^ *+' conftest.er1 >conftest.err
    2825   rm -f conftest.er1
    2826   cat conftest.err >&5
    2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2828   (exit $ac_status); } &&
    2829      { ac_try='test -z "$ac_c_werror_flag"
    2830              || test ! -s conftest.err'
    2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2832   (eval $ac_try) 2>&5
    2833   ac_status=$?
    2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2835   (exit $ac_status); }; } &&
    2836      { ac_try='test -s conftest.$ac_objext'
    2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2838   (eval $ac_try) 2>&5
    2839   ac_status=$?
    2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2841   (exit $ac_status); }; }; then
    2842   break
    2843 else
    2844   echo "$as_me: failed program was:" >&5
    2845 sed 's/^/| /' conftest.$ac_ext >&5
    2846 
    2847 fi
    2848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2849 done
    2850 rm -f conftest*
    2851 if test -n "$ac_declaration"; then
    2852   echo '#ifdef __cplusplus' >>confdefs.h
    2853   echo $ac_declaration      >>confdefs.h
    2854   echo '#endif'             >>confdefs.h
    2855 fi
    2856 
    2857 else
    2858   echo "$as_me: failed program was:" >&5
    2859 sed 's/^/| /' conftest.$ac_ext >&5
    2860 
    2861 fi
    2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3757if test "x$ac_cv_prog_cc_c89" != xno; then :
     3758
     3759fi
     3760
    28633761ac_ext=c
    28643762ac_cpp='$CPP $CPPFLAGS'
     
    28803778# OS/2's system install, which has a completely different semantic
    28813779# ./install, which can be erroneously created by make from ./install.sh.
    2882 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3780# Reject install programs that cannot install multiple files.
     3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     3782$as_echo_n "checking for a BSD-compatible install... " >&6; }
    28843783if test -z "$INSTALL"; then
    2885 if test "${ac_cv_path_install+set}" = set; then
    2886   echo $ECHO_N "(cached) $ECHO_C" >&6
     3784if test "${ac_cv_path_install+set}" = set; then :
     3785  $as_echo_n "(cached) " >&6
    28873786else
    28883787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28913790  IFS=$as_save_IFS
    28923791  test -z "$as_dir" && as_dir=.
    2893   # Account for people who put trailing slashes in PATH elements.
    2894 case $as_dir/ in
    2895   ./ | .// | /cC/* | \
     3792    # Account for people who put trailing slashes in PATH elements.
     3793case $as_dir/ in #((
     3794  ./ | .// | /[cC]/* | \
    28963795  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3796  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    28983797  /usr/ucb/* ) ;;
    28993798  *)
     
    29033802    for ac_prog in ginstall scoinst install; do
    29043803      for ac_exec_ext in '' $ac_executable_extensions; do
    2905     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3804    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    29063805      if test $ac_prog = install &&
    29073806        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    29133812        :
    29143813      else
    2915         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2916         break 3
     3814        rm -rf conftest.one conftest.two conftest.dir
     3815        echo one > conftest.one
     3816        echo two > conftest.two
     3817        mkdir conftest.dir
     3818        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     3819          test -s conftest.one && test -s conftest.two &&
     3820          test -s conftest.dir/conftest.one &&
     3821          test -s conftest.dir/conftest.two
     3822        then
     3823          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3824          break 3
     3825        fi
    29173826      fi
    29183827    fi
     
    29213830    ;;
    29223831esac
    2923 done
    2924 
     3832
     3833  done
     3834IFS=$as_save_IFS
     3835
     3836rm -rf conftest.one conftest.two conftest.dir
    29253837
    29263838fi
     
    29283840    INSTALL=$ac_cv_path_install
    29293841  else
    2930     # As a last resort, use the slow shell script.  We don't cache a
    2931     # path for INSTALL within a source directory, because that will
     3842    # As a last resort, use the slow shell script.  Don't cache a
     3843    # value for INSTALL within a source directory, because that will
    29323844    # break other packages using the cache if that directory is
    2933     # removed, or if the path is relative.
     3845    # removed, or if the value is a relative name.
    29343846    INSTALL=$ac_install_sh
    29353847  fi
    29363848fi
    2937 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2938 echo "${ECHO_T}$INSTALL" >&6
     3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     3850$as_echo "$INSTALL" >&6; }
    29393851
    29403852# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    29463858test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    29473859
    2948 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2949 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     3861$as_echo_n "checking whether ln -s works... " >&6; }
    29503862LN_S=$as_ln_s
    29513863if test "$LN_S" = "ln -s"; then
    2952   echo "$as_me:$LINENO: result: yes" >&5
    2953 echo "${ECHO_T}yes" >&6
    2954 else
    2955   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    2956 echo "${ECHO_T}no, using $LN_S" >&6
    2957 fi
    2958 
    2959 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    2960 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    2962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2963   echo $ECHO_N "(cached) $ECHO_C" >&6
     3864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3865$as_echo "yes" >&6; }
     3866else
     3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     3868$as_echo "no, using $LN_S" >&6; }
     3869fi
     3870
     3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3872$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     3873set x ${MAKE-make}
     3874ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     3875if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     3876  $as_echo_n "(cached) " >&6
    29643877else
    29653878  cat >conftest.make <<\_ACEOF
     3879SHELL = /bin/sh
    29663880all:
    2967     @echo 'ac_maketemp="$(MAKE)"'
    2968 _ACEOF
    2969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2970 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2971 if test -n "$ac_maketemp"; then
    2972   eval ac_cv_prog_make_${ac_make}_set=yes
    2973 else
    2974   eval ac_cv_prog_make_${ac_make}_set=no
    2975 fi
     3881    @echo '@@@%%%=$(MAKE)=@@@%%%'
     3882_ACEOF
     3883# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     3884case `${MAKE-make} -f conftest.make 2>/dev/null` in
     3885  *@@@%%%=?*=@@@%%%*)
     3886    eval ac_cv_prog_make_${ac_make}_set=yes;;
     3887  *)
     3888    eval ac_cv_prog_make_${ac_make}_set=no;;
     3889esac
    29763890rm -f conftest.make
    29773891fi
    2978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2979   echo "$as_me:$LINENO: result: yes" >&5
    2980 echo "${ECHO_T}yes" >&6
     3892if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3894$as_echo "yes" >&6; }
    29813895  SET_MAKE=
    29823896else
    2983   echo "$as_me:$LINENO: result: no" >&5
    2984 echo "${ECHO_T}no" >&6
     3897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3898$as_echo "no" >&6; }
    29853899  SET_MAKE="MAKE=${MAKE-make}"
    29863900fi
     
    29893903  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    29903904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2991 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2993 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2994   echo $ECHO_N "(cached) $ECHO_C" >&6
     3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3906$as_echo_n "checking for $ac_word... " >&6; }
     3907if test "${ac_cv_prog_RANLIB+set}" = set; then :
     3908  $as_echo_n "(cached) " >&6
    29953909else
    29963910  if test -n "$RANLIB"; then
     
    30023916  IFS=$as_save_IFS
    30033917  test -z "$as_dir" && as_dir=.
    3004   for ac_exec_ext in '' $ac_executable_extensions; do
    3005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3918    for ac_exec_ext in '' $ac_executable_extensions; do
     3919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    30063920    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    30083922    break 2
    30093923  fi
    30103924done
    3011 done
     3925  done
     3926IFS=$as_save_IFS
    30123927
    30133928fi
     
    30153930RANLIB=$ac_cv_prog_RANLIB
    30163931if test -n "$RANLIB"; then
    3017   echo "$as_me:$LINENO: result: $RANLIB" >&5
    3018 echo "${ECHO_T}$RANLIB" >&6
    3019 else
    3020   echo "$as_me:$LINENO: result: no" >&5
    3021 echo "${ECHO_T}no" >&6
    3022 fi
     3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     3933$as_echo "$RANLIB" >&6; }
     3934else
     3935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3936$as_echo "no" >&6; }
     3937fi
     3938
    30233939
    30243940fi
     
    30273943  # Extract the first word of "ranlib", so it can be a program name with args.
    30283944set dummy ranlib; ac_word=$2
    3029 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3031 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3032   echo $ECHO_N "(cached) $ECHO_C" >&6
     3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3946$as_echo_n "checking for $ac_word... " >&6; }
     3947if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     3948  $as_echo_n "(cached) " >&6
    30333949else
    30343950  if test -n "$ac_ct_RANLIB"; then
     
    30403956  IFS=$as_save_IFS
    30413957  test -z "$as_dir" && as_dir=.
    3042   for ac_exec_ext in '' $ac_executable_extensions; do
    3043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3958    for ac_exec_ext in '' $ac_executable_extensions; do
     3959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    30443960    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    30463962    break 2
    30473963  fi
    30483964done
    3049 done
    3050 
    3051   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     3965  done
     3966IFS=$as_save_IFS
     3967
    30523968fi
    30533969fi
    30543970ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    30553971if test -n "$ac_ct_RANLIB"; then
    3056   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3057 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3058 else
    3059   echo "$as_me:$LINENO: result: no" >&5
    3060 echo "${ECHO_T}no" >&6
    3061 fi
    3062 
    3063   RANLIB=$ac_ct_RANLIB
     3972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     3973$as_echo "$ac_ct_RANLIB" >&6; }
     3974else
     3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3976$as_echo "no" >&6; }
     3977fi
     3978
     3979  if test "x$ac_ct_RANLIB" = x; then
     3980    RANLIB=":"
     3981  else
     3982    case $cross_compiling:$ac_tool_warned in
     3983yes:)
     3984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3986ac_tool_warned=yes ;;
     3987esac
     3988    RANLIB=$ac_ct_RANLIB
     3989  fi
    30643990else
    30653991  RANLIB="$ac_cv_prog_RANLIB"
    30663992fi
    30673993
     3994if test $ENABLE_JAVA = "1" ; then
     3995
     3996
     3997if test "x$JAVA" = x ; then
     3998        if test x$JAVAPREFIX = x; then
     3999        test x$JAVA = x && for ac_prog in java$EXEEXT
     4000do
     4001  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4002set dummy $ac_prog; ac_word=$2
     4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4004$as_echo_n "checking for $ac_word... " >&6; }
     4005if test "${ac_cv_prog_JAVA+set}" = set; then :
     4006  $as_echo_n "(cached) " >&6
     4007else
     4008  if test -n "$JAVA"; then
     4009  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     4010else
     4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4012for as_dir in $PATH
     4013do
     4014  IFS=$as_save_IFS
     4015  test -z "$as_dir" && as_dir=.
     4016    for ac_exec_ext in '' $ac_executable_extensions; do
     4017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4018    ac_cv_prog_JAVA="$ac_prog"
     4019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4020    break 2
     4021  fi
     4022done
     4023  done
     4024IFS=$as_save_IFS
     4025
     4026fi
     4027fi
     4028JAVA=$ac_cv_prog_JAVA
     4029if test -n "$JAVA"; then
     4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     4031$as_echo "$JAVA" >&6; }
     4032else
     4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4034$as_echo "no" >&6; }
     4035fi
     4036
     4037
     4038  test -n "$JAVA" && break
     4039done
     4040
     4041    else
     4042        test x$JAVA = x && for ac_prog in java$EXEEXT
     4043do
     4044  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4045set dummy $ac_prog; ac_word=$2
     4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4047$as_echo_n "checking for $ac_word... " >&6; }
     4048if test "${ac_cv_prog_JAVA+set}" = set; then :
     4049  $as_echo_n "(cached) " >&6
     4050else
     4051  if test -n "$JAVA"; then
     4052  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     4053else
     4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4055for as_dir in $PATH
     4056do
     4057  IFS=$as_save_IFS
     4058  test -z "$as_dir" && as_dir=.
     4059    for ac_exec_ext in '' $ac_executable_extensions; do
     4060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4061    ac_cv_prog_JAVA="$ac_prog"
     4062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4063    break 2
     4064  fi
     4065done
     4066  done
     4067IFS=$as_save_IFS
     4068
     4069fi
     4070fi
     4071JAVA=$ac_cv_prog_JAVA
     4072if test -n "$JAVA"; then
     4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     4074$as_echo "$JAVA" >&6; }
     4075else
     4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4077$as_echo "no" >&6; }
     4078fi
     4079
     4080
     4081  test -n "$JAVA" && break
     4082done
     4083test -n "$JAVA" || JAVA="$JAVAPREFIX"
     4084
     4085    fi
     4086    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     4087fi
     4088
     4089
     4090# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     4091set dummy uudecode$EXEEXT; ac_word=$2
     4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4093$as_echo_n "checking for $ac_word... " >&6; }
     4094if test "${ac_cv_prog_uudecode+set}" = set; then :
     4095  $as_echo_n "(cached) " >&6
     4096else
     4097  if test -n "$uudecode"; then
     4098  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     4099else
     4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4101for as_dir in $PATH
     4102do
     4103  IFS=$as_save_IFS
     4104  test -z "$as_dir" && as_dir=.
     4105    for ac_exec_ext in '' $ac_executable_extensions; do
     4106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4107    ac_cv_prog_uudecode="yes"
     4108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4109    break 2
     4110  fi
     4111done
     4112  done
     4113IFS=$as_save_IFS
     4114
     4115fi
     4116fi
     4117uudecode=$ac_cv_prog_uudecode
     4118if test -n "$uudecode"; then
     4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     4120$as_echo "$uudecode" >&6; }
     4121else
     4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4123$as_echo "no" >&6; }
     4124fi
     4125
     4126
     4127if test x$uudecode = xyes; then
     4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     4129$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     4130if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     4131  $as_echo_n "(cached) " >&6
     4132else
     4133
     4134cat << \EOF > Test.uue
     4135begin-base64 644 Test.class
     4136yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     4137bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     4138bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     4139YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     4140aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     4141AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     4142AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     4143====
     4144EOF
     4145if uudecode$EXEEXT Test.uue; then
     4146        ac_cv_prog_uudecode_base64=yes
     4147else
     4148        echo "configure: 4148: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     4149        echo "configure: failed file was:" >&5
     4150        cat Test.uue >&5
     4151        ac_cv_prog_uudecode_base64=no
     4152fi
     4153rm -f Test.uue
     4154fi
     4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     4156$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     4157fi
     4158if test x$ac_cv_prog_uudecode_base64 != xyes; then
     4159        rm -f Test.class
     4160        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     4161$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     4162        if test x$ac_cv_prog_javac_works = xno; then
     4163                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     4164        fi
     4165        if test x$ac_cv_prog_javac_works = x; then
     4166
     4167if test "x$JAVAC" = x ; then
     4168    if test "x$JAVAPREFIX" = x; then
     4169    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4170do
     4171  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4172set dummy $ac_prog; ac_word=$2
     4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4174$as_echo_n "checking for $ac_word... " >&6; }
     4175if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4176  $as_echo_n "(cached) " >&6
     4177else
     4178  if test -n "$JAVAC"; then
     4179  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4180else
     4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4182for as_dir in $PATH
     4183do
     4184  IFS=$as_save_IFS
     4185  test -z "$as_dir" && as_dir=.
     4186    for ac_exec_ext in '' $ac_executable_extensions; do
     4187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4188    ac_cv_prog_JAVAC="$ac_prog"
     4189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4190    break 2
     4191  fi
     4192done
     4193  done
     4194IFS=$as_save_IFS
     4195
     4196fi
     4197fi
     4198JAVAC=$ac_cv_prog_JAVAC
     4199if test -n "$JAVAC"; then
     4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4201$as_echo "$JAVAC" >&6; }
     4202else
     4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4204$as_echo "no" >&6; }
     4205fi
     4206
     4207
     4208  test -n "$JAVAC" && break
     4209done
     4210
     4211  else
     4212    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4213do
     4214  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4215set dummy $ac_prog; ac_word=$2
     4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4217$as_echo_n "checking for $ac_word... " >&6; }
     4218if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4219  $as_echo_n "(cached) " >&6
     4220else
     4221  if test -n "$JAVAC"; then
     4222  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4223else
     4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4225for as_dir in $PATH
     4226do
     4227  IFS=$as_save_IFS
     4228  test -z "$as_dir" && as_dir=.
     4229    for ac_exec_ext in '' $ac_executable_extensions; do
     4230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4231    ac_cv_prog_JAVAC="$ac_prog"
     4232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4233    break 2
     4234  fi
     4235done
     4236  done
     4237IFS=$as_save_IFS
     4238
     4239fi
     4240fi
     4241JAVAC=$ac_cv_prog_JAVAC
     4242if test -n "$JAVAC"; then
     4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4244$as_echo "$JAVAC" >&6; }
     4245else
     4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4247$as_echo "no" >&6; }
     4248fi
     4249
     4250
     4251  test -n "$JAVAC" && break
     4252done
     4253test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     4254
     4255  fi
     4256  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4257else
     4258  echo "Checking for javac... $JAVAC"
     4259fi
     4260
     4261
     4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     4263$as_echo_n "checking if $JAVAC works... " >&6; }
     4264if test "${ac_cv_prog_javac_works+set}" = set; then :
     4265  $as_echo_n "(cached) " >&6
     4266else
     4267
     4268JAVA_TEST=Test.java
     4269CLASS_TEST=Test.class
     4270cat << \EOF > $JAVA_TEST
     4271/* #line 4271 "configure" */
     4272public class Test {
     4273}
     4274EOF
     4275if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4276  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4277  (eval $ac_try) 2>&5
     4278  ac_status=$?
     4279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4280  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4281  ac_cv_prog_javac_works=yes
     4282else
     4283  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4284  echo "configure: failed program was:" >&5
     4285  cat $JAVA_TEST >&5
     4286fi
     4287rm -f $JAVA_TEST $CLASS_TEST
     4288
     4289fi
     4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4291$as_echo "$ac_cv_prog_javac_works" >&6; }
     4292if test "x$JAVACFLAGS" = x ; then
     4293   JAVACFLAGS="-source 1.4 -target 1.4"
     4294fi
     4295
     4296
     4297
     4298        fi
     4299fi
     4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     4301$as_echo_n "checking if $JAVA works... " >&6; }
     4302if test "${ac_cv_prog_java_works+set}" = set; then :
     4303  $as_echo_n "(cached) " >&6
     4304else
     4305
     4306JAVA_TEST=Test.java
     4307CLASS_TEST=Test.class
     4308TEST=Test
     4309cat << \EOF > $JAVA_TEST
     4310/* [#]line 4310 "configure" */
     4311public class Test {
     4312public static void main (String args[]) {
     4313        System.exit (0);
     4314} }
     4315EOF
     4316if test x$ac_cv_prog_uudecode_base64 != xyes; then
     4317        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4318  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4319  (eval $ac_try) 2>&5
     4320  ac_status=$?
     4321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4322  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     4323                :
     4324        else
     4325          echo "configure: failed program was:" >&5
     4326          cat $JAVA_TEST >&5
     4327          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4328        fi
     4329fi
     4330if { ac_try='$JAVA $JAVAFLAGS $TEST'
     4331  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4332  (eval $ac_try) 2>&5
     4333  ac_status=$?
     4334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4335  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4336  ac_cv_prog_java_works=yes
     4337else
     4338  echo "configure: failed program was:" >&5
     4339  cat $JAVA_TEST >&5
     4340  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4341fi
     4342rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     4343
     4344fi
     4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     4346$as_echo "$ac_cv_prog_java_works" >&6; }
     4347
     4348
     4349
     4350
     4351if test "x$JAVAC" = x ; then
     4352    if test "x$JAVAPREFIX" = x; then
     4353    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4354do
     4355  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4356set dummy $ac_prog; ac_word=$2
     4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4358$as_echo_n "checking for $ac_word... " >&6; }
     4359if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4360  $as_echo_n "(cached) " >&6
     4361else
     4362  if test -n "$JAVAC"; then
     4363  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4364else
     4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4366for as_dir in $PATH
     4367do
     4368  IFS=$as_save_IFS
     4369  test -z "$as_dir" && as_dir=.
     4370    for ac_exec_ext in '' $ac_executable_extensions; do
     4371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4372    ac_cv_prog_JAVAC="$ac_prog"
     4373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4374    break 2
     4375  fi
     4376done
     4377  done
     4378IFS=$as_save_IFS
     4379
     4380fi
     4381fi
     4382JAVAC=$ac_cv_prog_JAVAC
     4383if test -n "$JAVAC"; then
     4384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4385$as_echo "$JAVAC" >&6; }
     4386else
     4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4388$as_echo "no" >&6; }
     4389fi
     4390
     4391
     4392  test -n "$JAVAC" && break
     4393done
     4394
     4395  else
     4396    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     4397do
     4398  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4399set dummy $ac_prog; ac_word=$2
     4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4401$as_echo_n "checking for $ac_word... " >&6; }
     4402if test "${ac_cv_prog_JAVAC+set}" = set; then :
     4403  $as_echo_n "(cached) " >&6
     4404else
     4405  if test -n "$JAVAC"; then
     4406  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     4407else
     4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4409for as_dir in $PATH
     4410do
     4411  IFS=$as_save_IFS
     4412  test -z "$as_dir" && as_dir=.
     4413    for ac_exec_ext in '' $ac_executable_extensions; do
     4414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4415    ac_cv_prog_JAVAC="$ac_prog"
     4416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4417    break 2
     4418  fi
     4419done
     4420  done
     4421IFS=$as_save_IFS
     4422
     4423fi
     4424fi
     4425JAVAC=$ac_cv_prog_JAVAC
     4426if test -n "$JAVAC"; then
     4427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     4428$as_echo "$JAVAC" >&6; }
     4429else
     4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4431$as_echo "no" >&6; }
     4432fi
     4433
     4434
     4435  test -n "$JAVAC" && break
     4436done
     4437test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     4438
     4439  fi
     4440  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4441else
     4442  echo "Checking for javac... $JAVAC"
     4443fi
     4444
     4445
     4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     4447$as_echo_n "checking if $JAVAC works... " >&6; }
     4448if test "${ac_cv_prog_javac_works+set}" = set; then :
     4449  $as_echo_n "(cached) " >&6
     4450else
     4451
     4452JAVA_TEST=Test.java
     4453CLASS_TEST=Test.class
     4454cat << \EOF > $JAVA_TEST
     4455/* #line 4455 "configure" */
     4456public class Test {
     4457}
     4458EOF
     4459if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4460  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4461  (eval $ac_try) 2>&5
     4462  ac_status=$?
     4463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4464  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4465  ac_cv_prog_javac_works=yes
     4466else
     4467  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4468  echo "configure: failed program was:" >&5
     4469  cat $JAVA_TEST >&5
     4470fi
     4471rm -f $JAVA_TEST $CLASS_TEST
     4472
     4473fi
     4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4475$as_echo "$ac_cv_prog_javac_works" >&6; }
     4476if test "x$JAVACFLAGS" = x ; then
     4477   JAVACFLAGS="-source 1.4 -target 1.4"
     4478fi
     4479
     4480
     4481
     4482fi
    30684483
    30694484
     
    30734488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    30744489ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4491$as_echo_n "checking how to run the C preprocessor... " >&6; }
    30774492# On Suns, sometimes $CPP names a directory.
    30784493if test -n "$CPP" && test -d "$CPP"; then
     
    30804495fi
    30814496if test -z "$CPP"; then
    3082   if test "${ac_cv_prog_CPP+set}" = set; then
    3083   echo $ECHO_N "(cached) $ECHO_C" >&6
     4497  if test "${ac_cv_prog_CPP+set}" = set; then :
     4498  $as_echo_n "(cached) " >&6
    30844499else
    30854500      # Double quotes because CPP needs to be expanded
     
    30954510  # On the NeXT, cc -E runs the code through the compiler's parser,
    30964511  # not just through cpp. "Syntax error" is here to catch this case.
    3097   cat >conftest.$ac_ext <<_ACEOF
    3098 /* confdefs.h.  */
    3099 _ACEOF
    3100 cat confdefs.h >>conftest.$ac_ext
    3101 cat >>conftest.$ac_ext <<_ACEOF
     4512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    31024513/* end confdefs.h.  */
    31034514#ifdef __STDC__
     
    31084519             Syntax error
    31094520_ACEOF
    3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3112   ac_status=$?
    3113   grep -v '^ *+' conftest.er1 >conftest.err
    3114   rm -f conftest.er1
    3115   cat conftest.err >&5
    3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3117   (exit $ac_status); } >/dev/null; then
    3118   if test -s conftest.err; then
    3119     ac_cpp_err=$ac_c_preproc_warn_flag
    3120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3121   else
    3122     ac_cpp_err=
    3123   fi
    3124 else
    3125   ac_cpp_err=yes
    3126 fi
    3127 if test -z "$ac_cpp_err"; then
    3128   :
    3129 else
    3130   echo "$as_me: failed program was:" >&5
    3131 sed 's/^/| /' conftest.$ac_ext >&5
    3132 
     4521if ac_fn_c_try_cpp "$LINENO"; then :
     4522
     4523else
    31334524  # Broken: fails on valid input.
    31344525continue
    31354526fi
    3136 rm -f conftest.err conftest.$ac_ext
    3137 
    3138   # OK, works on sane cases.  Now check whether non-existent headers
     4527rm -f conftest.err conftest.i conftest.$ac_ext
     4528
     4529  # OK, works on sane cases.  Now check whether nonexistent headers
    31394530  # can be detected and how.
    3140   cat >conftest.$ac_ext <<_ACEOF
    3141 /* confdefs.h.  */
    3142 _ACEOF
    3143 cat confdefs.h >>conftest.$ac_ext
    3144 cat >>conftest.$ac_ext <<_ACEOF
     4531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    31454532/* end confdefs.h.  */
    31464533#include <ac_nonexistent.h>
    31474534_ACEOF
    3148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3150   ac_status=$?
    3151   grep -v '^ *+' conftest.er1 >conftest.err
    3152   rm -f conftest.er1
    3153   cat conftest.err >&5
    3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3155   (exit $ac_status); } >/dev/null; then
    3156   if test -s conftest.err; then
    3157     ac_cpp_err=$ac_c_preproc_warn_flag
    3158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3159   else
    3160     ac_cpp_err=
    3161   fi
    3162 else
    3163   ac_cpp_err=yes
    3164 fi
    3165 if test -z "$ac_cpp_err"; then
     4535if ac_fn_c_try_cpp "$LINENO"; then :
    31664536  # Broken: success on invalid input.
    31674537continue
    31684538else
    3169   echo "$as_me: failed program was:" >&5
    3170 sed 's/^/| /' conftest.$ac_ext >&5
    3171 
    31724539  # Passes both tests.
    31734540ac_preproc_ok=:
    31744541break
    31754542fi
    3176 rm -f conftest.err conftest.$ac_ext
     4543rm -f conftest.err conftest.i conftest.$ac_ext
    31774544
    31784545done
    31794546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3180 rm -f conftest.err conftest.$ac_ext
    3181 if $ac_preproc_ok; then
     4547rm -f conftest.i conftest.err conftest.$ac_ext
     4548if $ac_preproc_ok; then :
    31824549  break
    31834550fi
     
    31914558  ac_cv_prog_CPP=$CPP
    31924559fi
    3193 echo "$as_me:$LINENO: result: $CPP" >&5
    3194 echo "${ECHO_T}$CPP" >&6
     4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4561$as_echo "$CPP" >&6; }
    31954562ac_preproc_ok=false
    31964563for ac_c_preproc_warn_flag in '' yes
     
    32024569  # On the NeXT, cc -E runs the code through the compiler's parser,
    32034570  # not just through cpp. "Syntax error" is here to catch this case.
    3204   cat >conftest.$ac_ext <<_ACEOF
    3205 /* confdefs.h.  */
    3206 _ACEOF
    3207 cat confdefs.h >>conftest.$ac_ext
    3208 cat >>conftest.$ac_ext <<_ACEOF
     4571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32094572/* end confdefs.h.  */
    32104573#ifdef __STDC__
     
    32154578             Syntax error
    32164579_ACEOF
    3217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3219   ac_status=$?
    3220   grep -v '^ *+' conftest.er1 >conftest.err
    3221   rm -f conftest.er1
    3222   cat conftest.err >&5
    3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3224   (exit $ac_status); } >/dev/null; then
    3225   if test -s conftest.err; then
    3226     ac_cpp_err=$ac_c_preproc_warn_flag
    3227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3228   else
    3229     ac_cpp_err=
    3230   fi
    3231 else
    3232   ac_cpp_err=yes
    3233 fi
    3234 if test -z "$ac_cpp_err"; then
    3235   :
    3236 else
    3237   echo "$as_me: failed program was:" >&5
    3238 sed 's/^/| /' conftest.$ac_ext >&5
    3239 
     4580if ac_fn_c_try_cpp "$LINENO"; then :
     4581
     4582else
    32404583  # Broken: fails on valid input.
    32414584continue
    32424585fi
    3243 rm -f conftest.err conftest.$ac_ext
    3244 
    3245   # OK, works on sane cases.  Now check whether non-existent headers
     4586rm -f conftest.err conftest.i conftest.$ac_ext
     4587
     4588  # OK, works on sane cases.  Now check whether nonexistent headers
    32464589  # can be detected and how.
    3247   cat >conftest.$ac_ext <<_ACEOF
    3248 /* confdefs.h.  */
    3249 _ACEOF
    3250 cat confdefs.h >>conftest.$ac_ext
    3251 cat >>conftest.$ac_ext <<_ACEOF
     4590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32524591/* end confdefs.h.  */
    32534592#include <ac_nonexistent.h>
    32544593_ACEOF
    3255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3257   ac_status=$?
    3258   grep -v '^ *+' conftest.er1 >conftest.err
    3259   rm -f conftest.er1
    3260   cat conftest.err >&5
    3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3262   (exit $ac_status); } >/dev/null; then
    3263   if test -s conftest.err; then
    3264     ac_cpp_err=$ac_c_preproc_warn_flag
    3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3266   else
    3267     ac_cpp_err=
    3268   fi
    3269 else
    3270   ac_cpp_err=yes
    3271 fi
    3272 if test -z "$ac_cpp_err"; then
     4594if ac_fn_c_try_cpp "$LINENO"; then :
    32734595  # Broken: success on invalid input.
    32744596continue
    32754597else
    3276   echo "$as_me: failed program was:" >&5
    3277 sed 's/^/| /' conftest.$ac_ext >&5
    3278 
    32794598  # Passes both tests.
    32804599ac_preproc_ok=:
    32814600break
    32824601fi
    3283 rm -f conftest.err conftest.$ac_ext
     4602rm -f conftest.err conftest.i conftest.$ac_ext
    32844603
    32854604done
    32864605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3287 rm -f conftest.err conftest.$ac_ext
    3288 if $ac_preproc_ok; then
    3289   :
    3290 else
    3291   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3292 See \`config.log' for more details." >&5
    3293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3294 See \`config.log' for more details." >&2;}
    3295    { (exit 1); exit 1; }; }
     4606rm -f conftest.i conftest.err conftest.$ac_ext
     4607if $ac_preproc_ok; then :
     4608
     4609else
     4610  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4612as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4613See \`config.log' for more details" "$LINENO" 5 ; }
    32964614fi
    32974615
     
    33034621
    33044622
    3305 echo "$as_me:$LINENO: checking for egrep" >&5
    3306 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3307 if test "${ac_cv_prog_egrep+set}" = set; then
    3308   echo $ECHO_N "(cached) $ECHO_C" >&6
    3309 else
    3310   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3311     then ac_cv_prog_egrep='grep -E'
    3312     else ac_cv_prog_egrep='egrep'
     4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4624$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4625if test "${ac_cv_path_GREP+set}" = set; then :
     4626  $as_echo_n "(cached) " >&6
     4627else
     4628  if test -z "$GREP"; then
     4629  ac_path_GREP_found=false
     4630  # Loop through the user's path and test for each of PROGNAME-LIST
     4631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4633do
     4634  IFS=$as_save_IFS
     4635  test -z "$as_dir" && as_dir=.
     4636    for ac_prog in grep ggrep; do
     4637    for ac_exec_ext in '' $ac_executable_extensions; do
     4638      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4639      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4640# Check for GNU ac_path_GREP and select it if it is found.
     4641  # Check for GNU $ac_path_GREP
     4642case `"$ac_path_GREP" --version 2>&1` in
     4643*GNU*)
     4644  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4645*)
     4646  ac_count=0
     4647  $as_echo_n 0123456789 >"conftest.in"
     4648  while :
     4649  do
     4650    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4651    mv "conftest.tmp" "conftest.in"
     4652    cp "conftest.in" "conftest.nl"
     4653    $as_echo 'GREP' >> "conftest.nl"
     4654    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4655    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4656    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4657    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4658      # Best one so far, save it but keep looking for a better one
     4659      ac_cv_path_GREP="$ac_path_GREP"
     4660      ac_path_GREP_max=$ac_count
    33134661    fi
    3314 fi
    3315 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3316 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3317  EGREP=$ac_cv_prog_egrep
    3318 
    3319 
    3320 
    3321 echo "$as_me:$LINENO: checking for AIX" >&5
    3322 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3323 cat >conftest.$ac_ext <<_ACEOF
    3324 /* confdefs.h.  */
    3325 _ACEOF
    3326 cat confdefs.h >>conftest.$ac_ext
    3327 cat >>conftest.$ac_ext <<_ACEOF
    3328 /* end confdefs.h.  */
    3329 #ifdef _AIX
    3330   yes
    3331 #endif
    3332 
    3333 _ACEOF
    3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3335   $EGREP "yes" >/dev/null 2>&1; then
    3336   echo "$as_me:$LINENO: result: yes" >&5
    3337 echo "${ECHO_T}yes" >&6
    3338 cat >>confdefs.h <<\_ACEOF
    3339 #define _ALL_SOURCE 1
    3340 _ACEOF
    3341 
    3342 else
    3343   echo "$as_me:$LINENO: result: no" >&5
    3344 echo "${ECHO_T}no" >&6
    3345 fi
    3346 rm -f conftest*
    3347 
    3348 
    3349 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3350 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3351 if test "${ac_cv_search_strerror+set}" = set; then
    3352   echo $ECHO_N "(cached) $ECHO_C" >&6
    3353 else
    3354   ac_func_search_save_LIBS=$LIBS
    3355 ac_cv_search_strerror=no
    3356 cat >conftest.$ac_ext <<_ACEOF
    3357 /* confdefs.h.  */
    3358 _ACEOF
    3359 cat confdefs.h >>conftest.$ac_ext
    3360 cat >>conftest.$ac_ext <<_ACEOF
    3361 /* end confdefs.h.  */
    3362 
    3363 /* Override any gcc2 internal prototype to avoid an error.  */
    3364 #ifdef __cplusplus
    3365 extern "C"
    3366 #endif
    3367 /* We use char because int might match the return type of a gcc2
    3368    builtin and then its argument prototype would still apply.  */
    3369 char strerror ();
    3370 int
    3371 main ()
    3372 {
    3373 strerror ();
    3374   ;
    3375   return 0;
    3376 }
    3377 _ACEOF
    3378 rm -f conftest.$ac_objext conftest$ac_exeext
    3379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3380   (eval $ac_link) 2>conftest.er1
    3381   ac_status=$?
    3382   grep -v '^ *+' conftest.er1 >conftest.err
    3383   rm -f conftest.er1
    3384   cat conftest.err >&5
    3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3386   (exit $ac_status); } &&
    3387      { ac_try='test -z "$ac_c_werror_flag"
    3388              || test ! -s conftest.err'
    3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3390   (eval $ac_try) 2>&5
    3391   ac_status=$?
    3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3393   (exit $ac_status); }; } &&
    3394      { ac_try='test -s conftest$ac_exeext'
    3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3396   (eval $ac_try) 2>&5
    3397   ac_status=$?
    3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3399   (exit $ac_status); }; }; then
    3400   ac_cv_search_strerror="none required"
    3401 else
    3402   echo "$as_me: failed program was:" >&5
    3403 sed 's/^/| /' conftest.$ac_ext >&5
    3404 
    3405 fi
    3406 rm -f conftest.err conftest.$ac_objext \
    3407       conftest$ac_exeext conftest.$ac_ext
    3408 if test "$ac_cv_search_strerror" = no; then
    3409   for ac_lib in cposix; do
    3410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3411     cat >conftest.$ac_ext <<_ACEOF
    3412 /* confdefs.h.  */
    3413 _ACEOF
    3414 cat confdefs.h >>conftest.$ac_ext
    3415 cat >>conftest.$ac_ext <<_ACEOF
    3416 /* end confdefs.h.  */
    3417 
    3418 /* Override any gcc2 internal prototype to avoid an error.  */
    3419 #ifdef __cplusplus
    3420 extern "C"
    3421 #endif
    3422 /* We use char because int might match the return type of a gcc2
    3423    builtin and then its argument prototype would still apply.  */
    3424 char strerror ();
    3425 int
    3426 main ()
    3427 {
    3428 strerror ();
    3429   ;
    3430   return 0;
    3431 }
    3432 _ACEOF
    3433 rm -f conftest.$ac_objext conftest$ac_exeext
    3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3435   (eval $ac_link) 2>conftest.er1
    3436   ac_status=$?
    3437   grep -v '^ *+' conftest.er1 >conftest.err
    3438   rm -f conftest.er1
    3439   cat conftest.err >&5
    3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3441   (exit $ac_status); } &&
    3442      { ac_try='test -z "$ac_c_werror_flag"
    3443              || test ! -s conftest.err'
    3444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3445   (eval $ac_try) 2>&5
    3446   ac_status=$?
    3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3448   (exit $ac_status); }; } &&
    3449      { ac_try='test -s conftest$ac_exeext'
    3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3451   (eval $ac_try) 2>&5
    3452   ac_status=$?
    3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3454   (exit $ac_status); }; }; then
    3455   ac_cv_search_strerror="-l$ac_lib"
    3456 break
    3457 else
    3458   echo "$as_me: failed program was:" >&5
    3459 sed 's/^/| /' conftest.$ac_ext >&5
    3460 
    3461 fi
    3462 rm -f conftest.err conftest.$ac_objext \
    3463       conftest$ac_exeext conftest.$ac_ext
     4662    # 10*(2^10) chars as input seems more than enough
     4663    test $ac_count -gt 10 && break
    34644664  done
    3465 fi
    3466 LIBS=$ac_func_search_save_LIBS
    3467 fi
    3468 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3469 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3470 if test "$ac_cv_search_strerror" != no; then
    3471   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3472 
    3473 fi
    3474 
    3475 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3476 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3477 if test "${ac_cv_header_stdc+set}" = set; then
    3478   echo $ECHO_N "(cached) $ECHO_C" >&6
    3479 else
    3480   cat >conftest.$ac_ext <<_ACEOF
    3481 /* confdefs.h.  */
    3482 _ACEOF
    3483 cat confdefs.h >>conftest.$ac_ext
    3484 cat >>conftest.$ac_ext <<_ACEOF
     4665  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4666esac
     4667
     4668      $ac_path_GREP_found && break 3
     4669    done
     4670  done
     4671  done
     4672IFS=$as_save_IFS
     4673  if test -z "$ac_cv_path_GREP"; then
     4674    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4675  fi
     4676else
     4677  ac_cv_path_GREP=$GREP
     4678fi
     4679
     4680fi
     4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4682$as_echo "$ac_cv_path_GREP" >&6; }
     4683 GREP="$ac_cv_path_GREP"
     4684
     4685
     4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4687$as_echo_n "checking for egrep... " >&6; }
     4688if test "${ac_cv_path_EGREP+set}" = set; then :
     4689  $as_echo_n "(cached) " >&6
     4690else
     4691  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4692   then ac_cv_path_EGREP="$GREP -E"
     4693   else
     4694     if test -z "$EGREP"; then
     4695  ac_path_EGREP_found=false
     4696  # Loop through the user's path and test for each of PROGNAME-LIST
     4697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4699do
     4700  IFS=$as_save_IFS
     4701  test -z "$as_dir" && as_dir=.
     4702    for ac_prog in egrep; do
     4703    for ac_exec_ext in '' $ac_executable_extensions; do
     4704      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4705      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4706# Check for GNU ac_path_EGREP and select it if it is found.
     4707  # Check for GNU $ac_path_EGREP
     4708case `"$ac_path_EGREP" --version 2>&1` in
     4709*GNU*)
     4710  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4711*)
     4712  ac_count=0
     4713  $as_echo_n 0123456789 >"conftest.in"
     4714  while :
     4715  do
     4716    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4717    mv "conftest.tmp" "conftest.in"
     4718    cp "conftest.in" "conftest.nl"
     4719    $as_echo 'EGREP' >> "conftest.nl"
     4720    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4721    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4722    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4723    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4724      # Best one so far, save it but keep looking for a better one
     4725      ac_cv_path_EGREP="$ac_path_EGREP"
     4726      ac_path_EGREP_max=$ac_count
     4727    fi
     4728    # 10*(2^10) chars as input seems more than enough
     4729    test $ac_count -gt 10 && break
     4730  done
     4731  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4732esac
     4733
     4734      $ac_path_EGREP_found && break 3
     4735    done
     4736  done
     4737  done
     4738IFS=$as_save_IFS
     4739  if test -z "$ac_cv_path_EGREP"; then
     4740    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4741  fi
     4742else
     4743  ac_cv_path_EGREP=$EGREP
     4744fi
     4745
     4746   fi
     4747fi
     4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4749$as_echo "$ac_cv_path_EGREP" >&6; }
     4750 EGREP="$ac_cv_path_EGREP"
     4751
     4752
     4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4754$as_echo_n "checking for ANSI C header files... " >&6; }
     4755if test "${ac_cv_header_stdc+set}" = set; then :
     4756  $as_echo_n "(cached) " >&6
     4757else
     4758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34854759/* end confdefs.h.  */
    34864760#include <stdlib.h>
     
    34974771}
    34984772_ACEOF
    3499 rm -f conftest.$ac_objext
    3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3501   (eval $ac_compile) 2>conftest.er1
    3502   ac_status=$?
    3503   grep -v '^ *+' conftest.er1 >conftest.err
    3504   rm -f conftest.er1
    3505   cat conftest.err >&5
    3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3507   (exit $ac_status); } &&
    3508      { ac_try='test -z "$ac_c_werror_flag"
    3509              || test ! -s conftest.err'
    3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3511   (eval $ac_try) 2>&5
    3512   ac_status=$?
    3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3514   (exit $ac_status); }; } &&
    3515      { ac_try='test -s conftest.$ac_objext'
    3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3517   (eval $ac_try) 2>&5
    3518   ac_status=$?
    3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3520   (exit $ac_status); }; }; then
     4773if ac_fn_c_try_compile "$LINENO"; then :
    35214774  ac_cv_header_stdc=yes
    35224775else
    3523   echo "$as_me: failed program was:" >&5
    3524 sed 's/^/| /' conftest.$ac_ext >&5
    3525 
    3526 ac_cv_header_stdc=no
    3527 fi
    3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4776  ac_cv_header_stdc=no
     4777fi
     4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    35294779
    35304780if test $ac_cv_header_stdc = yes; then
    35314781  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3532   cat >conftest.$ac_ext <<_ACEOF
    3533 /* confdefs.h.  */
    3534 _ACEOF
    3535 cat confdefs.h >>conftest.$ac_ext
    3536 cat >>conftest.$ac_ext <<_ACEOF
     4782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35374783/* end confdefs.h.  */
    35384784#include <string.h>
     
    35404786_ACEOF
    35414787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3542   $EGREP "memchr" >/dev/null 2>&1; then
    3543   :
     4788  $EGREP "memchr" >/dev/null 2>&1; then :
     4789
    35444790else
    35454791  ac_cv_header_stdc=no
     
    35514797if test $ac_cv_header_stdc = yes; then
    35524798  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3553   cat >conftest.$ac_ext <<_ACEOF
    3554 /* confdefs.h.  */
    3555 _ACEOF
    3556 cat confdefs.h >>conftest.$ac_ext
    3557 cat >>conftest.$ac_ext <<_ACEOF
     4799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35584800/* end confdefs.h.  */
    35594801#include <stdlib.h>
     
    35614803_ACEOF
    35624804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3563   $EGREP "free" >/dev/null 2>&1; then
    3564   :
     4805  $EGREP "free" >/dev/null 2>&1; then :
     4806
    35654807else
    35664808  ac_cv_header_stdc=no
     
    35724814if test $ac_cv_header_stdc = yes; then
    35734815  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3574   if test "$cross_compiling" = yes; then
     4816  if test "$cross_compiling" = yes; then :
    35754817  :
    35764818else
    3577   cat >conftest.$ac_ext <<_ACEOF
    3578 /* confdefs.h.  */
    3579 _ACEOF
    3580 cat confdefs.h >>conftest.$ac_ext
    3581 cat >>conftest.$ac_ext <<_ACEOF
     4819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35824820/* end confdefs.h.  */
    35834821#include <ctype.h>
     4822#include <stdlib.h>
    35844823#if ((' ' & 0x0FF) == 0x020)
    35854824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    36014840    if (XOR (islower (i), ISLOWER (i))
    36024841    || toupper (i) != TOUPPER (i))
    3603       exit(2);
    3604   exit (0);
     4842      return 2;
     4843  return 0;
    36054844}
    36064845_ACEOF
    3607 rm -f conftest$ac_exeext
    3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3609   (eval $ac_link) 2>&5
    3610   ac_status=$?
    3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3614   (eval $ac_try) 2>&5
    3615   ac_status=$?
    3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3617   (exit $ac_status); }; }; then
    3618   :
    3619 else
    3620   echo "$as_me: program exited with status $ac_status" >&5
    3621 echo "$as_me: failed program was:" >&5
    3622 sed 's/^/| /' conftest.$ac_ext >&5
    3623 
    3624 ( exit $ac_status )
    3625 ac_cv_header_stdc=no
    3626 fi
    3627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3628 fi
    3629 fi
    3630 fi
    3631 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3632 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4846if ac_fn_c_try_run "$LINENO"; then :
     4847
     4848else
     4849  ac_cv_header_stdc=no
     4850fi
     4851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4852  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4853fi
     4854
     4855fi
     4856fi
     4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4858$as_echo "$ac_cv_header_stdc" >&6; }
    36334859if test $ac_cv_header_stdc = yes; then
    36344860
    3635 cat >>confdefs.h <<\_ACEOF
    3636 #define STDC_HEADERS 1
    3637 _ACEOF
     4861$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    36384862
    36394863fi
    36404864
    36414865# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3642 
    3643 
    3644 
    3645 
    3646 
    3647 
    3648 
    3649 
    3650 
    36514866for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    36524867          inttypes.h stdint.h unistd.h
    3653 do
    3654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3655 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3658   echo $ECHO_N "(cached) $ECHO_C" >&6
    3659 else
    3660   cat >conftest.$ac_ext <<_ACEOF
    3661 /* confdefs.h.  */
    3662 _ACEOF
    3663 cat confdefs.h >>conftest.$ac_ext
    3664 cat >>conftest.$ac_ext <<_ACEOF
     4868do :
     4869  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4870ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4871"
     4872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4873  cat >>confdefs.h <<_ACEOF
     4874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4875_ACEOF
     4876
     4877fi
     4878
     4879done
     4880
     4881
     4882
     4883  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     4884if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     4885  MINIX=yes
     4886else
     4887  MINIX=
     4888fi
     4889
     4890
     4891  if test "$MINIX" = yes; then
     4892
     4893$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     4894
     4895
     4896$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     4897
     4898
     4899$as_echo "#define _MINIX 1" >>confdefs.h
     4900
     4901  fi
     4902
     4903
     4904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     4905$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     4906if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     4907  $as_echo_n "(cached) " >&6
     4908else
     4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    36654910/* end confdefs.h.  */
    3666 $ac_includes_default
    3667 
    3668 #include <$ac_header>
    3669 _ACEOF
    3670 rm -f conftest.$ac_objext
    3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3672   (eval $ac_compile) 2>conftest.er1
    3673   ac_status=$?
    3674   grep -v '^ *+' conftest.er1 >conftest.err
    3675   rm -f conftest.er1
    3676   cat conftest.err >&5
    3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3678   (exit $ac_status); } &&
    3679      { ac_try='test -z "$ac_c_werror_flag"
    3680              || test ! -s conftest.err'
    3681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3682   (eval $ac_try) 2>&5
    3683   ac_status=$?
    3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3685   (exit $ac_status); }; } &&
    3686      { ac_try='test -s conftest.$ac_objext'
    3687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3688   (eval $ac_try) 2>&5
    3689   ac_status=$?
    3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3691   (exit $ac_status); }; }; then
    3692   eval "$as_ac_Header=yes"
    3693 else
    3694   echo "$as_me: failed program was:" >&5
    3695 sed 's/^/| /' conftest.$ac_ext >&5
    3696 
    3697 eval "$as_ac_Header=no"
    3698 fi
    3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3700 fi
    3701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3704   cat >>confdefs.h <<_ACEOF
    3705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3706 _ACEOF
    3707 
    3708 fi
    3709 
     4911
     4912#     define __EXTENSIONS__ 1
     4913      $ac_includes_default
     4914int
     4915main ()
     4916{
     4917
     4918  ;
     4919  return 0;
     4920}
     4921_ACEOF
     4922if ac_fn_c_try_compile "$LINENO"; then :
     4923  ac_cv_safe_to_define___extensions__=yes
     4924else
     4925  ac_cv_safe_to_define___extensions__=no
     4926fi
     4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4928fi
     4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     4930$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     4931  test $ac_cv_safe_to_define___extensions__ = yes &&
     4932    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     4933
     4934  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     4935
     4936  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     4937
     4938  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     4939
     4940  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     4941
     4942
     4943
     4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     4945$as_echo_n "checking for library containing strerror... " >&6; }
     4946if test "${ac_cv_search_strerror+set}" = set; then :
     4947  $as_echo_n "(cached) " >&6
     4948else
     4949  ac_func_search_save_LIBS=$LIBS
     4950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4951/* end confdefs.h.  */
     4952
     4953/* Override any GCC internal prototype to avoid an error.
     4954   Use char because int might match the return type of a GCC
     4955   builtin and then its argument prototype would still apply.  */
     4956#ifdef __cplusplus
     4957extern "C"
     4958#endif
     4959char strerror ();
     4960int
     4961main ()
     4962{
     4963return strerror ();
     4964  ;
     4965  return 0;
     4966}
     4967_ACEOF
     4968for ac_lib in '' cposix; do
     4969  if test -z "$ac_lib"; then
     4970    ac_res="none required"
     4971  else
     4972    ac_res=-l$ac_lib
     4973    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     4974  fi
     4975  if ac_fn_c_try_link "$LINENO"; then :
     4976  ac_cv_search_strerror=$ac_res
     4977fi
     4978rm -f core conftest.err conftest.$ac_objext \
     4979    conftest$ac_exeext
     4980  if test "${ac_cv_search_strerror+set}" = set; then :
     4981  break
     4982fi
    37104983done
    3711 
    3712 
    3713 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3714   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3715 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3716 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3717   echo $ECHO_N "(cached) $ECHO_C" >&6
    3718 fi
    3719 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3720 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3721 else
    3722   # Is the header compilable?
    3723 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3724 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3725 cat >conftest.$ac_ext <<_ACEOF
    3726 /* confdefs.h.  */
    3727 _ACEOF
    3728 cat confdefs.h >>conftest.$ac_ext
    3729 cat >>conftest.$ac_ext <<_ACEOF
    3730 /* end confdefs.h.  */
    3731 $ac_includes_default
    3732 #include <minix/config.h>
    3733 _ACEOF
    3734 rm -f conftest.$ac_objext
    3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3736   (eval $ac_compile) 2>conftest.er1
    3737   ac_status=$?
    3738   grep -v '^ *+' conftest.er1 >conftest.err
    3739   rm -f conftest.er1
    3740   cat conftest.err >&5
    3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3742   (exit $ac_status); } &&
    3743      { ac_try='test -z "$ac_c_werror_flag"
    3744              || test ! -s conftest.err'
    3745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3746   (eval $ac_try) 2>&5
    3747   ac_status=$?
    3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3749   (exit $ac_status); }; } &&
    3750      { ac_try='test -s conftest.$ac_objext'
    3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3752   (eval $ac_try) 2>&5
    3753   ac_status=$?
    3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3755   (exit $ac_status); }; }; then
    3756   ac_header_compiler=yes
    3757 else
    3758   echo "$as_me: failed program was:" >&5
    3759 sed 's/^/| /' conftest.$ac_ext >&5
    3760 
    3761 ac_header_compiler=no
    3762 fi
    3763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3765 echo "${ECHO_T}$ac_header_compiler" >&6
    3766 
    3767 # Is the header present?
    3768 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    3769 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    3770 cat >conftest.$ac_ext <<_ACEOF
    3771 /* confdefs.h.  */
    3772 _ACEOF
    3773 cat confdefs.h >>conftest.$ac_ext
    3774 cat >>conftest.$ac_ext <<_ACEOF
    3775 /* end confdefs.h.  */
    3776 #include <minix/config.h>
    3777 _ACEOF
    3778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3780   ac_status=$?
    3781   grep -v '^ *+' conftest.er1 >conftest.err
    3782   rm -f conftest.er1
    3783   cat conftest.err >&5
    3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3785   (exit $ac_status); } >/dev/null; then
    3786   if test -s conftest.err; then
    3787     ac_cpp_err=$ac_c_preproc_warn_flag
    3788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3789   else
    3790     ac_cpp_err=
    3791   fi
    3792 else
    3793   ac_cpp_err=yes
    3794 fi
    3795 if test -z "$ac_cpp_err"; then
    3796   ac_header_preproc=yes
    3797 else
    3798   echo "$as_me: failed program was:" >&5
    3799 sed 's/^/| /' conftest.$ac_ext >&5
    3800 
    3801   ac_header_preproc=no
    3802 fi
    3803 rm -f conftest.err conftest.$ac_ext
    3804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3805 echo "${ECHO_T}$ac_header_preproc" >&6
    3806 
    3807 # So?  What about this header?
    3808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3809   yes:no: )
    3810     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    3811 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3812     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    3813 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    3814     ac_header_preproc=yes
    3815     ;;
    3816   no:yes:* )
    3817     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    3818 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    3819     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    3820 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    3821     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    3822 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    3823     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    3824 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    3825     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    3826 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    3827     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    3828 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    3829     (
    3830       cat <<\_ASBOX
    3831 ## ------------------------------------------ ##
    3832 ## Report this to the AC_PACKAGE_NAME lists.  ##
    3833 ## ------------------------------------------ ##
    3834 _ASBOX
    3835     ) |
    3836       sed "s/^/$as_me: WARNING:     /" >&2
    3837     ;;
    3838 esac
    3839 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3840 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3841 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3842   echo $ECHO_N "(cached) $ECHO_C" >&6
    3843 else
    3844   ac_cv_header_minix_config_h=$ac_header_preproc
    3845 fi
    3846 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3847 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3848 
    3849 fi
    3850 if test $ac_cv_header_minix_config_h = yes; then
    3851   MINIX=yes
    3852 else
    3853   MINIX=
    3854 fi
    3855 
    3856 
    3857 if test "$MINIX" = yes; then
    3858 
    3859 cat >>confdefs.h <<\_ACEOF
    3860 #define _POSIX_SOURCE 1
    3861 _ACEOF
    3862 
    3863 
    3864 cat >>confdefs.h <<\_ACEOF
    3865 #define _POSIX_1_SOURCE 2
    3866 _ACEOF
    3867 
    3868 
    3869 cat >>confdefs.h <<\_ACEOF
    3870 #define _MINIX 1
    3871 _ACEOF
    3872 
    3873 fi
    3874 
    3875 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    3876 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    3877 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    3878   echo $ECHO_N "(cached) $ECHO_C" >&6
     4984if test "${ac_cv_search_strerror+set}" = set; then :
     4985
     4986else
     4987  ac_cv_search_strerror=no
     4988fi
     4989rm conftest.$ac_ext
     4990LIBS=$ac_func_search_save_LIBS
     4991fi
     4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     4993$as_echo "$ac_cv_search_strerror" >&6; }
     4994ac_res=$ac_cv_search_strerror
     4995if test "$ac_res" != no; then :
     4996  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     4997
     4998fi
     4999
     5000
     5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     5002$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     5003if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     5004  $as_echo_n "(cached) " >&6
    38795005else
    38805006  ac_cv_prog_cc_stdc=no
     
    38895015do
    38905016  CFLAGS="$ac_save_CFLAGS $ac_arg"
    3891   cat >conftest.$ac_ext <<_ACEOF
    3892 /* confdefs.h.  */
    3893 _ACEOF
    3894 cat confdefs.h >>conftest.$ac_ext
    3895 cat >>conftest.$ac_ext <<_ACEOF
     5017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38965018/* end confdefs.h.  */
    38975019#if !defined(__STDC__) || __STDC__ != 1
     
    39095031}
    39105032_ACEOF
    3911 rm -f conftest.$ac_objext
    3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3913   (eval $ac_compile) 2>conftest.er1
    3914   ac_status=$?
    3915   grep -v '^ *+' conftest.er1 >conftest.err
    3916   rm -f conftest.er1
    3917   cat conftest.err >&5
    3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3919   (exit $ac_status); } &&
    3920      { ac_try='test -z "$ac_c_werror_flag"
    3921              || test ! -s conftest.err'
    3922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3923   (eval $ac_try) 2>&5
    3924   ac_status=$?
    3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3926   (exit $ac_status); }; } &&
    3927      { ac_try='test -s conftest.$ac_objext'
    3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3929   (eval $ac_try) 2>&5
    3930   ac_status=$?
    3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3932   (exit $ac_status); }; }; then
     5033if ac_fn_c_try_compile "$LINENO"; then :
    39335034  ac_cv_prog_cc_stdc="$ac_arg"; break
    3934 else
    3935   echo "$as_me: failed program was:" >&5
    3936 sed 's/^/| /' conftest.$ac_ext >&5
    3937 
    3938 fi
    3939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5035fi
     5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    39405037done
    39415038CFLAGS="$ac_save_CFLAGS"
     
    39435040fi
    39445041
    3945 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    3946 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     5043$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    39475044case "x$ac_cv_prog_cc_stdc" in
    39485045  x|xno) ;;
     
    39515048
    39525049
    3953 echo "$as_me:$LINENO: checking for function prototypes" >&5
    3954 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     5051$as_echo_n "checking for function prototypes... " >&6; }
    39555052if test "$ac_cv_prog_cc_stdc" != no; then
    3956   echo "$as_me:$LINENO: result: yes" >&5
    3957 echo "${ECHO_T}yes" >&6
    3958   cat >>confdefs.h <<\_ACEOF
    3959 #define PROTOTYPES 1
    3960 _ACEOF
     5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5054$as_echo "yes" >&6; }
     5055  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    39615056
    39625057  U= ANSI2KNR=
    39635058else
    3964   echo "$as_me:$LINENO: result: no" >&5
    3965 echo "${ECHO_T}no" >&6
     5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5060$as_echo "no" >&6; }
    39665061  U=_ ANSI2KNR=ansi2knr
    39675062fi
    39685063
    3969 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    3970 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    3971 if test "${ac_cv_c_const+set}" = set; then
    3972   echo $ECHO_N "(cached) $ECHO_C" >&6
    3973 else
    3974   cat >conftest.$ac_ext <<_ACEOF
    3975 /* confdefs.h.  */
    3976 _ACEOF
    3977 cat confdefs.h >>conftest.$ac_ext
    3978 cat >>conftest.$ac_ext <<_ACEOF
     5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     5065$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     5066if test "${ac_cv_c_const+set}" = set; then :
     5067  $as_echo_n "(cached) " >&6
     5068else
     5069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39795070/* end confdefs.h.  */
    39805071
     
    39865077  /* Ultrix mips cc rejects this.  */
    39875078  typedef int charset[2];
    3988   const charset x;
     5079  const charset cs;
    39895080  /* SunOS 4.1.1 cc rejects this.  */
    3990   char const *const *ccp;
    3991   char **p;
     5081  char const *const *pcpcc;
     5082  char **ppc;
    39925083  /* NEC SVR4.0.2 mips cc rejects this.  */
    39935084  struct point {int x, y;};
     
    39985089     expression */
    39995090  const char *g = "string";
    4000   ccp = &g + (g ? g-g : 0);
     5091  pcpcc = &g + (g ? g-g : 0);
    40015092  /* HPUX 7.0 cc rejects these. */
    4002   ++ccp;
    4003   p = (char**) ccp;
    4004   ccp = (char const *const *) p;
     5093  ++pcpcc;
     5094  ppc = (char**) pcpcc;
     5095  pcpcc = (char const *const *) ppc;
    40055096  { /* SCO 3.2v4 cc rejects this.  */
    40065097    char *t;
     
    40085099
    40095100    *t++ = 0;
     5101    if (s) return 0;
    40105102  }
    40115103  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    40265118  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    40275119    const int foo = 10;
     5120    if (!foo) return 0;
    40285121  }
     5122  return !cs[0] && !zero.x;
    40295123#endif
    40305124
     
    40335127}
    40345128_ACEOF
    4035 rm -f conftest.$ac_objext
    4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4037   (eval $ac_compile) 2>conftest.er1
    4038   ac_status=$?
    4039   grep -v '^ *+' conftest.er1 >conftest.err
    4040   rm -f conftest.er1
    4041   cat conftest.err >&5
    4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4043   (exit $ac_status); } &&
    4044      { ac_try='test -z "$ac_c_werror_flag"
    4045              || test ! -s conftest.err'
    4046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4047   (eval $ac_try) 2>&5
    4048   ac_status=$?
    4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4050   (exit $ac_status); }; } &&
    4051      { ac_try='test -s conftest.$ac_objext'
    4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4053   (eval $ac_try) 2>&5
    4054   ac_status=$?
    4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4056   (exit $ac_status); }; }; then
     5129if ac_fn_c_try_compile "$LINENO"; then :
    40575130  ac_cv_c_const=yes
    40585131else
    4059   echo "$as_me: failed program was:" >&5
    4060 sed 's/^/| /' conftest.$ac_ext >&5
    4061 
    4062 ac_cv_c_const=no
    4063 fi
    4064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4065 fi
    4066 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4067 echo "${ECHO_T}$ac_cv_c_const" >&6
     5132  ac_cv_c_const=no
     5133fi
     5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5135fi
     5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     5137$as_echo "$ac_cv_c_const" >&6; }
    40685138if test $ac_cv_c_const = no; then
    40695139
    4070 cat >>confdefs.h <<\_ACEOF
    4071 #define const
    4072 _ACEOF
    4073 
    4074 fi
    4075 
    4076 echo "$as_me:$LINENO: checking for off_t" >&5
    4077 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4078 if test "${ac_cv_type_off_t+set}" = set; then
    4079   echo $ECHO_N "(cached) $ECHO_C" >&6
    4080 else
    4081   cat >conftest.$ac_ext <<_ACEOF
    4082 /* confdefs.h.  */
    4083 _ACEOF
    4084 cat confdefs.h >>conftest.$ac_ext
    4085 cat >>conftest.$ac_ext <<_ACEOF
    4086 /* end confdefs.h.  */
    4087 $ac_includes_default
    4088 int
    4089 main ()
    4090 {
    4091 if ((off_t *) 0)
    4092   return 0;
    4093 if (sizeof (off_t))
    4094   return 0;
    4095   ;
    4096   return 0;
    4097 }
    4098 _ACEOF
    4099 rm -f conftest.$ac_objext
    4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4101   (eval $ac_compile) 2>conftest.er1
    4102   ac_status=$?
    4103   grep -v '^ *+' conftest.er1 >conftest.err
    4104   rm -f conftest.er1
    4105   cat conftest.err >&5
    4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4107   (exit $ac_status); } &&
    4108      { ac_try='test -z "$ac_c_werror_flag"
    4109              || test ! -s conftest.err'
    4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4111   (eval $ac_try) 2>&5
    4112   ac_status=$?
    4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4114   (exit $ac_status); }; } &&
    4115      { ac_try='test -s conftest.$ac_objext'
    4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4117   (eval $ac_try) 2>&5
    4118   ac_status=$?
    4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4120   (exit $ac_status); }; }; then
    4121   ac_cv_type_off_t=yes
    4122 else
    4123   echo "$as_me: failed program was:" >&5
    4124 sed 's/^/| /' conftest.$ac_ext >&5
    4125 
    4126 ac_cv_type_off_t=no
    4127 fi
    4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4129 fi
    4130 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4131 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4132 if test $ac_cv_type_off_t = yes; then
    4133   :
     5140$as_echo "#define const /**/" >>confdefs.h
     5141
     5142fi
     5143
     5144ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     5145if test "x$ac_cv_type_off_t" = x""yes; then :
     5146
    41345147else
    41355148
    41365149cat >>confdefs.h <<_ACEOF
    4137 #define off_t long
    4138 _ACEOF
    4139 
    4140 fi
    4141 
    4142 echo "$as_me:$LINENO: checking for size_t" >&5
    4143 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4144 if test "${ac_cv_type_size_t+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
    4152 /* end confdefs.h.  */
    4153 $ac_includes_default
    4154 int
    4155 main ()
    4156 {
    4157 if ((size_t *) 0)
    4158   return 0;
    4159 if (sizeof (size_t))
    4160   return 0;
    4161   ;
    4162   return 0;
    4163 }
    4164 _ACEOF
    4165 rm -f conftest.$ac_objext
    4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4167   (eval $ac_compile) 2>conftest.er1
    4168   ac_status=$?
    4169   grep -v '^ *+' conftest.er1 >conftest.err
    4170   rm -f conftest.er1
    4171   cat conftest.err >&5
    4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4173   (exit $ac_status); } &&
    4174      { ac_try='test -z "$ac_c_werror_flag"
    4175              || test ! -s conftest.err'
    4176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4177   (eval $ac_try) 2>&5
    4178   ac_status=$?
    4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4180   (exit $ac_status); }; } &&
    4181      { ac_try='test -s conftest.$ac_objext'
    4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4183   (eval $ac_try) 2>&5
    4184   ac_status=$?
    4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4186   (exit $ac_status); }; }; then
    4187   ac_cv_type_size_t=yes
    4188 else
    4189   echo "$as_me: failed program was:" >&5
    4190 sed 's/^/| /' conftest.$ac_ext >&5
    4191 
    4192 ac_cv_type_size_t=no
    4193 fi
    4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4195 fi
    4196 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4197 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4198 if test $ac_cv_type_size_t = yes; then
    4199   :
     5150#define off_t long int
     5151_ACEOF
     5152
     5153fi
     5154
     5155ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     5156if test "x$ac_cv_type_size_t" = x""yes; then :
     5157
    42005158else
    42015159
    42025160cat >>confdefs.h <<_ACEOF
    4203 #define size_t unsigned
    4204 _ACEOF
    4205 
    4206 fi
    4207 
    4208 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4209 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4210 if test "${ac_cv_header_time+set}" = set; then
    4211   echo $ECHO_N "(cached) $ECHO_C" >&6
    4212 else
    4213   cat >conftest.$ac_ext <<_ACEOF
    4214 /* confdefs.h.  */
    4215 _ACEOF
    4216 cat confdefs.h >>conftest.$ac_ext
    4217 cat >>conftest.$ac_ext <<_ACEOF
     5161#define size_t unsigned int
     5162_ACEOF
     5163
     5164fi
     5165
     5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     5167$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     5168if test "${ac_cv_header_time+set}" = set; then :
     5169  $as_echo_n "(cached) " >&6
     5170else
     5171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42185172/* end confdefs.h.  */
    42195173#include <sys/types.h>
     
    42305184}
    42315185_ACEOF
    4232 rm -f conftest.$ac_objext
    4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4234   (eval $ac_compile) 2>conftest.er1
    4235   ac_status=$?
    4236   grep -v '^ *+' conftest.er1 >conftest.err
    4237   rm -f conftest.er1
    4238   cat conftest.err >&5
    4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4240   (exit $ac_status); } &&
    4241      { ac_try='test -z "$ac_c_werror_flag"
    4242              || test ! -s conftest.err'
    4243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4244   (eval $ac_try) 2>&5
    4245   ac_status=$?
    4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4247   (exit $ac_status); }; } &&
    4248      { ac_try='test -s conftest.$ac_objext'
    4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4250   (eval $ac_try) 2>&5
    4251   ac_status=$?
    4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4253   (exit $ac_status); }; }; then
     5186if ac_fn_c_try_compile "$LINENO"; then :
    42545187  ac_cv_header_time=yes
    42555188else
    4256   echo "$as_me: failed program was:" >&5
    4257 sed 's/^/| /' conftest.$ac_ext >&5
    4258 
    4259 ac_cv_header_time=no
    4260 fi
    4261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4262 fi
    4263 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4264 echo "${ECHO_T}$ac_cv_header_time" >&6
     5189  ac_cv_header_time=no
     5190fi
     5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5192fi
     5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     5194$as_echo "$ac_cv_header_time" >&6; }
    42655195if test $ac_cv_header_time = yes; then
    42665196
    4267 cat >>confdefs.h <<\_ACEOF
    4268 #define TIME_WITH_SYS_TIME 1
    4269 _ACEOF
    4270 
    4271 fi
    4272 
    4273 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4275 if test "${ac_cv_struct_tm+set}" = set; then
    4276   echo $ECHO_N "(cached) $ECHO_C" >&6
    4277 else
    4278   cat >conftest.$ac_ext <<_ACEOF
    4279 /* confdefs.h.  */
    4280 _ACEOF
    4281 cat confdefs.h >>conftest.$ac_ext
    4282 cat >>conftest.$ac_ext <<_ACEOF
     5197$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     5198
     5199fi
     5200
     5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     5202$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     5203if test "${ac_cv_struct_tm+set}" = set; then :
     5204  $as_echo_n "(cached) " >&6
     5205else
     5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42835207/* end confdefs.h.  */
    42845208#include <sys/types.h>
     
    42885212main ()
    42895213{
    4290 struct tm *tp; tp->tm_sec;
     5214struct tm tm;
     5215                     int *p = &tm.tm_sec;
     5216                     return !p;
    42915217  ;
    42925218  return 0;
    42935219}
    42945220_ACEOF
    4295 rm -f conftest.$ac_objext
    4296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4297   (eval $ac_compile) 2>conftest.er1
    4298   ac_status=$?
    4299   grep -v '^ *+' conftest.er1 >conftest.err
    4300   rm -f conftest.er1
    4301   cat conftest.err >&5
    4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4303   (exit $ac_status); } &&
    4304      { ac_try='test -z "$ac_c_werror_flag"
    4305              || test ! -s conftest.err'
    4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4307   (eval $ac_try) 2>&5
    4308   ac_status=$?
    4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4310   (exit $ac_status); }; } &&
    4311      { ac_try='test -s conftest.$ac_objext'
    4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4313   (eval $ac_try) 2>&5
    4314   ac_status=$?
    4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4316   (exit $ac_status); }; }; then
     5221if ac_fn_c_try_compile "$LINENO"; then :
    43175222  ac_cv_struct_tm=time.h
    43185223else
    4319   echo "$as_me: failed program was:" >&5
    4320 sed 's/^/| /' conftest.$ac_ext >&5
    4321 
    4322 ac_cv_struct_tm=sys/time.h
    4323 fi
    4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4325 fi
    4326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5224  ac_cv_struct_tm=sys/time.h
     5225fi
     5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5227fi
     5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5229$as_echo "$ac_cv_struct_tm" >&6; }
    43285230if test $ac_cv_struct_tm = sys/time.h; then
    43295231
    4330 cat >>confdefs.h <<\_ACEOF
    4331 #define TM_IN_SYS_TIME 1
    4332 _ACEOF
    4333 
    4334 fi
    4335 
    4336 
    4337 
    4338 # Check whether --with-unac or --without-unac was given.
    4339 if test "${with_unac+set}" = set; then
    4340   withval="$with_unac"
    4341   UNAC_DIR=$withval
     5232$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
     5233
     5234fi
     5235
     5236
     5237
     5238# Check whether --with-unac was given.
     5239if test "${with_unac+set}" = set; then :
     5240  withval=$with_unac; UNAC_DIR=$withval
    43425241else
    43435242  UNAC_DIR="`pwd`/../packages/unac"
    4344 fi;
     5243fi
     5244
    43455245cat >>confdefs.h <<_ACEOF
    43465246#define UNAC_DIR "$UNAC_DIR"
     
    43555255
    43565256if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4357 cat >conftest.$ac_ext <<_ACEOF
    4358 /* confdefs.h.  */
    4359 _ACEOF
    4360 cat confdefs.h >>conftest.$ac_ext
    4361 cat >>conftest.$ac_ext <<_ACEOF
     5257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43625258/* end confdefs.h.  */
    43635259#include <stdio.h>
     
    43715267}
    43725268_ACEOF
    4373 rm -f conftest.$ac_objext
    4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4375   (eval $ac_compile) 2>conftest.er1
    4376   ac_status=$?
    4377   grep -v '^ *+' conftest.er1 >conftest.err
    4378   rm -f conftest.er1
    4379   cat conftest.err >&5
    4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4381   (exit $ac_status); } &&
    4382      { ac_try='test -z "$ac_c_werror_flag"
    4383              || test ! -s conftest.err'
    4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4385   (eval $ac_try) 2>&5
    4386   ac_status=$?
    4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4388   (exit $ac_status); }; } &&
    4389      { ac_try='test -s conftest.$ac_objext'
    4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4391   (eval $ac_try) 2>&5
    4392   ac_status=$?
    4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4394   (exit $ac_status); }; }; then
    4395   :
    4396 else
    4397   echo "$as_me: failed program was:" >&5
    4398 sed 's/^/| /' conftest.$ac_ext >&5
    4399 
    4400 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4401 fi
    4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4403 fi
    4404 
    4405 
    4406 
    4407 echo "$as_me:$LINENO: checking for main in -lg" >&5
    4408 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    4409 if test "${ac_cv_lib_g_main+set}" = set; then
    4410   echo $ECHO_N "(cached) $ECHO_C" >&6
     5269if ac_fn_c_try_compile "$LINENO"; then :
     5270
     5271else
     5272  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5273fi
     5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5275fi
     5276
     5277
     5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
     5279$as_echo_n "checking for main in -lg... " >&6; }
     5280if test "${ac_cv_lib_g_main+set}" = set; then :
     5281  $as_echo_n "(cached) " >&6
    44115282else
    44125283  ac_check_lib_save_LIBS=$LIBS
    44135284LIBS="-lg  $LIBS"
    4414 cat >conftest.$ac_ext <<_ACEOF
    4415 /* confdefs.h.  */
    4416 _ACEOF
    4417 cat confdefs.h >>conftest.$ac_ext
    4418 cat >>conftest.$ac_ext <<_ACEOF
     5285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44195286/* end confdefs.h.  */
    44205287
     
    44235290main ()
    44245291{
    4425 main ();
     5292return main ();
    44265293  ;
    44275294  return 0;
    44285295}
    44295296_ACEOF
    4430 rm -f conftest.$ac_objext conftest$ac_exeext
    4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4432   (eval $ac_link) 2>conftest.er1
    4433   ac_status=$?
    4434   grep -v '^ *+' conftest.er1 >conftest.err
    4435   rm -f conftest.er1
    4436   cat conftest.err >&5
    4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4438   (exit $ac_status); } &&
    4439      { ac_try='test -z "$ac_c_werror_flag"
    4440              || test ! -s conftest.err'
    4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4442   (eval $ac_try) 2>&5
    4443   ac_status=$?
    4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4445   (exit $ac_status); }; } &&
    4446      { ac_try='test -s conftest$ac_exeext'
    4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4448   (eval $ac_try) 2>&5
    4449   ac_status=$?
    4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4451   (exit $ac_status); }; }; then
     5297if ac_fn_c_try_link "$LINENO"; then :
    44525298  ac_cv_lib_g_main=yes
    44535299else
    4454   echo "$as_me: failed program was:" >&5
    4455 sed 's/^/| /' conftest.$ac_ext >&5
    4456 
    4457 ac_cv_lib_g_main=no
    4458 fi
    4459 rm -f conftest.err conftest.$ac_objext \
    4460       conftest$ac_exeext conftest.$ac_ext
     5300  ac_cv_lib_g_main=no
     5301fi
     5302rm -f core conftest.err conftest.$ac_objext \
     5303    conftest$ac_exeext conftest.$ac_ext
    44615304LIBS=$ac_check_lib_save_LIBS
    44625305fi
    4463 echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
    4464 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    4465 if test $ac_cv_lib_g_main = yes; then
     5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
     5307$as_echo "$ac_cv_lib_g_main" >&6; }
     5308if test "x$ac_cv_lib_g_main" = x""yes; then :
    44665309  cat >>confdefs.h <<_ACEOF
    44675310#define HAVE_LIBG 1
     
    44725315fi
    44735316
    4474 
    4475 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4476 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4477 if test "${ac_cv_lib_m_main+set}" = set; then
    4478   echo $ECHO_N "(cached) $ECHO_C" >&6
     5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5318$as_echo_n "checking for main in -lm... " >&6; }
     5319if test "${ac_cv_lib_m_main+set}" = set; then :
     5320  $as_echo_n "(cached) " >&6
    44795321else
    44805322  ac_check_lib_save_LIBS=$LIBS
    44815323LIBS="-lm  $LIBS"
    4482 cat >conftest.$ac_ext <<_ACEOF
    4483 /* confdefs.h.  */
    4484 _ACEOF
    4485 cat confdefs.h >>conftest.$ac_ext
    4486 cat >>conftest.$ac_ext <<_ACEOF
     5324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44875325/* end confdefs.h.  */
    44885326
     
    44915329main ()
    44925330{
    4493 main ();
     5331return main ();
    44945332  ;
    44955333  return 0;
    44965334}
    44975335_ACEOF
    4498 rm -f conftest.$ac_objext conftest$ac_exeext
    4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4500   (eval $ac_link) 2>conftest.er1
    4501   ac_status=$?
    4502   grep -v '^ *+' conftest.er1 >conftest.err
    4503   rm -f conftest.er1
    4504   cat conftest.err >&5
    4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4506   (exit $ac_status); } &&
    4507      { ac_try='test -z "$ac_c_werror_flag"
    4508              || test ! -s conftest.err'
    4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4510   (eval $ac_try) 2>&5
    4511   ac_status=$?
    4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4513   (exit $ac_status); }; } &&
    4514      { ac_try='test -s conftest$ac_exeext'
    4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4516   (eval $ac_try) 2>&5
    4517   ac_status=$?
    4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4519   (exit $ac_status); }; }; then
     5336if ac_fn_c_try_link "$LINENO"; then :
    45205337  ac_cv_lib_m_main=yes
    45215338else
    4522   echo "$as_me: failed program was:" >&5
    4523 sed 's/^/| /' conftest.$ac_ext >&5
    4524 
    4525 ac_cv_lib_m_main=no
    4526 fi
    4527 rm -f conftest.err conftest.$ac_objext \
    4528       conftest$ac_exeext conftest.$ac_ext
     5339  ac_cv_lib_m_main=no
     5340fi
     5341rm -f core conftest.err conftest.$ac_objext \
     5342    conftest$ac_exeext conftest.$ac_ext
    45295343LIBS=$ac_check_lib_save_LIBS
    45305344fi
    4531 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4532 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4533 if test $ac_cv_lib_m_main = yes; then
     5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5346$as_echo "$ac_cv_lib_m_main" >&6; }
     5347if test "x$ac_cv_lib_m_main" = x""yes; then :
    45345348  cat >>confdefs.h <<_ACEOF
    45355349#define HAVE_LIBM 1
     
    45405354fi
    45415355
    4542 
    4543 echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
    4544 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
    4545 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
    4546   echo $ECHO_N "(cached) $ECHO_C" >&6
     5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
     5357$as_echo_n "checking for main in -lstdc++... " >&6; }
     5358if test "${ac_cv_lib_stdcpp_main+set}" = set; then :
     5359  $as_echo_n "(cached) " >&6
    45475360else
    45485361  ac_check_lib_save_LIBS=$LIBS
    45495362LIBS="-lstdc++  $LIBS"
    4550 cat >conftest.$ac_ext <<_ACEOF
    4551 /* confdefs.h.  */
    4552 _ACEOF
    4553 cat confdefs.h >>conftest.$ac_ext
    4554 cat >>conftest.$ac_ext <<_ACEOF
     5363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45555364/* end confdefs.h.  */
    45565365
     
    45595368main ()
    45605369{
    4561 main ();
     5370return main ();
    45625371  ;
    45635372  return 0;
    45645373}
    45655374_ACEOF
    4566 rm -f conftest.$ac_objext conftest$ac_exeext
    4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4568   (eval $ac_link) 2>conftest.er1
    4569   ac_status=$?
    4570   grep -v '^ *+' conftest.er1 >conftest.err
    4571   rm -f conftest.er1
    4572   cat conftest.err >&5
    4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4574   (exit $ac_status); } &&
    4575      { ac_try='test -z "$ac_c_werror_flag"
    4576              || test ! -s conftest.err'
    4577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4578   (eval $ac_try) 2>&5
    4579   ac_status=$?
    4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4581   (exit $ac_status); }; } &&
    4582      { ac_try='test -s conftest$ac_exeext'
    4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4584   (eval $ac_try) 2>&5
    4585   ac_status=$?
    4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4587   (exit $ac_status); }; }; then
     5375if ac_fn_c_try_link "$LINENO"; then :
    45885376  ac_cv_lib_stdcpp_main=yes
    45895377else
    4590   echo "$as_me: failed program was:" >&5
    4591 sed 's/^/| /' conftest.$ac_ext >&5
    4592 
    4593 ac_cv_lib_stdcpp_main=no
    4594 fi
    4595 rm -f conftest.err conftest.$ac_objext \
    4596       conftest$ac_exeext conftest.$ac_ext
     5378  ac_cv_lib_stdcpp_main=no
     5379fi
     5380rm -f core conftest.err conftest.$ac_objext \
     5381    conftest$ac_exeext conftest.$ac_ext
    45975382LIBS=$ac_check_lib_save_LIBS
    45985383fi
    4599 echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
    4600 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
    4601 if test $ac_cv_lib_stdcpp_main = yes; then
     5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
     5385$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
     5386if test "x$ac_cv_lib_stdcpp_main" = x""yes; then :
    46025387  cat >>confdefs.h <<_ACEOF
    46035388#define HAVE_LIBSTDC__ 1
     
    46085393fi
    46095394
    4610 
    4611 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
    4612 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    4613 if test "${ac_cv_lib_crypt_main+set}" = set; then
    4614   echo $ECHO_N "(cached) $ECHO_C" >&6
     5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
     5396$as_echo_n "checking for main in -lcrypt... " >&6; }
     5397if test "${ac_cv_lib_crypt_main+set}" = set; then :
     5398  $as_echo_n "(cached) " >&6
    46155399else
    46165400  ac_check_lib_save_LIBS=$LIBS
    46175401LIBS="-lcrypt  $LIBS"
    4618 cat >conftest.$ac_ext <<_ACEOF
    4619 /* confdefs.h.  */
    4620 _ACEOF
    4621 cat confdefs.h >>conftest.$ac_ext
    4622 cat >>conftest.$ac_ext <<_ACEOF
     5402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46235403/* end confdefs.h.  */
    46245404
     
    46275407main ()
    46285408{
    4629 main ();
     5409return main ();
    46305410  ;
    46315411  return 0;
    46325412}
    46335413_ACEOF
    4634 rm -f conftest.$ac_objext conftest$ac_exeext
    4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4636   (eval $ac_link) 2>conftest.er1
    4637   ac_status=$?
    4638   grep -v '^ *+' conftest.er1 >conftest.err
    4639   rm -f conftest.er1
    4640   cat conftest.err >&5
    4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4642   (exit $ac_status); } &&
    4643      { ac_try='test -z "$ac_c_werror_flag"
    4644              || test ! -s conftest.err'
    4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4646   (eval $ac_try) 2>&5
    4647   ac_status=$?
    4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4649   (exit $ac_status); }; } &&
    4650      { ac_try='test -s conftest$ac_exeext'
    4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4652   (eval $ac_try) 2>&5
    4653   ac_status=$?
    4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4655   (exit $ac_status); }; }; then
     5414if ac_fn_c_try_link "$LINENO"; then :
    46565415  ac_cv_lib_crypt_main=yes
    46575416else
    4658   echo "$as_me: failed program was:" >&5
    4659 sed 's/^/| /' conftest.$ac_ext >&5
    4660 
    4661 ac_cv_lib_crypt_main=no
    4662 fi
    4663 rm -f conftest.err conftest.$ac_objext \
    4664       conftest$ac_exeext conftest.$ac_ext
     5417  ac_cv_lib_crypt_main=no
     5418fi
     5419rm -f core conftest.err conftest.$ac_objext \
     5420    conftest$ac_exeext conftest.$ac_ext
    46655421LIBS=$ac_check_lib_save_LIBS
    46665422fi
    4667 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
    4668 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    4669 if test $ac_cv_lib_crypt_main = yes; then
     5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
     5424$as_echo "$ac_cv_lib_crypt_main" >&6; }
     5425if test "x$ac_cv_lib_crypt_main" = x""yes; then :
    46705426  cat >>confdefs.h <<_ACEOF
    46715427#define HAVE_LIBCRYPT 1
     
    46815437
    46825438
    4683 
    4684 
    4685 
    4686 
    4687 
    46885439ac_header_dirent=no
    46895440for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4690   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4691 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4692 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4694   echo $ECHO_N "(cached) $ECHO_C" >&6
    4695 else
    4696   cat >conftest.$ac_ext <<_ACEOF
    4697 /* confdefs.h.  */
    4698 _ACEOF
    4699 cat confdefs.h >>conftest.$ac_ext
    4700 cat >>conftest.$ac_ext <<_ACEOF
     5441  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5443$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5444if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5445  $as_echo_n "(cached) " >&6
     5446else
     5447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47015448/* end confdefs.h.  */
    47025449#include <sys/types.h>
     
    47125459}
    47135460_ACEOF
    4714 rm -f conftest.$ac_objext
    4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4716   (eval $ac_compile) 2>conftest.er1
    4717   ac_status=$?
    4718   grep -v '^ *+' conftest.er1 >conftest.err
    4719   rm -f conftest.er1
    4720   cat conftest.err >&5
    4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4722   (exit $ac_status); } &&
    4723      { ac_try='test -z "$ac_c_werror_flag"
    4724              || test ! -s conftest.err'
    4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4726   (eval $ac_try) 2>&5
    4727   ac_status=$?
    4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4729   (exit $ac_status); }; } &&
    4730      { ac_try='test -s conftest.$ac_objext'
    4731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4732   (eval $ac_try) 2>&5
    4733   ac_status=$?
    4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4735   (exit $ac_status); }; }; then
     5461if ac_fn_c_try_compile "$LINENO"; then :
    47365462  eval "$as_ac_Header=yes"
    47375463else
    4738   echo "$as_me: failed program was:" >&5
    4739 sed 's/^/| /' conftest.$ac_ext >&5
    4740 
    4741 eval "$as_ac_Header=no"
    4742 fi
    4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4744 fi
    4745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5464  eval "$as_ac_Header=no"
     5465fi
     5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5467fi
     5468eval ac_res=\$$as_ac_Header
     5469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5470$as_echo "$ac_res" >&6; }
     5471if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    47485472  cat >>confdefs.h <<_ACEOF
    4749 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5473#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    47505474_ACEOF
    47515475
     
    47565480# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    47575481if test $ac_header_dirent = dirent.h; then
    4758   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4759 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4760 if test "${ac_cv_search_opendir+set}" = set; then
    4761   echo $ECHO_N "(cached) $ECHO_C" >&6
     5482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5483$as_echo_n "checking for library containing opendir... " >&6; }
     5484if test "${ac_cv_search_opendir+set}" = set; then :
     5485  $as_echo_n "(cached) " >&6
    47625486else
    47635487  ac_func_search_save_LIBS=$LIBS
    4764 ac_cv_search_opendir=no
    4765 cat >conftest.$ac_ext <<_ACEOF
    4766 /* confdefs.h.  */
    4767 _ACEOF
    4768 cat confdefs.h >>conftest.$ac_ext
    4769 cat >>conftest.$ac_ext <<_ACEOF
     5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47705489/* end confdefs.h.  */
    47715490
    4772 /* Override any gcc2 internal prototype to avoid an error.  */
     5491/* Override any GCC internal prototype to avoid an error.
     5492   Use char because int might match the return type of a GCC
     5493   builtin and then its argument prototype would still apply.  */
    47735494#ifdef __cplusplus
    47745495extern "C"
    47755496#endif
    4776 /* We use char because int might match the return type of a gcc2
    4777    builtin and then its argument prototype would still apply.  */
    47785497char opendir ();
    47795498int
    47805499main ()
    47815500{
    4782 opendir ();
     5501return opendir ();
    47835502  ;
    47845503  return 0;
    47855504}
    47865505_ACEOF
    4787 rm -f conftest.$ac_objext conftest$ac_exeext
    4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4789   (eval $ac_link) 2>conftest.er1
    4790   ac_status=$?
    4791   grep -v '^ *+' conftest.er1 >conftest.err
    4792   rm -f conftest.er1
    4793   cat conftest.err >&5
    4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4795   (exit $ac_status); } &&
    4796      { ac_try='test -z "$ac_c_werror_flag"
    4797              || test ! -s conftest.err'
    4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4799   (eval $ac_try) 2>&5
    4800   ac_status=$?
    4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4802   (exit $ac_status); }; } &&
    4803      { ac_try='test -s conftest$ac_exeext'
    4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4805   (eval $ac_try) 2>&5
    4806   ac_status=$?
    4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4808   (exit $ac_status); }; }; then
    4809   ac_cv_search_opendir="none required"
    4810 else
    4811   echo "$as_me: failed program was:" >&5
    4812 sed 's/^/| /' conftest.$ac_ext >&5
    4813 
    4814 fi
    4815 rm -f conftest.err conftest.$ac_objext \
    4816       conftest$ac_exeext conftest.$ac_ext
    4817 if test "$ac_cv_search_opendir" = no; then
    4818   for ac_lib in dir; do
     5506for ac_lib in '' dir; do
     5507  if test -z "$ac_lib"; then
     5508    ac_res="none required"
     5509  else
     5510    ac_res=-l$ac_lib
    48195511    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4820     cat >conftest.$ac_ext <<_ACEOF
    4821 /* confdefs.h.  */
    4822 _ACEOF
    4823 cat confdefs.h >>conftest.$ac_ext
    4824 cat >>conftest.$ac_ext <<_ACEOF
     5512  fi
     5513  if ac_fn_c_try_link "$LINENO"; then :
     5514  ac_cv_search_opendir=$ac_res
     5515fi
     5516rm -f core conftest.err conftest.$ac_objext \
     5517    conftest$ac_exeext
     5518  if test "${ac_cv_search_opendir+set}" = set; then :
     5519  break
     5520fi
     5521done
     5522if test "${ac_cv_search_opendir+set}" = set; then :
     5523
     5524else
     5525  ac_cv_search_opendir=no
     5526fi
     5527rm conftest.$ac_ext
     5528LIBS=$ac_func_search_save_LIBS
     5529fi
     5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5531$as_echo "$ac_cv_search_opendir" >&6; }
     5532ac_res=$ac_cv_search_opendir
     5533if test "$ac_res" != no; then :
     5534  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5535
     5536fi
     5537
     5538else
     5539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5540$as_echo_n "checking for library containing opendir... " >&6; }
     5541if test "${ac_cv_search_opendir+set}" = set; then :
     5542  $as_echo_n "(cached) " >&6
     5543else
     5544  ac_func_search_save_LIBS=$LIBS
     5545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48255546/* end confdefs.h.  */
    48265547
    4827 /* Override any gcc2 internal prototype to avoid an error.  */
     5548/* Override any GCC internal prototype to avoid an error.
     5549   Use char because int might match the return type of a GCC
     5550   builtin and then its argument prototype would still apply.  */
    48285551#ifdef __cplusplus
    48295552extern "C"
    48305553#endif
    4831 /* We use char because int might match the return type of a gcc2
    4832    builtin and then its argument prototype would still apply.  */
    48335554char opendir ();
    48345555int
    48355556main ()
    48365557{
    4837 opendir ();
     5558return opendir ();
    48385559  ;
    48395560  return 0;
    48405561}
    48415562_ACEOF
    4842 rm -f conftest.$ac_objext conftest$ac_exeext
    4843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4844   (eval $ac_link) 2>conftest.er1
    4845   ac_status=$?
    4846   grep -v '^ *+' conftest.er1 >conftest.err
    4847   rm -f conftest.er1
    4848   cat conftest.err >&5
    4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4850   (exit $ac_status); } &&
    4851      { ac_try='test -z "$ac_c_werror_flag"
    4852              || test ! -s conftest.err'
    4853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4854   (eval $ac_try) 2>&5
    4855   ac_status=$?
    4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4857   (exit $ac_status); }; } &&
    4858      { ac_try='test -s conftest$ac_exeext'
    4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4860   (eval $ac_try) 2>&5
    4861   ac_status=$?
    4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4863   (exit $ac_status); }; }; then
    4864   ac_cv_search_opendir="-l$ac_lib"
    4865 break
    4866 else
    4867   echo "$as_me: failed program was:" >&5
    4868 sed 's/^/| /' conftest.$ac_ext >&5
    4869 
    4870 fi
    4871 rm -f conftest.err conftest.$ac_objext \
    4872       conftest$ac_exeext conftest.$ac_ext
    4873   done
    4874 fi
     5563for ac_lib in '' x; do
     5564  if test -z "$ac_lib"; then
     5565    ac_res="none required"
     5566  else
     5567    ac_res=-l$ac_lib
     5568    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5569  fi
     5570  if ac_fn_c_try_link "$LINENO"; then :
     5571  ac_cv_search_opendir=$ac_res
     5572fi
     5573rm -f core conftest.err conftest.$ac_objext \
     5574    conftest$ac_exeext
     5575  if test "${ac_cv_search_opendir+set}" = set; then :
     5576  break
     5577fi
     5578done
     5579if test "${ac_cv_search_opendir+set}" = set; then :
     5580
     5581else
     5582  ac_cv_search_opendir=no
     5583fi
     5584rm conftest.$ac_ext
    48755585LIBS=$ac_func_search_save_LIBS
    48765586fi
    4877 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    4878 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    4879 if test "$ac_cv_search_opendir" != no; then
    4880   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    4881 
    4882 fi
    4883 
    4884 else
    4885   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4886 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4887 if test "${ac_cv_search_opendir+set}" = set; then
    4888   echo $ECHO_N "(cached) $ECHO_C" >&6
    4889 else
    4890   ac_func_search_save_LIBS=$LIBS
    4891 ac_cv_search_opendir=no
    4892 cat >conftest.$ac_ext <<_ACEOF
    4893 /* confdefs.h.  */
    4894 _ACEOF
    4895 cat confdefs.h >>conftest.$ac_ext
    4896 cat >>conftest.$ac_ext <<_ACEOF
    4897 /* end confdefs.h.  */
    4898 
    4899 /* Override any gcc2 internal prototype to avoid an error.  */
    4900 #ifdef __cplusplus
    4901 extern "C"
    4902 #endif
    4903 /* We use char because int might match the return type of a gcc2
    4904    builtin and then its argument prototype would still apply.  */
    4905 char opendir ();
    4906 int
    4907 main ()
    4908 {
    4909 opendir ();
    4910   ;
    4911   return 0;
    4912 }
    4913 _ACEOF
    4914 rm -f conftest.$ac_objext conftest$ac_exeext
    4915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4916   (eval $ac_link) 2>conftest.er1
    4917   ac_status=$?
    4918   grep -v '^ *+' conftest.er1 >conftest.err
    4919   rm -f conftest.er1
    4920   cat conftest.err >&5
    4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4922   (exit $ac_status); } &&
    4923      { ac_try='test -z "$ac_c_werror_flag"
    4924              || test ! -s conftest.err'
    4925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4926   (eval $ac_try) 2>&5
    4927   ac_status=$?
    4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4929   (exit $ac_status); }; } &&
    4930      { ac_try='test -s conftest$ac_exeext'
    4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4932   (eval $ac_try) 2>&5
    4933   ac_status=$?
    4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4935   (exit $ac_status); }; }; then
    4936   ac_cv_search_opendir="none required"
    4937 else
    4938   echo "$as_me: failed program was:" >&5
    4939 sed 's/^/| /' conftest.$ac_ext >&5
    4940 
    4941 fi
    4942 rm -f conftest.err conftest.$ac_objext \
    4943       conftest$ac_exeext conftest.$ac_ext
    4944 if test "$ac_cv_search_opendir" = no; then
    4945   for ac_lib in x; do
    4946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4947     cat >conftest.$ac_ext <<_ACEOF
    4948 /* confdefs.h.  */
    4949 _ACEOF
    4950 cat confdefs.h >>conftest.$ac_ext
    4951 cat >>conftest.$ac_ext <<_ACEOF
    4952 /* end confdefs.h.  */
    4953 
    4954 /* Override any gcc2 internal prototype to avoid an error.  */
    4955 #ifdef __cplusplus
    4956 extern "C"
    4957 #endif
    4958 /* We use char because int might match the return type of a gcc2
    4959    builtin and then its argument prototype would still apply.  */
    4960 char opendir ();
    4961 int
    4962 main ()
    4963 {
    4964 opendir ();
    4965   ;
    4966   return 0;
    4967 }
    4968 _ACEOF
    4969 rm -f conftest.$ac_objext conftest$ac_exeext
    4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4971   (eval $ac_link) 2>conftest.er1
    4972   ac_status=$?
    4973   grep -v '^ *+' conftest.er1 >conftest.err
    4974   rm -f conftest.er1
    4975   cat conftest.err >&5
    4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4977   (exit $ac_status); } &&
    4978      { ac_try='test -z "$ac_c_werror_flag"
    4979              || test ! -s conftest.err'
    4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4981   (eval $ac_try) 2>&5
    4982   ac_status=$?
    4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4984   (exit $ac_status); }; } &&
    4985      { ac_try='test -s conftest$ac_exeext'
    4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4987   (eval $ac_try) 2>&5
    4988   ac_status=$?
    4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4990   (exit $ac_status); }; }; then
    4991   ac_cv_search_opendir="-l$ac_lib"
    4992 break
    4993 else
    4994   echo "$as_me: failed program was:" >&5
    4995 sed 's/^/| /' conftest.$ac_ext >&5
    4996 
    4997 fi
    4998 rm -f conftest.err conftest.$ac_objext \
    4999       conftest$ac_exeext conftest.$ac_ext
    5000   done
    5001 fi
    5002 LIBS=$ac_func_search_save_LIBS
    5003 fi
    5004 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5005 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5006 if test "$ac_cv_search_opendir" != no; then
    5007   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5008 
    5009 fi
    5010 
    5011 fi
    5012 
    5013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5015 if test "${ac_cv_header_stdc+set}" = set; then
    5016   echo $ECHO_N "(cached) $ECHO_C" >&6
    5017 else
    5018   cat >conftest.$ac_ext <<_ACEOF
    5019 /* confdefs.h.  */
    5020 _ACEOF
    5021 cat confdefs.h >>conftest.$ac_ext
    5022 cat >>conftest.$ac_ext <<_ACEOF
     5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5588$as_echo "$ac_cv_search_opendir" >&6; }
     5589ac_res=$ac_cv_search_opendir
     5590if test "$ac_res" != no; then :
     5591  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5592
     5593fi
     5594
     5595fi
     5596
     5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5598$as_echo_n "checking for ANSI C header files... " >&6; }
     5599if test "${ac_cv_header_stdc+set}" = set; then :
     5600  $as_echo_n "(cached) " >&6
     5601else
     5602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    50235603/* end confdefs.h.  */
    50245604#include <stdlib.h>
     
    50355615}
    50365616_ACEOF
    5037 rm -f conftest.$ac_objext
    5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5039   (eval $ac_compile) 2>conftest.er1
    5040   ac_status=$?
    5041   grep -v '^ *+' conftest.er1 >conftest.err
    5042   rm -f conftest.er1
    5043   cat conftest.err >&5
    5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5045   (exit $ac_status); } &&
    5046      { ac_try='test -z "$ac_c_werror_flag"
    5047              || test ! -s conftest.err'
    5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5049   (eval $ac_try) 2>&5
    5050   ac_status=$?
    5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5052   (exit $ac_status); }; } &&
    5053      { ac_try='test -s conftest.$ac_objext'
    5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5055   (eval $ac_try) 2>&5
    5056   ac_status=$?
    5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5058   (exit $ac_status); }; }; then
     5617if ac_fn_c_try_compile "$LINENO"; then :
    50595618  ac_cv_header_stdc=yes
    50605619else
    5061   echo "$as_me: failed program was:" >&5
    5062 sed 's/^/| /' conftest.$ac_ext >&5
    5063 
    5064 ac_cv_header_stdc=no
    5065 fi
    5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5620  ac_cv_header_stdc=no
     5621fi
     5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    50675623
    50685624if test $ac_cv_header_stdc = yes; then
    50695625  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5070   cat >conftest.$ac_ext <<_ACEOF
    5071 /* confdefs.h.  */
    5072 _ACEOF
    5073 cat confdefs.h >>conftest.$ac_ext
    5074 cat >>conftest.$ac_ext <<_ACEOF
     5626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    50755627/* end confdefs.h.  */
    50765628#include <string.h>
     
    50785630_ACEOF
    50795631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5080   $EGREP "memchr" >/dev/null 2>&1; then
    5081   :
     5632  $EGREP "memchr" >/dev/null 2>&1; then :
     5633
    50825634else
    50835635  ac_cv_header_stdc=no
     
    50895641if test $ac_cv_header_stdc = yes; then
    50905642  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5091   cat >conftest.$ac_ext <<_ACEOF
    5092 /* confdefs.h.  */
    5093 _ACEOF
    5094 cat confdefs.h >>conftest.$ac_ext
    5095 cat >>conftest.$ac_ext <<_ACEOF
     5643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    50965644/* end confdefs.h.  */
    50975645#include <stdlib.h>
     
    50995647_ACEOF
    51005648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5101   $EGREP "free" >/dev/null 2>&1; then
    5102   :
     5649  $EGREP "free" >/dev/null 2>&1; then :
     5650
    51035651else
    51045652  ac_cv_header_stdc=no
     
    51105658if test $ac_cv_header_stdc = yes; then
    51115659  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5112   if test "$cross_compiling" = yes; then
     5660  if test "$cross_compiling" = yes; then :
    51135661  :
    51145662else
    5115   cat >conftest.$ac_ext <<_ACEOF
    5116 /* confdefs.h.  */
    5117 _ACEOF
    5118 cat confdefs.h >>conftest.$ac_ext
    5119 cat >>conftest.$ac_ext <<_ACEOF
     5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51205664/* end confdefs.h.  */
    51215665#include <ctype.h>
     5666#include <stdlib.h>
    51225667#if ((' ' & 0x0FF) == 0x020)
    51235668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    51395684    if (XOR (islower (i), ISLOWER (i))
    51405685    || toupper (i) != TOUPPER (i))
    5141       exit(2);
    5142   exit (0);
     5686      return 2;
     5687  return 0;
    51435688}
    51445689_ACEOF
    5145 rm -f conftest$ac_exeext
    5146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5147   (eval $ac_link) 2>&5
    5148   ac_status=$?
    5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5152   (eval $ac_try) 2>&5
    5153   ac_status=$?
    5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5155   (exit $ac_status); }; }; then
    5156   :
    5157 else
    5158   echo "$as_me: program exited with status $ac_status" >&5
    5159 echo "$as_me: failed program was:" >&5
    5160 sed 's/^/| /' conftest.$ac_ext >&5
    5161 
    5162 ( exit $ac_status )
    5163 ac_cv_header_stdc=no
    5164 fi
    5165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5166 fi
    5167 fi
    5168 fi
    5169 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5170 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5690if ac_fn_c_try_run "$LINENO"; then :
     5691
     5692else
     5693  ac_cv_header_stdc=no
     5694fi
     5695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5696  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5697fi
     5698
     5699fi
     5700fi
     5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5702$as_echo "$ac_cv_header_stdc" >&6; }
    51715703if test $ac_cv_header_stdc = yes; then
    51725704
    5173 cat >>confdefs.h <<\_ACEOF
    5174 #define STDC_HEADERS 1
    5175 _ACEOF
    5176 
    5177 fi
    5178 
    5179 
    5180 
    5181 
    5182 
    5183 
    5184 
    5185 
     5705$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5706
     5707fi
    51865708
    51875709for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
    5188 do
    5189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5191   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5194   echo $ECHO_N "(cached) $ECHO_C" >&6
    5195 fi
    5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5198 else
    5199   # Is the header compilable?
    5200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5202 cat >conftest.$ac_ext <<_ACEOF
    5203 /* confdefs.h.  */
    5204 _ACEOF
    5205 cat confdefs.h >>conftest.$ac_ext
    5206 cat >>conftest.$ac_ext <<_ACEOF
    5207 /* end confdefs.h.  */
    5208 $ac_includes_default
    5209 #include <$ac_header>
    5210 _ACEOF
    5211 rm -f conftest.$ac_objext
    5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5213   (eval $ac_compile) 2>conftest.er1
    5214   ac_status=$?
    5215   grep -v '^ *+' conftest.er1 >conftest.err
    5216   rm -f conftest.er1
    5217   cat conftest.err >&5
    5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5219   (exit $ac_status); } &&
    5220      { ac_try='test -z "$ac_c_werror_flag"
    5221              || test ! -s conftest.err'
    5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5223   (eval $ac_try) 2>&5
    5224   ac_status=$?
    5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5226   (exit $ac_status); }; } &&
    5227      { ac_try='test -s conftest.$ac_objext'
    5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5229   (eval $ac_try) 2>&5
    5230   ac_status=$?
    5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5232   (exit $ac_status); }; }; then
    5233   ac_header_compiler=yes
    5234 else
    5235   echo "$as_me: failed program was:" >&5
    5236 sed 's/^/| /' conftest.$ac_ext >&5
    5237 
    5238 ac_header_compiler=no
    5239 fi
    5240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5242 echo "${ECHO_T}$ac_header_compiler" >&6
    5243 
    5244 # Is the header present?
    5245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5247 cat >conftest.$ac_ext <<_ACEOF
    5248 /* confdefs.h.  */
    5249 _ACEOF
    5250 cat confdefs.h >>conftest.$ac_ext
    5251 cat >>conftest.$ac_ext <<_ACEOF
    5252 /* end confdefs.h.  */
    5253 #include <$ac_header>
    5254 _ACEOF
    5255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5257   ac_status=$?
    5258   grep -v '^ *+' conftest.er1 >conftest.err
    5259   rm -f conftest.er1
    5260   cat conftest.err >&5
    5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5262   (exit $ac_status); } >/dev/null; then
    5263   if test -s conftest.err; then
    5264     ac_cpp_err=$ac_c_preproc_warn_flag
    5265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5266   else
    5267     ac_cpp_err=
    5268   fi
    5269 else
    5270   ac_cpp_err=yes
    5271 fi
    5272 if test -z "$ac_cpp_err"; then
    5273   ac_header_preproc=yes
    5274 else
    5275   echo "$as_me: failed program was:" >&5
    5276 sed 's/^/| /' conftest.$ac_ext >&5
    5277 
    5278   ac_header_preproc=no
    5279 fi
    5280 rm -f conftest.err conftest.$ac_ext
    5281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5282 echo "${ECHO_T}$ac_header_preproc" >&6
    5283 
    5284 # So?  What about this header?
    5285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5286   yes:no: )
    5287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5291     ac_header_preproc=yes
    5292     ;;
    5293   no:yes:* )
    5294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5306     (
    5307       cat <<\_ASBOX
    5308 ## ------------------------------------------ ##
    5309 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5310 ## ------------------------------------------ ##
    5311 _ASBOX
    5312     ) |
    5313       sed "s/^/$as_me: WARNING:     /" >&2
    5314     ;;
    5315 esac
    5316 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5319   echo $ECHO_N "(cached) $ECHO_C" >&6
    5320 else
    5321   eval "$as_ac_Header=\$ac_header_preproc"
    5322 fi
    5323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5325 
    5326 fi
    5327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5710do :
     5711  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    53285714  cat >>confdefs.h <<_ACEOF
    5329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    53305716_ACEOF
    53315717
     
    53345720done
    53355721
    5336 cat >conftest.$ac_ext <<_ACEOF
    5337 /* confdefs.h.  */
    5338 _ACEOF
    5339 cat confdefs.h >>conftest.$ac_ext
    5340 cat >>conftest.$ac_ext <<_ACEOF
     5722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    53415723/* end confdefs.h.  */
    53425724#include <stdio.h>
     
    53445726_ACEOF
    53455727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5346   $EGREP "fread" >/dev/null 2>&1; then
    5347   cat >>confdefs.h <<\_ACEOF
    5348 #define HAVE_FREAD_DECL 1
    5349 _ACEOF
     5728  $EGREP "fread" >/dev/null 2>&1; then :
     5729  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    53505730
    53515731fi
    53525732rm -f conftest*
    53535733
    5354 cat >conftest.$ac_ext <<_ACEOF
    5355 /* confdefs.h.  */
    5356 _ACEOF
    5357 cat confdefs.h >>conftest.$ac_ext
    5358 cat >>conftest.$ac_ext <<_ACEOF
     5734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    53595735/* end confdefs.h.  */
    53605736#include <stdio.h>
     
    53625738_ACEOF
    53635739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5364   $EGREP "fgetc" >/dev/null 2>&1; then
    5365   cat >>confdefs.h <<\_ACEOF
    5366 #define HAVE_FGETC_DECL 1
    5367 _ACEOF
     5740  $EGREP "fgetc" >/dev/null 2>&1; then :
     5741  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    53685742
    53695743fi
    53705744rm -f conftest*
    53715745
    5372 cat >conftest.$ac_ext <<_ACEOF
    5373 /* confdefs.h.  */
    5374 _ACEOF
    5375 cat confdefs.h >>conftest.$ac_ext
    5376 cat >>conftest.$ac_ext <<_ACEOF
     5746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    53775747/* end confdefs.h.  */
    53785748#include <sys/procfs.h>
     
    53805750_ACEOF
    53815751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5382   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5383   cat >>confdefs.h <<\_ACEOF
    5384 #define HAVE_PR_BRKSIZE 1
    5385 _ACEOF
     5752  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5753  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    53865754
    53875755fi
     
    53915759# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    53925760# for constant arguments.  Useless!
    5393 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5394 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5395 if test "${ac_cv_working_alloca_h+set}" = set; then
    5396   echo $ECHO_N "(cached) $ECHO_C" >&6
    5397 else
    5398   cat >conftest.$ac_ext <<_ACEOF
    5399 /* confdefs.h.  */
    5400 _ACEOF
    5401 cat confdefs.h >>conftest.$ac_ext
    5402 cat >>conftest.$ac_ext <<_ACEOF
     5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5762$as_echo_n "checking for working alloca.h... " >&6; }
     5763if test "${ac_cv_working_alloca_h+set}" = set; then :
     5764  $as_echo_n "(cached) " >&6
     5765else
     5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54035767/* end confdefs.h.  */
    54045768#include <alloca.h>
     
    54075771{
    54085772char *p = (char *) alloca (2 * sizeof (int));
     5773              if (p) return 0;
    54095774  ;
    54105775  return 0;
    54115776}
    54125777_ACEOF
    5413 rm -f conftest.$ac_objext conftest$ac_exeext
    5414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5415   (eval $ac_link) 2>conftest.er1
    5416   ac_status=$?
    5417   grep -v '^ *+' conftest.er1 >conftest.err
    5418   rm -f conftest.er1
    5419   cat conftest.err >&5
    5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5421   (exit $ac_status); } &&
    5422      { ac_try='test -z "$ac_c_werror_flag"
    5423              || test ! -s conftest.err'
    5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5425   (eval $ac_try) 2>&5
    5426   ac_status=$?
    5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5428   (exit $ac_status); }; } &&
    5429      { ac_try='test -s conftest$ac_exeext'
    5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5431   (eval $ac_try) 2>&5
    5432   ac_status=$?
    5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5434   (exit $ac_status); }; }; then
     5778if ac_fn_c_try_link "$LINENO"; then :
    54355779  ac_cv_working_alloca_h=yes
    54365780else
    5437   echo "$as_me: failed program was:" >&5
    5438 sed 's/^/| /' conftest.$ac_ext >&5
    5439 
    5440 ac_cv_working_alloca_h=no
    5441 fi
    5442 rm -f conftest.err conftest.$ac_objext \
    5443       conftest$ac_exeext conftest.$ac_ext
    5444 fi
    5445 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5446 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5781  ac_cv_working_alloca_h=no
     5782fi
     5783rm -f core conftest.err conftest.$ac_objext \
     5784    conftest$ac_exeext conftest.$ac_ext
     5785fi
     5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5787$as_echo "$ac_cv_working_alloca_h" >&6; }
    54475788if test $ac_cv_working_alloca_h = yes; then
    54485789
    5449 cat >>confdefs.h <<\_ACEOF
    5450 #define HAVE_ALLOCA_H 1
    5451 _ACEOF
    5452 
    5453 fi
    5454 
    5455 echo "$as_me:$LINENO: checking for alloca" >&5
    5456 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5457 if test "${ac_cv_func_alloca_works+set}" = set; then
    5458   echo $ECHO_N "(cached) $ECHO_C" >&6
    5459 else
    5460   cat >conftest.$ac_ext <<_ACEOF
    5461 /* confdefs.h.  */
    5462 _ACEOF
    5463 cat confdefs.h >>conftest.$ac_ext
    5464 cat >>conftest.$ac_ext <<_ACEOF
     5790$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5791
     5792fi
     5793
     5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5795$as_echo_n "checking for alloca... " >&6; }
     5796if test "${ac_cv_func_alloca_works+set}" = set; then :
     5797  $as_echo_n "(cached) " >&6
     5798else
     5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54655800/* end confdefs.h.  */
    54665801#ifdef __GNUC__
     
    54715806#  define alloca _alloca
    54725807# else
    5473 #  if HAVE_ALLOCA_H
     5808#  ifdef HAVE_ALLOCA_H
    54745809#   include <alloca.h>
    54755810#  else
     
    54895824{
    54905825char *p = (char *) alloca (1);
     5826                    if (p) return 0;
    54915827  ;
    54925828  return 0;
    54935829}
    54945830_ACEOF
    5495 rm -f conftest.$ac_objext conftest$ac_exeext
    5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5497   (eval $ac_link) 2>conftest.er1
    5498   ac_status=$?
    5499   grep -v '^ *+' conftest.er1 >conftest.err
    5500   rm -f conftest.er1
    5501   cat conftest.err >&5
    5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5503   (exit $ac_status); } &&
    5504      { ac_try='test -z "$ac_c_werror_flag"
    5505              || test ! -s conftest.err'
    5506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5507   (eval $ac_try) 2>&5
    5508   ac_status=$?
    5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5510   (exit $ac_status); }; } &&
    5511      { ac_try='test -s conftest$ac_exeext'
    5512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5513   (eval $ac_try) 2>&5
    5514   ac_status=$?
    5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5516   (exit $ac_status); }; }; then
     5831if ac_fn_c_try_link "$LINENO"; then :
    55175832  ac_cv_func_alloca_works=yes
    55185833else
    5519   echo "$as_me: failed program was:" >&5
    5520 sed 's/^/| /' conftest.$ac_ext >&5
    5521 
    5522 ac_cv_func_alloca_works=no
    5523 fi
    5524 rm -f conftest.err conftest.$ac_objext \
    5525       conftest$ac_exeext conftest.$ac_ext
    5526 fi
    5527 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5528 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5834  ac_cv_func_alloca_works=no
     5835fi
     5836rm -f core conftest.err conftest.$ac_objext \
     5837    conftest$ac_exeext conftest.$ac_ext
     5838fi
     5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5840$as_echo "$ac_cv_func_alloca_works" >&6; }
    55295841
    55305842if test $ac_cv_func_alloca_works = yes; then
    55315843
    5532 cat >>confdefs.h <<\_ACEOF
    5533 #define HAVE_ALLOCA 1
    5534 _ACEOF
     5844$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    55355845
    55365846else
     
    55405850# use ar to extract alloca.o from them instead of compiling alloca.c.
    55415851
    5542 ALLOCA=alloca.$ac_objext
    5543 
    5544 cat >>confdefs.h <<\_ACEOF
    5545 #define C_ALLOCA 1
    5546 _ACEOF
    5547 
    5548 
    5549 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5550 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5551 if test "${ac_cv_os_cray+set}" = set; then
    5552   echo $ECHO_N "(cached) $ECHO_C" >&6
    5553 else
    5554   cat >conftest.$ac_ext <<_ACEOF
    5555 /* confdefs.h.  */
    5556 _ACEOF
    5557 cat confdefs.h >>conftest.$ac_ext
    5558 cat >>conftest.$ac_ext <<_ACEOF
     5852ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5853
     5854$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5855
     5856
     5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5858$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5859if test "${ac_cv_os_cray+set}" = set; then :
     5860  $as_echo_n "(cached) " >&6
     5861else
     5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55595863/* end confdefs.h.  */
    5560 #if defined(CRAY) && ! defined(CRAY2)
     5864#if defined CRAY && ! defined CRAY2
    55615865webecray
    55625866#else
     
    55665870_ACEOF
    55675871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5568   $EGREP "webecray" >/dev/null 2>&1; then
     5872  $EGREP "webecray" >/dev/null 2>&1; then :
    55695873  ac_cv_os_cray=yes
    55705874else
     
    55745878
    55755879fi
    5576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5577 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5881$as_echo "$ac_cv_os_cray" >&6; }
    55785882if test $ac_cv_os_cray = yes; then
    55795883  for ac_func in _getb67 GETB67 getb67; do
    5580     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5581 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5583 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5584   echo $ECHO_N "(cached) $ECHO_C" >&6
    5585 else
    5586   cat >conftest.$ac_ext <<_ACEOF
    5587 /* confdefs.h.  */
    5588 _ACEOF
    5589 cat confdefs.h >>conftest.$ac_ext
    5590 cat >>conftest.$ac_ext <<_ACEOF
    5591 /* end confdefs.h.  */
    5592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5594 #define $ac_func innocuous_$ac_func
    5595 
    5596 /* System header to define __stub macros and hopefully few prototypes,
    5597     which can conflict with char $ac_func (); below.
    5598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5599     <limits.h> exists even on freestanding compilers.  */
    5600 
    5601 #ifdef __STDC__
    5602 # include <limits.h>
    5603 #else
    5604 # include <assert.h>
    5605 #endif
    5606 
    5607 #undef $ac_func
    5608 
    5609 /* Override any gcc2 internal prototype to avoid an error.  */
    5610 #ifdef __cplusplus
    5611 extern "C"
    5612 {
    5613 #endif
    5614 /* We use char because int might match the return type of a gcc2
    5615    builtin and then its argument prototype would still apply.  */
    5616 char $ac_func ();
    5617 /* The GNU C library defines this for functions which it implements
    5618     to always fail with ENOSYS.  Some functions are actually named
    5619     something starting with __ and the normal name is an alias.  */
    5620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5621 choke me
    5622 #else
    5623 char (*f) () = $ac_func;
    5624 #endif
    5625 #ifdef __cplusplus
    5626 }
    5627 #endif
    5628 
    5629 int
    5630 main ()
    5631 {
    5632 return f != $ac_func;
    5633   ;
    5634   return 0;
    5635 }
    5636 _ACEOF
    5637 rm -f conftest.$ac_objext conftest$ac_exeext
    5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5639   (eval $ac_link) 2>conftest.er1
    5640   ac_status=$?
    5641   grep -v '^ *+' conftest.er1 >conftest.err
    5642   rm -f conftest.er1
    5643   cat conftest.err >&5
    5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5645   (exit $ac_status); } &&
    5646      { ac_try='test -z "$ac_c_werror_flag"
    5647              || test ! -s conftest.err'
    5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5649   (eval $ac_try) 2>&5
    5650   ac_status=$?
    5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5652   (exit $ac_status); }; } &&
    5653      { ac_try='test -s conftest$ac_exeext'
    5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5655   (eval $ac_try) 2>&5
    5656   ac_status=$?
    5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5658   (exit $ac_status); }; }; then
    5659   eval "$as_ac_var=yes"
    5660 else
    5661   echo "$as_me: failed program was:" >&5
    5662 sed 's/^/| /' conftest.$ac_ext >&5
    5663 
    5664 eval "$as_ac_var=no"
    5665 fi
    5666 rm -f conftest.err conftest.$ac_objext \
    5667       conftest$ac_exeext conftest.$ac_ext
    5668 fi
    5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5671 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5884    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5886if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    56725887
    56735888cat >>confdefs.h <<_ACEOF
     
    56815896fi
    56825897
    5683 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5685 if test "${ac_cv_c_stack_direction+set}" = set; then
    5686   echo $ECHO_N "(cached) $ECHO_C" >&6
    5687 else
    5688   if test "$cross_compiling" = yes; then
     5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5899$as_echo_n "checking stack direction for C alloca... " >&6; }
     5900if test "${ac_cv_c_stack_direction+set}" = set; then :
     5901  $as_echo_n "(cached) " >&6
     5902else
     5903  if test "$cross_compiling" = yes; then :
    56895904  ac_cv_c_stack_direction=0
    56905905else
    5691   cat >conftest.$ac_ext <<_ACEOF
    5692 /* confdefs.h.  */
    5693 _ACEOF
    5694 cat confdefs.h >>conftest.$ac_ext
    5695 cat >>conftest.$ac_ext <<_ACEOF
     5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56965907/* end confdefs.h.  */
     5908$ac_includes_default
    56975909int
    56985910find_stack_direction ()
     
    57125924main ()
    57135925{
    5714   exit (find_stack_direction () < 0);
     5926  return find_stack_direction () < 0;
    57155927}
    57165928_ACEOF
    5717 rm -f conftest$ac_exeext
    5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5719   (eval $ac_link) 2>&5
    5720   ac_status=$?
    5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5724   (eval $ac_try) 2>&5
    5725   ac_status=$?
    5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5727   (exit $ac_status); }; }; then
     5929if ac_fn_c_try_run "$LINENO"; then :
    57285930  ac_cv_c_stack_direction=1
    57295931else
    5730   echo "$as_me: program exited with status $ac_status" >&5
    5731 echo "$as_me: failed program was:" >&5
    5732 sed 's/^/| /' conftest.$ac_ext >&5
    5733 
    5734 ( exit $ac_status )
    5735 ac_cv_c_stack_direction=-1
    5736 fi
    5737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5738 fi
    5739 fi
    5740 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5741 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5742 
     5932  ac_cv_c_stack_direction=-1
     5933fi
     5934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5935  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5936fi
     5937
     5938fi
     5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     5940$as_echo "$ac_cv_c_stack_direction" >&6; }
    57435941cat >>confdefs.h <<_ACEOF
    57445942#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    57495947
    57505948if test $ac_cv_c_compiler_gnu = yes; then
    5751     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5752 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5753 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5754   echo $ECHO_N "(cached) $ECHO_C" >&6
     5949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     5950$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     5951if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     5952  $as_echo_n "(cached) " >&6
    57555953else
    57565954    ac_pattern="Autoconf.*'x'"
    5757   cat >conftest.$ac_ext <<_ACEOF
    5758 /* confdefs.h.  */
    5759 _ACEOF
    5760 cat confdefs.h >>conftest.$ac_ext
    5761 cat >>conftest.$ac_ext <<_ACEOF
     5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57625956/* end confdefs.h.  */
    57635957#include <sgtty.h>
     
    57655959_ACEOF
    57665960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5767   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5961  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    57685962  ac_cv_prog_gcc_traditional=yes
    57695963else
     
    57745968
    57755969  if test $ac_cv_prog_gcc_traditional = no; then
    5776     cat >conftest.$ac_ext <<_ACEOF
    5777 /* confdefs.h.  */
    5778 _ACEOF
    5779 cat confdefs.h >>conftest.$ac_ext
    5780 cat >>conftest.$ac_ext <<_ACEOF
     5970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57815971/* end confdefs.h.  */
    57825972#include <termio.h>
     
    57845974_ACEOF
    57855975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5786   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     5976  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    57875977  ac_cv_prog_gcc_traditional=yes
    57885978fi
     
    57915981  fi
    57925982fi
    5793 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5794 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     5984$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    57955985  if test $ac_cv_prog_gcc_traditional = yes; then
    57965986    CC="$CC -traditional"
     
    57985988fi
    57995989
    5800 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5801 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5802 if test "${ac_cv_type_signal+set}" = set; then
    5803   echo $ECHO_N "(cached) $ECHO_C" >&6
    5804 else
    5805   cat >conftest.$ac_ext <<_ACEOF
    5806 /* confdefs.h.  */
    5807 _ACEOF
    5808 cat confdefs.h >>conftest.$ac_ext
    5809 cat >>conftest.$ac_ext <<_ACEOF
     5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     5991$as_echo_n "checking return type of signal handlers... " >&6; }
     5992if test "${ac_cv_type_signal+set}" = set; then :
     5993  $as_echo_n "(cached) " >&6
     5994else
     5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58105996/* end confdefs.h.  */
    58115997#include <sys/types.h>
    58125998#include <signal.h>
    5813 #ifdef signal
    5814 # undef signal
    5815 #endif
    5816 #ifdef __cplusplus
    5817 extern "C" void (*signal (int, void (*)(int)))(int);
    5818 #else
    5819 void (*signal ()) ();
    5820 #endif
    58215999
    58226000int
    58236001main ()
    58246002{
    5825 int i;
     6003return *(signal (0, 0)) (0) == 1;
    58266004  ;
    58276005  return 0;
    58286006}
    58296007_ACEOF
    5830 rm -f conftest.$ac_objext
    5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5832   (eval $ac_compile) 2>conftest.er1
    5833   ac_status=$?
    5834   grep -v '^ *+' conftest.er1 >conftest.err
    5835   rm -f conftest.er1
    5836   cat conftest.err >&5
    5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5838   (exit $ac_status); } &&
    5839      { ac_try='test -z "$ac_c_werror_flag"
    5840              || test ! -s conftest.err'
    5841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5842   (eval $ac_try) 2>&5
    5843   ac_status=$?
    5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5845   (exit $ac_status); }; } &&
    5846      { ac_try='test -s conftest.$ac_objext'
    5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5848   (eval $ac_try) 2>&5
    5849   ac_status=$?
    5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5851   (exit $ac_status); }; }; then
     6008if ac_fn_c_try_compile "$LINENO"; then :
     6009  ac_cv_type_signal=int
     6010else
    58526011  ac_cv_type_signal=void
    5853 else
    5854   echo "$as_me: failed program was:" >&5
    5855 sed 's/^/| /' conftest.$ac_ext >&5
    5856 
    5857 ac_cv_type_signal=int
    5858 fi
    5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5860 fi
    5861 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    5862 echo "${ECHO_T}$ac_cv_type_signal" >&6
     6012fi
     6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6014fi
     6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     6016$as_echo "$ac_cv_type_signal" >&6; }
    58636017
    58646018cat >>confdefs.h <<_ACEOF
     
    58676021
    58686022
    5869 
    58706023for ac_func in vprintf
    5871 do
    5872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5873 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5875 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5876   echo $ECHO_N "(cached) $ECHO_C" >&6
    5877 else
    5878   cat >conftest.$ac_ext <<_ACEOF
    5879 /* confdefs.h.  */
    5880 _ACEOF
    5881 cat confdefs.h >>conftest.$ac_ext
    5882 cat >>conftest.$ac_ext <<_ACEOF
    5883 /* end confdefs.h.  */
    5884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5886 #define $ac_func innocuous_$ac_func
    5887 
    5888 /* System header to define __stub macros and hopefully few prototypes,
    5889     which can conflict with char $ac_func (); below.
    5890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5891     <limits.h> exists even on freestanding compilers.  */
    5892 
    5893 #ifdef __STDC__
    5894 # include <limits.h>
    5895 #else
    5896 # include <assert.h>
    5897 #endif
    5898 
    5899 #undef $ac_func
    5900 
    5901 /* Override any gcc2 internal prototype to avoid an error.  */
    5902 #ifdef __cplusplus
    5903 extern "C"
    5904 {
    5905 #endif
    5906 /* We use char because int might match the return type of a gcc2
    5907    builtin and then its argument prototype would still apply.  */
    5908 char $ac_func ();
    5909 /* The GNU C library defines this for functions which it implements
    5910     to always fail with ENOSYS.  Some functions are actually named
    5911     something starting with __ and the normal name is an alias.  */
    5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5913 choke me
    5914 #else
    5915 char (*f) () = $ac_func;
    5916 #endif
    5917 #ifdef __cplusplus
    5918 }
    5919 #endif
    5920 
    5921 int
    5922 main ()
    5923 {
    5924 return f != $ac_func;
    5925   ;
    5926   return 0;
    5927 }
    5928 _ACEOF
    5929 rm -f conftest.$ac_objext conftest$ac_exeext
    5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5931   (eval $ac_link) 2>conftest.er1
    5932   ac_status=$?
    5933   grep -v '^ *+' conftest.er1 >conftest.err
    5934   rm -f conftest.er1
    5935   cat conftest.err >&5
    5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5937   (exit $ac_status); } &&
    5938      { ac_try='test -z "$ac_c_werror_flag"
    5939              || test ! -s conftest.err'
    5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5941   (eval $ac_try) 2>&5
    5942   ac_status=$?
    5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5944   (exit $ac_status); }; } &&
    5945      { ac_try='test -s conftest$ac_exeext'
    5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5947   (eval $ac_try) 2>&5
    5948   ac_status=$?
    5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5950   (exit $ac_status); }; }; then
    5951   eval "$as_ac_var=yes"
    5952 else
    5953   echo "$as_me: failed program was:" >&5
    5954 sed 's/^/| /' conftest.$ac_ext >&5
    5955 
    5956 eval "$as_ac_var=no"
    5957 fi
    5958 rm -f conftest.err conftest.$ac_objext \
    5959       conftest$ac_exeext conftest.$ac_ext
    5960 fi
    5961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5963 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6024do :
     6025  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     6026if test "x$ac_cv_func_vprintf" = x""yes; then :
    59646027  cat >>confdefs.h <<_ACEOF
    5965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5966 _ACEOF
    5967 
    5968 echo "$as_me:$LINENO: checking for _doprnt" >&5
    5969 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    5970 if test "${ac_cv_func__doprnt+set}" = set; then
    5971   echo $ECHO_N "(cached) $ECHO_C" >&6
    5972 else
    5973   cat >conftest.$ac_ext <<_ACEOF
    5974 /* confdefs.h.  */
    5975 _ACEOF
    5976 cat confdefs.h >>conftest.$ac_ext
    5977 cat >>conftest.$ac_ext <<_ACEOF
    5978 /* end confdefs.h.  */
    5979 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    5980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5981 #define _doprnt innocuous__doprnt
    5982 
    5983 /* System header to define __stub macros and hopefully few prototypes,
    5984     which can conflict with char _doprnt (); below.
    5985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5986     <limits.h> exists even on freestanding compilers.  */
    5987 
    5988 #ifdef __STDC__
    5989 # include <limits.h>
    5990 #else
    5991 # include <assert.h>
    5992 #endif
    5993 
    5994 #undef _doprnt
    5995 
    5996 /* Override any gcc2 internal prototype to avoid an error.  */
    5997 #ifdef __cplusplus
    5998 extern "C"
    5999 {
    6000 #endif
    6001 /* We use char because int might match the return type of a gcc2
    6002    builtin and then its argument prototype would still apply.  */
    6003 char _doprnt ();
    6004 /* The GNU C library defines this for functions which it implements
    6005     to always fail with ENOSYS.  Some functions are actually named
    6006     something starting with __ and the normal name is an alias.  */
    6007 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    6008 choke me
    6009 #else
    6010 char (*f) () = _doprnt;
    6011 #endif
    6012 #ifdef __cplusplus
    6013 }
    6014 #endif
    6015 
    6016 int
    6017 main ()
    6018 {
    6019 return f != _doprnt;
    6020   ;
    6021   return 0;
    6022 }
    6023 _ACEOF
    6024 rm -f conftest.$ac_objext conftest$ac_exeext
    6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6026   (eval $ac_link) 2>conftest.er1
    6027   ac_status=$?
    6028   grep -v '^ *+' conftest.er1 >conftest.err
    6029   rm -f conftest.er1
    6030   cat conftest.err >&5
    6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6032   (exit $ac_status); } &&
    6033      { ac_try='test -z "$ac_c_werror_flag"
    6034              || test ! -s conftest.err'
    6035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6036   (eval $ac_try) 2>&5
    6037   ac_status=$?
    6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6039   (exit $ac_status); }; } &&
    6040      { ac_try='test -s conftest$ac_exeext'
    6041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6042   (eval $ac_try) 2>&5
    6043   ac_status=$?
    6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6045   (exit $ac_status); }; }; then
    6046   ac_cv_func__doprnt=yes
    6047 else
    6048   echo "$as_me: failed program was:" >&5
    6049 sed 's/^/| /' conftest.$ac_ext >&5
    6050 
    6051 ac_cv_func__doprnt=no
    6052 fi
    6053 rm -f conftest.err conftest.$ac_objext \
    6054       conftest$ac_exeext conftest.$ac_ext
    6055 fi
    6056 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    6057 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    6058 if test $ac_cv_func__doprnt = yes; then
    6059 
    6060 cat >>confdefs.h <<\_ACEOF
    6061 #define HAVE_DOPRNT 1
    6062 _ACEOF
     6028#define HAVE_VPRINTF 1
     6029_ACEOF
     6030
     6031ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     6032if test "x$ac_cv_func__doprnt" = x""yes; then :
     6033
     6034$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    60636035
    60646036fi
     
    60686040
    60696041
    6070 
    6071 
    6072 
    6073 
    6074 
    6075 
    6076 
    6077 
    6078 
    6079 
    60806042for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    6081 do
    6082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6083 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6085 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6086   echo $ECHO_N "(cached) $ECHO_C" >&6
    6087 else
    6088   cat >conftest.$ac_ext <<_ACEOF
    6089 /* confdefs.h.  */
    6090 _ACEOF
    6091 cat confdefs.h >>conftest.$ac_ext
    6092 cat >>conftest.$ac_ext <<_ACEOF
    6093 /* end confdefs.h.  */
    6094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6096 #define $ac_func innocuous_$ac_func
    6097 
    6098 /* System header to define __stub macros and hopefully few prototypes,
    6099     which can conflict with char $ac_func (); below.
    6100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6101     <limits.h> exists even on freestanding compilers.  */
    6102 
    6103 #ifdef __STDC__
    6104 # include <limits.h>
    6105 #else
    6106 # include <assert.h>
    6107 #endif
    6108 
    6109 #undef $ac_func
    6110 
    6111 /* Override any gcc2 internal prototype to avoid an error.  */
    6112 #ifdef __cplusplus
    6113 extern "C"
    6114 {
    6115 #endif
    6116 /* We use char because int might match the return type of a gcc2
    6117    builtin and then its argument prototype would still apply.  */
    6118 char $ac_func ();
    6119 /* The GNU C library defines this for functions which it implements
    6120     to always fail with ENOSYS.  Some functions are actually named
    6121     something starting with __ and the normal name is an alias.  */
    6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6123 choke me
    6124 #else
    6125 char (*f) () = $ac_func;
    6126 #endif
    6127 #ifdef __cplusplus
    6128 }
    6129 #endif
    6130 
    6131 int
    6132 main ()
    6133 {
    6134 return f != $ac_func;
    6135   ;
    6136   return 0;
    6137 }
    6138 _ACEOF
    6139 rm -f conftest.$ac_objext conftest$ac_exeext
    6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6141   (eval $ac_link) 2>conftest.er1
    6142   ac_status=$?
    6143   grep -v '^ *+' conftest.er1 >conftest.err
    6144   rm -f conftest.er1
    6145   cat conftest.err >&5
    6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6147   (exit $ac_status); } &&
    6148      { ac_try='test -z "$ac_c_werror_flag"
    6149              || test ! -s conftest.err'
    6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6151   (eval $ac_try) 2>&5
    6152   ac_status=$?
    6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6154   (exit $ac_status); }; } &&
    6155      { ac_try='test -s conftest$ac_exeext'
    6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6157   (eval $ac_try) 2>&5
    6158   ac_status=$?
    6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6160   (exit $ac_status); }; }; then
    6161   eval "$as_ac_var=yes"
    6162 else
    6163   echo "$as_me: failed program was:" >&5
    6164 sed 's/^/| /' conftest.$ac_ext >&5
    6165 
    6166 eval "$as_ac_var=no"
    6167 fi
    6168 rm -f conftest.err conftest.$ac_objext \
    6169       conftest$ac_exeext conftest.$ac_ext
    6170 fi
    6171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6173 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6043do :
     6044  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    61746047  cat >>confdefs.h <<_ACEOF
    6175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    61766049_ACEOF
    61776050
     
    61796052done
    61806053
    6181 
    6182 
    6183 
    6184 for ac_func in ftruncate strstr strcasecmp
    6185 do
    6186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6187 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6189 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6190   echo $ECHO_N "(cached) $ECHO_C" >&6
    6191 else
    6192   cat >conftest.$ac_ext <<_ACEOF
    6193 /* confdefs.h.  */
    6194 _ACEOF
    6195 cat confdefs.h >>conftest.$ac_ext
    6196 cat >>conftest.$ac_ext <<_ACEOF
    6197 /* end confdefs.h.  */
    6198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6200 #define $ac_func innocuous_$ac_func
    6201 
    6202 /* System header to define __stub macros and hopefully few prototypes,
    6203     which can conflict with char $ac_func (); below.
    6204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6205     <limits.h> exists even on freestanding compilers.  */
    6206 
    6207 #ifdef __STDC__
    6208 # include <limits.h>
    6209 #else
    6210 # include <assert.h>
    6211 #endif
    6212 
    6213 #undef $ac_func
    6214 
    6215 /* Override any gcc2 internal prototype to avoid an error.  */
    6216 #ifdef __cplusplus
    6217 extern "C"
    6218 {
    6219 #endif
    6220 /* We use char because int might match the return type of a gcc2
    6221    builtin and then its argument prototype would still apply.  */
    6222 char $ac_func ();
    6223 /* The GNU C library defines this for functions which it implements
    6224     to always fail with ENOSYS.  Some functions are actually named
    6225     something starting with __ and the normal name is an alias.  */
    6226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6227 choke me
    6228 #else
    6229 char (*f) () = $ac_func;
    6230 #endif
    6231 #ifdef __cplusplus
    6232 }
    6233 #endif
    6234 
    6235 int
    6236 main ()
    6237 {
    6238 return f != $ac_func;
    6239   ;
    6240   return 0;
    6241 }
    6242 _ACEOF
    6243 rm -f conftest.$ac_objext conftest$ac_exeext
    6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6245   (eval $ac_link) 2>conftest.er1
    6246   ac_status=$?
    6247   grep -v '^ *+' conftest.er1 >conftest.err
    6248   rm -f conftest.er1
    6249   cat conftest.err >&5
    6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6251   (exit $ac_status); } &&
    6252      { ac_try='test -z "$ac_c_werror_flag"
    6253              || test ! -s conftest.err'
    6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6255   (eval $ac_try) 2>&5
    6256   ac_status=$?
    6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6258   (exit $ac_status); }; } &&
    6259      { ac_try='test -s conftest$ac_exeext'
    6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6261   (eval $ac_try) 2>&5
    6262   ac_status=$?
    6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6264   (exit $ac_status); }; }; then
    6265   eval "$as_ac_var=yes"
    6266 else
    6267   echo "$as_me: failed program was:" >&5
    6268 sed 's/^/| /' conftest.$ac_ext >&5
    6269 
    6270 eval "$as_ac_var=no"
    6271 fi
    6272 rm -f conftest.err conftest.$ac_objext \
    6273       conftest$ac_exeext conftest.$ac_ext
    6274 fi
    6275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6277 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6278   cat >>confdefs.h <<_ACEOF
    6279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6280 _ACEOF
    6281 
    6282 else
    6283   case $LIBOBJS in
    6284     "$ac_func.$ac_objext"   | \
    6285   *" $ac_func.$ac_objext"   | \
    6286     "$ac_func.$ac_objext "* | \
    6287   *" $ac_func.$ac_objext "* ) ;;
    6288   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6054ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     6055if test "x$ac_cv_func_ftruncate" = x""yes; then :
     6056  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6057
     6058else
     6059  case " $LIBOBJS " in
     6060  *" ftruncate.$ac_objext "* ) ;;
     6061  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6062 ;;
    62896063esac
    62906064
    62916065fi
    6292 done
    6293 
    6294 
    6295 
    6296 
    6297 echo "$as_me:$LINENO: checking for textdomain" >&5
    6298 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
    6299 if test "${ac_cv_func_textdomain+set}" = set; then
    6300   echo $ECHO_N "(cached) $ECHO_C" >&6
    6301 else
    6302   cat >conftest.$ac_ext <<_ACEOF
    6303 /* confdefs.h.  */
    6304 _ACEOF
    6305 cat confdefs.h >>conftest.$ac_ext
    6306 cat >>conftest.$ac_ext <<_ACEOF
    6307 /* end confdefs.h.  */
    6308 /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
    6309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6310 #define textdomain innocuous_textdomain
    6311 
    6312 /* System header to define __stub macros and hopefully few prototypes,
    6313     which can conflict with char textdomain (); below.
    6314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6315     <limits.h> exists even on freestanding compilers.  */
    6316 
    6317 #ifdef __STDC__
    6318 # include <limits.h>
    6319 #else
    6320 # include <assert.h>
    6321 #endif
    6322 
    6323 #undef textdomain
    6324 
    6325 /* Override any gcc2 internal prototype to avoid an error.  */
    6326 #ifdef __cplusplus
    6327 extern "C"
    6328 {
    6329 #endif
    6330 /* We use char because int might match the return type of a gcc2
    6331    builtin and then its argument prototype would still apply.  */
    6332 char textdomain ();
    6333 /* The GNU C library defines this for functions which it implements
    6334     to always fail with ENOSYS.  Some functions are actually named
    6335     something starting with __ and the normal name is an alias.  */
    6336 #if defined (__stub_textdomain) || defined (__stub___textdomain)
    6337 choke me
    6338 #else
    6339 char (*f) () = textdomain;
    6340 #endif
    6341 #ifdef __cplusplus
    6342 }
    6343 #endif
    6344 
    6345 int
    6346 main ()
    6347 {
    6348 return f != textdomain;
    6349   ;
    6350   return 0;
    6351 }
    6352 _ACEOF
    6353 rm -f conftest.$ac_objext conftest$ac_exeext
    6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6355   (eval $ac_link) 2>conftest.er1
    6356   ac_status=$?
    6357   grep -v '^ *+' conftest.er1 >conftest.err
    6358   rm -f conftest.er1
    6359   cat conftest.err >&5
    6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6361   (exit $ac_status); } &&
    6362      { ac_try='test -z "$ac_c_werror_flag"
    6363              || test ! -s conftest.err'
    6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6365   (eval $ac_try) 2>&5
    6366   ac_status=$?
    6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6368   (exit $ac_status); }; } &&
    6369      { ac_try='test -s conftest$ac_exeext'
    6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6371   (eval $ac_try) 2>&5
    6372   ac_status=$?
    6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6374   (exit $ac_status); }; }; then
    6375   ac_cv_func_textdomain=yes
    6376 else
    6377   echo "$as_me: failed program was:" >&5
    6378 sed 's/^/| /' conftest.$ac_ext >&5
    6379 
    6380 ac_cv_func_textdomain=no
    6381 fi
    6382 rm -f conftest.err conftest.$ac_objext \
    6383       conftest$ac_exeext conftest.$ac_ext
    6384 fi
    6385 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
    6386 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
    6387 if test $ac_cv_func_textdomain = yes; then
    6388   cat >>confdefs.h <<\_ACEOF
    6389 #define ENABLE_NLS  1
    6390 _ACEOF
     6066
     6067ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     6068if test "x$ac_cv_func_strstr" = x""yes; then :
     6069  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     6070
     6071else
     6072  case " $LIBOBJS " in
     6073  *" strstr.$ac_objext "* ) ;;
     6074  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     6075 ;;
     6076esac
     6077
     6078fi
     6079
     6080ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     6081if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     6082  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     6083
     6084else
     6085  case " $LIBOBJS " in
     6086  *" strcasecmp.$ac_objext "* ) ;;
     6087  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     6088 ;;
     6089esac
     6090
     6091fi
     6092
     6093
     6094
     6095
     6096ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
     6097if test "x$ac_cv_func_textdomain" = x""yes; then :
     6098  $as_echo "#define ENABLE_NLS  1" >>confdefs.h
    63916099
    63926100fi
     
    63966104# a non-standard Path
    63976105# is there a better way to do this??
    6398 echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
    6399 echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
     6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
     6107$as_echo_n "checking for OS to set JNI options... " >&6; }
    64006108# set defaults
    64016109JNIINC=""
     
    64046112
    64056113if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6406   echo "$as_me:$LINENO: result: Darwin" >&5
    6407 echo "${ECHO_T}Darwin" >&6
     6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
     6115$as_echo "Darwin" >&6; }
    64086116  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    64096117  JNISUFFIX="jnilib"
     
    64116119fi
    64126120if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
    6413   echo "$as_me:$LINENO: result: Solaris" >&5
    6414 echo "${ECHO_T}Solaris" >&6
     6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
     6122$as_echo "Solaris" >&6; }
    64156123  JNIINC="-I\$(JAVA_HOME)/include/solaris "
    64166124fi
    64176125if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
    6418   echo "$as_me:$LINENO: result: Linux" >&5
    6419 echo "${ECHO_T}Linux" >&6
     6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
     6127$as_echo "Linux" >&6; }
    64206128  JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
    64216129fi
     
    64276135# *** Custom checking (based on GNU tar configure.in) ***
    64286136# ---------------------------------------------------------------------------
    6429 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6430 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     6138$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    64316139if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6432   echo "$as_me:$LINENO: result: yes" >&5
    6433 echo "${ECHO_T}yes" >&6
    6434   case $LIBOBJS in
    6435     "gmalloc.$ac_objext"   | \
    6436   *" gmalloc.$ac_objext"   | \
    6437     "gmalloc.$ac_objext "* | \
     6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6141$as_echo "yes" >&6; }
     6142  case " $LIBOBJS " in
    64386143  *" gmalloc.$ac_objext "* ) ;;
    6439   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6144  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     6145 ;;
    64406146esac
    64416147
    6442   cat >>confdefs.h <<\_ACEOF
     6148  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     6149
     6150else
     6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6152$as_echo "no" >&6; }
     6153  for ac_func in valloc
     6154do :
     6155  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     6156if test "x$ac_cv_func_valloc" = x""yes; then :
     6157  cat >>confdefs.h <<_ACEOF
    64436158#define HAVE_VALLOC 1
    64446159_ACEOF
    64456160
    6446 else
    6447   echo "$as_me:$LINENO: result: no" >&5
    6448 echo "${ECHO_T}no" >&6
    6449 
    6450 for ac_func in valloc
    6451 do
    6452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6453 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6455 if eval "test \"\${$as_ac_var+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
     6161fi
     6162done
     6163
     6164fi
     6165
     6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     6167$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     6168
     6169# Check whether --with-dmalloc was given.
     6170if test "${with_dmalloc+set}" = set; then :
     6171  withval=$with_dmalloc; if test "$withval" = yes; then
     6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6173$as_echo "yes" >&6; }
     6174  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
     6175
     6176  LIBS="$LIBS -ldmalloc"
     6177  LDFLAGS="$LDFLAGS -g"
     6178else
     6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6180$as_echo "no" >&6; }
     6181fi
     6182else
     6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6184$as_echo "no" >&6; }
     6185fi
     6186
     6187
     6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     6189$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     6190
     6191# Check whether --with-regex was given.
     6192if test "${with_regex+set}" = set; then :
     6193  withval=$with_regex; if test "$withval" = yes; then
     6194  ac_with_regex=1
     6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     6196$as_echo "regex" >&6; }
     6197  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     6198
     6199  case " $LIBOBJS " in
     6200  *" regex.$ac_objext "* ) ;;
     6201  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6202 ;;
     6203esac
     6204
     6205fi
     6206fi
     6207
     6208if test -z "$ac_with_regex"; then
     6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     6210$as_echo "rx" >&6; }
     6211  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     6212if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     6213
     6214else
     6215  # The cast to long int works around a bug in the HP C Compiler
     6216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     6217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     6218# This bug is HP SR number 8606223364.
     6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
     6220$as_echo_n "checking size of unsigned char *... " >&6; }
     6221if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then :
     6222  $as_echo_n "(cached) " >&6
     6223else
     6224  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
     6225
     6226else
     6227  if test "$ac_cv_type_unsigned_char_p" = yes; then
     6228     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     6229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     6230as_fn_error 77 "cannot compute sizeof (unsigned char *)
     6231See \`config.log' for more details" "$LINENO" 5 ; }
     6232   else
     6233     ac_cv_sizeof_unsigned_char_p=0
     6234   fi
     6235fi
     6236
     6237fi
     6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
     6239$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
     6240
     6241
     6242
     6243cat >>confdefs.h <<_ACEOF
     6244#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
     6245_ACEOF
     6246
     6247
     6248    if test "$ac_cv_sizeof_unsigned_char_p" = 8
     6249    then
     6250      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
     6251        find a local rx library and the one included with this
     6252        distribution doesn't work on 64-bit machines like yours" >&5
     6253$as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
     6254        find a local rx library and the one included with this
     6255        distribution doesn't work on 64-bit machines like yours" >&2;}
     6256      case " $LIBOBJS " in
     6257  *" regex.$ac_objext "* ) ;;
     6258  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6259 ;;
     6260esac
     6261
     6262    else
     6263      case " $LIBOBJS " in
     6264  *" rx.$ac_objext "* ) ;;
     6265  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     6266 ;;
     6267esac
     6268
     6269    fi
     6270
     6271fi
     6272
     6273fi
     6274
     6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
     6276$as_echo_n "checking whether GNU readline requested... " >&6; }
     6277
     6278# Check whether --with-gnu_readline was given.
     6279if test "${with_gnu_readline+set}" = set; then :
     6280  withval=$with_gnu_readline; if test "$withval" = yes; then
     6281      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6282$as_echo "yes" >&6; }
     6283      ac_with_gnu_readline=1
     6284    else
     6285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6286$as_echo "no" >&6; }
     6287    fi
     6288else
     6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6290$as_echo "no" >&6; }
     6291fi
     6292
     6293
     6294  if test -n "$ac_with_gnu_readline"; then
     6295    ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
     6296if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
     6297  ac_mg_readline_header_found=1
     6298else
     6299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
     6300GNU readline support" >&5
     6301$as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
     6302GNU readline support" >&2;}
     6303fi
     6304
     6305
     6306    if test -n "$ac_mg_readline_header_found"; then
     6307      # first check whether we can find the readline library itself
     6308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
     6309$as_echo_n "checking for main in -lreadline... " >&6; }
     6310if test "${ac_cv_lib_readline_main+set}" = set; then :
     6311  $as_echo_n "(cached) " >&6
     6312else
     6313  ac_check_lib_save_LIBS=$LIBS
     6314LIBS="-lreadline  $LIBS"
     6315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    64636316/* end confdefs.h.  */
    6464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6466 #define $ac_func innocuous_$ac_func
    6467 
    6468 /* System header to define __stub macros and hopefully few prototypes,
    6469     which can conflict with char $ac_func (); 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 $ac_func
    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 $ac_func ();
    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_$ac_func) || defined (__stub___$ac_func)
    6493 choke me
    6494 #else
    6495 char (*f) () = $ac_func;
    6496 #endif
    6497 #ifdef __cplusplus
    6498 }
    6499 #endif
     6317
    65006318
    65016319int
    65026320main ()
    65036321{
    6504 return f != $ac_func;
     6322return main ();
    65056323  ;
    65066324  return 0;
    65076325}
    65086326_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   eval "$as_ac_var=yes"
    6532 else
    6533   echo "$as_me: failed program was:" >&5
    6534 sed 's/^/| /' conftest.$ac_ext >&5
    6535 
    6536 eval "$as_ac_var=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: `eval echo '${'$as_ac_var'}'`" >&5
    6542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6543 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6544   cat >>confdefs.h <<_ACEOF
    6545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6546 _ACEOF
    6547 
    6548 fi
    6549 done
    6550 
    6551 fi
    6552 
    6553 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6554 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6555 
    6556 # Check whether --with-dmalloc or --without-dmalloc was given.
    6557 if test "${with_dmalloc+set}" = set; then
    6558   withval="$with_dmalloc"
    6559   if test "$withval" = yes; then
    6560   echo "$as_me:$LINENO: result: yes" >&5
    6561 echo "${ECHO_T}yes" >&6
    6562   cat >>confdefs.h <<\_ACEOF
    6563 #define WITH_DMALLOC 1
    6564 _ACEOF
    6565 
    6566   LIBS="$LIBS -ldmalloc"
    6567   LDFLAGS="$LDFLAGS -g"
    6568 else
    6569   echo "$as_me:$LINENO: result: no" >&5
    6570 echo "${ECHO_T}no" >&6
    6571 fi
    6572 else
    6573   echo "$as_me:$LINENO: result: no" >&5
    6574 echo "${ECHO_T}no" >&6
    6575 fi;
    6576 
    6577 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6578 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6579 
    6580 # Check whether --with-regex or --without-regex was given.
    6581 if test "${with_regex+set}" = set; then
    6582   withval="$with_regex"
    6583   if test "$withval" = yes; then
    6584   ac_with_regex=1
    6585   echo "$as_me:$LINENO: result: regex" >&5
    6586 echo "${ECHO_T}regex" >&6
    6587   cat >>confdefs.h <<\_ACEOF
    6588 #define WITH_REGEX 1
    6589 _ACEOF
    6590 
    6591   case $LIBOBJS in
    6592     "regex.$ac_objext"   | \
    6593   *" regex.$ac_objext"   | \
    6594     "regex.$ac_objext "* | \
    6595   *" regex.$ac_objext "* ) ;;
    6596   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
    6597 esac
    6598 
    6599 fi
    6600 fi;
    6601 if test -z "$ac_with_regex"; then
    6602   echo "$as_me:$LINENO: result: rx" >&5
    6603 echo "${ECHO_T}rx" >&6
    6604   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6605 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6606 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6607   echo $ECHO_N "(cached) $ECHO_C" >&6
    6608 else
    6609   cat >conftest.$ac_ext <<_ACEOF
    6610 /* confdefs.h.  */
    6611 _ACEOF
    6612 cat confdefs.h >>conftest.$ac_ext
    6613 cat >>conftest.$ac_ext <<_ACEOF
    6614 /* end confdefs.h.  */
    6615 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6617 #define re_rx_search innocuous_re_rx_search
    6618 
    6619 /* System header to define __stub macros and hopefully few prototypes,
    6620     which can conflict with char re_rx_search (); below.
    6621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6622     <limits.h> exists even on freestanding compilers.  */
    6623 
    6624 #ifdef __STDC__
    6625 # include <limits.h>
    6626 #else
    6627 # include <assert.h>
    6628 #endif
    6629 
    6630 #undef re_rx_search
    6631 
    6632 /* Override any gcc2 internal prototype to avoid an error.  */
    6633 #ifdef __cplusplus
    6634 extern "C"
    6635 {
    6636 #endif
    6637 /* We use char because int might match the return type of a gcc2
    6638    builtin and then its argument prototype would still apply.  */
    6639 char re_rx_search ();
    6640 /* The GNU C library defines this for functions which it implements
    6641     to always fail with ENOSYS.  Some functions are actually named
    6642     something starting with __ and the normal name is an alias.  */
    6643 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6644 choke me
    6645 #else
    6646 char (*f) () = re_rx_search;
    6647 #endif
    6648 #ifdef __cplusplus
    6649 }
    6650 #endif
    6651 
    6652 int
    6653 main ()
    6654 {
    6655 return f != re_rx_search;
    6656   ;
    6657   return 0;
    6658 }
    6659 _ACEOF
    6660 rm -f conftest.$ac_objext conftest$ac_exeext
    6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6662   (eval $ac_link) 2>conftest.er1
    6663   ac_status=$?
    6664   grep -v '^ *+' conftest.er1 >conftest.err
    6665   rm -f conftest.er1
    6666   cat conftest.err >&5
    6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6668   (exit $ac_status); } &&
    6669      { ac_try='test -z "$ac_c_werror_flag"
    6670              || test ! -s conftest.err'
    6671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6672   (eval $ac_try) 2>&5
    6673   ac_status=$?
    6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6675   (exit $ac_status); }; } &&
    6676      { ac_try='test -s conftest$ac_exeext'
    6677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6678   (eval $ac_try) 2>&5
    6679   ac_status=$?
    6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6681   (exit $ac_status); }; }; then
    6682   ac_cv_func_re_rx_search=yes
    6683 else
    6684   echo "$as_me: failed program was:" >&5
    6685 sed 's/^/| /' conftest.$ac_ext >&5
    6686 
    6687 ac_cv_func_re_rx_search=no
    6688 fi
    6689 rm -f conftest.err conftest.$ac_objext \
    6690       conftest$ac_exeext conftest.$ac_ext
    6691 fi
    6692 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6693 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6694 if test $ac_cv_func_re_rx_search = yes; then
    6695   :
    6696 else
    6697   echo "$as_me:$LINENO: checking for unsigned char *" >&5
    6698 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
    6699 if test "${ac_cv_type_unsigned_char_p+set}" = set; then
    6700   echo $ECHO_N "(cached) $ECHO_C" >&6
    6701 else
    6702   cat >conftest.$ac_ext <<_ACEOF
    6703 /* confdefs.h.  */
    6704 _ACEOF
    6705 cat confdefs.h >>conftest.$ac_ext
    6706 cat >>conftest.$ac_ext <<_ACEOF
    6707 /* end confdefs.h.  */
    6708 $ac_includes_default
    6709 int
    6710 main ()
    6711 {
    6712 if ((unsigned char * *) 0)
    6713   return 0;
    6714 if (sizeof (unsigned char *))
    6715   return 0;
    6716   ;
    6717   return 0;
    6718 }
    6719 _ACEOF
    6720 rm -f conftest.$ac_objext
    6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6722   (eval $ac_compile) 2>conftest.er1
    6723   ac_status=$?
    6724   grep -v '^ *+' conftest.er1 >conftest.err
    6725   rm -f conftest.er1
    6726   cat conftest.err >&5
    6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6728   (exit $ac_status); } &&
    6729      { ac_try='test -z "$ac_c_werror_flag"
    6730              || test ! -s conftest.err'
    6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6732   (eval $ac_try) 2>&5
    6733   ac_status=$?
    6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6735   (exit $ac_status); }; } &&
    6736      { ac_try='test -s conftest.$ac_objext'
    6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6738   (eval $ac_try) 2>&5
    6739   ac_status=$?
    6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6741   (exit $ac_status); }; }; then
    6742   ac_cv_type_unsigned_char_p=yes
    6743 else
    6744   echo "$as_me: failed program was:" >&5
    6745 sed 's/^/| /' conftest.$ac_ext >&5
    6746 
    6747 ac_cv_type_unsigned_char_p=no
    6748 fi
    6749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6750 fi
    6751 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
    6752 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
    6753 
    6754 echo "$as_me:$LINENO: checking size of unsigned char *" >&5
    6755 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
    6756 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
    6757   echo $ECHO_N "(cached) $ECHO_C" >&6
    6758 else
    6759   if test "$ac_cv_type_unsigned_char_p" = yes; then
    6760   # The cast to unsigned long works around a bug in the HP C Compiler
    6761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    6762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    6763   # This bug is HP SR number 8606223364.
    6764   if test "$cross_compiling" = yes; then
    6765   # Depending upon the size, compute the lo and hi bounds.
    6766 cat >conftest.$ac_ext <<_ACEOF
    6767 /* confdefs.h.  */
    6768 _ACEOF
    6769 cat confdefs.h >>conftest.$ac_ext
    6770 cat >>conftest.$ac_ext <<_ACEOF
    6771 /* end confdefs.h.  */
    6772 $ac_includes_default
    6773 int
    6774 main ()
    6775 {
    6776 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
    6777 test_array [0] = 0
    6778 
    6779   ;
    6780   return 0;
    6781 }
    6782 _ACEOF
    6783 rm -f conftest.$ac_objext
    6784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6785   (eval $ac_compile) 2>conftest.er1
    6786   ac_status=$?
    6787   grep -v '^ *+' conftest.er1 >conftest.err
    6788   rm -f conftest.er1
    6789   cat conftest.err >&5
    6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6791   (exit $ac_status); } &&
    6792      { ac_try='test -z "$ac_c_werror_flag"
    6793              || test ! -s conftest.err'
    6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6795   (eval $ac_try) 2>&5
    6796   ac_status=$?
    6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6798   (exit $ac_status); }; } &&
    6799      { ac_try='test -s conftest.$ac_objext'
    6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6801   (eval $ac_try) 2>&5
    6802   ac_status=$?
    6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6804   (exit $ac_status); }; }; then
    6805   ac_lo=0 ac_mid=0
    6806   while :; do
    6807     cat >conftest.$ac_ext <<_ACEOF
    6808 /* confdefs.h.  */
    6809 _ACEOF
    6810 cat confdefs.h >>conftest.$ac_ext
    6811 cat >>conftest.$ac_ext <<_ACEOF
    6812 /* end confdefs.h.  */
    6813 $ac_includes_default
    6814 int
    6815 main ()
    6816 {
    6817 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
    6818 test_array [0] = 0
    6819 
    6820   ;
    6821   return 0;
    6822 }
    6823 _ACEOF
    6824 rm -f conftest.$ac_objext
    6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6826   (eval $ac_compile) 2>conftest.er1
    6827   ac_status=$?
    6828   grep -v '^ *+' conftest.er1 >conftest.err
    6829   rm -f conftest.er1
    6830   cat conftest.err >&5
    6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6832   (exit $ac_status); } &&
    6833      { ac_try='test -z "$ac_c_werror_flag"
    6834              || test ! -s conftest.err'
    6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6836   (eval $ac_try) 2>&5
    6837   ac_status=$?
    6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6839   (exit $ac_status); }; } &&
    6840      { ac_try='test -s conftest.$ac_objext'
    6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6842   (eval $ac_try) 2>&5
    6843   ac_status=$?
    6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6845   (exit $ac_status); }; }; then
    6846   ac_hi=$ac_mid; break
    6847 else
    6848   echo "$as_me: failed program was:" >&5
    6849 sed 's/^/| /' conftest.$ac_ext >&5
    6850 
    6851 ac_lo=`expr $ac_mid + 1`
    6852             if test $ac_lo -le $ac_mid; then
    6853               ac_lo= ac_hi=
    6854               break
    6855             fi
    6856             ac_mid=`expr 2 '*' $ac_mid + 1`
    6857 fi
    6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6859   done
    6860 else
    6861   echo "$as_me: failed program was:" >&5
    6862 sed 's/^/| /' conftest.$ac_ext >&5
    6863 
    6864 cat >conftest.$ac_ext <<_ACEOF
    6865 /* confdefs.h.  */
    6866 _ACEOF
    6867 cat confdefs.h >>conftest.$ac_ext
    6868 cat >>conftest.$ac_ext <<_ACEOF
    6869 /* end confdefs.h.  */
    6870 $ac_includes_default
    6871 int
    6872 main ()
    6873 {
    6874 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
    6875 test_array [0] = 0
    6876 
    6877   ;
    6878   return 0;
    6879 }
    6880 _ACEOF
    6881 rm -f conftest.$ac_objext
    6882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6883   (eval $ac_compile) 2>conftest.er1
    6884   ac_status=$?
    6885   grep -v '^ *+' conftest.er1 >conftest.err
    6886   rm -f conftest.er1
    6887   cat conftest.err >&5
    6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6889   (exit $ac_status); } &&
    6890      { ac_try='test -z "$ac_c_werror_flag"
    6891              || test ! -s conftest.err'
    6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6893   (eval $ac_try) 2>&5
    6894   ac_status=$?
    6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6896   (exit $ac_status); }; } &&
    6897      { ac_try='test -s conftest.$ac_objext'
    6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6899   (eval $ac_try) 2>&5
    6900   ac_status=$?
    6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6902   (exit $ac_status); }; }; then
    6903   ac_hi=-1 ac_mid=-1
    6904   while :; do
    6905     cat >conftest.$ac_ext <<_ACEOF
    6906 /* confdefs.h.  */
    6907 _ACEOF
    6908 cat confdefs.h >>conftest.$ac_ext
    6909 cat >>conftest.$ac_ext <<_ACEOF
    6910 /* end confdefs.h.  */
    6911 $ac_includes_default
    6912 int
    6913 main ()
    6914 {
    6915 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
    6916 test_array [0] = 0
    6917 
    6918   ;
    6919   return 0;
    6920 }
    6921 _ACEOF
    6922 rm -f conftest.$ac_objext
    6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6924   (eval $ac_compile) 2>conftest.er1
    6925   ac_status=$?
    6926   grep -v '^ *+' conftest.er1 >conftest.err
    6927   rm -f conftest.er1
    6928   cat conftest.err >&5
    6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6930   (exit $ac_status); } &&
    6931      { ac_try='test -z "$ac_c_werror_flag"
    6932              || test ! -s conftest.err'
    6933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6934   (eval $ac_try) 2>&5
    6935   ac_status=$?
    6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6937   (exit $ac_status); }; } &&
    6938      { ac_try='test -s conftest.$ac_objext'
    6939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6940   (eval $ac_try) 2>&5
    6941   ac_status=$?
    6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6943   (exit $ac_status); }; }; then
    6944   ac_lo=$ac_mid; break
    6945 else
    6946   echo "$as_me: failed program was:" >&5
    6947 sed 's/^/| /' conftest.$ac_ext >&5
    6948 
    6949 ac_hi=`expr '(' $ac_mid ')' - 1`
    6950                if test $ac_mid -le $ac_hi; then
    6951              ac_lo= ac_hi=
    6952              break
    6953                fi
    6954                ac_mid=`expr 2 '*' $ac_mid`
    6955 fi
    6956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6957   done
    6958 else
    6959   echo "$as_me: failed program was:" >&5
    6960 sed 's/^/| /' conftest.$ac_ext >&5
    6961 
    6962 ac_lo= ac_hi=
    6963 fi
    6964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6965 fi
    6966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6967 # Binary search between lo and hi bounds.
    6968 while test "x$ac_lo" != "x$ac_hi"; do
    6969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    6970   cat >conftest.$ac_ext <<_ACEOF
    6971 /* confdefs.h.  */
    6972 _ACEOF
    6973 cat confdefs.h >>conftest.$ac_ext
    6974 cat >>conftest.$ac_ext <<_ACEOF
    6975 /* end confdefs.h.  */
    6976 $ac_includes_default
    6977 int
    6978 main ()
    6979 {
    6980 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
    6981 test_array [0] = 0
    6982 
    6983   ;
    6984   return 0;
    6985 }
    6986 _ACEOF
    6987 rm -f conftest.$ac_objext
    6988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6989   (eval $ac_compile) 2>conftest.er1
    6990   ac_status=$?
    6991   grep -v '^ *+' conftest.er1 >conftest.err
    6992   rm -f conftest.er1
    6993   cat conftest.err >&5
    6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6995   (exit $ac_status); } &&
    6996      { ac_try='test -z "$ac_c_werror_flag"
    6997              || test ! -s conftest.err'
    6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6999   (eval $ac_try) 2>&5
    7000   ac_status=$?
    7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7002   (exit $ac_status); }; } &&
    7003      { ac_try='test -s conftest.$ac_objext'
    7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7005   (eval $ac_try) 2>&5
    7006   ac_status=$?
    7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7008   (exit $ac_status); }; }; then
    7009   ac_hi=$ac_mid
    7010 else
    7011   echo "$as_me: failed program was:" >&5
    7012 sed 's/^/| /' conftest.$ac_ext >&5
    7013 
    7014 ac_lo=`expr '(' $ac_mid ')' + 1`
    7015 fi
    7016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7017 done
    7018 case $ac_lo in
    7019 ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
    7020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
    7021 See \`config.log' for more details." >&5
    7022 echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
    7023 See \`config.log' for more details." >&2;}
    7024    { (exit 1); exit 1; }; } ;;
    7025 esac
    7026 else
    7027   if test "$cross_compiling" = yes; then
    7028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    7029 See \`config.log' for more details." >&5
    7030 echo "$as_me: error: cannot run test program while cross compiling
    7031 See \`config.log' for more details." >&2;}
    7032    { (exit 1); exit 1; }; }
    7033 else
    7034   cat >conftest.$ac_ext <<_ACEOF
    7035 /* confdefs.h.  */
    7036 _ACEOF
    7037 cat confdefs.h >>conftest.$ac_ext
    7038 cat >>conftest.$ac_ext <<_ACEOF
    7039 /* end confdefs.h.  */
    7040 $ac_includes_default
    7041 long longval () { return (long) (sizeof (unsigned char *)); }
    7042 unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
    7043 #include <stdio.h>
    7044 #include <stdlib.h>
    7045 int
    7046 main ()
    7047 {
    7048 
    7049   FILE *f = fopen ("conftest.val", "w");
    7050   if (! f)
    7051     exit (1);
    7052   if (((long) (sizeof (unsigned char *))) < 0)
    7053     {
    7054       long i = longval ();
    7055       if (i != ((long) (sizeof (unsigned char *))))
    7056     exit (1);
    7057       fprintf (f, "%ld\n", i);
    7058     }
    7059   else
    7060     {
    7061       unsigned long i = ulongval ();
    7062       if (i != ((long) (sizeof (unsigned char *))))
    7063     exit (1);
    7064       fprintf (f, "%lu\n", i);
    7065     }
    7066   exit (ferror (f) || fclose (f) != 0);
    7067 
    7068   ;
    7069   return 0;
    7070 }
    7071 _ACEOF
    7072 rm -f conftest$ac_exeext
    7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7074   (eval $ac_link) 2>&5
    7075   ac_status=$?
    7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7079   (eval $ac_try) 2>&5
    7080   ac_status=$?
    7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7082   (exit $ac_status); }; }; then
    7083   ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
    7084 else
    7085   echo "$as_me: program exited with status $ac_status" >&5
    7086 echo "$as_me: failed program was:" >&5
    7087 sed 's/^/| /' conftest.$ac_ext >&5
    7088 
    7089 ( exit $ac_status )
    7090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
    7091 See \`config.log' for more details." >&5
    7092 echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
    7093 See \`config.log' for more details." >&2;}
    7094    { (exit 1); exit 1; }; }
    7095 fi
    7096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7097 fi
    7098 fi
    7099 rm -f conftest.val
    7100 else
    7101   ac_cv_sizeof_unsigned_char_p=0
    7102 fi
    7103 fi
    7104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
    7105 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
    7106 cat >>confdefs.h <<_ACEOF
    7107 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
    7108 _ACEOF
    7109 
    7110 
    7111     if test "$ac_cv_sizeof_unsigned_char_p" = 8
    7112     then
    7113       { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
    7114         find a local rx library and the one included with this
    7115         distribution doesn't work on 64-bit machines like yours" >&5
    7116 echo "$as_me: WARNING: I'm forcing you to use regex because I can't
    7117         find a local rx library and the one included with this
    7118         distribution doesn't work on 64-bit machines like yours" >&2;}
    7119       case $LIBOBJS in
    7120     "regex.$ac_objext"   | \
    7121   *" regex.$ac_objext"   | \
    7122     "regex.$ac_objext "* | \
    7123   *" regex.$ac_objext "* ) ;;
    7124   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
    7125 esac
    7126 
    7127     else
    7128       case $LIBOBJS in
    7129     "rx.$ac_objext"   | \
    7130   *" rx.$ac_objext"   | \
    7131     "rx.$ac_objext "* | \
    7132   *" rx.$ac_objext "* ) ;;
    7133   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
    7134 esac
    7135 
    7136     fi
    7137 
    7138 fi
    7139 
    7140 fi
    7141 
    7142 echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
    7143 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
    7144 
    7145 # Check whether --with-gnu_readline or --without-gnu_readline was given.
    7146 if test "${with_gnu_readline+set}" = set; then
    7147   withval="$with_gnu_readline"
    7148   if test "$withval" = yes; then
    7149       echo "$as_me:$LINENO: result: yes" >&5
    7150 echo "${ECHO_T}yes" >&6
    7151       ac_with_gnu_readline=1
    7152     else
    7153       echo "$as_me:$LINENO: result: no" >&5
    7154 echo "${ECHO_T}no" >&6
    7155     fi
    7156 else
    7157   echo "$as_me:$LINENO: result: no" >&5
    7158 echo "${ECHO_T}no" >&6
    7159 fi;
    7160 
    7161   if test -n "$ac_with_gnu_readline"; then
    7162     if test "${ac_cv_header_readline_readline_h+set}" = set; then
    7163   echo "$as_me:$LINENO: checking for readline/readline.h" >&5
    7164 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
    7165 if test "${ac_cv_header_readline_readline_h+set}" = set; then
    7166   echo $ECHO_N "(cached) $ECHO_C" >&6
    7167 fi
    7168 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
    7169 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
    7170 else
    7171   # Is the header compilable?
    7172 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
    7173 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
    7174 cat >conftest.$ac_ext <<_ACEOF
    7175 /* confdefs.h.  */
    7176 _ACEOF
    7177 cat confdefs.h >>conftest.$ac_ext
    7178 cat >>conftest.$ac_ext <<_ACEOF
    7179 /* end confdefs.h.  */
    7180 $ac_includes_default
    7181 #include <readline/readline.h>
    7182 _ACEOF
    7183 rm -f conftest.$ac_objext
    7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7185   (eval $ac_compile) 2>conftest.er1
    7186   ac_status=$?
    7187   grep -v '^ *+' conftest.er1 >conftest.err
    7188   rm -f conftest.er1
    7189   cat conftest.err >&5
    7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7191   (exit $ac_status); } &&
    7192      { ac_try='test -z "$ac_c_werror_flag"
    7193              || test ! -s conftest.err'
    7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7195   (eval $ac_try) 2>&5
    7196   ac_status=$?
    7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7198   (exit $ac_status); }; } &&
    7199      { ac_try='test -s conftest.$ac_objext'
    7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7201   (eval $ac_try) 2>&5
    7202   ac_status=$?
    7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7204   (exit $ac_status); }; }; then
    7205   ac_header_compiler=yes
    7206 else
    7207   echo "$as_me: failed program was:" >&5
    7208 sed 's/^/| /' conftest.$ac_ext >&5
    7209 
    7210 ac_header_compiler=no
    7211 fi
    7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    7214 echo "${ECHO_T}$ac_header_compiler" >&6
    7215 
    7216 # Is the header present?
    7217 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
    7218 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
    7219 cat >conftest.$ac_ext <<_ACEOF
    7220 /* confdefs.h.  */
    7221 _ACEOF
    7222 cat confdefs.h >>conftest.$ac_ext
    7223 cat >>conftest.$ac_ext <<_ACEOF
    7224 /* end confdefs.h.  */
    7225 #include <readline/readline.h>
    7226 _ACEOF
    7227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    7228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    7229   ac_status=$?
    7230   grep -v '^ *+' conftest.er1 >conftest.err
    7231   rm -f conftest.er1
    7232   cat conftest.err >&5
    7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7234   (exit $ac_status); } >/dev/null; then
    7235   if test -s conftest.err; then
    7236     ac_cpp_err=$ac_c_preproc_warn_flag
    7237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    7238   else
    7239     ac_cpp_err=
    7240   fi
    7241 else
    7242   ac_cpp_err=yes
    7243 fi
    7244 if test -z "$ac_cpp_err"; then
    7245   ac_header_preproc=yes
    7246 else
    7247   echo "$as_me: failed program was:" >&5
    7248 sed 's/^/| /' conftest.$ac_ext >&5
    7249 
    7250   ac_header_preproc=no
    7251 fi
    7252 rm -f conftest.err conftest.$ac_ext
    7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    7254 echo "${ECHO_T}$ac_header_preproc" >&6
    7255 
    7256 # So?  What about this header?
    7257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    7258   yes:no: )
    7259     { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
    7260 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    7261     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
    7262 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
    7263     ac_header_preproc=yes
    7264     ;;
    7265   no:yes:* )
    7266     { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
    7267 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
    7268     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&5
    7269 echo "$as_me: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&2;}
    7270     { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
    7271 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
    7272     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
    7273 echo "$as_me: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    7274     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
    7275 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
    7276     { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
    7277 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
    7278     (
    7279       cat <<\_ASBOX
    7280 ## ------------------------------------------ ##
    7281 ## Report this to the AC_PACKAGE_NAME lists.  ##
    7282 ## ------------------------------------------ ##
    7283 _ASBOX
    7284     ) |
    7285       sed "s/^/$as_me: WARNING:     /" >&2
    7286     ;;
    7287 esac
    7288 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
    7289 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
    7290 if test "${ac_cv_header_readline_readline_h+set}" = set; then
    7291   echo $ECHO_N "(cached) $ECHO_C" >&6
    7292 else
    7293   ac_cv_header_readline_readline_h=$ac_header_preproc
    7294 fi
    7295 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
    7296 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
    7297 
    7298 fi
    7299 if test $ac_cv_header_readline_readline_h = yes; then
    7300   ac_mg_readline_header_found=1
    7301 else
    7302   { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
     6327if ac_fn_c_try_link "$LINENO"; then :
     6328  ac_cv_lib_readline_main=yes
     6329else
     6330  ac_cv_lib_readline_main=no
     6331fi
     6332rm -f core conftest.err conftest.$ac_objext \
     6333    conftest$ac_exeext conftest.$ac_ext
     6334LIBS=$ac_check_lib_save_LIBS
     6335fi
     6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
     6337$as_echo "$ac_cv_lib_readline_main" >&6; }
     6338if test "x$ac_cv_lib_readline_main" = x""yes; then :
     6339  ac_mg_readline_lib_found=1
     6340         $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
     6341
     6342         LIBS="$LIBS -lreadline"
     6343else
     6344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
    73036345GNU readline support" >&5
    7304 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
    7305 GNU readline support" >&2;}
    7306 fi
    7307 
    7308 
    7309     if test -n "$ac_mg_readline_header_found"; then
    7310       # first check whether we can find the readline library itself
    7311       echo "$as_me:$LINENO: checking for main in -lreadline" >&5
    7312 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
    7313 if test "${ac_cv_lib_readline_main+set}" = set; then
    7314   echo $ECHO_N "(cached) $ECHO_C" >&6
    7315 else
    7316   ac_check_lib_save_LIBS=$LIBS
    7317 LIBS="-lreadline  $LIBS"
    7318 cat >conftest.$ac_ext <<_ACEOF
    7319 /* confdefs.h.  */
    7320 _ACEOF
    7321 cat confdefs.h >>conftest.$ac_ext
    7322 cat >>conftest.$ac_ext <<_ACEOF
    7323 /* end confdefs.h.  */
    7324 
    7325 
    7326 int
    7327 main ()
    7328 {
    7329 main ();
    7330   ;
    7331   return 0;
    7332 }
    7333 _ACEOF
    7334 rm -f conftest.$ac_objext conftest$ac_exeext
    7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7336   (eval $ac_link) 2>conftest.er1
    7337   ac_status=$?
    7338   grep -v '^ *+' conftest.er1 >conftest.err
    7339   rm -f conftest.er1
    7340   cat conftest.err >&5
    7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7342   (exit $ac_status); } &&
    7343      { ac_try='test -z "$ac_c_werror_flag"
    7344              || test ! -s conftest.err'
    7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7346   (eval $ac_try) 2>&5
    7347   ac_status=$?
    7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7349   (exit $ac_status); }; } &&
    7350      { ac_try='test -s conftest$ac_exeext'
    7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7352   (eval $ac_try) 2>&5
    7353   ac_status=$?
    7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7355   (exit $ac_status); }; }; then
    7356   ac_cv_lib_readline_main=yes
    7357 else
    7358   echo "$as_me: failed program was:" >&5
    7359 sed 's/^/| /' conftest.$ac_ext >&5
    7360 
    7361 ac_cv_lib_readline_main=no
    7362 fi
    7363 rm -f conftest.err conftest.$ac_objext \
    7364       conftest$ac_exeext conftest.$ac_ext
    7365 LIBS=$ac_check_lib_save_LIBS
    7366 fi
    7367 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
    7368 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
    7369 if test $ac_cv_lib_readline_main = yes; then
    7370   ac_mg_readline_lib_found=1
    7371          cat >>confdefs.h <<\_ACEOF
    7372 #define WITH_GNU_READLINE 1
    7373 _ACEOF
    7374 
    7375          LIBS="$LIBS -lreadline"
    7376 else
    7377   { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
    7378 GNU readline support" >&5
    7379 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
     6346$as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
    73806347GNU readline support" >&2;}
    73816348fi
     
    73886355    #  by mg itself (e.g. xmalloc, xrealloc).  So, if we find libcurses,
    73896356    #  we just bung it on and hope for the best.
    7390     echo "$as_me:$LINENO: checking for main in -lcurses" >&5
    7391 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
    7392 if test "${ac_cv_lib_curses_main+set}" = set; then
    7393   echo $ECHO_N "(cached) $ECHO_C" >&6
     6357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
     6358$as_echo_n "checking for main in -lcurses... " >&6; }
     6359if test "${ac_cv_lib_curses_main+set}" = set; then :
     6360  $as_echo_n "(cached) " >&6
    73946361else
    73956362  ac_check_lib_save_LIBS=$LIBS
    73966363LIBS="-lcurses  $LIBS"
    7397 cat >conftest.$ac_ext <<_ACEOF
    7398 /* confdefs.h.  */
    7399 _ACEOF
    7400 cat confdefs.h >>conftest.$ac_ext
    7401 cat >>conftest.$ac_ext <<_ACEOF
     6364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    74026365/* end confdefs.h.  */
    74036366
     
    74066369main ()
    74076370{
    7408 main ();
     6371return main ();
    74096372  ;
    74106373  return 0;
    74116374}
    74126375_ACEOF
    7413 rm -f conftest.$ac_objext conftest$ac_exeext
    7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7415   (eval $ac_link) 2>conftest.er1
    7416   ac_status=$?
    7417   grep -v '^ *+' conftest.er1 >conftest.err
    7418   rm -f conftest.er1
    7419   cat conftest.err >&5
    7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7421   (exit $ac_status); } &&
    7422      { ac_try='test -z "$ac_c_werror_flag"
    7423              || test ! -s conftest.err'
    7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7425   (eval $ac_try) 2>&5
    7426   ac_status=$?
    7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7428   (exit $ac_status); }; } &&
    7429      { ac_try='test -s conftest$ac_exeext'
    7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7431   (eval $ac_try) 2>&5
    7432   ac_status=$?
    7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7434   (exit $ac_status); }; }; then
     6376if ac_fn_c_try_link "$LINENO"; then :
    74356377  ac_cv_lib_curses_main=yes
    74366378else
    7437   echo "$as_me: failed program was:" >&5
    7438 sed 's/^/| /' conftest.$ac_ext >&5
    7439 
    7440 ac_cv_lib_curses_main=no
    7441 fi
    7442 rm -f conftest.err conftest.$ac_objext \
    7443       conftest$ac_exeext conftest.$ac_ext
     6379  ac_cv_lib_curses_main=no
     6380fi
     6381rm -f core conftest.err conftest.$ac_objext \
     6382    conftest$ac_exeext conftest.$ac_ext
    74446383LIBS=$ac_check_lib_save_LIBS
    74456384fi
    7446 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
    7447 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
    7448 if test $ac_cv_lib_curses_main = yes; then
     6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
     6386$as_echo "$ac_cv_lib_curses_main" >&6; }
     6387if test "x$ac_cv_lib_curses_main" = x""yes; then :
    74496388  LIBS="$LIBS -lcurses"
    74506389fi
     
    74566395
    74576396# text for endianness
    7458 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    7459 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    7460 if test "${ac_cv_c_bigendian+set}" = set; then
    7461   echo $ECHO_N "(cached) $ECHO_C" >&6
    7462 else
    7463   # See if sys/param.h defines the BYTE_ORDER macro.
    7464 cat >conftest.$ac_ext <<_ACEOF
    7465 /* confdefs.h.  */
    7466 _ACEOF
    7467 cat confdefs.h >>conftest.$ac_ext
    7468 cat >>conftest.$ac_ext <<_ACEOF
     6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6398$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6399if test "${ac_cv_c_bigendian+set}" = set; then :
     6400  $as_echo_n "(cached) " >&6
     6401else
     6402  ac_cv_c_bigendian=unknown
     6403    # See if we're dealing with a universal compiler.
     6404    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6405/* end confdefs.h.  */
     6406#ifndef __APPLE_CC__
     6407           not a universal capable compiler
     6408         #endif
     6409         typedef int dummy;
     6410
     6411_ACEOF
     6412if ac_fn_c_try_compile "$LINENO"; then :
     6413
     6414    # Check for potential -arch flags.  It is not universal unless
     6415    # there are at least two -arch flags with different values.
     6416    ac_arch=
     6417    ac_prev=
     6418    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     6419     if test -n "$ac_prev"; then
     6420       case $ac_word in
     6421         i?86 | x86_64 | ppc | ppc64)
     6422           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     6423         ac_arch=$ac_word
     6424           else
     6425         ac_cv_c_bigendian=universal
     6426         break
     6427           fi
     6428           ;;
     6429       esac
     6430       ac_prev=
     6431     elif test "x$ac_word" = "x-arch"; then
     6432       ac_prev=arch
     6433     fi
     6434       done
     6435fi
     6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6437    if test $ac_cv_c_bigendian = unknown; then
     6438      # See if sys/param.h defines the BYTE_ORDER macro.
     6439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    74696440/* end confdefs.h.  */
    74706441#include <sys/types.h>
    7471 #include <sys/param.h>
     6442         #include <sys/param.h>
    74726443
    74736444int
    74746445main ()
    74756446{
    7476 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    7477  bogus endian macros
    7478 #endif
     6447#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     6448             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     6449             && LITTLE_ENDIAN)
     6450          bogus endian macros
     6451         #endif
    74796452
    74806453  ;
     
    74826455}
    74836456_ACEOF
    7484 rm -f conftest.$ac_objext
    7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7486   (eval $ac_compile) 2>conftest.er1
    7487   ac_status=$?
    7488   grep -v '^ *+' conftest.er1 >conftest.err
    7489   rm -f conftest.er1
    7490   cat conftest.err >&5
    7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7492   (exit $ac_status); } &&
    7493      { ac_try='test -z "$ac_c_werror_flag"
    7494              || test ! -s conftest.err'
    7495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7496   (eval $ac_try) 2>&5
    7497   ac_status=$?
    7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7499   (exit $ac_status); }; } &&
    7500      { ac_try='test -s conftest.$ac_objext'
    7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7502   (eval $ac_try) 2>&5
    7503   ac_status=$?
    7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7505   (exit $ac_status); }; }; then
     6457if ac_fn_c_try_compile "$LINENO"; then :
    75066458  # It does; now see whether it defined to BIG_ENDIAN or not.
    7507 cat >conftest.$ac_ext <<_ACEOF
    7508 /* confdefs.h.  */
    7509 _ACEOF
    7510 cat confdefs.h >>conftest.$ac_ext
    7511 cat >>conftest.$ac_ext <<_ACEOF
     6459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    75126460/* end confdefs.h.  */
    75136461#include <sys/types.h>
    7514 #include <sys/param.h>
     6462        #include <sys/param.h>
    75156463
    75166464int
     
    75186466{
    75196467#if BYTE_ORDER != BIG_ENDIAN
    7520  not big endian
    7521 #endif
     6468        not big endian
     6469        #endif
    75226470
    75236471  ;
     
    75256473}
    75266474_ACEOF
    7527 rm -f conftest.$ac_objext
    7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7529   (eval $ac_compile) 2>conftest.er1
    7530   ac_status=$?
    7531   grep -v '^ *+' conftest.er1 >conftest.err
    7532   rm -f conftest.er1
    7533   cat conftest.err >&5
    7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7535   (exit $ac_status); } &&
    7536      { ac_try='test -z "$ac_c_werror_flag"
    7537              || test ! -s conftest.err'
    7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7539   (eval $ac_try) 2>&5
    7540   ac_status=$?
    7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7542   (exit $ac_status); }; } &&
    7543      { ac_try='test -s conftest.$ac_objext'
    7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7545   (eval $ac_try) 2>&5
    7546   ac_status=$?
    7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7548   (exit $ac_status); }; }; then
     6475if ac_fn_c_try_compile "$LINENO"; then :
    75496476  ac_cv_c_bigendian=yes
    75506477else
    7551   echo "$as_me: failed program was:" >&5
    7552 sed 's/^/| /' conftest.$ac_ext >&5
    7553 
    7554 ac_cv_c_bigendian=no
    7555 fi
    7556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7557 else
    7558   echo "$as_me: failed program was:" >&5
    7559 sed 's/^/| /' conftest.$ac_ext >&5
    7560 
    7561 # It does not; compile a test program.
    7562 if test "$cross_compiling" = yes; then
    7563   # try to guess the endianness by grepping values into an object file
    7564   ac_cv_c_bigendian=unknown
    7565   cat >conftest.$ac_ext <<_ACEOF
    7566 /* confdefs.h.  */
    7567 _ACEOF
    7568 cat confdefs.h >>conftest.$ac_ext
    7569 cat >>conftest.$ac_ext <<_ACEOF
     6478  ac_cv_c_bigendian=no
     6479fi
     6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6481fi
     6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6483    fi
     6484    if test $ac_cv_c_bigendian = unknown; then
     6485      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     6486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    75706487/* end confdefs.h.  */
    7571 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    7572 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    7573 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    7574 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    7575 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    7576 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6488#include <limits.h>
     6489
    75776490int
    75786491main ()
    75796492{
    7580  _ascii (); _ebcdic ();
     6493#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     6494          bogus endian macros
     6495         #endif
     6496
    75816497  ;
    75826498  return 0;
    75836499}
    75846500_ACEOF
    7585 rm -f conftest.$ac_objext
    7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7587   (eval $ac_compile) 2>conftest.er1
    7588   ac_status=$?
    7589   grep -v '^ *+' conftest.er1 >conftest.err
    7590   rm -f conftest.er1
    7591   cat conftest.err >&5
    7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7593   (exit $ac_status); } &&
    7594      { ac_try='test -z "$ac_c_werror_flag"
    7595              || test ! -s conftest.err'
    7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7597   (eval $ac_try) 2>&5
    7598   ac_status=$?
    7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7600   (exit $ac_status); }; } &&
    7601      { ac_try='test -s conftest.$ac_objext'
    7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7603   (eval $ac_try) 2>&5
    7604   ac_status=$?
    7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7606   (exit $ac_status); }; }; then
    7607   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    7608   ac_cv_c_bigendian=yes
    7609 fi
    7610 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    7611   if test "$ac_cv_c_bigendian" = unknown; then
    7612     ac_cv_c_bigendian=no
    7613   else
    7614     # finding both strings is unlikely to happen, but who knows?
    7615     ac_cv_c_bigendian=unknown
    7616   fi
    7617 fi
    7618 else
    7619   echo "$as_me: failed program was:" >&5
    7620 sed 's/^/| /' conftest.$ac_ext >&5
    7621 
    7622 fi
    7623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7624 else
    7625   cat >conftest.$ac_ext <<_ACEOF
    7626 /* confdefs.h.  */
    7627 _ACEOF
    7628 cat confdefs.h >>conftest.$ac_ext
    7629 cat >>conftest.$ac_ext <<_ACEOF
     6501if ac_fn_c_try_compile "$LINENO"; then :
     6502  # It does; now see whether it defined to _BIG_ENDIAN or not.
     6503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    76306504/* end confdefs.h.  */
     6505#include <limits.h>
     6506
    76316507int
    76326508main ()
    76336509{
    7634   /* Are we little or big endian?  From Harbison&Steele.  */
    7635   union
    7636   {
    7637     long l;
    7638     char c[sizeof (long)];
    7639   } u;
    7640   u.l = 1;
    7641   exit (u.c[sizeof (long) - 1] == 1);
     6510#ifndef _BIG_ENDIAN
     6511         not big endian
     6512        #endif
     6513
     6514  ;
     6515  return 0;
    76426516}
    76436517_ACEOF
    7644 rm -f conftest$ac_exeext
    7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7646   (eval $ac_link) 2>&5
    7647   ac_status=$?
    7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7651   (eval $ac_try) 2>&5
    7652   ac_status=$?
    7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7654   (exit $ac_status); }; }; then
     6518if ac_fn_c_try_compile "$LINENO"; then :
     6519  ac_cv_c_bigendian=yes
     6520else
    76556521  ac_cv_c_bigendian=no
    7656 else
    7657   echo "$as_me: program exited with status $ac_status" >&5
    7658 echo "$as_me: failed program was:" >&5
    7659 sed 's/^/| /' conftest.$ac_ext >&5
    7660 
    7661 ( exit $ac_status )
    7662 ac_cv_c_bigendian=yes
    7663 fi
    7664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7665 fi
    7666 fi
    7667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7668 fi
    7669 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    7670 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    7671 case $ac_cv_c_bigendian in
    7672   yes)
    7673 
    7674 cat >>confdefs.h <<\_ACEOF
    7675 #define WORDS_BIGENDIAN 1
    7676 _ACEOF
    7677  ;;
    7678   no)
    7679      ;;
    7680   *)
    7681     { { echo "$as_me:$LINENO: error: unknown endianness
    7682 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    7683 echo "$as_me: error: unknown endianness
    7684 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    7685    { (exit 1); exit 1; }; } ;;
    7686 esac
     6522fi
     6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6524fi
     6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6526    fi
     6527    if test $ac_cv_c_bigendian = unknown; then
     6528      # Compile a test program.
     6529      if test "$cross_compiling" = yes; then :
     6530  # Try to guess by grepping values from an object file.
     6531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6532/* end confdefs.h.  */
     6533short int ascii_mm[] =
     6534          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6535        short int ascii_ii[] =
     6536          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6537        int use_ascii (int i) {
     6538          return ascii_mm[i] + ascii_ii[i];
     6539        }
     6540        short int ebcdic_ii[] =
     6541          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6542        short int ebcdic_mm[] =
     6543          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6544        int use_ebcdic (int i) {
     6545          return ebcdic_mm[i] + ebcdic_ii[i];
     6546        }
     6547        extern int foo;
     6548
     6549int
     6550main ()
     6551{
     6552return use_ascii (foo) == use_ebcdic (foo);
     6553  ;
     6554  return 0;
     6555}
     6556_ACEOF
     6557if ac_fn_c_try_compile "$LINENO"; then :
     6558  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6559          ac_cv_c_bigendian=yes
     6560        fi
     6561        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6562          if test "$ac_cv_c_bigendian" = unknown; then
     6563        ac_cv_c_bigendian=no
     6564          else
     6565        # finding both strings is unlikely to happen, but who knows?
     6566        ac_cv_c_bigendian=unknown
     6567          fi
     6568        fi
     6569fi
     6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6571else
     6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6573/* end confdefs.h.  */
     6574$ac_includes_default
     6575int
     6576main ()
     6577{
     6578
     6579         /* Are we little or big endian?  From Harbison&Steele.  */
     6580         union
     6581         {
     6582           long int l;
     6583           char c[sizeof (long int)];
     6584         } u;
     6585         u.l = 1;
     6586         return u.c[sizeof (long int) - 1] == 1;
     6587
     6588  ;
     6589  return 0;
     6590}
     6591_ACEOF
     6592if ac_fn_c_try_run "$LINENO"; then :
     6593  ac_cv_c_bigendian=no
     6594else
     6595  ac_cv_c_bigendian=yes
     6596fi
     6597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6598  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6599fi
     6600
     6601    fi
     6602fi
     6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6604$as_echo "$ac_cv_c_bigendian" >&6; }
     6605 case $ac_cv_c_bigendian in #(
     6606   yes)
     6607     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6608;; #(
     6609   no)
     6610      ;; #(
     6611   universal)
     6612
     6613$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6614
     6615     ;; #(
     6616   *)
     6617     as_fn_error $? "unknown endianness
     6618 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6619 esac
    76876620
    76886621
    76896622# ---------------------------------------------------------------------------
    76906623if test "$ac_cv_func_alloca" = 'no'; then
    7691   case $LIBOBJS in
    7692     "xmalloc.$ac_objext"   | \
    7693   *" xmalloc.$ac_objext"   | \
    7694     "xmalloc.$ac_objext "* | \
     6624  case " $LIBOBJS " in
    76956625  *" xmalloc.$ac_objext "* ) ;;
    7696   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6626  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6627 ;;
    76976628esac
    76986629
    7699   case $LIBOBJS in
    7700     "error.$ac_objext"   | \
    7701   *" error.$ac_objext"   | \
    7702     "error.$ac_objext "* | \
     6630  case " $LIBOBJS " in
    77036631  *" error.$ac_objext "* ) ;;
    7704   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6632  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6633 ;;
    77056634esac
    77066635
     
    77106639# ---------------------------------------------------------------------------
    77116640# see if the user wants to override use of long long
    7712 # Check whether --enable-override-longlong or --disable-override-longlong was given.
    7713 if test "${enable_override_longlong+set}" = set; then
    7714   enableval="$enable_override_longlong"
    7715   cat >>confdefs.h <<\_ACEOF
    7716 #define DISABLE_LONG_LONG 1
    7717 _ACEOF
    7718 
    7719 fi;
     6641# Check whether --enable-override-longlong was given.
     6642if test "${enable_override_longlong+set}" = set; then :
     6643  enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
     6644
     6645fi
     6646
    77206647
    77216648
    77226649# ---------------------------------------------------------------------------
    77236650
    7724                                                   ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
    7725           ac_config_commands="$ac_config_commands default"
     6651ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
     6652
     6653ac_config_commands="$ac_config_commands default"
     6654
    77266655cat >confcache <<\_ACEOF
    77276656# This file is a shell script that caches the results of configure
     
    77426671# The following way of writing the cache mishandles newlines in values,
    77436672# but we know of no workaround that is simple, portable, and efficient.
    7744 # So, don't put newlines in cache variables' values.
     6673# So, we kill variables containing newlines.
    77456674# Ultrix sh set writes to stderr and can't be redirected directly,
    77466675# and sets the high bit in the cache file unless we assign to the vars.
    7747 {
     6676(
     6677  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6678    eval ac_val=\$$ac_var
     6679    case $ac_val in #(
     6680    *${as_nl}*)
     6681      case $ac_var in #(
     6682      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6683$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6684      esac
     6685      case $ac_var in #(
     6686      _ | IFS | as_nl) ;; #(
     6687      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6688      *) { eval $ac_var=; unset $ac_var;} ;;
     6689      esac ;;
     6690    esac
     6691  done
     6692
    77486693  (set) 2>&1 |
    7749     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    7750     *ac_space=\ *)
    7751       # `set' does not quote correctly, so add quotes (double-quote
    7752       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6694    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6695    *${as_nl}ac_space=\ *)
     6696      # `set' does not quote correctly, so add quotes: double-quote
     6697      # substitution turns \\\\ into \\, and sed turns \\ into \.
    77536698      sed -n \
    77546699    "s/'/'\\\\''/g;
    77556700      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    7756       ;;
     6701      ;; #(
    77576702    *)
    77586703      # `set' quotes correctly as required by POSIX, so do not add quotes.
    7759       sed -n \
    7760     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6704      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    77616705      ;;
    7762     esac;
    7763 } |
     6706    esac |
     6707    sort
     6708) |
    77646709  sed '
     6710     /^ac_cv_env_/b end
    77656711     t clear
    7766      : clear
     6712     :clear
    77676713     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    77686714     t end
    7769      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    7770      : end' >>confcache
    7771 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    7772   if test -w $cache_file; then
    7773     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6715     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6716     :end' >>confcache
     6717if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6718  if test -w "$cache_file"; then
     6719    test "x$cache_file" != "x/dev/null" &&
     6720      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6721$as_echo "$as_me: updating cache $cache_file" >&6;}
    77746722    cat confcache >$cache_file
    77756723  else
    7776     echo "not updating unwritable cache $cache_file"
     6724    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6725$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    77776726  fi
    77786727fi
     
    77836732test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    77846733
    7785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    7787 # trailing colons and then remove the whole line if VPATH becomes empty
    7788 # (actually we leave an empty line to preserve line numbers).
    7789 if test "x$srcdir" = x.; then
    7790   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7791 s/:*\$(srcdir):*/:/;
    7792 s/:*\${srcdir}:*/:/;
    7793 s/:*@srcdir@:*/:/;
    7794 s/^\([^=]*=[     ]*\):*/\1/;
    7795 s/:*$//;
    7796 s/^[^=]*=[   ]*$//;
    7797 }'
    7798 fi
    7799 
    78006734DEFS=-DHAVE_CONFIG_H
    78016735
    78026736ac_libobjs=
    78036737ac_ltlibobjs=
     6738U=
    78046739for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    78056740  # 1. Remove the extension, and $U if already installed.
    7806   ac_i=`echo "$ac_i" |
    7807      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    7808   # 2. Add them.
    7809   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    7810   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6741  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6742  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6743  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6744  #    will be set to the directory where LIBOBJS objects are built.
     6745  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6746  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    78116747done
    78126748LIBOBJS=$ac_libobjs
     
    78166752
    78176753
     6754
    78186755: ${CONFIG_STATUS=./config.status}
     6756ac_write_fail=0
    78196757ac_clean_files_save=$ac_clean_files
    78206758ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    7821 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    7822 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    7823 cat >$CONFIG_STATUS <<_ACEOF
     6759{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6760$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6761as_write_fail=0
     6762cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    78246763#! $SHELL
    78256764# Generated by $as_me.
     
    78316770ac_cs_recheck=false
    78326771ac_cs_silent=false
     6772
    78336773SHELL=\${CONFIG_SHELL-$SHELL}
    7834 _ACEOF
    7835 
    7836 cat >>$CONFIG_STATUS <<\_ACEOF
    7837 ## --------------------- ##
    7838 ## M4sh Initialization.  ##
    7839 ## --------------------- ##
    7840 
    7841 # Be Bourne compatible
    7842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6774export SHELL
     6775_ASEOF
     6776cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6777## -------------------- ##
     6778## M4sh Initialization. ##
     6779## -------------------- ##
     6780
     6781# Be more Bourne compatible
     6782DUALCASE=1; export DUALCASE # for MKS sh
     6783if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    78436784  emulate sh
    78446785  NULLCMD=:
    7845   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6786  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    78466787  # is contrary to our usage.  Disable this feature.
    78476788  alias -g '${1+"$@"}'='"$@"'
    7848 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    7849   set -o posix
    7850 fi
    7851 DUALCASE=1; export DUALCASE # for MKS sh
    7852 
    7853 # Support unset when possible.
    7854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    7855   as_unset=unset
    7856 else
    7857   as_unset=false
    7858 fi
    7859 
    7860 
    7861 # Work around bugs in pre-3.0 UWIN ksh.
    7862 $as_unset ENV MAIL MAILPATH
     6789  setopt NO_GLOB_SUBST
     6790else
     6791  case `(set -o) 2>/dev/null` in #(
     6792  *posix*) :
     6793    set -o posix ;; #(
     6794  *) :
     6795     ;;
     6796esac
     6797fi
     6798
     6799
     6800as_nl='
     6801'
     6802export as_nl
     6803# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6804as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6805as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6807# Prefer a ksh shell builtin over an external printf program on Solaris,
     6808# but without wasting forks for bash or zsh.
     6809if test -z "$BASH_VERSION$ZSH_VERSION" \
     6810    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6811  as_echo='print -r --'
     6812  as_echo_n='print -rn --'
     6813elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6814  as_echo='printf %s\n'
     6815  as_echo_n='printf %s'
     6816else
     6817  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6818    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6819    as_echo_n='/usr/ucb/echo -n'
     6820  else
     6821    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6822    as_echo_n_body='eval
     6823      arg=$1;
     6824      case $arg in #(
     6825      *"$as_nl"*)
     6826    expr "X$arg" : "X\\(.*\\)$as_nl";
     6827    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6828      esac;
     6829      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6830    '
     6831    export as_echo_n_body
     6832    as_echo_n='sh -c $as_echo_n_body as_echo'
     6833  fi
     6834  export as_echo_body
     6835  as_echo='sh -c $as_echo_body as_echo'
     6836fi
     6837
     6838# The user is always right.
     6839if test "${PATH_SEPARATOR+set}" != set; then
     6840  PATH_SEPARATOR=:
     6841  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6842    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6843      PATH_SEPARATOR=';'
     6844  }
     6845fi
     6846
     6847
     6848# IFS
     6849# We need space, tab and new line, in precisely that order.  Quoting is
     6850# there to prevent editors from complaining about space-tab.
     6851# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6852# splitting by setting IFS to empty value.)
     6853IFS=" ""    $as_nl"
     6854
     6855# Find who we are.  Look in the path if we contain no directory separator.
     6856case $0 in #((
     6857  *[\\/]* ) as_myself=$0 ;;
     6858  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6859for as_dir in $PATH
     6860do
     6861  IFS=$as_save_IFS
     6862  test -z "$as_dir" && as_dir=.
     6863    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6864  done
     6865IFS=$as_save_IFS
     6866
     6867     ;;
     6868esac
     6869# We did not find ourselves, most probably we were run as `sh COMMAND'
     6870# in which case we are not to be found in the path.
     6871if test "x$as_myself" = x; then
     6872  as_myself=$0
     6873fi
     6874if test ! -f "$as_myself"; then
     6875  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6876  exit 1
     6877fi
     6878
     6879# Unset variables that we do not need and which cause bugs (e.g. in
     6880# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6881# suppresses any "Segmentation fault" message there.  '((' could
     6882# trigger a bug in pdksh 5.2.14.
     6883for as_var in BASH_ENV ENV MAIL MAILPATH
     6884do eval test x\${$as_var+set} = xset \
     6885  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6886done
    78636887PS1='$ '
    78646888PS2='> '
     
    78666890
    78676891# NLS nuisances.
    7868 for as_var in \
    7869   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    7870   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    7871   LC_TELEPHONE LC_TIME
    7872 do
    7873   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    7874     eval $as_var=C; export $as_var
    7875   else
    7876     $as_unset $as_var
     6892LC_ALL=C
     6893export LC_ALL
     6894LANGUAGE=C
     6895export LANGUAGE
     6896
     6897# CDPATH.
     6898(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6899
     6900
     6901# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6902# ----------------------------------------
     6903# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6904# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6905# script with STATUS, using 1 if that was 0.
     6906as_fn_error ()
     6907{
     6908  as_status=$1; test $as_status -eq 0 && as_status=1
     6909  if test "$4"; then
     6910    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6911    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    78776912  fi
    7878 done
    7879 
    7880 # Required to use basename.
    7881 if expr a : '\(a\)' >/dev/null 2>&1; then
     6913  $as_echo "$as_me: error: $2" >&2
     6914  as_fn_exit $as_status
     6915} # as_fn_error
     6916
     6917
     6918# as_fn_set_status STATUS
     6919# -----------------------
     6920# Set $? to STATUS, without forking.
     6921as_fn_set_status ()
     6922{
     6923  return $1
     6924} # as_fn_set_status
     6925
     6926# as_fn_exit STATUS
     6927# -----------------
     6928# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6929as_fn_exit ()
     6930{
     6931  set +e
     6932  as_fn_set_status $1
     6933  exit $1
     6934} # as_fn_exit
     6935
     6936# as_fn_unset VAR
     6937# ---------------
     6938# Portably unset VAR.
     6939as_fn_unset ()
     6940{
     6941  { eval $1=; unset $1;}
     6942}
     6943as_unset=as_fn_unset
     6944# as_fn_append VAR VALUE
     6945# ----------------------
     6946# Append the text in VALUE to the end of the definition contained in VAR. Take
     6947# advantage of any shell optimizations that allow amortized linear growth over
     6948# repeated appends, instead of the typical quadratic growth present in naive
     6949# implementations.
     6950if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6951  eval 'as_fn_append ()
     6952  {
     6953    eval $1+=\$2
     6954  }'
     6955else
     6956  as_fn_append ()
     6957  {
     6958    eval $1=\$$1\$2
     6959  }
     6960fi # as_fn_append
     6961
     6962# as_fn_arith ARG...
     6963# ------------------
     6964# Perform arithmetic evaluation on the ARGs, and store the result in the
     6965# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6966# must be portable across $(()) and expr.
     6967if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6968  eval 'as_fn_arith ()
     6969  {
     6970    as_val=$(( $* ))
     6971  }'
     6972else
     6973  as_fn_arith ()
     6974  {
     6975    as_val=`expr "$@" || test $? -eq 1`
     6976  }
     6977fi # as_fn_arith
     6978
     6979
     6980if expr a : '\(a\)' >/dev/null 2>&1 &&
     6981   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    78826982  as_expr=expr
    78836983else
     
    78856985fi
    78866986
    7887 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6987if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    78886988  as_basename=basename
    78896989else
     
    78916991fi
    78926992
    7893 
    7894 # Name of the executable.
    7895 as_me=`$as_basename "$0" ||
     6993if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     6994  as_dirname=dirname
     6995else
     6996  as_dirname=false
     6997fi
     6998
     6999as_me=`$as_basename -- "$0" ||
    78967000$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    78977001     X"$0" : 'X\(//\)$' \| \
    7898      X"$0" : 'X\(/\)$' \| \
    7899      .     : '\(.\)' 2>/dev/null ||
    7900 echo X/"$0" |
    7901     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    7902       /^X\/\(\/\/\)$/{ s//\1/; q; }
    7903       /^X\/\(\/\).*/{ s//\1/; q; }
    7904       s/.*/./; q'`
    7905 
    7906 
    7907 # PATH needs CR, and LINENO needs CR and PATH.
     7002     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     7003$as_echo X/"$0" |
     7004    sed '/^.*\/\([^/][^/]*\)\/*$/{
     7005        s//\1/
     7006        q
     7007      }
     7008      /^X\/\(\/\/\)$/{
     7009        s//\1/
     7010        q
     7011      }
     7012      /^X\/\(\/\).*/{
     7013        s//\1/
     7014        q
     7015      }
     7016      s/.*/./; q'`
     7017
    79087018# Avoid depending upon Character Ranges.
    79097019as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    79137023as_cr_alnum=$as_cr_Letters$as_cr_digits
    79147024
    7915 # The user is always right.
    7916 if test "${PATH_SEPARATOR+set}" != set; then
    7917   echo "#! /bin/sh" >conf$$.sh
    7918   echo  "exit 0"   >>conf$$.sh
    7919   chmod +x conf$$.sh
    7920   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    7921     PATH_SEPARATOR=';'
     7025ECHO_C= ECHO_N= ECHO_T=
     7026case `echo -n x` in #(((((
     7027-n*)
     7028  case `echo 'xy\c'` in
     7029  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     7030  xy)  ECHO_C='\c';;
     7031  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     7032       ECHO_T=' ';;
     7033  esac;;
     7034*)
     7035  ECHO_N='-n';;
     7036esac
     7037
     7038rm -f conf$$ conf$$.exe conf$$.file
     7039if test -d conf$$.dir; then
     7040  rm -f conf$$.dir/conf$$.file
     7041else
     7042  rm -f conf$$.dir
     7043  mkdir conf$$.dir 2>/dev/null
     7044fi
     7045if (echo >conf$$.file) 2>/dev/null; then
     7046  if ln -s conf$$.file conf$$ 2>/dev/null; then
     7047    as_ln_s='ln -s'
     7048    # ... but there are two gotchas:
     7049    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     7050    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     7051    # In both cases, we have to default to `cp -p'.
     7052    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     7053      as_ln_s='cp -p'
     7054  elif ln conf$$.file conf$$ 2>/dev/null; then
     7055    as_ln_s=ln
    79227056  else
    7923     PATH_SEPARATOR=:
     7057    as_ln_s='cp -p'
    79247058  fi
    7925   rm -f conf$$.sh
    7926 fi
    7927 
    7928 
    7929   as_lineno_1=$LINENO
    7930   as_lineno_2=$LINENO
    7931   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7932   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7933   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    7934   # Find who we are.  Look in the path if we contain no path at all
    7935   # relative or not.
    7936   case $0 in
    7937     *[\\/]* ) as_myself=$0 ;;
    7938     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7939 for as_dir in $PATH
    7940 do
    7941   IFS=$as_save_IFS
    7942   test -z "$as_dir" && as_dir=.
    7943   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    7944 done
    7945 
    7946        ;;
     7059else
     7060  as_ln_s='cp -p'
     7061fi
     7062rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     7063rmdir conf$$.dir 2>/dev/null
     7064
     7065
     7066# as_fn_mkdir_p
     7067# -------------
     7068# Create "$as_dir" as a directory, including parents if necessary.
     7069as_fn_mkdir_p ()
     7070{
     7071
     7072  case $as_dir in #(
     7073  -*) as_dir=./$as_dir;;
    79477074  esac
    7948   # We did not find ourselves, most probably we were run as `sh COMMAND'
    7949   # in which case we are not to be found in the path.
    7950   if test "x$as_myself" = x; then
    7951     as_myself=$0
    7952   fi
    7953   if test ! -f "$as_myself"; then
    7954     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    7955 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    7956    { (exit 1); exit 1; }; }
    7957   fi
    7958   case $CONFIG_SHELL in
    7959   '')
    7960     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7961 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    7962 do
    7963   IFS=$as_save_IFS
    7964   test -z "$as_dir" && as_dir=.
    7965   for as_base in sh bash ksh sh5; do
    7966      case $as_dir in
    7967      /*)
    7968        if ("$as_dir/$as_base" -c '
    7969   as_lineno_1=$LINENO
    7970   as_lineno_2=$LINENO
    7971   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7972   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7973   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    7974          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    7975          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    7976          CONFIG_SHELL=$as_dir/$as_base
    7977          export CONFIG_SHELL
    7978          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    7979        fi;;
    7980      esac
    7981        done
    7982 done
    7983 ;;
    7984   esac
    7985 
    7986   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    7987   # uniformly replaced by the line number.  The first 'sed' inserts a
    7988   # line-number line before each line; the second 'sed' does the real
    7989   # work.  The second script uses 'N' to pair each line-number line
    7990   # with the numbered line, and appends trailing '-' during
    7991   # substitution so that $LINENO is not a special case at line end.
    7992   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    7993   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    7994   sed '=' <$as_myself |
    7995     sed '
    7996       N
    7997       s,$,-,
    7998       : loop
    7999       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    8000       t loop
    8001       s,-$,,
    8002       s,^['$as_cr_digits']*\n,,
    8003     ' >$as_me.lineno &&
    8004   chmod +x $as_me.lineno ||
    8005     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    8006 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    8007    { (exit 1); exit 1; }; }
    8008 
    8009   # Don't try to exec as it changes $[0], causing all sort of problems
    8010   # (the dirname of $[0] is not the place where we might find the
    8011   # original and so on.  Autoconf is especially sensible to this).
    8012   . ./$as_me.lineno
    8013   # Exit status is that of the last command.
    8014   exit
    8015 }
    8016 
    8017 
    8018 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    8019   *c*,-n*) ECHO_N= ECHO_C='
    8020 ' ECHO_T='  ' ;;
    8021   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    8022   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    8023 esac
    8024 
    8025 if expr a : '\(a\)' >/dev/null 2>&1; then
    8026   as_expr=expr
    8027 else
    8028   as_expr=false
    8029 fi
    8030 
    8031 rm -f conf$$ conf$$.exe conf$$.file
    8032 echo >conf$$.file
    8033 if ln -s conf$$.file conf$$ 2>/dev/null; then
    8034   # We could just check for DJGPP; but this test a) works b) is more generic
    8035   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    8036   if test -f conf$$.exe; then
    8037     # Don't use ln at all; we don't have any links
    8038     as_ln_s='cp -p'
    8039   else
    8040     as_ln_s='ln -s'
    8041   fi
    8042 elif ln conf$$.file conf$$ 2>/dev/null; then
    8043   as_ln_s=ln
    8044 else
    8045   as_ln_s='cp -p'
    8046 fi
    8047 rm -f conf$$ conf$$.exe conf$$.file
    8048 
     7075  test -d "$as_dir" || eval $as_mkdir_p || {
     7076    as_dirs=
     7077    while :; do
     7078      case $as_dir in #(
     7079      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     7080      *) as_qdir=$as_dir;;
     7081      esac
     7082      as_dirs="'$as_qdir' $as_dirs"
     7083      as_dir=`$as_dirname -- "$as_dir" ||
     7084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7085     X"$as_dir" : 'X\(//\)[^/]' \| \
     7086     X"$as_dir" : 'X\(//\)$' \| \
     7087     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     7088$as_echo X"$as_dir" |
     7089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7090        s//\1/
     7091        q
     7092      }
     7093      /^X\(\/\/\)[^/].*/{
     7094        s//\1/
     7095        q
     7096      }
     7097      /^X\(\/\/\)$/{
     7098        s//\1/
     7099        q
     7100      }
     7101      /^X\(\/\).*/{
     7102        s//\1/
     7103        q
     7104      }
     7105      s/.*/./; q'`
     7106      test -d "$as_dir" && break
     7107    done
     7108    test -z "$as_dirs" || eval "mkdir $as_dirs"
     7109  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7110
     7111
     7112} # as_fn_mkdir_p
    80497113if mkdir -p . 2>/dev/null; then
    8050   as_mkdir_p=:
     7114  as_mkdir_p='mkdir -p "$as_dir"'
    80517115else
    80527116  test -d ./-p && rmdir ./-p
     
    80547118fi
    80557119
    8056 as_executable_p="test -f"
     7120if test -x / >/dev/null 2>&1; then
     7121  as_test_x='test -x'
     7122else
     7123  if ls -dL / >/dev/null 2>&1; then
     7124    as_ls_L_option=L
     7125  else
     7126    as_ls_L_option=
     7127  fi
     7128  as_test_x='
     7129    eval sh -c '\''
     7130      if test -d "$1"; then
     7131    test -d "$1/.";
     7132      else
     7133    case $1 in #(
     7134    -*)set "./$1";;
     7135    esac;
     7136    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     7137    ???[sx]*):;;*)false;;esac;fi
     7138    '\'' sh
     7139  '
     7140fi
     7141as_executable_p=$as_test_x
    80577142
    80587143# Sed expression to map a string onto a valid CPP name.
     
    80637148
    80647149
    8065 # IFS
    8066 # We need space, tab and new line, in precisely that order.
    8067 as_nl='
    8068 '
    8069 IFS="   $as_nl"
    8070 
    8071 # CDPATH.
    8072 $as_unset CDPATH
    8073 
    80747150exec 6>&1
    8075 
    8076 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     7151## ----------------------------------- ##
     7152## Main body of $CONFIG_STATUS script. ##
     7153## ----------------------------------- ##
     7154_ASEOF
     7155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     7156
     7157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7158# Save the log message, to keep $0 and so on meaningful, and to
    80777159# report actual input values of CONFIG_FILES etc. instead of their
    8078 # values after options handling.  Logging --version etc. is OK.
    8079 exec 5>>config.log
    8080 {
    8081   echo
    8082   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
    8083 ## Running $as_me. ##
    8084 _ASBOX
    8085 } >&5
    8086 cat >&5 <<_CSEOF
    8087 
     7160# values after options handling.
     7161ac_log="
    80887162This file was extended by $as_me, which was
    8089 generated by GNU Autoconf 2.59.  Invocation command line was
     7163generated by GNU Autoconf 2.67.  Invocation command line was
    80907164
    80917165  CONFIG_FILES    = $CONFIG_FILES
     
    80957169  $ $0 $@
    80967170
    8097 _CSEOF
    8098 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    8099 echo >&5
    8100 _ACEOF
    8101 
     7171on `(hostname || uname -n) 2>/dev/null | sed 1q`
     7172"
     7173
     7174_ACEOF
     7175
     7176case $ac_config_files in *"
     7177"*) set x $ac_config_files; shift; ac_config_files=$*;;
     7178esac
     7179
     7180case $ac_config_headers in *"
     7181"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     7182esac
     7183
     7184
     7185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    81027186# Files that config.status was made for.
    8103 if test -n "$ac_config_files"; then
    8104   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    8105 fi
    8106 
    8107 if test -n "$ac_config_headers"; then
    8108   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    8109 fi
    8110 
    8111 if test -n "$ac_config_links"; then
    8112   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    8113 fi
    8114 
    8115 if test -n "$ac_config_commands"; then
    8116   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    8117 fi
    8118 
    8119 cat >>$CONFIG_STATUS <<\_ACEOF
    8120 
     7187config_files="$ac_config_files"
     7188config_headers="$ac_config_headers"
     7189config_commands="$ac_config_commands"
     7190
     7191_ACEOF
     7192
     7193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    81217194ac_cs_usage="\
    8122 \`$as_me' instantiates files from templates according to the
    8123 current configuration.
    8124 
    8125 Usage: $0 [OPTIONS] [FILE]...
     7195\`$as_me' instantiates files and other configuration actions
     7196from templates according to the current configuration.  Unless the files
     7197and actions are specified as TAGs, all are instantiated by default.
     7198
     7199Usage: $0 [OPTION]... [TAG]...
    81267200
    81277201  -h, --help       print this help, then exit
    8128   -V, --version    print version number, then exit
    8129   -q, --quiet      do not print progress messages
     7202  -V, --version    print version number and configuration settings, then exit
     7203      --config     print configuration, then exit
     7204  -q, --quiet, --silent
     7205                   do not print progress messages
    81307206  -d, --debug      don't remove temporary files
    81317207      --recheck    update $as_me by reconfiguring in the same conditions
    8132   --file=FILE[:TEMPLATE]
    8133            instantiate the configuration file FILE
    8134   --header=FILE[:TEMPLATE]
    8135            instantiate the configuration header FILE
     7208      --file=FILE[:TEMPLATE]
     7209                   instantiate the configuration file FILE
     7210      --header=FILE[:TEMPLATE]
     7211                   instantiate the configuration header FILE
    81367212
    81377213Configuration files:
     
    81447220$config_commands
    81457221
    8146 Report bugs to <[email protected]>."
    8147 _ACEOF
    8148 
    8149 cat >>$CONFIG_STATUS <<_ACEOF
     7222Report bugs to the package provider."
     7223
     7224_ACEOF
     7225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7226ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    81507227ac_cs_version="\\
    81517228config.status
    8152 configured by $0, generated by GNU Autoconf 2.59,
    8153   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    8154 
    8155 Copyright (C) 2003 Free Software Foundation, Inc.
     7229configured by $0, generated by GNU Autoconf 2.67,
     7230  with options \\"\$ac_cs_config\\"
     7231
     7232Copyright (C) 2010 Free Software Foundation, Inc.
    81567233This config.status script is free software; the Free Software Foundation
    81577234gives unlimited permission to copy, distribute and modify it."
    8158 srcdir=$srcdir
    8159 INSTALL="$INSTALL"
    8160 _ACEOF
    8161 
    8162 cat >>$CONFIG_STATUS <<\_ACEOF
    8163 # If no file are specified by the user, then we need to provide default
    8164 # value.  By we need to know if files were specified by the user.
     7235
     7236ac_pwd='$ac_pwd'
     7237srcdir='$srcdir'
     7238INSTALL='$INSTALL'
     7239AWK='$AWK'
     7240test -n "\$AWK" || AWK=awk
     7241_ACEOF
     7242
     7243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7244# The default lists apply if the user does not specify any file.
    81657245ac_need_defaults=:
    81667246while test $# != 0
    81677247do
    81687248  case $1 in
    8169   --*=*)
    8170     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    8171     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     7249  --*=?*)
     7250    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7251    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    81727252    ac_shift=:
    81737253    ;;
    8174   -*)
     7254  --*=)
     7255    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7256    ac_optarg=
     7257    ac_shift=:
     7258    ;;
     7259  *)
    81757260    ac_option=$1
    81767261    ac_optarg=$2
    81777262    ac_shift=shift
    81787263    ;;
    8179   *) # This is not an option, so the user has probably given explicit
    8180      # arguments.
    8181      ac_option=$1
    8182      ac_need_defaults=false;;
    81837264  esac
    81847265
    81857266  case $ac_option in
    81867267  # Handling of the options.
    8187 _ACEOF
    8188 cat >>$CONFIG_STATUS <<\_ACEOF
    81897268  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    81907269    ac_cs_recheck=: ;;
    8191   --version | --vers* | -V )
    8192     echo "$ac_cs_version"; exit 0 ;;
    8193   --he | --h)
    8194     # Conflict between --help and --header
    8195     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    8196 Try \`$0 --help' for more information." >&5
    8197 echo "$as_me: error: ambiguous option: $1
    8198 Try \`$0 --help' for more information." >&2;}
    8199    { (exit 1); exit 1; }; };;
    8200   --help | --hel | -h )
    8201     echo "$ac_cs_usage"; exit 0 ;;
    8202   --debug | --d* | -d )
     7270  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     7271    $as_echo "$ac_cs_version"; exit ;;
     7272  --config | --confi | --conf | --con | --co | --c )
     7273    $as_echo "$ac_cs_config"; exit ;;
     7274  --debug | --debu | --deb | --de | --d | -d )
    82037275    debug=: ;;
    82047276  --file | --fil | --fi | --f )
    82057277    $ac_shift
    8206     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     7278    case $ac_optarg in
     7279    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7280    '') as_fn_error $? "missing file argument" ;;
     7281    esac
     7282    as_fn_append CONFIG_FILES " '$ac_optarg'"
    82077283    ac_need_defaults=false;;
    82087284  --header | --heade | --head | --hea )
    82097285    $ac_shift
    8210     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     7286    case $ac_optarg in
     7287    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7288    esac
     7289    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    82117290    ac_need_defaults=false;;
     7291  --he | --h)
     7292    # Conflict between --help and --header
     7293    as_fn_error $? "ambiguous option: \`$1'
     7294Try \`$0 --help' for more information.";;
     7295  --help | --hel | -h )
     7296    $as_echo "$ac_cs_usage"; exit ;;
    82127297  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    82137298  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     
    82157300
    82167301  # This is an error.
    8217   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    8218 Try \`$0 --help' for more information." >&5
    8219 echo "$as_me: error: unrecognized option: $1
    8220 Try \`$0 --help' for more information." >&2;}
    8221    { (exit 1); exit 1; }; } ;;
    8222 
    8223   *) ac_config_targets="$ac_config_targets $1" ;;
     7302  -*) as_fn_error $? "unrecognized option: \`$1'
     7303Try \`$0 --help' for more information." ;;
     7304
     7305  *) as_fn_append ac_config_targets " $1"
     7306     ac_need_defaults=false ;;
    82247307
    82257308  esac
     
    82357318
    82367319_ACEOF
    8237 cat >>$CONFIG_STATUS <<_ACEOF
     7320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    82387321if \$ac_cs_recheck; then
    8239   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    8240   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    8241 fi
    8242 
    8243 _ACEOF
    8244 
    8245 
    8246 
    8247 
    8248 
    8249 cat >>$CONFIG_STATUS <<\_ACEOF
     7322  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7323  shift
     7324  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     7325  CONFIG_SHELL='$SHELL'
     7326  export CONFIG_SHELL
     7327  exec "\$@"
     7328fi
     7329
     7330_ACEOF
     7331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7332exec 5>>config.log
     7333{
     7334  echo
     7335  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     7336## Running $as_me. ##
     7337_ASBOX
     7338  $as_echo "$ac_log"
     7339} >&5
     7340
     7341_ACEOF
     7342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7343_ACEOF
     7344
     7345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7346
     7347# Handling of arguments.
    82507348for ac_config_target in $ac_config_targets
    82517349do
    8252   case "$ac_config_target" in
    8253   # Handling of arguments.
    8254   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    8255   "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
    8256   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    8257   "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
    8258   "java/org/greenstone/mgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
    8259   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    8260   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    8261   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    8262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    8263    { (exit 1); exit 1; }; };;
     7350  case $ac_config_target in
     7351    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7352    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7353    "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
     7354    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     7355    "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
     7356    "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
     7357    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
     7358
     7359  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    82647360  esac
    82657361done
     7362
    82667363
    82677364# If the user did not use the arguments to specify the items to instantiate,
     
    82767373
    82777374# Have a temporary directory for convenience.  Make it in the build tree
    8278 # simply because there is no reason to put it here, and in addition,
     7375# simply because there is no reason against having it here, and in addition,
    82797376# creating and moving files from /tmp can sometimes cause problems.
    8280 # Create a temporary directory, and hook for its removal unless debugging.
     7377# Hook for its removal unless debugging.
     7378# Note that there is a small window in which the directory will not be cleaned:
     7379# after its creation but before its name has been assigned to `$tmp'.
    82817380$debug ||
    82827381{
    8283   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    8284   trap '{ (exit 1); exit 1; }' 1 2 13 15
     7382  tmp=
     7383  trap 'exit_status=$?
     7384  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     7385' 0
     7386  trap 'as_fn_exit 1' 1 2 13 15
    82857387}
    8286 
    82877388# Create a (secure) tmp directory for tmp files.
    82887389
    82897390{
    8290   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7391  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    82917392  test -n "$tmp" && test -d "$tmp"
    82927393}  ||
    82937394{
    8294   tmp=./confstat$$-$RANDOM
    8295   (umask 077 && mkdir $tmp)
    8296 } ||
    8297 {
    8298    echo "$me: cannot create a temporary directory in ." >&2
    8299    { (exit 1); exit 1; }
     7395  tmp=./conf$$-$RANDOM
     7396  (umask 077 && mkdir "$tmp")
     7397} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7398
     7399# Set up the scripts for CONFIG_FILES section.
     7400# No need to generate them if there are no CONFIG_FILES.
     7401# This happens for instance with `./config.status config.h'.
     7402if test -n "$CONFIG_FILES"; then
     7403
     7404
     7405ac_cr=`echo X | tr X '\015'`
     7406# On cygwin, bash can eat \r inside `` if the user requested igncr.
     7407# But we know of no other shell where ac_cr would be empty at this
     7408# point, so we can use a bashism as a fallback.
     7409if test "x$ac_cr" = x; then
     7410  eval ac_cr=\$\'\\r\'
     7411fi
     7412ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     7413if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     7414  ac_cs_awk_cr='\\r'
     7415else
     7416  ac_cs_awk_cr=$ac_cr
     7417fi
     7418
     7419echo 'BEGIN {' >"$tmp/subs1.awk" &&
     7420_ACEOF
     7421
     7422
     7423{
     7424  echo "cat >conf$$subs.awk <<_ACEOF" &&
     7425  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     7426  echo "_ACEOF"
     7427} >conf$$subs.sh ||
     7428  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7429ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7430ac_delim='%!_!# '
     7431for ac_last_try in false false false false false :; do
     7432  . ./conf$$subs.sh ||
     7433    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7434
     7435  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     7436  if test $ac_delim_n = $ac_delim_num; then
     7437    break
     7438  elif $ac_last_try; then
     7439    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7440  else
     7441    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7442  fi
     7443done
     7444rm -f conf$$subs.sh
     7445
     7446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7447cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     7448_ACEOF
     7449sed -n '
     7450h
     7451s/^/S["/; s/!.*/"]=/
     7452p
     7453g
     7454s/^[^!]*!//
     7455:repl
     7456t repl
     7457s/'"$ac_delim"'$//
     7458t delim
     7459:nl
     7460h
     7461s/\(.\{148\}\)..*/\1/
     7462t more1
     7463s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     7464p
     7465n
     7466b repl
     7467:more1
     7468s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7469p
     7470g
     7471s/.\{148\}//
     7472t nl
     7473:delim
     7474h
     7475s/\(.\{148\}\)..*/\1/
     7476t more2
     7477s/["\\]/\\&/g; s/^/"/; s/$/"/
     7478p
     7479b
     7480:more2
     7481s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7482p
     7483g
     7484s/.\{148\}//
     7485t delim
     7486' <conf$$subs.awk | sed '
     7487/^[^""]/{
     7488  N
     7489  s/\n//
    83007490}
    8301 
    8302 _ACEOF
    8303 
    8304 cat >>$CONFIG_STATUS <<_ACEOF
    8305 
    8306 #
    8307 # CONFIG_FILES section.
    8308 #
    8309 
    8310 # No need to generate the scripts if there are no CONFIG_FILES.
    8311 # This happens for instance when ./config.status config.h
    8312 if test -n "\$CONFIG_FILES"; then
    8313   # Protect against being on the right side of a sed subst in config.status.
    8314   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    8315    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    8316 s,@SHELL@,$SHELL,;t t
    8317 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    8318 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    8319 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    8320 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    8321 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    8322 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    8323 s,@exec_prefix@,$exec_prefix,;t t
    8324 s,@prefix@,$prefix,;t t
    8325 s,@program_transform_name@,$program_transform_name,;t t
    8326 s,@bindir@,$bindir,;t t
    8327 s,@sbindir@,$sbindir,;t t
    8328 s,@libexecdir@,$libexecdir,;t t
    8329 s,@datadir@,$datadir,;t t
    8330 s,@sysconfdir@,$sysconfdir,;t t
    8331 s,@sharedstatedir@,$sharedstatedir,;t t
    8332 s,@localstatedir@,$localstatedir,;t t
    8333 s,@libdir@,$libdir,;t t
    8334 s,@includedir@,$includedir,;t t
    8335 s,@oldincludedir@,$oldincludedir,;t t
    8336 s,@infodir@,$infodir,;t t
    8337 s,@mandir@,$mandir,;t t
    8338 s,@build_alias@,$build_alias,;t t
    8339 s,@host_alias@,$host_alias,;t t
    8340 s,@target_alias@,$target_alias,;t t
    8341 s,@DEFS@,$DEFS,;t t
    8342 s,@ECHO_C@,$ECHO_C,;t t
    8343 s,@ECHO_N@,$ECHO_N,;t t
    8344 s,@ECHO_T@,$ECHO_T,;t t
    8345 s,@LIBS@,$LIBS,;t t
    8346 s,@build@,$build,;t t
    8347 s,@build_cpu@,$build_cpu,;t t
    8348 s,@build_vendor@,$build_vendor,;t t
    8349 s,@build_os@,$build_os,;t t
    8350 s,@host@,$host,;t t
    8351 s,@host_cpu@,$host_cpu,;t t
    8352 s,@host_vendor@,$host_vendor,;t t
    8353 s,@host_os@,$host_os,;t t
    8354 s,@target@,$target,;t t
    8355 s,@target_cpu@,$target_cpu,;t t
    8356 s,@target_vendor@,$target_vendor,;t t
    8357 s,@target_os@,$target_os,;t t
    8358 s,@PACKAGE@,$PACKAGE,;t t
    8359 s,@VERSION@,$VERSION,;t t
    8360 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    8361 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    8362 s,@CXX@,$CXX,;t t
    8363 s,@CXXFLAGS@,$CXXFLAGS,;t t
    8364 s,@LDFLAGS@,$LDFLAGS,;t t
    8365 s,@CPPFLAGS@,$CPPFLAGS,;t t
    8366 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    8367 s,@EXEEXT@,$EXEEXT,;t t
    8368 s,@OBJEXT@,$OBJEXT,;t t
    8369 s,@AWK@,$AWK,;t t
    8370 s,@YACC@,$YACC,;t t
    8371 s,@CC@,$CC,;t t
    8372 s,@CFLAGS@,$CFLAGS,;t t
    8373 s,@ac_ct_CC@,$ac_ct_CC,;t t
    8374 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    8375 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    8376 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    8377 s,@LN_S@,$LN_S,;t t
    8378 s,@SET_MAKE@,$SET_MAKE,;t t
    8379 s,@RANLIB@,$RANLIB,;t t
    8380 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    8381 s,@CPP@,$CPP,;t t
    8382 s,@EGREP@,$EGREP,;t t
    8383 s,@U@,$U,;t t
    8384 s,@ANSI2KNR@,$ANSI2KNR,;t t
    8385 s,@UNAC_DIR@,$UNAC_DIR,;t t
    8386 s,@ALLOCA@,$ALLOCA,;t t
    8387 s,@LIBOBJS@,$LIBOBJS,;t t
    8388 s,@JNIINC@,$JNIINC,;t t
    8389 s,@JNISUFFIX@,$JNISUFFIX,;t t
    8390 s,@JNIFLAGS@,$JNIFLAGS,;t t
    8391 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    8392 CEOF
    8393 
    8394 _ACEOF
    8395 
    8396   cat >>$CONFIG_STATUS <<\_ACEOF
    8397   # Split the substitutions into bite-sized pieces for seds with
    8398   # small command number limits, like on Digital OSF/1 and HP-UX.
    8399   ac_max_sed_lines=48
    8400   ac_sed_frag=1 # Number of current file.
    8401   ac_beg=1 # First line for current file.
    8402   ac_end=$ac_max_sed_lines # Line after last line for current file.
    8403   ac_more_lines=:
    8404   ac_sed_cmds=
    8405   while $ac_more_lines; do
    8406     if test $ac_beg -gt 1; then
    8407       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    8408     else
    8409       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7491' >>$CONFIG_STATUS || ac_write_fail=1
     7492rm -f conf$$subs.awk
     7493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7494_ACAWK
     7495cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     7496  for (key in S) S_is_set[key] = 1
     7497  FS = ""
     7498
     7499}
     7500{
     7501  line = $ 0
     7502  nfields = split(line, field, "@")
     7503  substed = 0
     7504  len = length(field[1])
     7505  for (i = 2; i < nfields; i++) {
     7506    key = field[i]
     7507    keylen = length(key)
     7508    if (S_is_set[key]) {
     7509      value = S[key]
     7510      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     7511      len += length(value) + length(field[++i])
     7512      substed = 1
     7513    } else
     7514      len += 1 + keylen
     7515  }
     7516
     7517  print line
     7518}
     7519
     7520_ACAWK
     7521_ACEOF
     7522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7523if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     7524  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     7525else
     7526  cat
     7527fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     7528  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7529_ACEOF
     7530
     7531# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7532# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7533# trailing colons and then remove the whole line if VPATH becomes empty
     7534# (actually we leave an empty line to preserve line numbers).
     7535if test "x$srcdir" = x.; then
     7536  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7537h
     7538s///
     7539s/^/:/
     7540s/[  ]*$/:/
     7541s/:\$(srcdir):/:/g
     7542s/:\${srcdir}:/:/g
     7543s/:@srcdir@:/:/g
     7544s/^:*//
     7545s/:*$//
     7546x
     7547s/\(=[   ]*\).*/\1/
     7548G
     7549s/\n//
     7550s/^[^=]*=[   ]*$//
     7551}'
     7552fi
     7553
     7554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7555fi # test -n "$CONFIG_FILES"
     7556
     7557# Set up the scripts for CONFIG_HEADERS section.
     7558# No need to generate them if there are no CONFIG_HEADERS.
     7559# This happens for instance with `./config.status Makefile'.
     7560if test -n "$CONFIG_HEADERS"; then
     7561cat >"$tmp/defines.awk" <<\_ACAWK ||
     7562BEGIN {
     7563_ACEOF
     7564
     7565# Transform confdefs.h into an awk script `defines.awk', embedded as
     7566# here-document in config.status, that substitutes the proper values into
     7567# config.h.in to produce config.h.
     7568
     7569# Create a delimiter string that does not exist in confdefs.h, to ease
     7570# handling of long lines.
     7571ac_delim='%!_!# '
     7572for ac_last_try in false false :; do
     7573  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7574  if test -z "$ac_t"; then
     7575    break
     7576  elif $ac_last_try; then
     7577    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7578  else
     7579    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7580  fi
     7581done
     7582
     7583# For the awk script, D is an array of macro values keyed by name,
     7584# likewise P contains macro parameters if any.  Preserve backslash
     7585# newline sequences.
     7586
     7587ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7588sed -n '
     7589s/.\{148\}/&'"$ac_delim"'/g
     7590t rset
     7591:rset
     7592s/^[     ]*#[    ]*define[   ][  ]*/ /
     7593t def
     7594d
     7595:def
     7596s/\\$//
     7597t bsnl
     7598s/["\\]/\\&/g
     7599s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7600D["\1"]=" \3"/p
     7601s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7602d
     7603:bsnl
     7604s/["\\]/\\&/g
     7605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7606D["\1"]=" \3\\\\\\n"\\/p
     7607t cont
     7608s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7609t cont
     7610d
     7611:cont
     7612n
     7613s/.\{148\}/&'"$ac_delim"'/g
     7614t clear
     7615:clear
     7616s/\\$//
     7617t bsnlc
     7618s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7619d
     7620:bsnlc
     7621s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7622b cont
     7623' <confdefs.h | sed '
     7624s/'"$ac_delim"'/"\\\
     7625"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7626
     7627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7628  for (key in D) D_is_set[key] = 1
     7629  FS = ""
     7630}
     7631/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7632  line = \$ 0
     7633  split(line, arg, " ")
     7634  if (arg[1] == "#") {
     7635    defundef = arg[2]
     7636    mac1 = arg[3]
     7637  } else {
     7638    defundef = substr(arg[1], 2)
     7639    mac1 = arg[2]
     7640  }
     7641  split(mac1, mac2, "(") #)
     7642  macro = mac2[1]
     7643  prefix = substr(line, 1, index(line, defundef) - 1)
     7644  if (D_is_set[macro]) {
     7645    # Preserve the white space surrounding the "#".
     7646    print prefix "define", macro P[macro] D[macro]
     7647    next
     7648  } else {
     7649    # Replace #undef with comments.  This is necessary, for example,
     7650    # in the case of _POSIX_SOURCE, which is predefined and required
     7651    # on some systems where configure will not decide to define it.
     7652    if (defundef == "undef") {
     7653      print "/*", prefix defundef, macro, "*/"
     7654      next
     7655    }
     7656  }
     7657}
     7658{ print }
     7659_ACAWK
     7660_ACEOF
     7661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7662  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7663fi # test -n "$CONFIG_HEADERS"
     7664
     7665
     7666eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
     7667shift
     7668for ac_tag
     7669do
     7670  case $ac_tag in
     7671  :[FHLC]) ac_mode=$ac_tag; continue;;
     7672  esac
     7673  case $ac_mode$ac_tag in
     7674  :[FHL]*:*);;
     7675  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7676  :[FH]-) ac_tag=-:-;;
     7677  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7678  esac
     7679  ac_save_IFS=$IFS
     7680  IFS=:
     7681  set x $ac_tag
     7682  IFS=$ac_save_IFS
     7683  shift
     7684  ac_file=$1
     7685  shift
     7686
     7687  case $ac_mode in
     7688  :L) ac_source=$1;;
     7689  :[FH])
     7690    ac_file_inputs=
     7691    for ac_f
     7692    do
     7693      case $ac_f in
     7694      -) ac_f="$tmp/stdin";;
     7695      *) # Look for the file first in the build tree, then in the source tree
     7696     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7697     # because $ac_f cannot contain `:'.
     7698     test -f "$ac_f" ||
     7699       case $ac_f in
     7700       [\\/$]*) false;;
     7701       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7702       esac ||
     7703       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7704      esac
     7705      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7706      as_fn_append ac_file_inputs " '$ac_f'"
     7707    done
     7708
     7709    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7710    # use $as_me), people would be surprised to read:
     7711    #    /* config.h.  Generated by config.status.  */
     7712    configure_input='Generated from '`
     7713      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7714    `' by configure.'
     7715    if test x"$ac_file" != x-; then
     7716      configure_input="$ac_file.  $configure_input"
     7717      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7718$as_echo "$as_me: creating $ac_file" >&6;}
    84107719    fi
    8411     if test ! -s $tmp/subs.frag; then
    8412       ac_more_lines=false
    8413     else
    8414       # The purpose of the label and of the branching condition is to
    8415       # speed up the sed processing (if there are no `@' at all, there
    8416       # is no need to browse any of the substitutions).
    8417       # These are the two extra sed commands mentioned above.
    8418       (echo ':t
    8419   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    8420       if test -z "$ac_sed_cmds"; then
    8421     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    8422       else
    8423     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    8424       fi
    8425       ac_sed_frag=`expr $ac_sed_frag + 1`
    8426       ac_beg=$ac_end
    8427       ac_end=`expr $ac_end + $ac_max_sed_lines`
    8428     fi
    8429   done
    8430   if test -z "$ac_sed_cmds"; then
    8431     ac_sed_cmds=cat
    8432   fi
    8433 fi # test -n "$CONFIG_FILES"
    8434 
    8435 _ACEOF
    8436 cat >>$CONFIG_STATUS <<\_ACEOF
    8437 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    8438   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8439   case $ac_file in
    8440   - | *:- | *:-:* ) # input from stdin
    8441     cat >$tmp/stdin
    8442     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8443     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8444   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8445     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8446   * )   ac_file_in=$ac_file.in ;;
     7720    # Neutralize special characters interpreted by sed in replacement strings.
     7721    case $configure_input in #(
     7722    *\&* | *\|* | *\\* )
     7723       ac_sed_conf_input=`$as_echo "$configure_input" |
     7724       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7725    *) ac_sed_conf_input=$configure_input;;
     7726    esac
     7727
     7728    case $ac_tag in
     7729    *:-:* | *:-) cat >"$tmp/stdin" \
     7730      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7731    esac
     7732    ;;
    84477733  esac
    84487734
    8449   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    8450   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7735  ac_dir=`$as_dirname -- "$ac_file" ||
    84517736$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    84527737     X"$ac_file" : 'X\(//\)[^/]' \| \
    84537738     X"$ac_file" : 'X\(//\)$' \| \
    8454      X"$ac_file" : 'X\(/\)' \| \
    8455      .     : '\(.\)' 2>/dev/null ||
    8456 echo X"$ac_file" |
    8457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8458       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8459       /^X\(\/\/\)$/{ s//\1/; q; }
    8460       /^X\(\/\).*/{ s//\1/; q; }
    8461       s/.*/./; q'`
    8462   { if $as_mkdir_p; then
    8463     mkdir -p "$ac_dir"
    8464   else
    8465     as_dir="$ac_dir"
    8466     as_dirs=
    8467     while test ! -d "$as_dir"; do
    8468       as_dirs="$as_dir $as_dirs"
    8469       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8471      X"$as_dir" : 'X\(//\)[^/]' \| \
    8472      X"$as_dir" : 'X\(//\)$' \| \
    8473      X"$as_dir" : 'X\(/\)' \| \
    8474      .     : '\(.\)' 2>/dev/null ||
    8475 echo X"$as_dir" |
    8476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8477       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8478       /^X\(\/\/\)$/{ s//\1/; q; }
    8479       /^X\(\/\).*/{ s//\1/; q; }
    8480       s/.*/./; q'`
    8481     done
    8482     test ! -n "$as_dirs" || mkdir $as_dirs
    8483   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8484 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8485    { (exit 1); exit 1; }; }; }
    8486 
     7739     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7740$as_echo X"$ac_file" |
     7741    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7742        s//\1/
     7743        q
     7744      }
     7745      /^X\(\/\/\)[^/].*/{
     7746        s//\1/
     7747        q
     7748      }
     7749      /^X\(\/\/\)$/{
     7750        s//\1/
     7751        q
     7752      }
     7753      /^X\(\/\).*/{
     7754        s//\1/
     7755        q
     7756      }
     7757      s/.*/./; q'`
     7758  as_dir="$ac_dir"; as_fn_mkdir_p
    84877759  ac_builddir=.
    84887760
    8489 if test "$ac_dir" != .; then
    8490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8491   # A "../" for each directory in $ac_dir_suffix.
    8492   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8493 else
    8494   ac_dir_suffix= ac_top_builddir=
    8495 fi
     7761case "$ac_dir" in
     7762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7763*)
     7764  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7765  # A ".." for each directory in $ac_dir_suffix.
     7766  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7767  case $ac_top_builddir_sub in
     7768  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7769  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7770  esac ;;
     7771esac
     7772ac_abs_top_builddir=$ac_pwd
     7773ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7774# for backward compatibility:
     7775ac_top_builddir=$ac_top_build_prefix
    84967776
    84977777case $srcdir in
    8498   .)  # No --srcdir option.  We are building in place.
     7778  .)  # We are building in place.
    84997779    ac_srcdir=.
    8500     if test -z "$ac_top_builddir"; then
    8501        ac_top_srcdir=.
    8502     else
    8503        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8504     fi ;;
    8505   [\\/]* | ?:[\\/]* )  # Absolute path.
     7780    ac_top_srcdir=$ac_top_builddir_sub
     7781    ac_abs_top_srcdir=$ac_pwd ;;
     7782  [\\/]* | ?:[\\/]* )  # Absolute name.
    85067783    ac_srcdir=$srcdir$ac_dir_suffix;
    8507     ac_top_srcdir=$srcdir ;;
    8508   *) # Relative path.
    8509     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8510     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7784    ac_top_srcdir=$srcdir
     7785    ac_abs_top_srcdir=$srcdir ;;
     7786  *) # Relative name.
     7787    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7788    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7789    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    85117790esac
    8512 
    8513 # Do not use `cd foo && pwd` to compute absolute paths, because
    8514 # the directories may not exist.
    8515 case `pwd` in
    8516 .) ac_abs_builddir="$ac_dir";;
    8517 *)
    8518   case "$ac_dir" in
    8519   .) ac_abs_builddir=`pwd`;;
    8520   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8521   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8522   esac;;
    8523 esac
    8524 case $ac_abs_builddir in
    8525 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8526 *)
    8527   case ${ac_top_builddir}. in
    8528   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8529   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8530   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8531   esac;;
    8532 esac
    8533 case $ac_abs_builddir in
    8534 .) ac_abs_srcdir=$ac_srcdir;;
    8535 *)
    8536   case $ac_srcdir in
    8537   .) ac_abs_srcdir=$ac_abs_builddir;;
    8538   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8539   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8540   esac;;
    8541 esac
    8542 case $ac_abs_builddir in
    8543 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8544 *)
    8545   case $ac_top_srcdir in
    8546   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8547   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8548   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8549   esac;;
    8550 esac
    8551 
     7791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7792
     7793
     7794  case $ac_mode in
     7795  :F)
     7796  #
     7797  # CONFIG_FILE
     7798  #
    85527799
    85537800  case $INSTALL in
    85547801  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    8555   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7802  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    85567803  esac
    8557 
    8558   if test x"$ac_file" != x-; then
    8559     { echo "$as_me:$LINENO: creating $ac_file" >&5
    8560 echo "$as_me: creating $ac_file" >&6;}
    8561     rm -f "$ac_file"
    8562   fi
    8563   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8564   # use $as_me), people would be surprised to read:
    8565   #    /* config.h.  Generated by config.status.  */
    8566   if test x"$ac_file" = x-; then
    8567     configure_input=
    8568   else
    8569     configure_input="$ac_file.  "
    8570   fi
    8571   configure_input=$configure_input"Generated from `echo $ac_file_in |
    8572                      sed 's,.*/,,'` by configure."
    8573 
    8574   # First look for the input files in the build tree, otherwise in the
    8575   # src tree.
    8576   ac_file_inputs=`IFS=:
    8577     for f in $ac_file_in; do
    8578       case $f in
    8579       -) echo $tmp/stdin ;;
    8580       [\\/$]*)
    8581      # Absolute (can't be DOS-style, as IFS=:)
    8582      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8583 echo "$as_me: error: cannot find input file: $f" >&2;}
    8584    { (exit 1); exit 1; }; }
    8585      echo "$f";;
    8586       *) # Relative
    8587      if test -f "$f"; then
    8588        # Build tree
    8589        echo "$f"
    8590      elif test -f "$srcdir/$f"; then
    8591        # Source tree
    8592        echo "$srcdir/$f"
    8593      else
    8594        # /dev/null tree
    8595        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8596 echo "$as_me: error: cannot find input file: $f" >&2;}
    8597    { (exit 1); exit 1; }; }
    8598      fi;;
    8599       esac
    8600     done` || { (exit 1); exit 1; }
    8601 _ACEOF
    8602 cat >>$CONFIG_STATUS <<_ACEOF
    8603   sed "$ac_vpsub
     7804_ACEOF
     7805
     7806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7807# If the template does not know about datarootdir, expand it.
     7808# FIXME: This hack should be removed a few years after 2.60.
     7809ac_datarootdir_hack=; ac_datarootdir_seen=
     7810ac_sed_dataroot='
     7811/datarootdir/ {
     7812  p
     7813  q
     7814}
     7815/@datadir@/p
     7816/@docdir@/p
     7817/@infodir@/p
     7818/@localedir@/p
     7819/@mandir@/p'
     7820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7821*datarootdir*) ac_datarootdir_seen=yes;;
     7822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7823  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7824$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7825_ACEOF
     7826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7827  ac_datarootdir_hack='
     7828  s&@datadir@&$datadir&g
     7829  s&@docdir@&$docdir&g
     7830  s&@infodir@&$infodir&g
     7831  s&@localedir@&$localedir&g
     7832  s&@mandir@&$mandir&g
     7833  s&\\\${datarootdir}&$datarootdir&g' ;;
     7834esac
     7835_ACEOF
     7836
     7837# Neutralize VPATH when `$srcdir' = `.'.
     7838# Shell code in configure.ac might set extrasub.
     7839# FIXME: do we really want to maintain this feature?
     7840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7841ac_sed_extra="$ac_vpsub
    86047842$extrasub
    86057843_ACEOF
    8606 cat >>$CONFIG_STATUS <<\_ACEOF
     7844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    86077845:t
    86087846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    8609 s,@configure_input@,$configure_input,;t t
    8610 s,@srcdir@,$ac_srcdir,;t t
    8611 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    8612 s,@top_srcdir@,$ac_top_srcdir,;t t
    8613 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    8614 s,@builddir@,$ac_builddir,;t t
    8615 s,@abs_builddir@,$ac_abs_builddir,;t t
    8616 s,@top_builddir@,$ac_top_builddir,;t t
    8617 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    8618 s,@INSTALL@,$ac_INSTALL,;t t
    8619 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    8620   rm -f $tmp/stdin
     7847s|@configure_input@|$ac_sed_conf_input|;t t
     7848s&@top_builddir@&$ac_top_builddir_sub&;t t
     7849s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7850s&@srcdir@&$ac_srcdir&;t t
     7851s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7852s&@top_srcdir@&$ac_top_srcdir&;t t
     7853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7854s&@builddir@&$ac_builddir&;t t
     7855s&@abs_builddir@&$ac_abs_builddir&;t t
     7856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7857s&@INSTALL@&$ac_INSTALL&;t t
     7858$ac_datarootdir_hack
     7859"
     7860eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7861  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7862
     7863test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7864  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7865  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7866  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7867which seems to be undefined.  Please make sure it is defined" >&5
     7868$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7869which seems to be undefined.  Please make sure it is defined" >&2;}
     7870
     7871  rm -f "$tmp/stdin"
     7872  case $ac_file in
     7873  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7874  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7875  esac \
     7876  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7877 ;;
     7878  :H)
     7879  #
     7880  # CONFIG_HEADER
     7881  #
    86217882  if test x"$ac_file" != x-; then
    8622     mv $tmp/out $ac_file
    8623   else
    8624     cat $tmp/out
    8625     rm -f $tmp/out
    8626   fi
    8627 
    8628 done
    8629 _ACEOF
    8630 cat >>$CONFIG_STATUS <<\_ACEOF
    8631 
    8632 #
    8633 # CONFIG_HEADER section.
    8634 #
    8635 
    8636 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    8637 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    8638 #
    8639 # ac_d sets the value in "#define NAME VALUE" lines.
    8640 ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
    8641 ac_dB='[     ].*$,\1#\2'
    8642 ac_dC=' '
    8643 ac_dD=',;t'
    8644 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    8645 ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    8646 ac_uB='$,\1#\2define\3'
    8647 ac_uC=' '
    8648 ac_uD=',;t'
    8649 
    8650 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    8651   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8652   case $ac_file in
    8653   - | *:- | *:-:* ) # input from stdin
    8654     cat >$tmp/stdin
    8655     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8656     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8657   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8658     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8659   * )   ac_file_in=$ac_file.in ;;
    8660   esac
    8661 
    8662   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    8663 echo "$as_me: creating $ac_file" >&6;}
    8664 
    8665   # First look for the input files in the build tree, otherwise in the
    8666   # src tree.
    8667   ac_file_inputs=`IFS=:
    8668     for f in $ac_file_in; do
    8669       case $f in
    8670       -) echo $tmp/stdin ;;
    8671       [\\/$]*)
    8672      # Absolute (can't be DOS-style, as IFS=:)
    8673      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8674 echo "$as_me: error: cannot find input file: $f" >&2;}
    8675    { (exit 1); exit 1; }; }
    8676      # Do quote $f, to prevent DOS paths from being IFS'd.
    8677      echo "$f";;
    8678       *) # Relative
    8679      if test -f "$f"; then
    8680        # Build tree
    8681        echo "$f"
    8682      elif test -f "$srcdir/$f"; then
    8683        # Source tree
    8684        echo "$srcdir/$f"
    8685      else
    8686        # /dev/null tree
    8687        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8688 echo "$as_me: error: cannot find input file: $f" >&2;}
    8689    { (exit 1); exit 1; }; }
    8690      fi;;
    8691       esac
    8692     done` || { (exit 1); exit 1; }
    8693   # Remove the trailing spaces.
    8694   sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
    8695 
    8696 _ACEOF
    8697 
    8698 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    8699 # `conftest.undefs', that substitutes the proper values into
    8700 # config.h.in to produce config.h.  The first handles `#define'
    8701 # templates, and the second `#undef' templates.
    8702 # And first: Protect against being on the right side of a sed subst in
    8703 # config.status.  Protect against being in an unquoted here document
    8704 # in config.status.
    8705 rm -f conftest.defines conftest.undefs
    8706 # Using a here document instead of a string reduces the quoting nightmare.
    8707 # Putting comments in sed scripts is not portable.
    8708 #
    8709 # `end' is used to avoid that the second main sed command (meant for
    8710 # 0-ary CPP macros) applies to n-ary macro definitions.
    8711 # See the Autoconf documentation for `clear'.
    8712 cat >confdef2sed.sed <<\_ACEOF
    8713 s/[\\&,]/\\&/g
    8714 s,[\\$`],\\&,g
    8715 t clear
    8716 : clear
    8717 s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    8718 t end
    8719 s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    8720 : end
    8721 _ACEOF
    8722 # If some macros were called several times there might be several times
    8723 # the same #defines, which is useless.  Nevertheless, we may not want to
    8724 # sort them, since we want the *last* AC-DEFINE to be honored.
    8725 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    8726 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    8727 rm -f confdef2sed.sed
    8728 
    8729 # This sed command replaces #undef with comments.  This is necessary, for
    8730 # example, in the case of _POSIX_SOURCE, which is predefined and required
    8731 # on some systems where configure will not decide to define it.
    8732 cat >>conftest.undefs <<\_ACEOF
    8733 s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    8734 _ACEOF
    8735 
    8736 # Break up conftest.defines because some shells have a limit on the size
    8737 # of here documents, and old seds have small limits too (100 cmds).
    8738 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    8739 echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    8740 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    8741 echo '  :' >>$CONFIG_STATUS
    8742 rm -f conftest.tail
    8743 while grep . conftest.defines >/dev/null
    8744 do
    8745   # Write a limited-size here document to $tmp/defines.sed.
    8746   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    8747   # Speed up: don't consider the non `#define' lines.
    8748   echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    8749   # Work around the forget-to-reset-the-flag bug.
    8750   echo 't clr' >>$CONFIG_STATUS
    8751   echo ': clr' >>$CONFIG_STATUS
    8752   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    8753   echo 'CEOF
    8754   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    8755   rm -f $tmp/in
    8756   mv $tmp/out $tmp/in
    8757 ' >>$CONFIG_STATUS
    8758   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    8759   rm -f conftest.defines
    8760   mv conftest.tail conftest.defines
    8761 done
    8762 rm -f conftest.defines
    8763 echo '  fi # grep' >>$CONFIG_STATUS
    8764 echo >>$CONFIG_STATUS
    8765 
    8766 # Break up conftest.undefs because some shells have a limit on the size
    8767 # of here documents, and old seds have small limits too (100 cmds).
    8768 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    8769 rm -f conftest.tail
    8770 while grep . conftest.undefs >/dev/null
    8771 do
    8772   # Write a limited-size here document to $tmp/undefs.sed.
    8773   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    8774   # Speed up: don't consider the non `#undef'
    8775   echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    8776   # Work around the forget-to-reset-the-flag bug.
    8777   echo 't clr' >>$CONFIG_STATUS
    8778   echo ': clr' >>$CONFIG_STATUS
    8779   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    8780   echo 'CEOF
    8781   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    8782   rm -f $tmp/in
    8783   mv $tmp/out $tmp/in
    8784 ' >>$CONFIG_STATUS
    8785   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    8786   rm -f conftest.undefs
    8787   mv conftest.tail conftest.undefs
    8788 done
    8789 rm -f conftest.undefs
    8790 
    8791 cat >>$CONFIG_STATUS <<\_ACEOF
    8792   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8793   # use $as_me), people would be surprised to read:
    8794   #    /* config.h.  Generated by config.status.  */
    8795   if test x"$ac_file" = x-; then
    8796     echo "/* Generated by configure.  */" >$tmp/config.h
    8797   else
    8798     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    8799   fi
    8800   cat $tmp/in >>$tmp/config.h
    8801   rm -f $tmp/in
    8802   if test x"$ac_file" != x-; then
    8803     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    8804       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    8805 echo "$as_me: $ac_file is unchanged" >&6;}
     7883    {
     7884      $as_echo "/* $configure_input  */" \
     7885      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7886    } >"$tmp/config.h" \
     7887      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7888    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7889      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7890$as_echo "$as_me: $ac_file is unchanged" >&6;}
    88067891    else
    8807       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    8808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8809      X"$ac_file" : 'X\(//\)[^/]' \| \
    8810      X"$ac_file" : 'X\(//\)$' \| \
    8811      X"$ac_file" : 'X\(/\)' \| \
    8812      .     : '\(.\)' 2>/dev/null ||
    8813 echo X"$ac_file" |
    8814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8815       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8816       /^X\(\/\/\)$/{ s//\1/; q; }
    8817       /^X\(\/\).*/{ s//\1/; q; }
    8818       s/.*/./; q'`
    8819       { if $as_mkdir_p; then
    8820     mkdir -p "$ac_dir"
    8821   else
    8822     as_dir="$ac_dir"
    8823     as_dirs=
    8824     while test ! -d "$as_dir"; do
    8825       as_dirs="$as_dir $as_dirs"
    8826       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8828      X"$as_dir" : 'X\(//\)[^/]' \| \
    8829      X"$as_dir" : 'X\(//\)$' \| \
    8830      X"$as_dir" : 'X\(/\)' \| \
    8831      .     : '\(.\)' 2>/dev/null ||
    8832 echo X"$as_dir" |
    8833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8834       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8835       /^X\(\/\/\)$/{ s//\1/; q; }
    8836       /^X\(\/\).*/{ s//\1/; q; }
    8837       s/.*/./; q'`
    8838     done
    8839     test ! -n "$as_dirs" || mkdir $as_dirs
    8840   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8841 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8842    { (exit 1); exit 1; }; }; }
    8843 
    8844       rm -f $ac_file
    8845       mv $tmp/config.h $ac_file
     7892      rm -f "$ac_file"
     7893      mv "$tmp/config.h" "$ac_file" \
     7894    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    88467895    fi
    88477896  else
    8848     cat $tmp/config.h
    8849     rm -f $tmp/config.h
     7897    $as_echo "/* $configure_input  */" \
     7898      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7899      || as_fn_error $? "could not create -" "$LINENO" 5
    88507900  fi
    8851 done
    8852 _ACEOF
    8853 cat >>$CONFIG_STATUS <<\_ACEOF
    8854 
    8855 #
    8856 # CONFIG_COMMANDS section.
    8857 #
    8858 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    8859   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    8860   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8861   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
    8862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8863      X"$ac_dest" : 'X\(//\)[^/]' \| \
    8864      X"$ac_dest" : 'X\(//\)$' \| \
    8865      X"$ac_dest" : 'X\(/\)' \| \
    8866      .     : '\(.\)' 2>/dev/null ||
    8867 echo X"$ac_dest" |
    8868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8869       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8870       /^X\(\/\/\)$/{ s//\1/; q; }
    8871       /^X\(\/\).*/{ s//\1/; q; }
    8872       s/.*/./; q'`
    8873   { if $as_mkdir_p; then
    8874     mkdir -p "$ac_dir"
    8875   else
    8876     as_dir="$ac_dir"
    8877     as_dirs=
    8878     while test ! -d "$as_dir"; do
    8879       as_dirs="$as_dir $as_dirs"
    8880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8882      X"$as_dir" : 'X\(//\)[^/]' \| \
    8883      X"$as_dir" : 'X\(//\)$' \| \
    8884      X"$as_dir" : 'X\(/\)' \| \
    8885      .     : '\(.\)' 2>/dev/null ||
    8886 echo X"$as_dir" |
    8887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8888       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8889       /^X\(\/\/\)$/{ s//\1/; q; }
    8890       /^X\(\/\).*/{ s//\1/; q; }
    8891       s/.*/./; q'`
    8892     done
    8893     test ! -n "$as_dirs" || mkdir $as_dirs
    8894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8896    { (exit 1); exit 1; }; }; }
    8897 
    8898   ac_builddir=.
    8899 
    8900 if test "$ac_dir" != .; then
    8901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8902   # A "../" for each directory in $ac_dir_suffix.
    8903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8904 else
    8905   ac_dir_suffix= ac_top_builddir=
    8906 fi
    8907 
    8908 case $srcdir in
    8909   .)  # No --srcdir option.  We are building in place.
    8910     ac_srcdir=.
    8911     if test -z "$ac_top_builddir"; then
    8912        ac_top_srcdir=.
    8913     else
    8914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8915     fi ;;
    8916   [\\/]* | ?:[\\/]* )  # Absolute path.
    8917     ac_srcdir=$srcdir$ac_dir_suffix;
    8918     ac_top_srcdir=$srcdir ;;
    8919   *) # Relative path.
    8920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    8922 esac
    8923 
    8924 # Do not use `cd foo && pwd` to compute absolute paths, because
    8925 # the directories may not exist.
    8926 case `pwd` in
    8927 .) ac_abs_builddir="$ac_dir";;
    8928 *)
    8929   case "$ac_dir" in
    8930   .) ac_abs_builddir=`pwd`;;
    8931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8933   esac;;
    8934 esac
    8935 case $ac_abs_builddir in
    8936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8937 *)
    8938   case ${ac_top_builddir}. in
    8939   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8942   esac;;
    8943 esac
    8944 case $ac_abs_builddir in
    8945 .) ac_abs_srcdir=$ac_srcdir;;
    8946 *)
    8947   case $ac_srcdir in
    8948   .) ac_abs_srcdir=$ac_abs_builddir;;
    8949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8951   esac;;
    8952 esac
    8953 case $ac_abs_builddir in
    8954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8955 *)
    8956   case $ac_top_srcdir in
    8957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8960   esac;;
    8961 esac
    8962 
    8963 
    8964   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
    8965 echo "$as_me: executing $ac_dest commands" >&6;}
    8966   case $ac_dest in
    8967     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     7901 ;;
     7902
     7903  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
     7904$as_echo "$as_me: executing $ac_file commands" >&6;}
     7905 ;;
    89687906  esac
    8969 done
    8970 _ACEOF
    8971 
    8972 cat >>$CONFIG_STATUS <<\_ACEOF
    8973 
    8974 { (exit 0); exit 0; }
    8975 _ACEOF
    8976 chmod +x $CONFIG_STATUS
     7907
     7908
     7909  case $ac_file$ac_mode in
     7910    "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
     7911
     7912  esac
     7913done # for ac_tag
     7914
     7915
     7916as_fn_exit 0
     7917_ACEOF
    89777918ac_clean_files=$ac_clean_files_save
     7919
     7920test $ac_write_fail = 0 ||
     7921  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    89787922
    89797923
     
    89967940  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    89977941  # would make configure fail if this is the last instruction.
    8998   $ac_cs_success || { (exit 1); exit 1; }
    8999 fi
    9000 
     7942  $ac_cs_success || as_fn_exit 1
     7943fi
     7944if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     7945  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     7946$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     7947fi
     7948
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure.in

    r22070 r23356  
    1717AC_SUBST(VERSION)
    1818
     19dnl
     20dnl Disable all Java compilation
     21dnl
     22AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     23if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     24  ENABLE_JAVA=1
     25  if test "x$JAVA_HOME" != "x" ; then
     26    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     27    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     28    echo "and JAVA respectively"
     29    export JAVA_HOME=
     30  fi
     31else
     32  ENABLE_JAVA=0
     33fi
     34AC_SUBST(ENABLE_JAVA)
    1935
    2036AC_MSG_CHECKING(to see if architecture is 64-bit)
     
    5975AC_PROG_MAKE_SET
    6076AC_PROG_RANLIB
     77if test $ENABLE_JAVA = "1" ; then
     78  AC_PROG_JAVA
     79  AC_PROG_JAVAC
     80fi
    6181
    6282dnl Checks for typedefs, structures, and compiler characteristics.
  • main/trunk/greenstone2/common-src/indexers/mgpp/java/org/greenstone/mgpp/Makefile.in

    r19927 r23356  
    1414CC = @CC@
    1515CXX = @CXX@
    16 JAVAC = javac
     16JAVAC = @JAVAC@
    1717JAVAH = javah
    1818JAR = jar
    1919CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
    2020CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -DSILENT -DSHORT_SUFFIX
     21JAVACFLAGS = @JAVACFLAGS@
    2122DEFS = @DEFS@
    2223RANLIB = @RANLIB@
     
    4748
    4849compile: setup
    49     "$(JAVAC)" -d "$(JAVACLASSDIR)" -sourcepath "$(JAVASRCDIR)" $(JAVACOPTIONS) *.java
     50    "$(JAVAC)" $(JAVACFLAGS) -d "$(JAVACLASSDIR)" -sourcepath "$(JAVASRCDIR)" $(JAVACOPTIONS) *.java
    5051    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGPPHOME)/jni" org.greenstone.mgpp.MGPPPassesWrapper
    5152    "$(JAVAH)" -classpath "$(JAVACLASSPATH)" -d "$(MGPPHOME)/jni" org.greenstone.mgpp.MGPPSearchWrapper
  • main/trunk/greenstone2/common-src/packages/configure

    r23308 r23356  
    1 #! /bin/sh
     1#!/bin/sh
    22
    33PACKAGES=`pwd`
     
    2222ENVIRONMENT=""
    2323
     24# Java support enabled by default, can switch it off with --disable-java
     25ENABLE_JAVA=1
    2426# GDBM support enabled by default, can switch it off with --disable-jdbm
    2527USE_GDBM=1
     
    5254        CACHE_FILE="--cache-file=$cache_file"
    5355        fi
     56        ;;
     57    --disable-java)
     58        ENABLE_JAVA=0
     59        USE_JDBM=0
    5460        ;;
    5561    --disable-gdbm)
     
    262268    gzip -dc gs-jdbm-1.0.tar.gz | tar -xf -
    263269  fi
     270
     271  if test "x$JAVAC" = "x" ; then
     272    JAVAC=javac
     273  fi
     274
     275  if test "x$JAVACFLAGS" = "x" ; then
     276    JAVACFLAGS="-source 1.4 -target 1.4"
     277  fi
     278
     279  cd jdbm-1.0 && cat Makefile.in | sed -e "s,@JAVAC@,$JAVAC,g" -e "s,@JAVACFLAGS@,$JAVACFLAGS,g" > Makefile
    264280else
    265281  echo "JDBM support disabled."
  • main/trunk/greenstone2/common-src/src/jdbmedit/Makefile.in

    r23347 r23356  
     1JAVA = @JAVA@
     2JAVAC = @JAVAC@
     3JAVACFLAGS = @JAVACFLAGS@
    14
    25GSDL_DIR  = ../../..
     
    1821
    1922%.class: %.java
    20     javac -classpath $(JDBM_JAR):. $<
     23    $(JAVAC) $(JAVACFLAGS) -classpath $(JDBM_JAR):. $<
    2124
    2225
     
    2831
    2932test-api:
    30     java -classpath $(JDBM_JAR):JDBMWrapper.jar JdbmAPI test
     33    $(JAVA) -classpath $(JDBM_JAR):JDBMWrapper.jar JdbmAPI test
  • main/trunk/greenstone2/configure

    r22378 r23356  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.65.
     3# Generated by GNU Autoconf 2.67.
    44#
    55#
    66# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
    8 # Inc.
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     8# Foundation, Inc.
    99#
    1010#
     
    317317    done
    318318    test -z "$as_dirs" || eval "mkdir $as_dirs"
    319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
     319  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    320320
    321321
     
    357357
    358358
    359 # as_fn_error ERROR [LINENO LOG_FD]
    360 # ---------------------------------
     359# as_fn_error STATUS ERROR [LINENO LOG_FD]
     360# ----------------------------------------
    361361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    362362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    363 # script with status $?, using 1 if that was 0.
     363# script with STATUS, using 1 if that was 0.
    364364as_fn_error ()
    365365{
    366   as_status=$?; test $as_status -eq 0 && as_status=1
    367   if test "$3"; then
    368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     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
    370370  fi
    371   $as_echo "$as_me: error: $1" >&2
     371  $as_echo "$as_me: error: $2" >&2
    372372  as_fn_exit $as_status
    373373} # as_fn_error
     
    531531
    532532# Name of the host.
    533 # 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,
    534534# so uname gets run too.
    535535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    648648USE_YAZ
    649649USE_Z3950
     650ENABLE_JAVA
    650651MICO_DIR
    651652USE_CORBA
     
    697698enable_corba
    698699with_micodir
     700enable_java
    699701enable_z3950
    700702enable_yaz
     
    789791
    790792  case $ac_option in
    791   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    792   *)    ac_optarg=yes ;;
     793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     794  *=)   ac_optarg= ;;
     795  *)    ac_optarg=yes ;;
    793796  esac
    794797
     
    835838    # Reject names that are not valid shell variable names.
    836839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    837       as_fn_error "invalid feature name: $ac_useropt"
     840      as_fn_error $? "invalid feature name: $ac_useropt"
    838841    ac_useropt_orig=$ac_useropt
    839842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    861864    # Reject names that are not valid shell variable names.
    862865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    863       as_fn_error "invalid feature name: $ac_useropt"
     866      as_fn_error $? "invalid feature name: $ac_useropt"
    864867    ac_useropt_orig=$ac_useropt
    865868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10651068    # Reject names that are not valid shell variable names.
    10661069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1067       as_fn_error "invalid package name: $ac_useropt"
     1070      as_fn_error $? "invalid package name: $ac_useropt"
    10681071    ac_useropt_orig=$ac_useropt
    10691072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10811084    # Reject names that are not valid shell variable names.
    10821085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1083       as_fn_error "invalid package name: $ac_useropt"
     1086      as_fn_error $? "invalid package name: $ac_useropt"
    10841087    ac_useropt_orig=$ac_useropt
    10851088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11111114    x_libraries=$ac_optarg ;;
    11121115
    1113   -*) as_fn_error "unrecognized option: \`$ac_option'
    1114 Try \`$0 --help' for more information."
     1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1117Try \`$0 --help' for more information"
    11151118    ;;
    11161119
     
    11201123    case $ac_envvar in #(
    11211124      '' | [0-9]* | *[!_$as_cr_alnum]* )
    1122       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
     1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    11231126    esac
    11241127    eval $ac_envvar=\$ac_optarg
     
    11381141if test -n "$ac_prev"; then
    11391142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1140   as_fn_error "missing argument to $ac_option"
     1143  as_fn_error $? "missing argument to $ac_option"
    11411144fi
    11421145
     
    11441147  case $enable_option_checking in
    11451148    no) ;;
    1146     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
     1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    11471150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    11481151  esac
     
    11671170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    11681171  esac
    1169   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
     1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    11701173done
    11711174
     
    11811184  if test "x$build_alias" = x; then
    11821185    cross_compiling=maybe
    1183     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    1184     If a cross compiler is detected then cross compile mode will be used." >&2
     1186    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1187    If a cross compiler is detected then cross compile mode will be used" >&2
    11851188  elif test "x$build_alias" != "x$host_alias"; then
    11861189    cross_compiling=yes
     
    11971200ac_ls_di=`ls -di .` &&
    11981201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1199   as_fn_error "working directory cannot be determined"
     1202  as_fn_error $? "working directory cannot be determined"
    12001203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1201   as_fn_error "pwd does not report name of working directory"
     1204  as_fn_error $? "pwd does not report name of working directory"
    12021205
    12031206
     
    12381241if test ! -r "$srcdir/$ac_unique_file"; then
    12391242  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1240   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
     1243  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
    12411244fi
    12421245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    12431246ac_abs_confdir=`(
    1244     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
     1247    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
    12451248    pwd)`
    12461249# When building in place, set srcdir=.
     
    12821285      --help=recursive    display the short help of all the included packages
    12831286  -V, --version           display version information and exit
    1284   -q, --quiet, --silent   do not print \`checking...' messages
     1287  -q, --quiet, --silent   do not print \`checking ...' messages
    12851288      --cache-file=FILE   cache test results in FILE [disabled]
    12861289  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    13411344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    13421345  --enable-corba          Enable CORBA support
     1346  --disable-java          Disable Java compilation
    13431347  --enable-z3950          Enable Z39.50 client support
    13441348  --disable-yaz           Disable YAZ compilation
    1345   --disable-jdbm        Disable JDBM compilation
    1346   --disable-gdbm        Disable GDBM compilation
     1349  --disable-jdbm          Disable JDBM compilation
     1350  --disable-gdbm          Disable GDBM compilation
    13471351  --disable-accentfold    Disable Accent Folding for MGPP
    13481352  --disable-sqlite        Disable SQLite support
    1349   --enable-apache-httpd  Enable Apache httpd support
    1350   --enable-jni    Enable JNI compilation
    1351   --disable-mg    Disable MG compilation
    1352   --disable-mgpp        Disable MGPP compilation
     1353  --enable-apache-httpd   Enable Apache httpd support
     1354  --enable-jni            Enable JNI compilation
     1355  --disable-mg            Disable MG compilation
     1356  --disable-mgpp          Disable MGPP compilation
    13531357  --disable-lucene        Disable Lucene compilation
    13541358
     
    14451449  cat <<\_ACEOF
    14461450configure
    1447 generated by GNU Autoconf 2.65
    1448 
    1449 Copyright (C) 2009 Free Software Foundation, Inc.
     1451generated by GNU Autoconf 2.67
     1452
     1453Copyright (C) 2010 Free Software Foundation, Inc.
    14501454This configure script is free software; the Free Software Foundation
    14511455gives unlimited permission to copy, distribute and modify it.
     
    15551559  fi
    15561560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1557   test $ac_status = 0; } >/dev/null && {
     1561  test $ac_status = 0; } > conftest.i && {
    15581562     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    15591563     test ! -s conftest.err
     
    15791583{
    15801584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1581   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1585  if eval "test \"\${$3+set}\"" = set; then :
    15821586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    15831587$as_echo_n "checking for $2... " >&6; }
    1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1588if eval "test \"\${$3+set}\"" = set; then :
    15851589  $as_echo_n "(cached) " >&6
    15861590fi
     
    16181622  ac_header_preproc=no
    16191623fi
    1620 rm -f conftest.err conftest.$ac_ext
     1624rm -f conftest.err conftest.i conftest.$ac_ext
    16211625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    16221626$as_echo "$ac_header_preproc" >&6; }
     
    16451649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    16461650$as_echo_n "checking for $2... " >&6; }
    1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1651if eval "test \"\${$3+set}\"" = set; then :
    16481652  $as_echo_n "(cached) " >&6
    16491653else
     
    17091713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    17101714$as_echo_n "checking for $2... " >&6; }
    1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1715if eval "test \"\${$3+set}\"" = set; then :
    17121716  $as_echo_n "(cached) " >&6
    17131717else
     
    17861790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    17871791$as_echo_n "checking for $2... " >&6; }
    1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1792if eval "test \"\${$3+set}\"" = set; then :
    17891793  $as_echo_n "(cached) " >&6
    17901794else
     
    18391843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    18401844$as_echo_n "checking for $2... " >&6; }
    1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1845if eval "test \"\${$3+set}\"" = set; then :
    18421846  $as_echo_n "(cached) " >&6
    18431847else
     
    19441948
    19451949It was created by $as_me, which was
    1946 generated by GNU Autoconf 2.65.  Invocation command line was
     1950generated by GNU Autoconf 2.67.  Invocation command line was
    19471951
    19481952  $ $0 $@
     
    20542058    echo
    20552059
    2056     cat <<\_ASBOX
    2057 ## ---------------- ##
     2060    $as_echo "## ---------------- ##
    20582061## Cache variables. ##
    2059 ## ---------------- ##
    2060 _ASBOX
     2062## ---------------- ##"
    20612063    echo
    20622064    # The following way of writing the cache mishandles newlines in values,
     
    20922094    echo
    20932095
    2094     cat <<\_ASBOX
    2095 ## ----------------- ##
     2096    $as_echo "## ----------------- ##
    20962097## Output variables. ##
    2097 ## ----------------- ##
    2098 _ASBOX
     2098## ----------------- ##"
    20992099    echo
    21002100    for ac_var in $ac_subst_vars
     
    21092109
    21102110    if test -n "$ac_subst_files"; then
    2111       cat <<\_ASBOX
    2112 ## ------------------- ##
     2111      $as_echo "## ------------------- ##
    21132112## File substitutions. ##
    2114 ## ------------------- ##
    2115 _ASBOX
     2113## ------------------- ##"
    21162114      echo
    21172115      for ac_var in $ac_subst_files
     
    21272125
    21282126    if test -s confdefs.h; then
    2129       cat <<\_ASBOX
    2130 ## ----------- ##
     2127      $as_echo "## ----------- ##
    21312128## confdefs.h. ##
    2132 ## ----------- ##
    2133 _ASBOX
     2129## ----------- ##"
    21342130      echo
    21352131      cat confdefs.h
     
    21862182ac_site_file2=NONE
    21872183if test -n "$CONFIG_SITE"; then
    2188   ac_site_file1=$CONFIG_SITE
     2184  # We do not want a PATH search for config.site.
     2185  case $CONFIG_SITE in #((
     2186    -*)  ac_site_file1=./$CONFIG_SITE;;
     2187    */*) ac_site_file1=$CONFIG_SITE;;
     2188    *)   ac_site_file1=./$CONFIG_SITE;;
     2189  esac
    21892190elif test "x$prefix" != xNONE; then
    21902191  ac_site_file1=$prefix/share/config.site
     
    22012202$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    22022203    sed 's/^/| /' "$ac_site_file" >&5
    2203     . "$ac_site_file"
     2204    . "$ac_site_file" \
     2205      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2207as_fn_error $? "failed to load site script $ac_site_file
     2208See \`config.log' for more details" "$LINENO" 5 ; }
    22042209  fi
    22052210done
     
    22772282  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    22782283$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2279   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2284  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    22802285fi
    22812286## -------------------- ##
     
    22942299
    22952300PACKAGE=gsdl
    2296 VERSION=2.82-svn
     2301VERSION=2.x-svn
    22972302cat >>confdefs.h <<_ACEOF
    22982303#define PACKAGE "$PACKAGE"
     
    23502355
    23512356
     2357# Check whether --enable-java was given.
     2358if test "${enable_java+set}" = set; then :
     2359  enableval=$enable_java; ENABLE_JAVA=$enableval
     2360else
     2361  ENABLE_JAVA=yes
     2362fi
     2363
     2364if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2365  ENABLE_JAVA=1
     2366  if test "x$JAVA_HOME" != "x" ; then
     2367    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2368    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2369    echo "and JAVA respectively"
     2370    export JAVA_HOME=
     2371  fi
     2372else
     2373  ENABLE_JAVA=0
     2374fi
     2375
     2376
    23522377# Check whether --enable-z3950 was given.
    23532378if test "${enable_z3950+set}" = set; then :
     
    23892414fi
    23902415
    2391 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     2416if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    23922417  USE_JDBM=1
    23932418  $as_echo "#define USE_JDBM /**/" >>confdefs.h
     
    24712496fi
    24722497
    2473 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     2498if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    24742499  ENABLE_JNI=1
    24752500  $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
     
    25202545fi
    25212546
    2522 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     2547if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    25232548  ENABLE_LUCENE=1
    25242549  $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
     
    28382863test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    28392864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2840 as_fn_error "no acceptable C compiler found in \$PATH
    2841 See \`config.log' for more details." "$LINENO" 5; }
     2865as_fn_error $? "no acceptable C compiler found in \$PATH
     2866See \`config.log' for more details" "$LINENO" 5 ; }
    28422867
    28432868# Provide some information about the compiler.
     
    29532978{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    29542979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2955 { as_fn_set_status 77
    2956 as_fn_error "C compiler cannot create executables
    2957 See \`config.log' for more details." "$LINENO" 5; }; }
     2980as_fn_error 77 "C compiler cannot create executables
     2981See \`config.log' for more details" "$LINENO" 5 ; }
    29582982else
    29592983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     
    29973021  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    29983022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2999 as_fn_error "cannot compute suffix of executables: cannot compile and link
    3000 See \`config.log' for more details." "$LINENO" 5; }
     3023as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     3024See \`config.log' for more details" "$LINENO" 5 ; }
    30013025fi
    30023026rm -f conftest conftest$ac_cv_exeext
     
    30553079    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    30563080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3057 as_fn_error "cannot run C compiled programs.
     3081as_fn_error $? "cannot run C compiled programs.
    30583082If you meant to cross compile, use \`--host'.
    3059 See \`config.log' for more details." "$LINENO" 5; }
     3083See \`config.log' for more details" "$LINENO" 5 ; }
    30603084    fi
    30613085  fi
     
    31083132{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    31093133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3110 as_fn_error "cannot compute suffix of object files: cannot compile
    3111 See \`config.log' for more details." "$LINENO" 5; }
     3134as_fn_error $? "cannot compute suffix of object files: cannot compile
     3135See \`config.log' for more details" "$LINENO" 5 ; }
    31123136fi
    31133137rm -f conftest.$ac_cv_objext conftest.$ac_ext
     
    36733697ac_aux_dir=
    36743698for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
    3675   for ac_t in install-sh install.sh shtool; do
    3676     if test -f "$ac_dir/$ac_t"; then
    3677       ac_aux_dir=$ac_dir
    3678       ac_install_sh="$ac_aux_dir/$ac_t -c"
    3679       break 2
    3680     fi
    3681   done
     3699  if test -f "$ac_dir/install-sh"; then
     3700    ac_aux_dir=$ac_dir
     3701    ac_install_sh="$ac_aux_dir/install-sh -c"
     3702    break
     3703  elif test -f "$ac_dir/install.sh"; then
     3704    ac_aux_dir=$ac_dir
     3705    ac_install_sh="$ac_aux_dir/install.sh -c"
     3706    break
     3707  elif test -f "$ac_dir/shtool"; then
     3708    ac_aux_dir=$ac_dir
     3709    ac_install_sh="$ac_aux_dir/shtool install -c"
     3710    break
     3711  fi
    36823712done
    36833713if test -z "$ac_aux_dir"; then
    3684   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     3714  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
    36853715fi
    36863716
     
    36963726# Make sure we can run config.sub.
    36973727$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    3698   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     3728  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    36993729
    37003730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     
    37073737  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    37083738test "x$ac_build_alias" = x &&
    3709   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
     3739  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    37103740ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    3711   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     3741  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    37123742
    37133743fi
     
    37163746case $ac_cv_build in
    37173747*-*-*) ;;
    3718 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
     3748*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
    37193749esac
    37203750build=$ac_cv_build
     
    37413771else
    37423772  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    3743     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     3773    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    37443774fi
    37453775
     
    37493779case $ac_cv_host in
    37503780*-*-*) ;;
    3751 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
     3781*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
    37523782esac
    37533783host=$ac_cv_host
     
    37743804else
    37753805  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    3776     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     3806    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
    37773807fi
    37783808
     
    37823812case $ac_cv_target in
    37833813*-*-*) ;;
    3784 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
     3814*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
    37853815esac
    37863816target=$ac_cv_target
     
    39133943set x ${MAKE-make}
    39143944ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    3915 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
     3945if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
    39163946  $as_echo_n "(cached) " >&6
    39173947else
     
    39213951    @echo '@@@%%%=$(MAKE)=@@@%%%'
    39223952_ACEOF
    3923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     3953# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
    39243954case `${MAKE-make} -f conftest.make 2>/dev/null` in
    39253955  *@@@%%%=?*=@@@%%%*)
     
    41334163continue
    41344164fi
    4135 rm -f conftest.err conftest.$ac_ext
     4165rm -f conftest.err conftest.i conftest.$ac_ext
    41364166
    41374167  # OK, works on sane cases.  Now check whether nonexistent headers
     
    41494179break
    41504180fi
    4151 rm -f conftest.err conftest.$ac_ext
     4181rm -f conftest.err conftest.i conftest.$ac_ext
    41524182
    41534183done
    41544184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4155 rm -f conftest.err conftest.$ac_ext
     4185rm -f conftest.i conftest.err conftest.$ac_ext
    41564186if $ac_preproc_ok; then :
    41574187  break
     
    41924222continue
    41934223fi
    4194 rm -f conftest.err conftest.$ac_ext
     4224rm -f conftest.err conftest.i conftest.$ac_ext
    41954225
    41964226  # OK, works on sane cases.  Now check whether nonexistent headers
     
    42084238break
    42094239fi
    4210 rm -f conftest.err conftest.$ac_ext
     4240rm -f conftest.err conftest.i conftest.$ac_ext
    42114241
    42124242done
    42134243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4214 rm -f conftest.err conftest.$ac_ext
     4244rm -f conftest.i conftest.err conftest.$ac_ext
    42154245if $ac_preproc_ok; then :
    42164246
     
    42184248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    42194249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    4220 as_fn_error "C preprocessor \"$CPP\" fails sanity check
    4221 See \`config.log' for more details." "$LINENO" 5; }
     4250as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4251See \`config.log' for more details" "$LINENO" 5 ; }
    42224252fi
    42234253
     
    42804310IFS=$as_save_IFS
    42814311  if test -z "$ac_cv_path_GREP"; then
    4282     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4312    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    42834313  fi
    42844314else
     
    43464376IFS=$as_save_IFS
    43474377  if test -z "$ac_cv_path_EGREP"; then
    4348     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4378    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    43494379  fi
    43504380else
     
    44784508ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    44794509"
    4480 eval as_val=\$$as_ac_Header
    4481    if test "x$as_val" = x""yes; then :
     4510if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    44824511  cat >>confdefs.h <<_ACEOF
    44834512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    49955024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
    49965025$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
    4997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
     5026if eval "test \"\${$as_ac_Header+set}\"" = set; then :
    49985027  $as_echo_n "(cached) " >&6
    49995028else
     
    50225051           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    50235052$as_echo "$ac_res" >&6; }
    5024 eval as_val=\$$as_ac_Header
    5025    if test "x$as_val" = x""yes; then :
     5053if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    50265054  cat >>confdefs.h <<_ACEOF
    50275055#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     
    52655293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    52665294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    5267 eval as_val=\$$as_ac_Header
    5268    if test "x$as_val" = x""yes; then :
     5295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    52695296  cat >>confdefs.h <<_ACEOF
    52705297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    54395466    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    54405467ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    5441 eval as_val=\$$as_ac_var
    5442    if test "x$as_val" = x""yes; then :
     5468if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    54435469
    54445470cat >>confdefs.h <<_ACEOF
     
    56005626  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    56015627ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    5602 eval as_val=\$$as_ac_var
    5603    if test "x$as_val" = x""yes; then :
     5628if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    56045629  cat >>confdefs.h <<_ACEOF
    56055630#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     
    56095634done
    56105635
    5611 for ac_func in ftruncate strstr strcasecmp
    5612 do :
    5613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    5615 eval as_val=\$$as_ac_var
    5616    if test "x$as_val" = x""yes; then :
    5617   cat >>confdefs.h <<_ACEOF
    5618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5619 _ACEOF
     5636ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     5637if test "x$ac_cv_func_ftruncate" = x""yes; then :
     5638  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
    56205639
    56215640else
    56225641  case " $LIBOBJS " in
    5623   *" $ac_func.$ac_objext "* ) ;;
    5624   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
     5642  *" ftruncate.$ac_objext "* ) ;;
     5643  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
    56255644 ;;
    56265645esac
    56275646
    56285647fi
    5629 done
     5648
     5649ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     5650if test "x$ac_cv_func_strstr" = x""yes; then :
     5651  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     5652
     5653else
     5654  case " $LIBOBJS " in
     5655  *" strstr.$ac_objext "* ) ;;
     5656  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     5657 ;;
     5658esac
     5659
     5660fi
     5661
     5662ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     5663if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     5664  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     5665
     5666else
     5667  case " $LIBOBJS " in
     5668  *" strcasecmp.$ac_objext "* ) ;;
     5669  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     5670 ;;
     5671esac
     5672
     5673fi
    56305674
    56315675
     
    57975841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
    57985842$as_echo "\"no\"" >&6; }
    5799 as_fn_error "\"Perl 5 not available - cannot install\"" "$LINENO" 5
     5843as_fn_error $? "\"Perl 5 not available - cannot install\"" "$LINENO" 5
    58005844fi
    58015845
     
    58665910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
    58675911$as_echo "\"yes\"" >&6; }
    5868 as_fn_error "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
     5912as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
    58695913fi
    58705914
     
    60986142     ;; #(
    60996143   *)
    6100      as_fn_error "unknown endianness
    6101  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
     6144     as_fn_error $? "unknown endianness
     6145 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
    61026146 esac
    61036147
     
    62456289ac_libobjs=
    62466290ac_ltlibobjs=
     6291U=
    62476292for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    62486293  # 1. Remove the extension, and $U if already installed.
     
    64076452
    64086453
    6409 # as_fn_error ERROR [LINENO LOG_FD]
    6410 # ---------------------------------
     6454# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6455# ----------------------------------------
    64116456# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    64126457# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    6413 # script with status $?, using 1 if that was 0.
     6458# script with STATUS, using 1 if that was 0.
    64146459as_fn_error ()
    64156460{
    6416   as_status=$?; test $as_status -eq 0 && as_status=1
    6417   if test "$3"; then
    6418     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    6419     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
     6461  as_status=$1; test $as_status -eq 0 && as_status=1
     6462  if test "$4"; then
     6463    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6464    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    64206465  fi
    6421   $as_echo "$as_me: error: $1" >&2
     6466  $as_echo "$as_me: error: $2" >&2
    64226467  as_fn_exit $as_status
    64236468} # as_fn_error
     
    66156660    done
    66166661    test -z "$as_dirs" || eval "mkdir $as_dirs"
    6617   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
     6662  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    66186663
    66196664
     
    66696714ac_log="
    66706715This file was extended by $as_me, which was
    6671 generated by GNU Autoconf 2.65.  Invocation command line was
     6716generated by GNU Autoconf 2.67.  Invocation command line was
    66726717
    66736718  CONFIG_FILES    = $CONFIG_FILES
     
    67316776ac_cs_version="\\
    67326777config.status
    6733 configured by $0, generated by GNU Autoconf 2.65,
     6778configured by $0, generated by GNU Autoconf 2.67,
    67346779  with options \\"\$ac_cs_config\\"
    67356780
    6736 Copyright (C) 2009 Free Software Foundation, Inc.
     6781Copyright (C) 2010 Free Software Foundation, Inc.
    67376782This config.status script is free software; the Free Software Foundation
    67386783gives unlimited permission to copy, distribute and modify it."
     
    67516796do
    67526797  case $1 in
    6753   --*=*)
     6798  --*=?*)
    67546799    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    67556800    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     6801    ac_shift=:
     6802    ;;
     6803  --*=)
     6804    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     6805    ac_optarg=
    67566806    ac_shift=:
    67576807    ;;
     
    67776827    case $ac_optarg in
    67786828    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     6829    '') as_fn_error $? "missing file argument" ;;
    67796830    esac
    67806831    as_fn_append CONFIG_FILES " '$ac_optarg'"
     
    67896840  --he | --h)
    67906841    # Conflict between --help and --header
    6791     as_fn_error "ambiguous option: \`$1'
     6842    as_fn_error $? "ambiguous option: \`$1'
    67926843Try \`$0 --help' for more information.";;
    67936844  --help | --hel | -h )
     
    67986849
    67996850  # This is an error.
    6800   -*) as_fn_error "unrecognized option: \`$1'
     6851  -*) as_fn_error $? "unrecognized option: \`$1'
    68016852Try \`$0 --help' for more information." ;;
    68026853
     
    68526903    "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    68536904
    6854   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     6905  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    68556906  esac
    68566907done
     
    68896940  tmp=./conf$$-$RANDOM
    68906941  (umask 077 && mkdir "$tmp")
    6891 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
     6942} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
    68926943
    68936944# Set up the scripts for CONFIG_FILES section.
     
    69066957ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    69076958if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
    6908   ac_cs_awk_cr='\r'
     6959  ac_cs_awk_cr='\\r'
    69096960else
    69106961  ac_cs_awk_cr=$ac_cr
     
    69206971  echo "_ACEOF"
    69216972} >conf$$subs.sh ||
    6922   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    6923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
     6973  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     6974ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
    69246975ac_delim='%!_!# '
    69256976for ac_last_try in false false false false false :; do
    69266977  . ./conf$$subs.sh ||
    6927     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     6978    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    69286979
    69296980  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    69316982    break
    69326983  elif $ac_last_try; then
    6933     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     6984    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    69346985  else
    69356986    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    70207071  cat
    70217072fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
    7022   || as_fn_error "could not setup config files machinery" "$LINENO" 5
    7023 _ACEOF
    7024 
    7025 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7026 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     7073  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7074_ACEOF
     7075
     7076# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7077# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
    70277078# trailing colons and then remove the whole line if VPATH becomes empty
    70287079# (actually we leave an empty line to preserve line numbers).
    70297080if test "x$srcdir" = x.; then
    7030   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7031 s/:*\$(srcdir):*/:/
    7032 s/:*\${srcdir}:*/:/
    7033 s/:*@srcdir@:*/:/
    7034 s/^\([^=]*=[     ]*\):*/\1/
     7081  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7082h
     7083s///
     7084s/^/:/
     7085s/[  ]*$/:/
     7086s/:\$(srcdir):/:/g
     7087s/:\${srcdir}:/:/g
     7088s/:@srcdir@:/:/g
     7089s/^:*//
    70357090s/:*$//
     7091x
     7092s/\(=[   ]*\).*/\1/
     7093G
     7094s/\n//
    70367095s/^[^=]*=[   ]*$//
    70377096}'
     
    70617120    break
    70627121  elif $ac_last_try; then
    7063     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
     7122    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
    70647123  else
    70657124    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    71467205_ACEOF
    71477206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    7148   as_fn_error "could not setup config headers machinery" "$LINENO" 5
     7207  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
    71497208fi # test -n "$CONFIG_HEADERS"
    71507209
     
    71597218  case $ac_mode$ac_tag in
    71607219  :[FHL]*:*);;
    7161   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
     7220  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
    71627221  :[FH]-) ac_tag=-:-;;
    71637222  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    71877246       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    71887247       esac ||
    7189        as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
     7248       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
    71907249      esac
    71917250      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     
    72147273    case $ac_tag in
    72157274    *:-:* | *:-) cat >"$tmp/stdin" \
    7216       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
     7275      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    72177276    esac
    72187277    ;;
     
    73457404"
    73467405eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
    7347   || as_fn_error "could not create $ac_file" "$LINENO" 5
     7406  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    73487407
    73497408test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     
    73517410  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    73527411  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    7353 which seems to be undefined.  Please make sure it is defined." >&5
     7412which seems to be undefined.  Please make sure it is defined" >&5
    73547413$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    7355 which seems to be undefined.  Please make sure it is defined." >&2;}
     7414which seems to be undefined.  Please make sure it is defined" >&2;}
    73567415
    73577416  rm -f "$tmp/stdin"
     
    73607419  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
    73617420  esac \
    7362   || as_fn_error "could not create $ac_file" "$LINENO" 5
     7421  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    73637422 ;;
    73647423  :H)
     
    73717430      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    73727431    } >"$tmp/config.h" \
    7373       || as_fn_error "could not create $ac_file" "$LINENO" 5
     7432      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    73747433    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
    73757434      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     
    73787437      rm -f "$ac_file"
    73797438      mv "$tmp/config.h" "$ac_file" \
    7380     || as_fn_error "could not create $ac_file" "$LINENO" 5
     7439    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    73817440    fi
    73827441  else
    73837442    $as_echo "/* $configure_input  */" \
    73847443      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
    7385       || as_fn_error "could not create -" "$LINENO" 5
     7444      || as_fn_error $? "could not create -" "$LINENO" 5
    73867445  fi
    73877446 ;;
     
    73987457
    73997458test $ac_write_fail = 0 ||
    7400   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
     7459  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    74017460
    74027461
     
    74197478  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    74207479  # would make configure fail if this is the last instruction.
    7421   $ac_cs_success || as_fn_exit $?
     7480  $ac_cs_success || as_fn_exit 1
    74227481fi
    74237482
     
    75607619      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
    75617620       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
    7562     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
     7621    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    75637622    fi
    75647623
  • main/trunk/greenstone2/configure.in

    r22378 r23356  
    66
    77PACKAGE=gsdl
    8 VERSION=2.82-svn
     8VERSION=2.x-svn
    99AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    1010AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
     
    4848
    4949dnl
     50dnl Disable all Java compilation
     51dnl
     52AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     53if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     54  ENABLE_JAVA=1
     55  if test "x$JAVA_HOME" != "x" ; then
     56    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     57    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     58    echo "and JAVA respectively"
     59    export JAVA_HOME=
     60  fi
     61else
     62  ENABLE_JAVA=0
     63fi
     64AC_SUBST(ENABLE_JAVA)
     65
     66dnl
    5067dnl Set use of z39.50
    5168dnl
     
    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
     
    123140dnl
    124141if test -d runtime-src; then
    125    AC_ARG_ENABLE(apache-httpd, [  --enable-apache-httpd  Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no)
     142   AC_ARG_ENABLE(apache-httpd, [  --enable-apache-httpd   Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no)
    126143   if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
    127144     USE_APACHE_HTTPD=1
     
    136153dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
    137154dnl
    138 AC_ARG_ENABLE(jni, [  --enable-jni    Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
    139 if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
     155AC_ARG_ENABLE(jni, [  --enable-jni            Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
     156if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
    140157  ENABLE_JNI=1
    141158  AC_DEFINE(ENABLE_JNI,[])
     
    148165dnl Set compilation of MG (enabled by default)
    149166dnl
    150 AC_ARG_ENABLE(mg, [  --disable-mg    Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
     167AC_ARG_ENABLE(mg, [  --disable-mg            Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
    151168if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
    152169  ENABLE_MG=1
     
    161178dnl Set compilation of MGPP (enabled by default)
    162179dnl
    163 AC_ARG_ENABLE(mgpp, [  --disable-mgpp        Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
     180AC_ARG_ENABLE(mgpp, [  --disable-mgpp          Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
    164181if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
    165182  ENABLE_MGPP=1
     
    174191dnl
    175192AC_ARG_ENABLE(lucene, [  --disable-lucene        Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
    176 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     193if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    177194  ENABLE_LUCENE=1
    178195  AC_DEFINE(ENABLE_LUCENE,[])
  • main/trunk/greenstone2/runtime-src/aclocal.m4

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

    r22068 r23356  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.67.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5#
     6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
     8# Foundation, Inc.
     9#
     10#
    611# This configure script is free software; the Free Software Foundation
    712# gives unlimited permission to copy, distribute and modify it.
    8 ## --------------------- ##
    9 ## M4sh Initialization.  ##
    10 ## --------------------- ##
    11 
    12 # Be Bourne compatible
    13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     13## -------------------- ##
     14## M4sh Initialization. ##
     15## -------------------- ##
     16
     17# Be more Bourne compatible
     18DUALCASE=1; export DUALCASE # for MKS sh
     19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    1420  emulate sh
    1521  NULLCMD=:
    16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    1723  # is contrary to our usage.  Disable this feature.
    1824  alias -g '${1+"$@"}'='"$@"'
    19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    20   set -o posix
    21 fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    23 
    24 # Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
     25  setopt NO_GLOB_SUBST
     26else
     27  case `(set -o) 2>/dev/null` in #(
     28  *posix*) :
     29    set -o posix ;; #(
     30  *) :
     31     ;;
     32esac
     33fi
     34
     35
     36as_nl='
     37'
     38export as_nl
     39# Printing a long string crashes Solaris 7 /usr/bin/printf.
     40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43# Prefer a ksh shell builtin over an external printf program on Solaris,
     44# but without wasting forks for bash or zsh.
     45if test -z "$BASH_VERSION$ZSH_VERSION" \
     46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47  as_echo='print -r --'
     48  as_echo_n='print -rn --'
     49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50  as_echo='printf %s\n'
     51  as_echo_n='printf %s'
     52else
     53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55    as_echo_n='/usr/ucb/echo -n'
     56  else
     57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58    as_echo_n_body='eval
     59      arg=$1;
     60      case $arg in #(
     61      *"$as_nl"*)
     62    expr "X$arg" : "X\\(.*\\)$as_nl";
     63    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64      esac;
     65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66    '
     67    export as_echo_n_body
     68    as_echo_n='sh -c $as_echo_n_body as_echo'
     69  fi
     70  export as_echo_body
     71  as_echo='sh -c $as_echo_body as_echo'
     72fi
     73
     74# The user is always right.
     75if test "${PATH_SEPARATOR+set}" != set; then
     76  PATH_SEPARATOR=:
     77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79      PATH_SEPARATOR=';'
     80  }
     81fi
     82
     83
     84# IFS
     85# We need space, tab and new line, in precisely that order.  Quoting is
     86# there to prevent editors from complaining about space-tab.
     87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88# splitting by setting IFS to empty value.)
     89IFS=" ""    $as_nl"
     90
     91# Find who we are.  Look in the path if we contain no directory separator.
     92case $0 in #((
     93  *[\\/]* ) as_myself=$0 ;;
     94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     95for as_dir in $PATH
     96do
     97  IFS=$as_save_IFS
     98  test -z "$as_dir" && as_dir=.
     99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     100  done
     101IFS=$as_save_IFS
     102
     103     ;;
     104esac
     105# We did not find ourselves, most probably we were run as `sh COMMAND'
     106# in which case we are not to be found in the path.
     107if test "x$as_myself" = x; then
     108  as_myself=$0
     109fi
     110if test ! -f "$as_myself"; then
     111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     112  exit 1
     113fi
     114
     115# Unset variables that we do not need and which cause bugs (e.g. in
     116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     117# suppresses any "Segmentation fault" message there.  '((' could
     118# trigger a bug in pdksh 5.2.14.
     119for as_var in BASH_ENV ENV MAIL MAILPATH
     120do eval test x\${$as_var+set} = xset \
     121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     122done
    34123PS1='$ '
    35124PS2='> '
     
    37126
    38127# NLS nuisances.
    39 for as_var in \
    40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    42   LC_TELEPHONE LC_TIME
     128LC_ALL=C
     129export LC_ALL
     130LANGUAGE=C
     131export LANGUAGE
     132
     133# CDPATH.
     134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     135
     136if test "x$CONFIG_SHELL" = x; then
     137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
     138  emulate sh
     139  NULLCMD=:
     140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
     141  # is contrary to our usage.  Disable this feature.
     142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     143  setopt NO_GLOB_SUBST
     144else
     145  case \`(set -o) 2>/dev/null\` in #(
     146  *posix*) :
     147    set -o posix ;; #(
     148  *) :
     149     ;;
     150esac
     151fi
     152"
     153  as_required="as_fn_return () { (exit \$1); }
     154as_fn_success () { as_fn_return 0; }
     155as_fn_failure () { as_fn_return 1; }
     156as_fn_ret_success () { return 0; }
     157as_fn_ret_failure () { return 1; }
     158
     159exitcode=0
     160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
     161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
     162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
     163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
     164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
     165
     166else
     167  exitcode=1; echo positional parameters were not saved.
     168fi
     169test x\$exitcode = x0 || exit 1"
     170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
     171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     174test \$(( 1 + 1 )) = 2 || exit 1"
     175  if (eval "$as_required") 2>/dev/null; then :
     176  as_have_required=yes
     177else
     178  as_have_required=no
     179fi
     180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
     181
     182else
     183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     184as_found=false
     185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    43186do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    45     eval $as_var=C; export $as_var
     187  IFS=$as_save_IFS
     188  test -z "$as_dir" && as_dir=.
     189  as_found=:
     190  case $as_dir in #(
     191     /*)
     192       for as_base in sh bash ksh sh5; do
     193         # Try only shells that exist, to save several forks.
     194         as_shell=$as_dir/$as_base
     195         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     196            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
     197  CONFIG_SHELL=$as_shell as_have_required=yes
     198           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
     199  break 2
     200fi
     201fi
     202       done;;
     203       esac
     204  as_found=false
     205done
     206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
     207          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
     208  CONFIG_SHELL=$SHELL as_have_required=yes
     209fi; }
     210IFS=$as_save_IFS
     211
     212
     213      if test "x$CONFIG_SHELL" != x; then :
     214  # We cannot yet assume a decent shell, so we have to provide a
     215    # neutralization value for shells without unset; and this also
     216    # works around shells that cannot unset nonexistent variables.
     217    BASH_ENV=/dev/null
     218    ENV=/dev/null
     219    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     220    export CONFIG_SHELL
     221    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     222fi
     223
     224    if test x$as_have_required = xno; then :
     225  $as_echo "$0: This script requires a shell more modern than all"
     226  $as_echo "$0: the shells that I found on your system."
     227  if test x${ZSH_VERSION+set} = xset ; then
     228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
     229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    46230  else
    47     $as_unset $as_var
     231    $as_echo "$0: Please tell [email protected] about your system,
     232$0: including any error possibly output before this
     233$0: message. Then install a modern shell, or manually run
     234$0: the script under such a shell if you do have one."
    48235  fi
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
     236  exit 1
     237fi
     238fi
     239fi
     240SHELL=${CONFIG_SHELL-/bin/sh}
     241export SHELL
     242# Unset more variables known to interfere with behavior of common tools.
     243CLICOLOR_FORCE= GREP_OPTIONS=
     244unset CLICOLOR_FORCE GREP_OPTIONS
     245
     246## --------------------- ##
     247## M4sh Shell Functions. ##
     248## --------------------- ##
     249# as_fn_unset VAR
     250# ---------------
     251# Portably unset VAR.
     252as_fn_unset ()
     253{
     254  { eval $1=; unset $1;}
     255}
     256as_unset=as_fn_unset
     257
     258# as_fn_set_status STATUS
     259# -----------------------
     260# Set $? to STATUS, without forking.
     261as_fn_set_status ()
     262{
     263  return $1
     264} # as_fn_set_status
     265
     266# as_fn_exit STATUS
     267# -----------------
     268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     269as_fn_exit ()
     270{
     271  set +e
     272  as_fn_set_status $1
     273  exit $1
     274} # as_fn_exit
     275
     276# as_fn_mkdir_p
     277# -------------
     278# Create "$as_dir" as a directory, including parents if necessary.
     279as_fn_mkdir_p ()
     280{
     281
     282  case $as_dir in #(
     283  -*) as_dir=./$as_dir;;
     284  esac
     285  test -d "$as_dir" || eval $as_mkdir_p || {
     286    as_dirs=
     287    while :; do
     288      case $as_dir in #(
     289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     290      *) as_qdir=$as_dir;;
     291      esac
     292      as_dirs="'$as_qdir' $as_dirs"
     293      as_dir=`$as_dirname -- "$as_dir" ||
     294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     295     X"$as_dir" : 'X\(//\)[^/]' \| \
     296     X"$as_dir" : 'X\(//\)$' \| \
     297     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     298$as_echo X"$as_dir" |
     299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     300        s//\1/
     301        q
     302      }
     303      /^X\(\/\/\)[^/].*/{
     304        s//\1/
     305        q
     306      }
     307      /^X\(\/\/\)$/{
     308        s//\1/
     309        q
     310      }
     311      /^X\(\/\).*/{
     312        s//\1/
     313        q
     314      }
     315      s/.*/./; q'`
     316      test -d "$as_dir" && break
     317    done
     318    test -z "$as_dirs" || eval "mkdir $as_dirs"
     319  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     320
     321
     322} # as_fn_mkdir_p
     323# as_fn_append VAR VALUE
     324# ----------------------
     325# Append the text in VALUE to the end of the definition contained in VAR. Take
     326# advantage of any shell optimizations that allow amortized linear growth over
     327# repeated appends, instead of the typical quadratic growth present in naive
     328# implementations.
     329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     330  eval 'as_fn_append ()
     331  {
     332    eval $1+=\$2
     333  }'
     334else
     335  as_fn_append ()
     336  {
     337    eval $1=\$$1\$2
     338  }
     339fi # as_fn_append
     340
     341# as_fn_arith ARG...
     342# ------------------
     343# Perform arithmetic evaluation on the ARGs, and store the result in the
     344# global $as_val. Take advantage of shells that can avoid forks. The arguments
     345# must be portable across $(()) and expr.
     346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     347  eval 'as_fn_arith ()
     348  {
     349    as_val=$(( $* ))
     350  }'
     351else
     352  as_fn_arith ()
     353  {
     354    as_val=`expr "$@" || test $? -eq 1`
     355  }
     356fi # as_fn_arith
     357
     358
     359# as_fn_error STATUS ERROR [LINENO LOG_FD]
     360# ----------------------------------------
     361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     363# script with STATUS, using 1 if that was 0.
     364as_fn_error ()
     365{
     366  as_status=$1; test $as_status -eq 0 && as_status=1
     367  if test "$4"; then
     368    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     370  fi
     371  $as_echo "$as_me: error: $2" >&2
     372  as_fn_exit $as_status
     373} # as_fn_error
     374
     375if expr a : '\(a\)' >/dev/null 2>&1 &&
     376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    53377  as_expr=expr
    54378else
     
    56380fi
    57381
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    59383  as_basename=basename
    60384else
     
    62386fi
    63387
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
     388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     389  as_dirname=dirname
     390else
     391  as_dirname=false
     392fi
     393
     394as_me=`$as_basename -- "$0" ||
    67395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68396     X"$0" : 'X\(//\)$' \| \
    69      X"$0" : 'X\(/\)$' \| \
    70      .     : '\(.\)' 2>/dev/null ||
    71 echo X/"$0" |
    72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    73       /^X\/\(\/\/\)$/{ s//\1/; q; }
    74       /^X\/\(\/\).*/{ s//\1/; q; }
    75       s/.*/./; q'`
    76 
    77 
    78 # PATH needs CR, and LINENO needs CR and PATH.
     397     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     398$as_echo X/"$0" |
     399    sed '/^.*\/\([^/][^/]*\)\/*$/{
     400        s//\1/
     401        q
     402      }
     403      /^X\/\(\/\/\)$/{
     404        s//\1/
     405        q
     406      }
     407      /^X\/\(\/\).*/{
     408        s//\1/
     409        q
     410      }
     411      s/.*/./; q'`
     412
    79413# Avoid depending upon Character Ranges.
    80414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    84418as_cr_alnum=$as_cr_Letters$as_cr_digits
    85419
    86 # The user is always right.
    87 if test "${PATH_SEPARATOR+set}" != set; then
    88   echo "#! /bin/sh" >conf$$.sh
    89   echo  "exit 0"   >>conf$$.sh
    90   chmod +x conf$$.sh
    91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    92     PATH_SEPARATOR=';'
    93   else
    94     PATH_SEPARATOR=:
    95   fi
    96   rm -f conf$$.sh
    97 fi
    98 
    99 
    100   as_lineno_1=$LINENO
    101   as_lineno_2=$LINENO
    102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105   # Find who we are.  Look in the path if we contain no path at all
    106   # relative or not.
    107   case $0 in
    108     *[\\/]* ) as_myself=$0 ;;
    109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    110 for as_dir in $PATH
    111 do
    112   IFS=$as_save_IFS
    113   test -z "$as_dir" && as_dir=.
    114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    115 done
    116 
    117        ;;
    118   esac
    119   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120   # in which case we are not to be found in the path.
    121   if test "x$as_myself" = x; then
    122     as_myself=$0
    123   fi
    124   if test ! -f "$as_myself"; then
    125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126    { (exit 1); exit 1; }; }
    127   fi
    128   case $CONFIG_SHELL in
    129   '')
    130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    132 do
    133   IFS=$as_save_IFS
    134   test -z "$as_dir" && as_dir=.
    135   for as_base in sh bash ksh sh5; do
    136      case $as_dir in
    137      /*)
    138        if ("$as_dir/$as_base" -c '
    139   as_lineno_1=$LINENO
    140   as_lineno_2=$LINENO
    141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142   test "x$as_lineno_1" != "x$as_lineno_2" &&
    143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146          CONFIG_SHELL=$as_dir/$as_base
    147          export CONFIG_SHELL
    148          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149        fi;;
    150      esac
    151        done
    152 done
    153 ;;
    154   esac
    155 
    156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157   # uniformly replaced by the line number.  The first 'sed' inserts a
    158   # line-number line before each line; the second 'sed' does the real
    159   # work.  The second script uses 'N' to pair each line-number line
    160   # with the numbered line, and appends trailing '-' during
    161   # substitution so that $LINENO is not a special case at line end.
    162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164   sed '=' <$as_myself |
     420
     421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
     422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
     423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
     424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
     425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     426  sed -n '
     427    p
     428    /[$]LINENO/=
     429  ' <$as_myself |
    165430    sed '
     431      s/[$]LINENO.*/&-/
     432      t lineno
     433      b
     434      :lineno
    166435      N
    167       s,$,-,
    168       : loop
    169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     436      :loop
     437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    170438      t loop
    171       s,-$,,
    172       s,^['$as_cr_digits']*\n,,
     439      s/-\n.*//
    173440    ' >$as_me.lineno &&
    174   chmod +x $as_me.lineno ||
    175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176    { (exit 1); exit 1; }; }
     441  chmod +x "$as_me.lineno" ||
     442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    177443
    178444  # Don't try to exec as it changes $[0], causing all sort of problems
    179445  # (the dirname of $[0] is not the place where we might find the
    180   # original and so on.  Autoconf is especially sensible to this).
    181   . ./$as_me.lineno
     446  # original and so on.  Autoconf is especially sensitive to this).
     447  . "./$as_me.lineno"
    182448  # Exit status is that of the last command.
    183449  exit
    184450}
    185451
    186 
    187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188   *c*,-n*) ECHO_N= ECHO_C='
    189 ' ECHO_T='  ' ;;
    190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     452ECHO_C= ECHO_N= ECHO_T=
     453case `echo -n x` in #(((((
     454-n*)
     455  case `echo 'xy\c'` in
     456  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     457  xy)  ECHO_C='\c';;
     458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     459       ECHO_T=' ';;
     460  esac;;
     461*)
     462  ECHO_N='-n';;
    192463esac
    193464
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
    195   as_expr=expr
    196 else
    197   as_expr=false
    198 fi
    199 
    200465rm -f conf$$ conf$$.exe conf$$.file
    201 echo >conf$$.file
    202 if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
     466if test -d conf$$.dir; then
     467  rm -f conf$$.dir/conf$$.file
     468else
     469  rm -f conf$$.dir
     470  mkdir conf$$.dir 2>/dev/null
     471fi
     472if (echo >conf$$.file) 2>/dev/null; then
     473  if ln -s conf$$.file conf$$ 2>/dev/null; then
     474    as_ln_s='ln -s'
     475    # ... but there are two gotchas:
     476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     478    # In both cases, we have to default to `cp -p'.
     479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     480      as_ln_s='cp -p'
     481  elif ln conf$$.file conf$$ 2>/dev/null; then
     482    as_ln_s=ln
     483  else
    207484    as_ln_s='cp -p'
    208   else
    209     as_ln_s='ln -s'
    210485  fi
    211 elif ln conf$$.file conf$$ 2>/dev/null; then
    212   as_ln_s=ln
    213486else
    214487  as_ln_s='cp -p'
    215488fi
    216 rm -f conf$$ conf$$.exe conf$$.file
     489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     490rmdir conf$$.dir 2>/dev/null
    217491
    218492if mkdir -p . 2>/dev/null; then
    219   as_mkdir_p=:
     493  as_mkdir_p='mkdir -p "$as_dir"'
    220494else
    221495  test -d ./-p && rmdir ./-p
     
    223497fi
    224498
    225 as_executable_p="test -f"
     499if test -x / >/dev/null 2>&1; then
     500  as_test_x='test -x'
     501else
     502  if ls -dL / >/dev/null 2>&1; then
     503    as_ls_L_option=L
     504  else
     505    as_ls_L_option=
     506  fi
     507  as_test_x='
     508    eval sh -c '\''
     509      if test -d "$1"; then
     510    test -d "$1/.";
     511      else
     512    case $1 in #(
     513    -*)set "./$1";;
     514    esac;
     515    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     516    ???[sx]*):;;*)false;;esac;fi
     517    '\'' sh
     518  '
     519fi
     520as_executable_p=$as_test_x
    226521
    227522# Sed expression to map a string onto a valid CPP name.
     
    232527
    233528
    234 # IFS
    235 # We need space, tab and new line, in precisely that order.
    236 as_nl='
    237 '
    238 IFS="   $as_nl"
    239 
    240 # CDPATH.
    241 $as_unset CDPATH
    242 
     529test -n "$DJDIR" || exec 7<&0 </dev/null
     530exec 6>&1
    243531
    244532# Name of the host.
    245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    246534# so uname gets run too.
    247535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    248 
    249 exec 6>&1
    250536
    251537#
     
    253539#
    254540ac_default_prefix=/usr/local
     541ac_clean_files=
    255542ac_config_libobj_dir=.
     543LIBOBJS=
    256544cross_compiling=no
    257545subdirs=
    258546MFLAGS=
    259547MAKEFLAGS=
    260 SHELL=${CONFIG_SHELL-/bin/sh}
    261 
    262 # Maximum number of lines to put in a shell here document.
    263 # This variable seems obsolete.  It should probably be removed, and
    264 # only ac_max_sed_lines should be used.
    265 : ${ac_max_here_lines=38}
    266548
    267549# Identity of this package.
     
    271553PACKAGE_STRING=
    272554PACKAGE_BUGREPORT=
     555PACKAGE_URL=
    273556
    274557# Factoring default headers for most tests.
    275558ac_includes_default="\
    276559#include <stdio.h>
    277 #if HAVE_SYS_TYPES_H
     560#ifdef HAVE_SYS_TYPES_H
    278561# include <sys/types.h>
    279562#endif
    280 #if HAVE_SYS_STAT_H
     563#ifdef HAVE_SYS_STAT_H
    281564# include <sys/stat.h>
    282565#endif
    283 #if STDC_HEADERS
     566#ifdef STDC_HEADERS
    284567# include <stdlib.h>
    285568# include <stddef.h>
    286569#else
    287 # if HAVE_STDLIB_H
     570# ifdef HAVE_STDLIB_H
    288571#  include <stdlib.h>
    289572# endif
    290573#endif
    291 #if HAVE_STRING_H
    292 # if !STDC_HEADERS && HAVE_MEMORY_H
     574#ifdef HAVE_STRING_H
     575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    293576#  include <memory.h>
    294577# endif
    295578# include <string.h>
    296579#endif
    297 #if HAVE_STRINGS_H
     580#ifdef HAVE_STRINGS_H
    298581# include <strings.h>
    299582#endif
    300 #if HAVE_INTTYPES_H
     583#ifdef HAVE_INTTYPES_H
    301584# include <inttypes.h>
    302 #else
    303 # if HAVE_STDINT_H
    304 #  include <stdint.h>
    305 # endif
    306585#endif
    307 #if HAVE_UNISTD_H
     586#ifdef HAVE_STDINT_H
     587# include <stdint.h>
     588#endif
     589#ifdef HAVE_UNISTD_H
    308590# include <unistd.h>
    309591#endif"
    310592
    311 ac_subdirs_all="$ac_subdirs_all packages"
    312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
     593enable_option_checking=no
     594ac_subst_vars='LTLIBOBJS
     595subdirs
     596MODULEDIRS
     597gsdlos
     598STATIC
     599LIBOBJS
     600ALLOCA
     601ANSI2KNR
     602U
     603EGREP
     604GREP
     605CPP
     606MICO_VER
     607COMPAT32BITFLAGS
     608RANLIB
     609SET_MAKE
     610LN_S
     611INSTALL_DATA
     612INSTALL_SCRIPT
     613INSTALL_PROGRAM
     614target_os
     615target_vendor
     616target_cpu
     617target
     618host_os
     619host_vendor
     620host_cpu
     621host
     622build_os
     623build_vendor
     624build_cpu
     625build
     626YFLAGS
     627YACC
     628AWK
     629uudecode
     630JAVA
     631JAVACFLAGS
     632JAVAC
     633ac_ct_CXX
     634CXXFLAGS
     635CXX
     636OBJEXT
     637EXEEXT
     638ac_ct_CC
     639CPPFLAGS
     640CC
     641CFLAGS
     642LDFLAGS
     643ENABLE_LUCENE
     644ENABLE_MGPP
     645ENABLE_MG
     646USE_APACHE_HTTPD
     647USE_SQLITE
     648ENABLE_ACCENTFOLD
     649USE_GDBM
     650USE_JDBM
     651ENABLE_JAVA
     652USE_YAZ
     653USE_Z3950
     654MICO_DIR
     655USE_CORBA
     656USE_LANGACTION
     657USE_FASTCGI
     658VERSION
     659PACKAGE
     660target_alias
     661host_alias
     662build_alias
     663LIBS
     664ECHO_T
     665ECHO_N
     666ECHO_C
     667DEFS
     668mandir
     669localedir
     670libdir
     671psdir
     672pdfdir
     673dvidir
     674htmldir
     675infodir
     676docdir
     677oldincludedir
     678includedir
     679localstatedir
     680sharedstatedir
     681sysconfdir
     682datadir
     683datarootdir
     684libexecdir
     685sbindir
     686bindir
     687program_transform_name
     688prefix
     689exec_prefix
     690PACKAGE_URL
     691PACKAGE_BUGREPORT
     692PACKAGE_STRING
     693PACKAGE_VERSION
     694PACKAGE_TARNAME
     695PACKAGE_NAME
     696PATH_SEPARATOR
     697SHELL'
    313698ac_subst_files=''
     699ac_user_opts='
     700enable_option_checking
     701enable_corba
     702with_micodir
     703enable_z3950
     704enable_yaz
     705enable_java
     706enable_jdbm
     707enable_gdbm
     708enable_accentfold
     709enable_sqlite
     710enable_apache_httpd
     711enable_mg
     712enable_mgpp
     713enable_lucene
     714with_dmalloc
     715with_regex
     716'
     717      ac_precious_vars='build_alias
     718host_alias
     719target_alias
     720CC
     721CFLAGS
     722LDFLAGS
     723LIBS
     724CPPFLAGS
     725CXX
     726CXXFLAGS
     727CCC
     728YACC
     729YFLAGS
     730CPP'
     731ac_subdirs_all='packages'
    314732
    315733# Initialize some variables set by options.
    316734ac_init_help=
    317735ac_init_version=false
     736ac_unrecognized_opts=
     737ac_unrecognized_sep=
    318738# The variables have the same names as the options, with
    319739# dashes changed to underlines.
     
    338758# by default will actually change.
    339759# Use braces instead of parens because sh, perl, etc. also accept them.
     760# (The list follows the same order as the GNU Coding Standards.)
    340761bindir='${exec_prefix}/bin'
    341762sbindir='${exec_prefix}/sbin'
    342763libexecdir='${exec_prefix}/libexec'
    343 datadir='${prefix}/share'
     764datarootdir='${prefix}/share'
     765datadir='${datarootdir}'
    344766sysconfdir='${prefix}/etc'
    345767sharedstatedir='${prefix}/com'
    346768localstatedir='${prefix}/var'
    347 libdir='${exec_prefix}/lib'
    348769includedir='${prefix}/include'
    349770oldincludedir='/usr/include'
    350 infodir='${prefix}/info'
    351 mandir='${prefix}/man'
     771docdir='${datarootdir}/doc/${PACKAGE}'
     772infodir='${datarootdir}/info'
     773htmldir='${docdir}'
     774dvidir='${docdir}'
     775pdfdir='${docdir}'
     776psdir='${docdir}'
     777libdir='${exec_prefix}/lib'
     778localedir='${datarootdir}/locale'
     779mandir='${datarootdir}/man'
    352780
    353781ac_prev=
     782ac_dashdash=
    354783for ac_option
    355784do
    356785  # If the previous option needs an argument, assign it.
    357786  if test -n "$ac_prev"; then
    358     eval "$ac_prev=\$ac_option"
     787    eval $ac_prev=\$ac_option
    359788    ac_prev=
    360789    continue
    361790  fi
    362791
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     792  case $ac_option in
     793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     794  *=)   ac_optarg= ;;
     795  *)    ac_optarg=yes ;;
     796  esac
    364797
    365798  # Accept the important Cygnus configure options, so we can diagnose typos.
    366799
    367   case $ac_option in
     800  case $ac_dashdash$ac_option in
     801  --)
     802    ac_dashdash=yes ;;
    368803
    369804  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    387822    cache_file=config.cache ;;
    388823
    389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     824  -datadir | --datadir | --datadi | --datad)
    390825    ac_prev=datadir ;;
    391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392   | --da=*)
     826  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    393827    datadir=$ac_optarg ;;
    394828
     829  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     830  | --dataroo | --dataro | --datar)
     831    ac_prev=datarootdir ;;
     832  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     833  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     834    datarootdir=$ac_optarg ;;
     835
    395836  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     837    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    397838    # Reject names that are not valid shell variable names.
    398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    400    { (exit 1); exit 1; }; }
    401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    402     eval "enable_$ac_feature=no" ;;
     839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     840      as_fn_error $? "invalid feature name: $ac_useropt"
     841    ac_useropt_orig=$ac_useropt
     842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     843    case $ac_user_opts in
     844      *"
     845"enable_$ac_useropt"
     846"*) ;;
     847      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     848     ac_unrecognized_sep=', ';;
     849    esac
     850    eval enable_$ac_useropt=no ;;
     851
     852  -docdir | --docdir | --docdi | --doc | --do)
     853    ac_prev=docdir ;;
     854  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     855    docdir=$ac_optarg ;;
     856
     857  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     858    ac_prev=dvidir ;;
     859  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     860    dvidir=$ac_optarg ;;
    403861
    404862  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     863    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    406864    # Reject names that are not valid shell variable names.
    407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    409    { (exit 1); exit 1; }; }
    410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    411     case $ac_option in
    412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    413       *) ac_optarg=yes ;;
     865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     866      as_fn_error $? "invalid feature name: $ac_useropt"
     867    ac_useropt_orig=$ac_useropt
     868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     869    case $ac_user_opts in
     870      *"
     871"enable_$ac_useropt"
     872"*) ;;
     873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     874     ac_unrecognized_sep=', ';;
    414875    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     876    eval enable_$ac_useropt=\$ac_optarg ;;
    416877
    417878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    440901    host_alias=$ac_optarg ;;
    441902
     903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     904    ac_prev=htmldir ;;
     905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     906  | --ht=*)
     907    htmldir=$ac_optarg ;;
     908
    442909  -includedir | --includedir | --includedi | --included | --include \
    443910  | --includ | --inclu | --incl | --inc)
     
    464931    libexecdir=$ac_optarg ;;
    465932
     933  -localedir | --localedir | --localedi | --localed | --locale)
     934    ac_prev=localedir ;;
     935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     936    localedir=$ac_optarg ;;
     937
    466938  -localstatedir | --localstatedir | --localstatedi | --localstated \
    467   | --localstate | --localstat | --localsta | --localst \
    468   | --locals | --local | --loca | --loc | --lo)
     939  | --localstate | --localstat | --localsta | --localst | --locals)
    469940    ac_prev=localstatedir ;;
    470941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    473943    localstatedir=$ac_optarg ;;
    474944
     
    5351005    program_transform_name=$ac_optarg ;;
    5361006
     1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     1008    ac_prev=pdfdir ;;
     1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     1010    pdfdir=$ac_optarg ;;
     1011
     1012  -psdir | --psdir | --psdi | --psd | --ps)
     1013    ac_prev=psdir ;;
     1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     1015    psdir=$ac_optarg ;;
     1016
    5371017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    5381018  | -silent | --silent | --silen | --sile | --sil)
     
    5851065
    5861066  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1067    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5881068    # Reject names that are not valid shell variable names.
    589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    590       { echo "$as_me: error: invalid package name: $ac_package" >&2
    591    { (exit 1); exit 1; }; }
    592     ac_package=`echo $ac_package| sed 's/-/_/g'`
    593     case $ac_option in
    594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    595       *) ac_optarg=yes ;;
     1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1070      as_fn_error $? "invalid package name: $ac_useropt"
     1071    ac_useropt_orig=$ac_useropt
     1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1073    case $ac_user_opts in
     1074      *"
     1075"with_$ac_useropt"
     1076"*) ;;
     1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1078     ac_unrecognized_sep=', ';;
    5961079    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     1080    eval with_$ac_useropt=\$ac_optarg ;;
    5981081
    5991082  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1083    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6011084    # Reject names that are not valid shell variable names.
    602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    603       { echo "$as_me: error: invalid package name: $ac_package" >&2
    604    { (exit 1); exit 1; }; }
    605     ac_package=`echo $ac_package | sed 's/-/_/g'`
    606     eval "with_$ac_package=no" ;;
     1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1086      as_fn_error $? "invalid package name: $ac_useropt"
     1087    ac_useropt_orig=$ac_useropt
     1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1089    case $ac_user_opts in
     1090      *"
     1091"with_$ac_useropt"
     1092"*) ;;
     1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1094     ac_unrecognized_sep=', ';;
     1095    esac
     1096    eval with_$ac_useropt=no ;;
    6071097
    6081098  --x)
     
    6241114    x_libraries=$ac_optarg ;;
    6251115
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1117Try \`$0 --help' for more information"
    6291118    ;;
    6301119
     
    6321121    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    6331122    # Reject names that are not valid shell variable names.
    634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    636    { (exit 1); exit 1; }; }
    637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    638     eval "$ac_envvar='$ac_optarg'"
     1123    case $ac_envvar in #(
     1124      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1126    esac
     1127    eval $ac_envvar=\$ac_optarg
    6391128    export $ac_envvar ;;
    6401129
    6411130  *)
    6421131    # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1132    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    6441133    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1134      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    6461135    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    6471136    ;;
     
    6521141if test -n "$ac_prev"; then
    6531142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    654   { echo "$as_me: error: missing argument to $ac_option" >&2
    655    { (exit 1); exit 1; }; }
    656 fi
    657 
    658 # Be sure to have absolute paths.
    659 for ac_var in exec_prefix prefix
     1143  as_fn_error $? "missing argument to $ac_option"
     1144fi
     1145
     1146if test -n "$ac_unrecognized_opts"; then
     1147  case $enable_option_checking in
     1148    no) ;;
     1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1151  esac
     1152fi
     1153
     1154# Check all directory arguments for consistency.
     1155for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1156        datadir sysconfdir sharedstatedir localstatedir includedir \
     1157        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1158        libdir localedir mandir
    6601159do
    661   eval ac_val=$`echo $ac_var`
     1160  eval ac_val=\$$ac_var
     1161  # Remove trailing slashes.
    6621162  case $ac_val in
    663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    665    { (exit 1); exit 1; }; };;
     1163    */ )
     1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1165      eval $ac_var=\$ac_val;;
    6661166  esac
    667 done
    668 
    669 # Be sure to have absolute paths.
    670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    671           localstatedir libdir includedir oldincludedir infodir mandir
    672 do
    673   eval ac_val=$`echo $ac_var`
     1167  # Be sure to have absolute directory names.
    6741168  case $ac_val in
    675     [\\/$]* | ?:[\\/]* ) ;;
    676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    677    { (exit 1); exit 1; }; };;
     1169    [\\/$]* | ?:[\\/]* )  continue;;
     1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6781171  esac
     1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    6791173done
    6801174
     
    6901184  if test "x$build_alias" = x; then
    6911185    cross_compiling=maybe
    692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    693     If a cross compiler is detected then cross compile mode will be used." >&2
     1186    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
     1187    If a cross compiler is detected then cross compile mode will be used" >&2
    6941188  elif test "x$build_alias" != "x$host_alias"; then
    6951189    cross_compiling=yes
     
    7031197
    7041198
     1199ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1200ac_ls_di=`ls -di .` &&
     1201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1202  as_fn_error $? "working directory cannot be determined"
     1203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1204  as_fn_error $? "pwd does not report name of working directory"
     1205
     1206
    7051207# Find the source files, if location was not specified.
    7061208if test -z "$srcdir"; then
    7071209  ac_srcdir_defaulted=yes
    708   # Try the directory containing this script, then its parent.
    709   ac_confdir=`(dirname "$0") 2>/dev/null ||
    710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    711      X"$0" : 'X\(//\)[^/]' \| \
    712      X"$0" : 'X\(//\)$' \| \
    713      X"$0" : 'X\(/\)' \| \
    714      .     : '\(.\)' 2>/dev/null ||
    715 echo X"$0" |
    716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    717       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    718       /^X\(\/\/\)$/{ s//\1/; q; }
    719       /^X\(\/\).*/{ s//\1/; q; }
    720       s/.*/./; q'`
     1210  # Try the directory containing this script, then the parent directory.
     1211  ac_confdir=`$as_dirname -- "$as_myself" ||
     1212$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1213     X"$as_myself" : 'X\(//\)[^/]' \| \
     1214     X"$as_myself" : 'X\(//\)$' \| \
     1215     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1216$as_echo X"$as_myself" |
     1217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1218        s//\1/
     1219        q
     1220      }
     1221      /^X\(\/\/\)[^/].*/{
     1222        s//\1/
     1223        q
     1224      }
     1225      /^X\(\/\/\)$/{
     1226        s//\1/
     1227        q
     1228      }
     1229      /^X\(\/\).*/{
     1230        s//\1/
     1231        q
     1232      }
     1233      s/.*/./; q'`
    7211234  srcdir=$ac_confdir
    722   if test ! -r $srcdir/$ac_unique_file; then
     1235  if test ! -r "$srcdir/$ac_unique_file"; then
    7231236    srcdir=..
    7241237  fi
     
    7261239  ac_srcdir_defaulted=no
    7271240fi
    728 if test ! -r $srcdir/$ac_unique_file; then
    729   if test "$ac_srcdir_defaulted" = yes; then
    730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    731    { (exit 1); exit 1; }; }
    732   else
    733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    734    { (exit 1); exit 1; }; }
    735   fi
    736 fi
    737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    739    { (exit 1); exit 1; }; }
    740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    741 ac_env_build_alias_set=${build_alias+set}
    742 ac_env_build_alias_value=$build_alias
    743 ac_cv_env_build_alias_set=${build_alias+set}
    744 ac_cv_env_build_alias_value=$build_alias
    745 ac_env_host_alias_set=${host_alias+set}
    746 ac_env_host_alias_value=$host_alias
    747 ac_cv_env_host_alias_set=${host_alias+set}
    748 ac_cv_env_host_alias_value=$host_alias
    749 ac_env_target_alias_set=${target_alias+set}
    750 ac_env_target_alias_value=$target_alias
    751 ac_cv_env_target_alias_set=${target_alias+set}
    752 ac_cv_env_target_alias_value=$target_alias
    753 ac_env_CC_set=${CC+set}
    754 ac_env_CC_value=$CC
    755 ac_cv_env_CC_set=${CC+set}
    756 ac_cv_env_CC_value=$CC
    757 ac_env_CFLAGS_set=${CFLAGS+set}
    758 ac_env_CFLAGS_value=$CFLAGS
    759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    760 ac_cv_env_CFLAGS_value=$CFLAGS
    761 ac_env_LDFLAGS_set=${LDFLAGS+set}
    762 ac_env_LDFLAGS_value=$LDFLAGS
    763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_cv_env_LDFLAGS_value=$LDFLAGS
    765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    766 ac_env_CPPFLAGS_value=$CPPFLAGS
    767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_env_CXX_set=${CXX+set}
    770 ac_env_CXX_value=$CXX
    771 ac_cv_env_CXX_set=${CXX+set}
    772 ac_cv_env_CXX_value=$CXX
    773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    774 ac_env_CXXFLAGS_value=$CXXFLAGS
    775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    777 ac_env_CPP_set=${CPP+set}
    778 ac_env_CPP_value=$CPP
    779 ac_cv_env_CPP_set=${CPP+set}
    780 ac_cv_env_CPP_value=$CPP
     1241if test ! -r "$srcdir/$ac_unique_file"; then
     1242  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1243  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1244fi
     1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1246ac_abs_confdir=`(
     1247    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1248    pwd)`
     1249# When building in place, set srcdir=.
     1250if test "$ac_abs_confdir" = "$ac_pwd"; then
     1251  srcdir=.
     1252fi
     1253# Remove unnecessary trailing slashes from srcdir.
     1254# Double slashes in file names in object file debugging info
     1255# mess up M-x gdb in Emacs.
     1256case $srcdir in
     1257*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1258esac
     1259for ac_var in $ac_precious_vars; do
     1260  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1261  eval ac_env_${ac_var}_value=\$${ac_var}
     1262  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1263  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1264done
    7811265
    7821266#
     
    8011285      --help=recursive    display the short help of all the included packages
    8021286  -V, --version           display version information and exit
    803   -q, --quiet, --silent   do not print \`checking...' messages
     1287  -q, --quiet, --silent   do not print \`checking ...' messages
    8041288      --cache-file=FILE   cache test results in FILE [disabled]
    8051289  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    8071291      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8081292
    809 _ACEOF
    810 
    811   cat <<_ACEOF
    8121293Installation directories:
    8131294  --prefix=PREFIX         install architecture-independent files in PREFIX
    814               [$ac_default_prefix]
     1295                          [$ac_default_prefix]
    8151296  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    816               [PREFIX]
     1297                          [PREFIX]
    8171298
    8181299By default, \`make install' will install all the files in
     
    8241305
    8251306Fine tuning of the installation directories:
    826   --bindir=DIR           user executables [EPREFIX/bin]
    827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    828   --libexecdir=DIR       program executables [EPREFIX/libexec]
    829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    833   --libdir=DIR           object code libraries [EPREFIX/lib]
    834   --includedir=DIR       C header files [PREFIX/include]
    835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    836   --infodir=DIR          info documentation [PREFIX/info]
    837   --mandir=DIR           man documentation [PREFIX/man]
     1307  --bindir=DIR            user executables [EPREFIX/bin]
     1308  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1309  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1310  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1311  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1312  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1313  --libdir=DIR            object code libraries [EPREFIX/lib]
     1314  --includedir=DIR        C header files [PREFIX/include]
     1315  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1316  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1317  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1318  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1319  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1320  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1321  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1322  --htmldir=DIR           html documentation [DOCDIR]
     1323  --dvidir=DIR            dvi documentation [DOCDIR]
     1324  --pdfdir=DIR            pdf documentation [DOCDIR]
     1325  --psdir=DIR             ps documentation [DOCDIR]
    8381326_ACEOF
    8391327
     
    8521340
    8531341Optional Features:
     1342  --disable-option-checking  ignore unrecognized --enable/--with options
    8541343  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8551344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     
    8571346  --enable-z3950          Enable Z39.50 client support
    8581347  --disable-yaz           Disable YAZ compilation
     1348  --disable-java          Disable Java compilation
    8591349  --disable-jdbm        Disable JDBM compilation
    8601350  --disable-gdbm        Disable GDBM compilation
     
    8791369  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8801370              nonstandard directory <lib dir>
    881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    882               headers in a nonstandard directory <include dir>
     1371  LIBS        libraries to pass to the linker, e.g. -l<library>
     1372  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1373              you have headers in a nonstandard directory <include dir>
    8831374  CXX         C++ compiler command
    8841375  CXXFLAGS    C++ compiler flags
     1376  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
     1377              the first program found out of: `bison -y', `byacc', `yacc'.
     1378  YFLAGS      The list of arguments that will be passed by default to $YACC.
     1379              This script will default YFLAGS to the empty string to avoid a
     1380              default value of `-d' given by some make applications.
    8851381  CPP         C preprocessor
    8861382
     
    8881384it to find libraries and programs with nonstandard names/locations.
    8891385
    890 _ACEOF
     1386Report bugs to the package provider.
     1387_ACEOF
     1388ac_status=$?
    8911389fi
    8921390
    8931391if test "$ac_init_help" = "recursive"; then
    8941392  # If there are subdirs, report their specific --help.
    895   ac_popdir=`pwd`
    8961393  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    897     test -d $ac_dir || continue
     1394    test -d "$ac_dir" ||
     1395      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1396      continue
    8981397    ac_builddir=.
    8991398
    900 if test "$ac_dir" != .; then
    901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    902   # A "../" for each directory in $ac_dir_suffix.
    903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    904 else
    905   ac_dir_suffix= ac_top_builddir=
    906 fi
     1399case "$ac_dir" in
     1400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1401*)
     1402  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1403  # A ".." for each directory in $ac_dir_suffix.
     1404  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1405  case $ac_top_builddir_sub in
     1406  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1407  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1408  esac ;;
     1409esac
     1410ac_abs_top_builddir=$ac_pwd
     1411ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1412# for backward compatibility:
     1413ac_top_builddir=$ac_top_build_prefix
    9071414
    9081415case $srcdir in
    909   .)  # No --srcdir option.  We are building in place.
     1416  .)  # We are building in place.
    9101417    ac_srcdir=.
    911     if test -z "$ac_top_builddir"; then
    912        ac_top_srcdir=.
     1418    ac_top_srcdir=$ac_top_builddir_sub
     1419    ac_abs_top_srcdir=$ac_pwd ;;
     1420  [\\/]* | ?:[\\/]* )  # Absolute name.
     1421    ac_srcdir=$srcdir$ac_dir_suffix;
     1422    ac_top_srcdir=$srcdir
     1423    ac_abs_top_srcdir=$srcdir ;;
     1424  *) # Relative name.
     1425    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1426    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1427    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1428esac
     1429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1430
     1431    cd "$ac_dir" || { ac_status=$?; continue; }
     1432    # Check for guested configure.
     1433    if test -f "$ac_srcdir/configure.gnu"; then
     1434      echo &&
     1435      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1436    elif test -f "$ac_srcdir/configure"; then
     1437      echo &&
     1438      $SHELL "$ac_srcdir/configure" --help=recursive
    9131439    else
    914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    915     fi ;;
    916   [\\/]* | ?:[\\/]* )  # Absolute path.
    917     ac_srcdir=$srcdir$ac_dir_suffix;
    918     ac_top_srcdir=$srcdir ;;
    919   *) # Relative path.
    920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    922 esac
    923 
    924 # Do not use `cd foo && pwd` to compute absolute paths, because
    925 # the directories may not exist.
    926 case `pwd` in
    927 .) ac_abs_builddir="$ac_dir";;
    928 *)
    929   case "$ac_dir" in
    930   .) ac_abs_builddir=`pwd`;;
    931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    933   esac;;
    934 esac
    935 case $ac_abs_builddir in
    936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    937 *)
    938   case ${ac_top_builddir}. in
    939   .) ac_abs_top_builddir=$ac_abs_builddir;;
    940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    942   esac;;
    943 esac
    944 case $ac_abs_builddir in
    945 .) ac_abs_srcdir=$ac_srcdir;;
    946 *)
    947   case $ac_srcdir in
    948   .) ac_abs_srcdir=$ac_abs_builddir;;
    949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    951   esac;;
    952 esac
    953 case $ac_abs_builddir in
    954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    955 *)
    956   case $ac_top_srcdir in
    957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    960   esac;;
    961 esac
    962 
    963     cd $ac_dir
    964     # Check for guested configure; otherwise get Cygnus style configure.
    965     if test -f $ac_srcdir/configure.gnu; then
    966       echo
    967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    968     elif test -f $ac_srcdir/configure; then
    969       echo
    970       $SHELL $ac_srcdir/configure  --help=recursive
    971     elif test -f $ac_srcdir/configure.ac ||
    972        test -f $ac_srcdir/configure.in; then
    973       echo
    974       $ac_configure --help
    975     else
    976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    977     fi
    978     cd $ac_popdir
     1440      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1441    fi || ac_status=$?
     1442    cd "$ac_pwd" || { ac_status=$?; break; }
    9791443  done
    9801444fi
    9811445
    982 test -n "$ac_init_help" && exit 0
     1446test -n "$ac_init_help" && exit $ac_status
    9831447if $ac_init_version; then
    9841448  cat <<\_ACEOF
    985 
    986 Copyright (C) 2003 Free Software Foundation, Inc.
     1449configure
     1450generated by GNU Autoconf 2.67
     1451
     1452Copyright (C) 2010 Free Software Foundation, Inc.
    9871453This configure script is free software; the Free Software Foundation
    9881454gives unlimited permission to copy, distribute and modify it.
    9891455_ACEOF
    990   exit 0
    991 fi
    992 exec 5>config.log
    993 cat >&5 <<_ACEOF
     1456  exit
     1457fi
     1458
     1459## ------------------------ ##
     1460## Autoconf initialization. ##
     1461## ------------------------ ##
     1462
     1463# ac_fn_c_try_compile LINENO
     1464# --------------------------
     1465# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1466ac_fn_c_try_compile ()
     1467{
     1468  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1469  rm -f conftest.$ac_objext
     1470  if { { ac_try="$ac_compile"
     1471case "(($ac_try" in
     1472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1473  *) ac_try_echo=$ac_try;;
     1474esac
     1475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1476$as_echo "$ac_try_echo"; } >&5
     1477  (eval "$ac_compile") 2>conftest.err
     1478  ac_status=$?
     1479  if test -s conftest.err; then
     1480    grep -v '^ *+' conftest.err >conftest.er1
     1481    cat conftest.er1 >&5
     1482    mv -f conftest.er1 conftest.err
     1483  fi
     1484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1485  test $ac_status = 0; } && {
     1486     test -z "$ac_c_werror_flag" ||
     1487     test ! -s conftest.err
     1488       } && test -s conftest.$ac_objext; then :
     1489  ac_retval=0
     1490else
     1491  $as_echo "$as_me: failed program was:" >&5
     1492sed 's/^/| /' conftest.$ac_ext >&5
     1493
     1494    ac_retval=1
     1495fi
     1496  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1497  as_fn_set_status $ac_retval
     1498
     1499} # ac_fn_c_try_compile
     1500
     1501# ac_fn_cxx_try_compile LINENO
     1502# ----------------------------
     1503# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1504ac_fn_cxx_try_compile ()
     1505{
     1506  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1507  rm -f conftest.$ac_objext
     1508  if { { ac_try="$ac_compile"
     1509case "(($ac_try" in
     1510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1511  *) ac_try_echo=$ac_try;;
     1512esac
     1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1514$as_echo "$ac_try_echo"; } >&5
     1515  (eval "$ac_compile") 2>conftest.err
     1516  ac_status=$?
     1517  if test -s conftest.err; then
     1518    grep -v '^ *+' conftest.err >conftest.er1
     1519    cat conftest.er1 >&5
     1520    mv -f conftest.er1 conftest.err
     1521  fi
     1522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1523  test $ac_status = 0; } && {
     1524     test -z "$ac_cxx_werror_flag" ||
     1525     test ! -s conftest.err
     1526       } && test -s conftest.$ac_objext; then :
     1527  ac_retval=0
     1528else
     1529  $as_echo "$as_me: failed program was:" >&5
     1530sed 's/^/| /' conftest.$ac_ext >&5
     1531
     1532    ac_retval=1
     1533fi
     1534  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1535  as_fn_set_status $ac_retval
     1536
     1537} # ac_fn_cxx_try_compile
     1538
     1539# ac_fn_c_try_cpp LINENO
     1540# ----------------------
     1541# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1542ac_fn_c_try_cpp ()
     1543{
     1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1545  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1546case "(($ac_try" in
     1547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1548  *) ac_try_echo=$ac_try;;
     1549esac
     1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1551$as_echo "$ac_try_echo"; } >&5
     1552  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1553  ac_status=$?
     1554  if test -s conftest.err; then
     1555    grep -v '^ *+' conftest.err >conftest.er1
     1556    cat conftest.er1 >&5
     1557    mv -f conftest.er1 conftest.err
     1558  fi
     1559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1560  test $ac_status = 0; } > conftest.i && {
     1561     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1562     test ! -s conftest.err
     1563       }; then :
     1564  ac_retval=0
     1565else
     1566  $as_echo "$as_me: failed program was:" >&5
     1567sed 's/^/| /' conftest.$ac_ext >&5
     1568
     1569    ac_retval=1
     1570fi
     1571  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1572  as_fn_set_status $ac_retval
     1573
     1574} # ac_fn_c_try_cpp
     1575
     1576# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1577# -------------------------------------------------------
     1578# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1579# the include files in INCLUDES and setting the cache variable VAR
     1580# accordingly.
     1581ac_fn_c_check_header_mongrel ()
     1582{
     1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1584  if eval "test \"\${$3+set}\"" = set; then :
     1585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1586$as_echo_n "checking for $2... " >&6; }
     1587if eval "test \"\${$3+set}\"" = set; then :
     1588  $as_echo_n "(cached) " >&6
     1589fi
     1590eval ac_res=\$$3
     1591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1592$as_echo "$ac_res" >&6; }
     1593else
     1594  # Is the header compilable?
     1595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1596$as_echo_n "checking $2 usability... " >&6; }
     1597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1598/* end confdefs.h.  */
     1599$4
     1600#include <$2>
     1601_ACEOF
     1602if ac_fn_c_try_compile "$LINENO"; then :
     1603  ac_header_compiler=yes
     1604else
     1605  ac_header_compiler=no
     1606fi
     1607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1609$as_echo "$ac_header_compiler" >&6; }
     1610
     1611# Is the header present?
     1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1613$as_echo_n "checking $2 presence... " >&6; }
     1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1615/* end confdefs.h.  */
     1616#include <$2>
     1617_ACEOF
     1618if ac_fn_c_try_cpp "$LINENO"; then :
     1619  ac_header_preproc=yes
     1620else
     1621  ac_header_preproc=no
     1622fi
     1623rm -f conftest.err conftest.i conftest.$ac_ext
     1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1625$as_echo "$ac_header_preproc" >&6; }
     1626
     1627# So?  What about this header?
     1628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1629  yes:no: )
     1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1631$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1633$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1634    ;;
     1635  no:yes:* )
     1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1637$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1639$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1641$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1643$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1645$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1646    ;;
     1647esac
     1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1649$as_echo_n "checking for $2... " >&6; }
     1650if eval "test \"\${$3+set}\"" = set; then :
     1651  $as_echo_n "(cached) " >&6
     1652else
     1653  eval "$3=\$ac_header_compiler"
     1654fi
     1655eval ac_res=\$$3
     1656           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1657$as_echo "$ac_res" >&6; }
     1658fi
     1659  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1660
     1661} # ac_fn_c_check_header_mongrel
     1662
     1663# ac_fn_c_try_run LINENO
     1664# ----------------------
     1665# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1666# that executables *can* be run.
     1667ac_fn_c_try_run ()
     1668{
     1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1670  if { { ac_try="$ac_link"
     1671case "(($ac_try" in
     1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1673  *) ac_try_echo=$ac_try;;
     1674esac
     1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1676$as_echo "$ac_try_echo"; } >&5
     1677  (eval "$ac_link") 2>&5
     1678  ac_status=$?
     1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1680  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1681  { { case "(($ac_try" in
     1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1683  *) ac_try_echo=$ac_try;;
     1684esac
     1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1686$as_echo "$ac_try_echo"; } >&5
     1687  (eval "$ac_try") 2>&5
     1688  ac_status=$?
     1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1690  test $ac_status = 0; }; }; then :
     1691  ac_retval=0
     1692else
     1693  $as_echo "$as_me: program exited with status $ac_status" >&5
     1694       $as_echo "$as_me: failed program was:" >&5
     1695sed 's/^/| /' conftest.$ac_ext >&5
     1696
     1697       ac_retval=$ac_status
     1698fi
     1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1700  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1701  as_fn_set_status $ac_retval
     1702
     1703} # ac_fn_c_try_run
     1704
     1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1706# -------------------------------------------------------
     1707# Tests whether HEADER exists and can be compiled using the include files in
     1708# INCLUDES, setting the cache variable VAR accordingly.
     1709ac_fn_c_check_header_compile ()
     1710{
     1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1713$as_echo_n "checking for $2... " >&6; }
     1714if eval "test \"\${$3+set}\"" = set; then :
     1715  $as_echo_n "(cached) " >&6
     1716else
     1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1718/* end confdefs.h.  */
     1719$4
     1720#include <$2>
     1721_ACEOF
     1722if ac_fn_c_try_compile "$LINENO"; then :
     1723  eval "$3=yes"
     1724else
     1725  eval "$3=no"
     1726fi
     1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1728fi
     1729eval ac_res=\$$3
     1730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1731$as_echo "$ac_res" >&6; }
     1732  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1733
     1734} # ac_fn_c_check_header_compile
     1735
     1736# ac_fn_c_try_link LINENO
     1737# -----------------------
     1738# Try to link conftest.$ac_ext, and return whether this succeeded.
     1739ac_fn_c_try_link ()
     1740{
     1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1742  rm -f conftest.$ac_objext conftest$ac_exeext
     1743  if { { ac_try="$ac_link"
     1744case "(($ac_try" in
     1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1746  *) ac_try_echo=$ac_try;;
     1747esac
     1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1749$as_echo "$ac_try_echo"; } >&5
     1750  (eval "$ac_link") 2>conftest.err
     1751  ac_status=$?
     1752  if test -s conftest.err; then
     1753    grep -v '^ *+' conftest.err >conftest.er1
     1754    cat conftest.er1 >&5
     1755    mv -f conftest.er1 conftest.err
     1756  fi
     1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1758  test $ac_status = 0; } && {
     1759     test -z "$ac_c_werror_flag" ||
     1760     test ! -s conftest.err
     1761       } && test -s conftest$ac_exeext && {
     1762     test "$cross_compiling" = yes ||
     1763     $as_test_x conftest$ac_exeext
     1764       }; then :
     1765  ac_retval=0
     1766else
     1767  $as_echo "$as_me: failed program was:" >&5
     1768sed 's/^/| /' conftest.$ac_ext >&5
     1769
     1770    ac_retval=1
     1771fi
     1772  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1773  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1774  # interfere with the next link command; also delete a directory that is
     1775  # left behind by Apple's compiler.  We do this before executing the actions.
     1776  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1778  as_fn_set_status $ac_retval
     1779
     1780} # ac_fn_c_try_link
     1781
     1782# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1783# -------------------------------------------
     1784# Tests whether TYPE exists after having included INCLUDES, setting cache
     1785# variable VAR accordingly.
     1786ac_fn_c_check_type ()
     1787{
     1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1790$as_echo_n "checking for $2... " >&6; }
     1791if eval "test \"\${$3+set}\"" = set; then :
     1792  $as_echo_n "(cached) " >&6
     1793else
     1794  eval "$3=no"
     1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1796/* end confdefs.h.  */
     1797$4
     1798int
     1799main ()
     1800{
     1801if (sizeof ($2))
     1802     return 0;
     1803  ;
     1804  return 0;
     1805}
     1806_ACEOF
     1807if ac_fn_c_try_compile "$LINENO"; then :
     1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1809/* end confdefs.h.  */
     1810$4
     1811int
     1812main ()
     1813{
     1814if (sizeof (($2)))
     1815        return 0;
     1816  ;
     1817  return 0;
     1818}
     1819_ACEOF
     1820if ac_fn_c_try_compile "$LINENO"; then :
     1821
     1822else
     1823  eval "$3=yes"
     1824fi
     1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1826fi
     1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1828fi
     1829eval ac_res=\$$3
     1830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1831$as_echo "$ac_res" >&6; }
     1832  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1833
     1834} # ac_fn_c_check_type
     1835
     1836# ac_fn_c_check_func LINENO FUNC VAR
     1837# ----------------------------------
     1838# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1839ac_fn_c_check_func ()
     1840{
     1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1843$as_echo_n "checking for $2... " >&6; }
     1844if eval "test \"\${$3+set}\"" = set; then :
     1845  $as_echo_n "(cached) " >&6
     1846else
     1847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1848/* end confdefs.h.  */
     1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1850   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1851#define $2 innocuous_$2
     1852
     1853/* System header to define __stub macros and hopefully few prototypes,
     1854    which can conflict with char $2 (); below.
     1855    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1856    <limits.h> exists even on freestanding compilers.  */
     1857
     1858#ifdef __STDC__
     1859# include <limits.h>
     1860#else
     1861# include <assert.h>
     1862#endif
     1863
     1864#undef $2
     1865
     1866/* Override any GCC internal prototype to avoid an error.
     1867   Use char because int might match the return type of a GCC
     1868   builtin and then its argument prototype would still apply.  */
     1869#ifdef __cplusplus
     1870extern "C"
     1871#endif
     1872char $2 ();
     1873/* The GNU C library defines this for functions which it implements
     1874    to always fail with ENOSYS.  Some functions are actually named
     1875    something starting with __ and the normal name is an alias.  */
     1876#if defined __stub_$2 || defined __stub___$2
     1877choke me
     1878#endif
     1879
     1880int
     1881main ()
     1882{
     1883return $2 ();
     1884  ;
     1885  return 0;
     1886}
     1887_ACEOF
     1888if ac_fn_c_try_link "$LINENO"; then :
     1889  eval "$3=yes"
     1890else
     1891  eval "$3=no"
     1892fi
     1893rm -f core conftest.err conftest.$ac_objext \
     1894    conftest$ac_exeext conftest.$ac_ext
     1895fi
     1896eval ac_res=\$$3
     1897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1898$as_echo "$ac_res" >&6; }
     1899  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1900
     1901} # ac_fn_c_check_func
     1902
     1903# ac_fn_cxx_try_run LINENO
     1904# ------------------------
     1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1906# that executables *can* be run.
     1907ac_fn_cxx_try_run ()
     1908{
     1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1910  if { { ac_try="$ac_link"
     1911case "(($ac_try" in
     1912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1913  *) ac_try_echo=$ac_try;;
     1914esac
     1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1916$as_echo "$ac_try_echo"; } >&5
     1917  (eval "$ac_link") 2>&5
     1918  ac_status=$?
     1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1920  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1921  { { case "(($ac_try" in
     1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1923  *) ac_try_echo=$ac_try;;
     1924esac
     1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1926$as_echo "$ac_try_echo"; } >&5
     1927  (eval "$ac_try") 2>&5
     1928  ac_status=$?
     1929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1930  test $ac_status = 0; }; }; then :
     1931  ac_retval=0
     1932else
     1933  $as_echo "$as_me: program exited with status $ac_status" >&5
     1934       $as_echo "$as_me: failed program was:" >&5
     1935sed 's/^/| /' conftest.$ac_ext >&5
     1936
     1937       ac_retval=$ac_status
     1938fi
     1939  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1940  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1941  as_fn_set_status $ac_retval
     1942
     1943} # ac_fn_cxx_try_run
     1944cat >config.log <<_ACEOF
    9941945This file contains any messages produced by compilers while
    9951946running configure, to aid debugging if configure makes a mistake.
    9961947
    9971948It was created by $as_me, which was
    998 generated by GNU Autoconf 2.59.  Invocation command line was
     1949generated by GNU Autoconf 2.67.  Invocation command line was
    9991950
    10001951  $ $0 $@
    10011952
    10021953_ACEOF
     1954exec 5>>config.log
    10031955{
    10041956cat <<_ASUNAME
     
    10191971/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    10201972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1021 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1973/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    10221974/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    10231975/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    10311983  IFS=$as_save_IFS
    10321984  test -z "$as_dir" && as_dir=.
    1033   echo "PATH: $as_dir"
    1034 done
     1985    $as_echo "PATH: $as_dir"
     1986  done
     1987IFS=$as_save_IFS
    10351988
    10361989} >&5
     
    10542007ac_configure_args0=
    10552008ac_configure_args1=
    1056 ac_sep=
    10572009ac_must_keep_next=false
    10582010for ac_pass in 1 2
     
    10652017    | -silent | --silent | --silen | --sile | --sil)
    10662018      continue ;;
    1067     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1068       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2019    *\'*)
     2020      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10692021    esac
    10702022    case $ac_pass in
    1071     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2023    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    10722024    2)
    1073       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2025      as_fn_append ac_configure_args1 " '$ac_arg'"
    10742026      if test $ac_must_keep_next = true; then
    10752027    ac_must_keep_next=false # Got value, back to normal.
     
    10872039    esac
    10882040      fi
    1089       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1090       # Get rid of the leading space.
    1091       ac_sep=" "
     2041      as_fn_append ac_configure_args " '$ac_arg'"
    10922042      ;;
    10932043    esac
    10942044  done
    10952045done
    1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2046{ ac_configure_args0=; unset ac_configure_args0;}
     2047{ ac_configure_args1=; unset ac_configure_args1;}
    10982048
    10992049# When interrupted or exit'd, cleanup temporary files, and complete
    11002050# config.log.  We remove comments because anyway the quotes in there
    11012051# would cause problems or look ugly.
    1102 # WARNING: Be sure not to use single quotes in there, as some shells,
    1103 # such as our DU 5.0 friend, will then `close' the trap.
     2052# WARNING: Use '\'' to represent an apostrophe within the trap.
     2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    11042054trap 'exit_status=$?
    11052055  # Save into config.log some information that might help in debugging.
     
    11072057    echo
    11082058
    1109     cat <<\_ASBOX
    1110 ## ---------------- ##
     2059    $as_echo "## ---------------- ##
    11112060## Cache variables. ##
    1112 ## ---------------- ##
    1113 _ASBOX
     2061## ---------------- ##"
    11142062    echo
    11152063    # The following way of writing the cache mishandles newlines in values,
    1116 {
     2064(
     2065  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2066    eval ac_val=\$$ac_var
     2067    case $ac_val in #(
     2068    *${as_nl}*)
     2069      case $ac_var in #(
     2070      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2072      esac
     2073      case $ac_var in #(
     2074      _ | IFS | as_nl) ;; #(
     2075      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2076      *) { eval $ac_var=; unset $ac_var;} ;;
     2077      esac ;;
     2078    esac
     2079  done
    11172080  (set) 2>&1 |
    1118     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1119     *ac_space=\ *)
     2081    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2082    *${as_nl}ac_space=\ *)
    11202083      sed -n \
    1121     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1122       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2084    "s/'\''/'\''\\\\'\'''\''/g;
     2085      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2086      ;; #(
     2087    *)
     2088      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    11232089      ;;
    1124     *)
    1125       sed -n \
    1126     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1127       ;;
    1128     esac;
    1129 }
     2090    esac |
     2091    sort
     2092)
    11302093    echo
    11312094
    1132     cat <<\_ASBOX
    1133 ## ----------------- ##
     2095    $as_echo "## ----------------- ##
    11342096## Output variables. ##
    1135 ## ----------------- ##
    1136 _ASBOX
     2097## ----------------- ##"
    11372098    echo
    11382099    for ac_var in $ac_subst_vars
    11392100    do
    1140       eval ac_val=$`echo $ac_var`
    1141       echo "$ac_var='"'"'$ac_val'"'"'"
     2101      eval ac_val=\$$ac_var
     2102      case $ac_val in
     2103      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2104      esac
     2105      $as_echo "$ac_var='\''$ac_val'\''"
    11422106    done | sort
    11432107    echo
    11442108
    11452109    if test -n "$ac_subst_files"; then
    1146       cat <<\_ASBOX
    1147 ## ------------- ##
    1148 ## Output files. ##
    1149 ## ------------- ##
    1150 _ASBOX
     2110      $as_echo "## ------------------- ##
     2111## File substitutions. ##
     2112## ------------------- ##"
    11512113      echo
    11522114      for ac_var in $ac_subst_files
    11532115      do
    1154     eval ac_val=$`echo $ac_var`
    1155     echo "$ac_var='"'"'$ac_val'"'"'"
     2116    eval ac_val=\$$ac_var
     2117    case $ac_val in
     2118    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2119    esac
     2120    $as_echo "$ac_var='\''$ac_val'\''"
    11562121      done | sort
    11572122      echo
     
    11592124
    11602125    if test -s confdefs.h; then
    1161       cat <<\_ASBOX
    1162 ## ----------- ##
     2126      $as_echo "## ----------- ##
    11632127## confdefs.h. ##
    1164 ## ----------- ##
    1165 _ASBOX
     2128## ----------- ##"
    11662129      echo
    1167       sed "/^$/d" confdefs.h | sort
     2130      cat confdefs.h
    11682131      echo
    11692132    fi
    11702133    test "$ac_signal" != 0 &&
    1171       echo "$as_me: caught signal $ac_signal"
    1172     echo "$as_me: exit $exit_status"
     2134      $as_echo "$as_me: caught signal $ac_signal"
     2135    $as_echo "$as_me: exit $exit_status"
    11732136  } >&5
    1174   rm -f core *.core &&
    1175   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2137  rm -f core *.core core.conftest.* &&
     2138    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11762139    exit $exit_status
    1177      ' 0
     2140' 0
    11782141for ac_signal in 1 2 13 15; do
    1179   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2142  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    11802143done
    11812144ac_signal=0
    11822145
    11832146# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1184 rm -rf conftest* confdefs.h
    1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1186 echo >confdefs.h
     2147rm -f -r conftest* confdefs.h
     2148
     2149$as_echo "/* confdefs.h */" > confdefs.h
    11872150
    11882151# Predefined preprocessor variables.
     
    11922155_ACEOF
    11932156
    1194 
    11952157cat >>confdefs.h <<_ACEOF
    11962158#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    11972159_ACEOF
    11982160
    1199 
    12002161cat >>confdefs.h <<_ACEOF
    12012162#define PACKAGE_VERSION "$PACKAGE_VERSION"
    12022163_ACEOF
    12032164
    1204 
    12052165cat >>confdefs.h <<_ACEOF
    12062166#define PACKAGE_STRING "$PACKAGE_STRING"
    12072167_ACEOF
    12082168
    1209 
    12102169cat >>confdefs.h <<_ACEOF
    12112170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    12122171_ACEOF
    12132172
     2173cat >>confdefs.h <<_ACEOF
     2174#define PACKAGE_URL "$PACKAGE_URL"
     2175_ACEOF
     2176
    12142177
    12152178# Let the site file select an alternate cache file if it wants to.
    1216 # Prefer explicitly selected file to automatically selected ones.
    1217 if test -z "$CONFIG_SITE"; then
    1218   if test "x$prefix" != xNONE; then
    1219     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1220   else
    1221     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1222   fi
    1223 fi
    1224 for ac_site_file in $CONFIG_SITE; do
    1225   if test -r "$ac_site_file"; then
    1226     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1227 echo "$as_me: loading site script $ac_site_file" >&6;}
     2179# Prefer an explicitly selected file to automatically selected ones.
     2180ac_site_file1=NONE
     2181ac_site_file2=NONE
     2182if test -n "$CONFIG_SITE"; then
     2183  # We do not want a PATH search for config.site.
     2184  case $CONFIG_SITE in #((
     2185    -*)  ac_site_file1=./$CONFIG_SITE;;
     2186    */*) ac_site_file1=$CONFIG_SITE;;
     2187    *)   ac_site_file1=./$CONFIG_SITE;;
     2188  esac
     2189elif test "x$prefix" != xNONE; then
     2190  ac_site_file1=$prefix/share/config.site
     2191  ac_site_file2=$prefix/etc/config.site
     2192else
     2193  ac_site_file1=$ac_default_prefix/share/config.site
     2194  ac_site_file2=$ac_default_prefix/etc/config.site
     2195fi
     2196for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2197do
     2198  test "x$ac_site_file" = xNONE && continue
     2199  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2200    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2201$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    12282202    sed 's/^/| /' "$ac_site_file" >&5
    1229     . "$ac_site_file"
     2203    . "$ac_site_file" \
     2204      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2206as_fn_error $? "failed to load site script $ac_site_file
     2207See \`config.log' for more details" "$LINENO" 5 ; }
    12302208  fi
    12312209done
    12322210
    12332211if test -r "$cache_file"; then
    1234   # Some versions of bash will fail to source /dev/null (special
    1235   # files actually), so we avoid doing that.
    1236   if test -f "$cache_file"; then
    1237     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1238 echo "$as_me: loading cache $cache_file" >&6;}
     2212  # Some versions of bash will fail to source /dev/null (special files
     2213  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2214  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2215    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     2216$as_echo "$as_me: loading cache $cache_file" >&6;}
    12392217    case $cache_file in
    1240       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1241       *)                      . ./$cache_file;;
     2218      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     2219      *)                      . "./$cache_file";;
    12422220    esac
    12432221  fi
    12442222else
    1245   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1246 echo "$as_me: creating cache $cache_file" >&6;}
     2223  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     2224$as_echo "$as_me: creating cache $cache_file" >&6;}
    12472225  >$cache_file
    12482226fi
     
    12512229# value.
    12522230ac_cache_corrupted=false
    1253 for ac_var in `(set) 2>&1 |
    1254            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2231for ac_var in $ac_precious_vars; do
    12552232  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12562233  eval ac_new_set=\$ac_env_${ac_var}_set
    1257   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1258   eval ac_new_val="\$ac_env_${ac_var}_value"
     2234  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2235  eval ac_new_val=\$ac_env_${ac_var}_value
    12592236  case $ac_old_set,$ac_new_set in
    12602237    set,)
    1261       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2238      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    12632240      ac_cache_corrupted=: ;;
    12642241    ,set)
    1265       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2242      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    12672244      ac_cache_corrupted=: ;;
    12682245    ,);;
    12692246    *)
    12702247      if test "x$ac_old_val" != "x$ac_new_val"; then
    1271     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1273     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1274 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1275     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1276 echo "$as_me:   current value: $ac_new_val" >&2;}
    1277     ac_cache_corrupted=:
     2248    # differences in whitespace do not lead to failure.
     2249    ac_old_val_w=`echo x $ac_old_val`
     2250    ac_new_val_w=`echo x $ac_new_val`
     2251    if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2252      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2254      ac_cache_corrupted=:
     2255    else
     2256      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2258      eval $ac_var=\$ac_old_val
     2259    fi
     2260    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2261$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2262    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2263$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    12782264      fi;;
    12792265  esac
     
    12812267  if test "$ac_new_set" = set; then
    12822268    case $ac_new_val in
    1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1284       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2269    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12852270    *) ac_arg=$ac_var=$ac_new_val ;;
    12862271    esac
    12872272    case " $ac_configure_args " in
    12882273      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1289       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2274      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    12902275    esac
    12912276  fi
    12922277done
    12932278if $ac_cache_corrupted; then
    1294   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1296   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1298    { (exit 1); exit 1; }; }
    1299 fi
     2279  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2283  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2284fi
     2285## -------------------- ##
     2286## Main body of script. ##
     2287## -------------------- ##
    13002288
    13012289ac_ext=c
     
    13062294
    13072295
    1308 
    1309 
    1310 
    1311 
    1312 
    1313 
    1314 
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323 
    1324 
    1325           ac_config_headers="$ac_config_headers config.h"
     2296ac_config_headers="$ac_config_headers config.h"
    13262297
    13272298
     
    13292300
    13302301PACKAGE=gsdl
    1331 VERSION=2.82-svn
     2302VERSION=2.x-svn
    13322303cat >>confdefs.h <<_ACEOF
    13332304#define PACKAGE "$PACKAGE"
     
    13432314USE_FASTCGI=0
    13442315if test USE_FASTCGI = 1; then
    1345 cat >>confdefs.h <<\_ACEOF
    1346 #define USE_FASTCGI 1
    1347 _ACEOF
     2316$as_echo "#define USE_FASTCGI 1" >>confdefs.h
    13482317
    13492318
     
    13512320
    13522321if test USE_LANGACTION = 1; then
    1353 cat >>confdefs.h <<\_ACEOF
    1354 #define USE_LANGACTION 1
    1355 _ACEOF
    1356 
    1357 
    1358 fi
    1359 
    1360 # Check whether --enable-corba or --disable-corba was given.
    1361 if test "${enable_corba+set}" = set; then
    1362   enableval="$enable_corba"
    1363   USE_CORBA=$enableval
     2322$as_echo "#define USE_LANGACTION 1" >>confdefs.h
     2323
     2324
     2325fi
     2326
     2327# Check whether --enable-corba was given.
     2328if test "${enable_corba+set}" = set; then :
     2329  enableval=$enable_corba; USE_CORBA=$enableval
    13642330else
    13652331  USE_CORBA=no
    1366 fi;
     2332fi
     2333
    13672334if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
    13682335  USE_CORBA=1
    1369   cat >>confdefs.h <<\_ACEOF
    1370 #define USE_CORBA
    1371 _ACEOF
     2336  $as_echo "#define USE_CORBA /**/" >>confdefs.h
    13722337
    13732338else
     
    13772342
    13782343
    1379 # Check whether --with-micodir or --without-micodir was given.
    1380 if test "${with_micodir+set}" = set; then
    1381   withval="$with_micodir"
    1382   MICO_DIR=$withval
     2344# Check whether --with-micodir was given.
     2345if test "${with_micodir+set}" = set; then :
     2346  withval=$with_micodir; MICO_DIR=$withval
    13832347else
    13842348  MICO_DIR="default"
    1385 fi;
     2349fi
     2350
    13862351cat >>confdefs.h <<_ACEOF
    13872352#define MICO_DIR "$MICO_DIR"
     
    13902355
    13912356
    1392 # Check whether --enable-z3950 or --disable-z3950 was given.
    1393 if test "${enable_z3950+set}" = set; then
    1394   enableval="$enable_z3950"
    1395   USE_Z3950=$enableval
     2357# Check whether --enable-z3950 was given.
     2358if test "${enable_z3950+set}" = set; then :
     2359  enableval=$enable_z3950; USE_Z3950=$enableval
    13962360else
    13972361  USE_Z3950=no
    1398 fi;
     2362fi
     2363
    13992364if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
    14002365  USE_Z3950=1
    1401   cat >>confdefs.h <<\_ACEOF
    1402 #define USE_Z3950
    1403 _ACEOF
     2366  $as_echo "#define USE_Z3950 /**/" >>confdefs.h
    14042367
    14052368else
     
    14082371
    14092372
    1410 # Check whether --enable-yaz or --disable-yaz was given.
    1411 if test "${enable_yaz+set}" = set; then
    1412   enableval="$enable_yaz"
    1413   USE_YAZ=$enableval
     2373# Check whether --enable-yaz was given.
     2374if test "${enable_yaz+set}" = set; then :
     2375  enableval=$enable_yaz; USE_YAZ=$enableval
    14142376else
    14152377  USE_YAZ=yes
    1416 fi;
     2378fi
     2379
    14172380if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
    14182381  USE_YAZ=1
    1419   cat >>confdefs.h <<\_ACEOF
    1420 #define USE_YAZ
    1421 _ACEOF
     2382  $as_echo "#define USE_YAZ /**/" >>confdefs.h
    14222383
    14232384else
     
    14262387
    14272388
    1428 # Check whether --enable-jdbm or --disable-jdbm was given.
    1429 if test "${enable_jdbm+set}" = set; then
    1430   enableval="$enable_jdbm"
    1431   USE_JDBM=$enableval
     2389# Check whether --enable-java was given.
     2390if test "${enable_java+set}" = set; then :
     2391  enableval=$enable_java; ENABLE_JAVA=$enableval
     2392else
     2393  ENABLE_JAVA=yes
     2394fi
     2395
     2396if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     2397  ENABLE_JAVA=1
     2398  if test "x$JAVA_HOME" != "x" ; then
     2399    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     2400    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     2401    echo "and JAVA respectively"
     2402    export JAVA_HOME=
     2403  fi
     2404else
     2405  ENABLE_JAVA=0
     2406fi
     2407
     2408
     2409# Check whether --enable-jdbm was given.
     2410if test "${enable_jdbm+set}" = set; then :
     2411  enableval=$enable_jdbm; USE_JDBM=$enableval
    14322412else
    14332413  USE_JDBM=yes
    1434 fi;
    1435 if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
     2414fi
     2415
     2416if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
    14362417  USE_JDBM=1
    1437   cat >>confdefs.h <<\_ACEOF
    1438 #define USE_JDBM
    1439 _ACEOF
     2418  $as_echo "#define USE_JDBM /**/" >>confdefs.h
    14402419
    14412420else
     
    14442423
    14452424
    1446 # Check whether --enable-gdbm or --disable-gdbm was given.
    1447 if test "${enable_gdbm+set}" = set; then
    1448   enableval="$enable_gdbm"
    1449   USE_GDBM=$enableval
     2425# Check whether --enable-gdbm was given.
     2426if test "${enable_gdbm+set}" = set; then :
     2427  enableval=$enable_gdbm; USE_GDBM=$enableval
    14502428else
    14512429  USE_GDBM=yes
    1452 fi;
     2430fi
     2431
    14532432if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
    14542433  USE_GDBM=1
    1455   cat >>confdefs.h <<\_ACEOF
    1456 #define USE_GDBM
    1457 _ACEOF
     2434  $as_echo "#define USE_GDBM /**/" >>confdefs.h
    14582435
    14592436else
     
    14622439
    14632440
    1464 # Check whether --enable-accentfold or --disable-accentfold was given.
    1465 if test "${enable_accentfold+set}" = set; then
    1466   enableval="$enable_accentfold"
    1467   ENABLE_ACCENTFOLD=$enableval
     2441# Check whether --enable-accentfold was given.
     2442if test "${enable_accentfold+set}" = set; then :
     2443  enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
    14682444else
    14692445  ENABLE_ACCENTFOLD=yes
    1470 fi;
     2446fi
     2447
    14712448if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
    14722449  ENABLE_ACCENTFOLD=1
    1473   cat >>confdefs.h <<\_ACEOF
    1474 #define ENABLE_ACCENTFOLD
    1475 _ACEOF
     2450  $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
    14762451
    14772452else
     
    14802455
    14812456
    1482 # Check whether --enable-sqlite or --disable-sqlite was given.
    1483 if test "${enable_sqlite+set}" = set; then
    1484   enableval="$enable_sqlite"
    1485   USE_SQLITE=$enableval
     2457# Check whether --enable-sqlite was given.
     2458if test "${enable_sqlite+set}" = set; then :
     2459  enableval=$enable_sqlite; USE_SQLITE=$enableval
    14862460else
    14872461  USE_SQLITE=yes
    1488 fi;
     2462fi
     2463
    14892464if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
    14902465  USE_SQLITE=1
    1491   cat >>confdefs.h <<\_ACEOF
    1492 #define USE_SQLITE
    1493 _ACEOF
     2466  $as_echo "#define USE_SQLITE /**/" >>confdefs.h
    14942467
    14952468else
     
    14982471
    14992472
    1500 # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
    1501 if test "${enable_apache_httpd+set}" = set; then
    1502   enableval="$enable_apache_httpd"
    1503   USE_APACHE_HTTPD=$enableval
     2473# Check whether --enable-apache-httpd was given.
     2474if test "${enable_apache_httpd+set}" = set; then :
     2475  enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
    15042476else
    15052477  USE_APACHE_HTTPD=no
    1506 fi;
     2478fi
     2479
    15072480if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
    15082481  USE_APACHE_HTTPD=1
    1509   cat >>confdefs.h <<\_ACEOF
    1510 #define USE_APACHE_HTTPD
    1511 _ACEOF
     2482  $as_echo "#define USE_APACHE_HTTPD /**/" >>confdefs.h
    15122483
    15132484else
     
    15172488
    15182489
    1519 # Check whether --enable-mg or --disable-mg was given.
    1520 if test "${enable_mg+set}" = set; then
    1521   enableval="$enable_mg"
    1522   ENABLE_MG=$enableval
     2490# Check whether --enable-mg was given.
     2491if test "${enable_mg+set}" = set; then :
     2492  enableval=$enable_mg; ENABLE_MG=$enableval
    15232493else
    15242494  ENABLE_MG=yes
    1525 fi;
     2495fi
     2496
    15262497if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
    15272498  ENABLE_MG=1
    1528   cat >>confdefs.h <<\_ACEOF
    1529 #define ENABLE_MG
    1530 _ACEOF
     2499  $as_echo "#define ENABLE_MG /**/" >>confdefs.h
    15312500
    15322501else
     
    15352504
    15362505
    1537 # Check whether --enable-mgpp or --disable-mgpp was given.
    1538 if test "${enable_mgpp+set}" = set; then
    1539   enableval="$enable_mgpp"
    1540   ENABLE_MGPP=$enableval
     2506# Check whether --enable-mgpp was given.
     2507if test "${enable_mgpp+set}" = set; then :
     2508  enableval=$enable_mgpp; ENABLE_MGPP=$enableval
    15412509else
    15422510  ENABLE_MGPP=yes
    1543 fi;
     2511fi
     2512
    15442513if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
    15452514  ENABLE_MGPP=1
    1546   cat >>confdefs.h <<\_ACEOF
    1547 #define ENABLE_MGPP
    1548 _ACEOF
     2515  $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
    15492516
    15502517else
     
    15532520
    15542521
    1555 # Check whether --enable-lucene or --disable-lucene was given.
    1556 if test "${enable_lucene+set}" = set; then
    1557   enableval="$enable_lucene"
    1558   ENABLE_LUCENE=$enableval
     2522# Check whether --enable-lucene was given.
     2523if test "${enable_lucene+set}" = set; then :
     2524  enableval=$enable_lucene; ENABLE_LUCENE=$enableval
    15592525else
    15602526  ENABLE_LUCENE=yes
    1561 fi;
    1562 if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
     2527fi
     2528
     2529if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
    15632530  ENABLE_LUCENE=1
    1564   cat >>confdefs.h <<\_ACEOF
    1565 #define ENABLE_LUCENE
    1566 _ACEOF
     2531  $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
    15672532
    15682533else
     
    15872552  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    15882553set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1591 if test "${ac_cv_prog_CC+set}" = set; then
    1592   echo $ECHO_N "(cached) $ECHO_C" >&6
     2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2555$as_echo_n "checking for $ac_word... " >&6; }
     2556if test "${ac_cv_prog_CC+set}" = set; then :
     2557  $as_echo_n "(cached) " >&6
    15932558else
    15942559  if test -n "$CC"; then
     
    16002565  IFS=$as_save_IFS
    16012566  test -z "$as_dir" && as_dir=.
    1602   for ac_exec_ext in '' $ac_executable_extensions; do
    1603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2567    for ac_exec_ext in '' $ac_executable_extensions; do
     2568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16042569    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16062571    break 2
    16072572  fi
    16082573done
    1609 done
     2574  done
     2575IFS=$as_save_IFS
    16102576
    16112577fi
     
    16132579CC=$ac_cv_prog_CC
    16142580if test -n "$CC"; then
    1615   echo "$as_me:$LINENO: result: $CC" >&5
    1616 echo "${ECHO_T}$CC" >&6
    1617 else
    1618   echo "$as_me:$LINENO: result: no" >&5
    1619 echo "${ECHO_T}no" >&6
    1620 fi
     2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2582$as_echo "$CC" >&6; }
     2583else
     2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2585$as_echo "no" >&6; }
     2586fi
     2587
    16212588
    16222589fi
     
    16252592  # Extract the first word of "gcc", so it can be a program name with args.
    16262593set dummy gcc; ac_word=$2
    1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1630   echo $ECHO_N "(cached) $ECHO_C" >&6
     2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2595$as_echo_n "checking for $ac_word... " >&6; }
     2596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2597  $as_echo_n "(cached) " >&6
    16312598else
    16322599  if test -n "$ac_ct_CC"; then
     
    16382605  IFS=$as_save_IFS
    16392606  test -z "$as_dir" && as_dir=.
    1640   for ac_exec_ext in '' $ac_executable_extensions; do
    1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2607    for ac_exec_ext in '' $ac_executable_extensions; do
     2608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16422609    ac_cv_prog_ac_ct_CC="gcc"
    1643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16442611    break 2
    16452612  fi
    16462613done
    1647 done
     2614  done
     2615IFS=$as_save_IFS
    16482616
    16492617fi
     
    16512619ac_ct_CC=$ac_cv_prog_ac_ct_CC
    16522620if test -n "$ac_ct_CC"; then
    1653   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1654 echo "${ECHO_T}$ac_ct_CC" >&6
    1655 else
    1656   echo "$as_me:$LINENO: result: no" >&5
    1657 echo "${ECHO_T}no" >&6
    1658 fi
    1659 
    1660   CC=$ac_ct_CC
     2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2622$as_echo "$ac_ct_CC" >&6; }
     2623else
     2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2625$as_echo "no" >&6; }
     2626fi
     2627
     2628  if test "x$ac_ct_CC" = x; then
     2629    CC=""
     2630  else
     2631    case $cross_compiling:$ac_tool_warned in
     2632yes:)
     2633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2635ac_tool_warned=yes ;;
     2636esac
     2637    CC=$ac_ct_CC
     2638  fi
    16612639else
    16622640  CC="$ac_cv_prog_CC"
     
    16642642
    16652643if test -z "$CC"; then
    1666   if test -n "$ac_tool_prefix"; then
    1667   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2644          if test -n "$ac_tool_prefix"; then
     2645    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    16682646set dummy ${ac_tool_prefix}cc; ac_word=$2
    1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1671 if test "${ac_cv_prog_CC+set}" = set; then
    1672   echo $ECHO_N "(cached) $ECHO_C" >&6
     2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2648$as_echo_n "checking for $ac_word... " >&6; }
     2649if test "${ac_cv_prog_CC+set}" = set; then :
     2650  $as_echo_n "(cached) " >&6
    16732651else
    16742652  if test -n "$CC"; then
     
    16802658  IFS=$as_save_IFS
    16812659  test -z "$as_dir" && as_dir=.
    1682   for ac_exec_ext in '' $ac_executable_extensions; do
    1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2660    for ac_exec_ext in '' $ac_executable_extensions; do
     2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    16842662    ac_cv_prog_CC="${ac_tool_prefix}cc"
    1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    16862664    break 2
    16872665  fi
    16882666done
    1689 done
     2667  done
     2668IFS=$as_save_IFS
    16902669
    16912670fi
     
    16932672CC=$ac_cv_prog_CC
    16942673if test -n "$CC"; then
    1695   echo "$as_me:$LINENO: result: $CC" >&5
    1696 echo "${ECHO_T}$CC" >&6
    1697 else
    1698   echo "$as_me:$LINENO: result: no" >&5
    1699 echo "${ECHO_T}no" >&6
    1700 fi
    1701 
    1702 fi
    1703 if test -z "$ac_cv_prog_CC"; then
    1704   ac_ct_CC=$CC
    1705   # Extract the first word of "cc", so it can be a program name with args.
    1706 set dummy cc; ac_word=$2
    1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1710   echo $ECHO_N "(cached) $ECHO_C" >&6
    1711 else
    1712   if test -n "$ac_ct_CC"; then
    1713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1714 else
    1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1716 for as_dir in $PATH
    1717 do
    1718   IFS=$as_save_IFS
    1719   test -z "$as_dir" && as_dir=.
    1720   for ac_exec_ext in '' $ac_executable_extensions; do
    1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1722     ac_cv_prog_ac_ct_CC="cc"
    1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1724     break 2
     2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2675$as_echo "$CC" >&6; }
     2676else
     2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2678$as_echo "no" >&6; }
     2679fi
     2680
     2681
    17252682  fi
    1726 done
    1727 done
    1728 
    1729 fi
    1730 fi
    1731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1732 if test -n "$ac_ct_CC"; then
    1733   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1734 echo "${ECHO_T}$ac_ct_CC" >&6
    1735 else
    1736   echo "$as_me:$LINENO: result: no" >&5
    1737 echo "${ECHO_T}no" >&6
    1738 fi
    1739 
    1740   CC=$ac_ct_CC
    1741 else
    1742   CC="$ac_cv_prog_CC"
    1743 fi
    1744 
    17452683fi
    17462684if test -z "$CC"; then
    17472685  # Extract the first word of "cc", so it can be a program name with args.
    17482686set dummy cc; ac_word=$2
    1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1751 if test "${ac_cv_prog_CC+set}" = set; then
    1752   echo $ECHO_N "(cached) $ECHO_C" >&6
     2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2688$as_echo_n "checking for $ac_word... " >&6; }
     2689if test "${ac_cv_prog_CC+set}" = set; then :
     2690  $as_echo_n "(cached) " >&6
    17532691else
    17542692  if test -n "$CC"; then
     
    17612699  IFS=$as_save_IFS
    17622700  test -z "$as_dir" && as_dir=.
    1763   for ac_exec_ext in '' $ac_executable_extensions; do
    1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2701    for ac_exec_ext in '' $ac_executable_extensions; do
     2702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17652703    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    17662704       ac_prog_rejected=yes
     
    17682706     fi
    17692707    ac_cv_prog_CC="cc"
    1770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    17712709    break 2
    17722710  fi
    17732711done
    1774 done
     2712  done
     2713IFS=$as_save_IFS
    17752714
    17762715if test $ac_prog_rejected = yes; then
     
    17902729CC=$ac_cv_prog_CC
    17912730if test -n "$CC"; then
    1792   echo "$as_me:$LINENO: result: $CC" >&5
    1793 echo "${ECHO_T}$CC" >&6
    1794 else
    1795   echo "$as_me:$LINENO: result: no" >&5
    1796 echo "${ECHO_T}no" >&6
    1797 fi
     2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2732$as_echo "$CC" >&6; }
     2733else
     2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2735$as_echo "no" >&6; }
     2736fi
     2737
    17982738
    17992739fi
    18002740if test -z "$CC"; then
    18012741  if test -n "$ac_tool_prefix"; then
    1802   for ac_prog in cl
     2742  for ac_prog in cl.exe
    18032743  do
    18042744    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    18052745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1808 if test "${ac_cv_prog_CC+set}" = set; then
    1809   echo $ECHO_N "(cached) $ECHO_C" >&6
     2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2747$as_echo_n "checking for $ac_word... " >&6; }
     2748if test "${ac_cv_prog_CC+set}" = set; then :
     2749  $as_echo_n "(cached) " >&6
    18102750else
    18112751  if test -n "$CC"; then
     
    18172757  IFS=$as_save_IFS
    18182758  test -z "$as_dir" && as_dir=.
    1819   for ac_exec_ext in '' $ac_executable_extensions; do
    1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2759    for ac_exec_ext in '' $ac_executable_extensions; do
     2760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18212761    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18232763    break 2
    18242764  fi
    18252765done
    1826 done
     2766  done
     2767IFS=$as_save_IFS
    18272768
    18282769fi
     
    18302771CC=$ac_cv_prog_CC
    18312772if test -n "$CC"; then
    1832   echo "$as_me:$LINENO: result: $CC" >&5
    1833 echo "${ECHO_T}$CC" >&6
    1834 else
    1835   echo "$as_me:$LINENO: result: no" >&5
    1836 echo "${ECHO_T}no" >&6
    1837 fi
     2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2774$as_echo "$CC" >&6; }
     2775else
     2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2777$as_echo "no" >&6; }
     2778fi
     2779
    18382780
    18392781    test -n "$CC" && break
     
    18422784if test -z "$CC"; then
    18432785  ac_ct_CC=$CC
    1844   for ac_prog in cl
     2786  for ac_prog in cl.exe
    18452787do
    18462788  # Extract the first word of "$ac_prog", so it can be a program name with args.
    18472789set dummy $ac_prog; ac_word=$2
    1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1851   echo $ECHO_N "(cached) $ECHO_C" >&6
     2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2791$as_echo_n "checking for $ac_word... " >&6; }
     2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2793  $as_echo_n "(cached) " >&6
    18522794else
    18532795  if test -n "$ac_ct_CC"; then
     
    18592801  IFS=$as_save_IFS
    18602802  test -z "$as_dir" && as_dir=.
    1861   for ac_exec_ext in '' $ac_executable_extensions; do
    1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2803    for ac_exec_ext in '' $ac_executable_extensions; do
     2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    18632805    ac_cv_prog_ac_ct_CC="$ac_prog"
    1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    18652807    break 2
    18662808  fi
    18672809done
    1868 done
     2810  done
     2811IFS=$as_save_IFS
    18692812
    18702813fi
     
    18722815ac_ct_CC=$ac_cv_prog_ac_ct_CC
    18732816if test -n "$ac_ct_CC"; then
    1874   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1875 echo "${ECHO_T}$ac_ct_CC" >&6
    1876 else
    1877   echo "$as_me:$LINENO: result: no" >&5
    1878 echo "${ECHO_T}no" >&6
    1879 fi
     2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2818$as_echo "$ac_ct_CC" >&6; }
     2819else
     2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2821$as_echo "no" >&6; }
     2822fi
     2823
    18802824
    18812825  test -n "$ac_ct_CC" && break
    18822826done
    18832827
    1884   CC=$ac_ct_CC
    1885 fi
    1886 
    1887 fi
    1888 
    1889 
    1890 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    1891 See \`config.log' for more details." >&5
    1892 echo "$as_me: error: no acceptable C compiler found in \$PATH
    1893 See \`config.log' for more details." >&2;}
    1894    { (exit 1); exit 1; }; }
     2828  if test "x$ac_ct_CC" = x; then
     2829    CC=""
     2830  else
     2831    case $cross_compiling:$ac_tool_warned in
     2832yes:)
     2833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2835ac_tool_warned=yes ;;
     2836esac
     2837    CC=$ac_ct_CC
     2838  fi
     2839fi
     2840
     2841fi
     2842
     2843
     2844test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2846as_fn_error $? "no acceptable C compiler found in \$PATH
     2847See \`config.log' for more details" "$LINENO" 5 ; }
    18952848
    18962849# Provide some information about the compiler.
    1897 echo "$as_me:$LINENO:" \
    1898      "checking for C compiler version" >&5
    1899 ac_compiler=`set X $ac_compile; echo $2`
    1900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1901   (eval $ac_compiler --version </dev/null >&5) 2>&5
     2850$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2851set X $ac_compile
     2852ac_compiler=$2
     2853for ac_option in --version -v -V -qversion; do
     2854  { { ac_try="$ac_compiler $ac_option >&5"
     2855case "(($ac_try" in
     2856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2857  *) ac_try_echo=$ac_try;;
     2858esac
     2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2860$as_echo "$ac_try_echo"; } >&5
     2861  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    19022862  ac_status=$?
    1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1904   (exit $ac_status); }
    1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1906   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1907   ac_status=$?
    1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1909   (exit $ac_status); }
    1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1911   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1912   ac_status=$?
    1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1914   (exit $ac_status); }
    1915 
    1916 cat >conftest.$ac_ext <<_ACEOF
    1917 /* confdefs.h.  */
    1918 _ACEOF
    1919 cat confdefs.h >>conftest.$ac_ext
    1920 cat >>conftest.$ac_ext <<_ACEOF
     2863  if test -s conftest.err; then
     2864    sed '10a\
     2865... rest of stderr output deleted ...
     2866         10q' conftest.err >conftest.er1
     2867    cat conftest.er1 >&5
     2868  fi
     2869  rm -f conftest.er1 conftest.err
     2870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2871  test $ac_status = 0; }
     2872done
     2873
     2874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    19212875/* end confdefs.h.  */
    19222876
     
    19302884_ACEOF
    19312885ac_clean_files_save=$ac_clean_files
    1932 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    19332887# Try to create an executable without -o first, disregard a.out.
    19342888# It will help us diagnose broken compilers, and finding out an intuition
    19352889# of exeext.
    1936 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1937 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    1938 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1939 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1940   (eval $ac_link_default) 2>&5
     2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2891$as_echo_n "checking whether the C compiler works... " >&6; }
     2892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2893
     2894# The possible output files:
     2895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2896
     2897ac_rmfiles=
     2898for ac_file in $ac_files
     2899do
     2900  case $ac_file in
     2901    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2902    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2903  esac
     2904done
     2905rm -f $ac_rmfiles
     2906
     2907if { { ac_try="$ac_link_default"
     2908case "(($ac_try" in
     2909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2910  *) ac_try_echo=$ac_try;;
     2911esac
     2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2913$as_echo "$ac_try_echo"; } >&5
     2914  (eval "$ac_link_default") 2>&5
    19412915  ac_status=$?
    1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1943   (exit $ac_status); }; then
    1944   # Find the output, starting from the most likely.  This scheme is
    1945 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1946 # resort.
    1947 
    1948 # Be careful to initialize this variable, since it used to be cached.
    1949 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1950 ac_cv_exeext=
    1951 # b.out is created by i960 compilers.
    1952 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2917  test $ac_status = 0; }; then :
     2918  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2920# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2921# so that the user can short-circuit this test for compilers unknown to
     2922# Autoconf.
     2923for ac_file in $ac_files ''
    19532924do
    19542925  test -f "$ac_file" || continue
    19552926  case $ac_file in
    1956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1957     ;;
    1958     conftest.$ac_ext )
    1959     # This is the source file.
     2927    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    19602928    ;;
    19612929    [ab].out )
     
    19642932    break;;
    19652933    *.* )
    1966     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1967     # FIXME: I believe we export ac_cv_exeext for Libtool,
    1968     # but it would be cool to find out if it's true.  Does anybody
    1969     # maintain Libtool? --akim.
    1970     export ac_cv_exeext
     2934    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2935    then :; else
     2936       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2937    fi
     2938    # We set ac_cv_exeext here because the later test for it is not
     2939    # safe: cross compilers may not add the suffix if given an `-o'
     2940    # argument, so we may need to know it at that point already.
     2941    # Even if this section looks crufty: it has the advantage of
     2942    # actually working.
    19712943    break;;
    19722944    * )
     
    19742946  esac
    19752947done
    1976 else
    1977   echo "$as_me: failed program was:" >&5
     2948test "$ac_cv_exeext" = no && ac_cv_exeext=
     2949
     2950else
     2951  ac_file=''
     2952fi
     2953if test -z "$ac_file"; then :
     2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2955$as_echo "no" >&6; }
     2956$as_echo "$as_me: failed program was:" >&5
    19782957sed 's/^/| /' conftest.$ac_ext >&5
    19792958
    1980 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    1981 See \`config.log' for more details." >&5
    1982 echo "$as_me: error: C compiler cannot create executables
    1983 See \`config.log' for more details." >&2;}
    1984    { (exit 77); exit 77; }; }
    1985 fi
    1986 
     2959{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2961as_fn_error 77 "C compiler cannot create executables
     2962See \`config.log' for more details" "$LINENO" 5 ; }
     2963else
     2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2965$as_echo "yes" >&6; }
     2966fi
     2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     2968$as_echo_n "checking for C compiler default output file name... " >&6; }
     2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2970$as_echo "$ac_file" >&6; }
    19872971ac_exeext=$ac_cv_exeext
    1988 echo "$as_me:$LINENO: result: $ac_file" >&5
    1989 echo "${ECHO_T}$ac_file" >&6
    1990 
    1991 # Check the compiler produces executables we can run.  If not, either
    1992 # the compiler is broken, or we cross compile.
    1993 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1994 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1995 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1996 # If not cross compiling, check that we can run a simple program.
    1997 if test "$cross_compiling" != yes; then
    1998   if { ac_try='./$ac_file'
    1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2000   (eval $ac_try) 2>&5
     2972
     2973rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2974ac_clean_files=$ac_clean_files_save
     2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2976$as_echo_n "checking for suffix of executables... " >&6; }
     2977if { { ac_try="$ac_link"
     2978case "(($ac_try" in
     2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2980  *) ac_try_echo=$ac_try;;
     2981esac
     2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2983$as_echo "$ac_try_echo"; } >&5
     2984  (eval "$ac_link") 2>&5
    20012985  ac_status=$?
    2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2003   (exit $ac_status); }; }; then
    2004     cross_compiling=no
    2005   else
    2006     if test "$cross_compiling" = maybe; then
    2007     cross_compiling=yes
    2008     else
    2009     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2010 If you meant to cross compile, use \`--host'.
    2011 See \`config.log' for more details." >&5
    2012 echo "$as_me: error: cannot run C compiled programs.
    2013 If you meant to cross compile, use \`--host'.
    2014 See \`config.log' for more details." >&2;}
    2015    { (exit 1); exit 1; }; }
    2016     fi
    2017   fi
    2018 fi
    2019 echo "$as_me:$LINENO: result: yes" >&5
    2020 echo "${ECHO_T}yes" >&6
    2021 
    2022 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2023 ac_clean_files=$ac_clean_files_save
    2024 # Check the compiler produces executables we can run.  If not, either
    2025 # the compiler is broken, or we cross compile.
    2026 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2027 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2028 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2029 echo "${ECHO_T}$cross_compiling" >&6
    2030 
    2031 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2032 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2034   (eval $ac_link) 2>&5
    2035   ac_status=$?
    2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2037   (exit $ac_status); }; then
     2986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2987  test $ac_status = 0; }; then :
    20382988  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    20392989# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    20432993  test -f "$ac_file" || continue
    20442994  case $ac_file in
    2045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2995    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    20462996    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2047       export ac_cv_exeext
    20482997      break;;
    20492998    * ) break;;
     
    20513000done
    20523001else
    2053   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2054 See \`config.log' for more details." >&5
    2055 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2056 See \`config.log' for more details." >&2;}
    2057    { (exit 1); exit 1; }; }
    2058 fi
    2059 
    2060 rm -f conftest$ac_cv_exeext
    2061 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2062 echo "${ECHO_T}$ac_cv_exeext" >&6
     3002  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3004as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     3005See \`config.log' for more details" "$LINENO" 5 ; }
     3006fi
     3007rm -f conftest conftest$ac_cv_exeext
     3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     3009$as_echo "$ac_cv_exeext" >&6; }
    20633010
    20643011rm -f conftest.$ac_ext
    20653012EXEEXT=$ac_cv_exeext
    20663013ac_exeext=$EXEEXT
    2067 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2068 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    2069 if test "${ac_cv_objext+set}" = set; then
    2070   echo $ECHO_N "(cached) $ECHO_C" >&6
    2071 else
    2072   cat >conftest.$ac_ext <<_ACEOF
    2073 /* confdefs.h.  */
    2074 _ACEOF
    2075 cat confdefs.h >>conftest.$ac_ext
    2076 cat >>conftest.$ac_ext <<_ACEOF
     3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20773015/* end confdefs.h.  */
    2078 
     3016#include <stdio.h>
    20793017int
    20803018main ()
    20813019{
     3020FILE *f = fopen ("conftest.out", "w");
     3021 return ferror (f) || fclose (f) != 0;
    20823022
    20833023  ;
     
    20853025}
    20863026_ACEOF
     3027ac_clean_files="$ac_clean_files conftest.out"
     3028# Check that the compiler produces executables we can run.  If not, either
     3029# the compiler is broken, or we cross compile.
     3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3031$as_echo_n "checking whether we are cross compiling... " >&6; }
     3032if test "$cross_compiling" != yes; then
     3033  { { ac_try="$ac_link"
     3034case "(($ac_try" in
     3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3036  *) ac_try_echo=$ac_try;;
     3037esac
     3038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3039$as_echo "$ac_try_echo"; } >&5
     3040  (eval "$ac_link") 2>&5
     3041  ac_status=$?
     3042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3043  test $ac_status = 0; }
     3044  if { ac_try='./conftest$ac_cv_exeext'
     3045  { { case "(($ac_try" in
     3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3047  *) ac_try_echo=$ac_try;;
     3048esac
     3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3050$as_echo "$ac_try_echo"; } >&5
     3051  (eval "$ac_try") 2>&5
     3052  ac_status=$?
     3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3054  test $ac_status = 0; }; }; then
     3055    cross_compiling=no
     3056  else
     3057    if test "$cross_compiling" = maybe; then
     3058    cross_compiling=yes
     3059    else
     3060    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3062as_fn_error $? "cannot run C compiled programs.
     3063If you meant to cross compile, use \`--host'.
     3064See \`config.log' for more details" "$LINENO" 5 ; }
     3065    fi
     3066  fi
     3067fi
     3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3069$as_echo "$cross_compiling" >&6; }
     3070
     3071rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     3072ac_clean_files=$ac_clean_files_save
     3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     3074$as_echo_n "checking for suffix of object files... " >&6; }
     3075if test "${ac_cv_objext+set}" = set; then :
     3076  $as_echo_n "(cached) " >&6
     3077else
     3078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3079/* end confdefs.h.  */
     3080
     3081int
     3082main ()
     3083{
     3084
     3085  ;
     3086  return 0;
     3087}
     3088_ACEOF
    20873089rm -f conftest.o conftest.obj
    2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2089   (eval $ac_compile) 2>&5
     3090if { { ac_try="$ac_compile"
     3091case "(($ac_try" in
     3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3093  *) ac_try_echo=$ac_try;;
     3094esac
     3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3096$as_echo "$ac_try_echo"; } >&5
     3097  (eval "$ac_compile") 2>&5
    20903098  ac_status=$?
    2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2092   (exit $ac_status); }; then
    2093   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     3099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3100  test $ac_status = 0; }; then :
     3101  for ac_file in conftest.o conftest.obj conftest.*; do
     3102  test -f "$ac_file" || continue;
    20943103  case $ac_file in
    2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     3104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    20963105    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    20973106       break;;
     
    20993108done
    21003109else
    2101   echo "$as_me: failed program was:" >&5
     3110  $as_echo "$as_me: failed program was:" >&5
    21023111sed 's/^/| /' conftest.$ac_ext >&5
    21033112
    2104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2105 See \`config.log' for more details." >&5
    2106 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2107 See \`config.log' for more details." >&2;}
    2108    { (exit 1); exit 1; }; }
    2109 fi
    2110 
     3113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3115as_fn_error $? "cannot compute suffix of object files: cannot compile
     3116See \`config.log' for more details" "$LINENO" 5 ; }
     3117fi
    21113118rm -f conftest.$ac_cv_objext conftest.$ac_ext
    21123119fi
    2113 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2114 echo "${ECHO_T}$ac_cv_objext" >&6
     3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3121$as_echo "$ac_cv_objext" >&6; }
    21153122OBJEXT=$ac_cv_objext
    21163123ac_objext=$OBJEXT
    2117 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2118 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2120   echo $ECHO_N "(cached) $ECHO_C" >&6
    2121 else
    2122   cat >conftest.$ac_ext <<_ACEOF
    2123 /* confdefs.h.  */
    2124 _ACEOF
    2125 cat confdefs.h >>conftest.$ac_ext
    2126 cat >>conftest.$ac_ext <<_ACEOF
     3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3125$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3126if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3127  $as_echo_n "(cached) " >&6
     3128else
     3129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21273130/* end confdefs.h.  */
    21283131
     
    21383141}
    21393142_ACEOF
    2140 rm -f conftest.$ac_objext
    2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2142   (eval $ac_compile) 2>conftest.er1
    2143   ac_status=$?
    2144   grep -v '^ *+' conftest.er1 >conftest.err
    2145   rm -f conftest.er1
    2146   cat conftest.err >&5
    2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2148   (exit $ac_status); } &&
    2149      { ac_try='test -z "$ac_c_werror_flag"
    2150              || test ! -s conftest.err'
    2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2152   (eval $ac_try) 2>&5
    2153   ac_status=$?
    2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2155   (exit $ac_status); }; } &&
    2156      { ac_try='test -s conftest.$ac_objext'
    2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2158   (eval $ac_try) 2>&5
    2159   ac_status=$?
    2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2161   (exit $ac_status); }; }; then
     3143if ac_fn_c_try_compile "$LINENO"; then :
    21623144  ac_compiler_gnu=yes
    21633145else
    2164   echo "$as_me: failed program was:" >&5
    2165 sed 's/^/| /' conftest.$ac_ext >&5
    2166 
    2167 ac_compiler_gnu=no
    2168 fi
    2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3146  ac_compiler_gnu=no
     3147fi
     3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21703149ac_cv_c_compiler_gnu=$ac_compiler_gnu
    21713150
    21723151fi
    2173 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2174 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2175 GCC=`test $ac_compiler_gnu = yes && echo yes`
     3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3153$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3154if test $ac_compiler_gnu = yes; then
     3155  GCC=yes
     3156else
     3157  GCC=
     3158fi
    21763159ac_test_CFLAGS=${CFLAGS+set}
    21773160ac_save_CFLAGS=$CFLAGS
    2178 CFLAGS="-g"
    2179 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2180 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2181 if test "${ac_cv_prog_cc_g+set}" = set; then
    2182   echo $ECHO_N "(cached) $ECHO_C" >&6
    2183 else
    2184   cat >conftest.$ac_ext <<_ACEOF
    2185 /* confdefs.h.  */
    2186 _ACEOF
    2187 cat confdefs.h >>conftest.$ac_ext
    2188 cat >>conftest.$ac_ext <<_ACEOF
     3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3162$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3163if test "${ac_cv_prog_cc_g+set}" = set; then :
     3164  $as_echo_n "(cached) " >&6
     3165else
     3166  ac_save_c_werror_flag=$ac_c_werror_flag
     3167   ac_c_werror_flag=yes
     3168   ac_cv_prog_cc_g=no
     3169   CFLAGS="-g"
     3170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    21893171/* end confdefs.h.  */
    21903172
     
    21973179}
    21983180_ACEOF
    2199 rm -f conftest.$ac_objext
    2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2201   (eval $ac_compile) 2>conftest.er1
    2202   ac_status=$?
    2203   grep -v '^ *+' conftest.er1 >conftest.err
    2204   rm -f conftest.er1
    2205   cat conftest.err >&5
    2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2207   (exit $ac_status); } &&
    2208      { ac_try='test -z "$ac_c_werror_flag"
    2209              || test ! -s conftest.err'
    2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2211   (eval $ac_try) 2>&5
    2212   ac_status=$?
    2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2214   (exit $ac_status); }; } &&
    2215      { ac_try='test -s conftest.$ac_objext'
    2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2217   (eval $ac_try) 2>&5
    2218   ac_status=$?
    2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2220   (exit $ac_status); }; }; then
     3181if ac_fn_c_try_compile "$LINENO"; then :
    22213182  ac_cv_prog_cc_g=yes
    22223183else
    2223   echo "$as_me: failed program was:" >&5
    2224 sed 's/^/| /' conftest.$ac_ext >&5
    2225 
    2226 ac_cv_prog_cc_g=no
    2227 fi
    2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2229 fi
    2230 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     3184  CFLAGS=""
     3185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3186/* end confdefs.h.  */
     3187
     3188int
     3189main ()
     3190{
     3191
     3192  ;
     3193  return 0;
     3194}
     3195_ACEOF
     3196if ac_fn_c_try_compile "$LINENO"; then :
     3197
     3198else
     3199  ac_c_werror_flag=$ac_save_c_werror_flag
     3200     CFLAGS="-g"
     3201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3202/* end confdefs.h.  */
     3203
     3204int
     3205main ()
     3206{
     3207
     3208  ;
     3209  return 0;
     3210}
     3211_ACEOF
     3212if ac_fn_c_try_compile "$LINENO"; then :
     3213  ac_cv_prog_cc_g=yes
     3214fi
     3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3216fi
     3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3218fi
     3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3220   ac_c_werror_flag=$ac_save_c_werror_flag
     3221fi
     3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3223$as_echo "$ac_cv_prog_cc_g" >&6; }
    22323224if test "$ac_test_CFLAGS" = set; then
    22333225  CFLAGS=$ac_save_CFLAGS
     
    22453237  fi
    22463238fi
    2247 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2248 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2249 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2250   echo $ECHO_N "(cached) $ECHO_C" >&6
    2251 else
    2252   ac_cv_prog_cc_stdc=no
     3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3240$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3241if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3242  $as_echo_n "(cached) " >&6
     3243else
     3244  ac_cv_prog_cc_c89=no
    22533245ac_save_CC=$CC
    2254 cat >conftest.$ac_ext <<_ACEOF
    2255 /* confdefs.h.  */
    2256 _ACEOF
    2257 cat confdefs.h >>conftest.$ac_ext
    2258 cat >>conftest.$ac_ext <<_ACEOF
     3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    22593247/* end confdefs.h.  */
    22603248#include <stdarg.h>
     
    22843272   function prototypes and stuff, but not '\xHH' hex character constants.
    22853273   These don't provoke an error unfortunately, instead are silently treated
    2286    as 'x'.  The following induces an error, until -std1 is added to get
     3274   as 'x'.  The following induces an error, until -std is added to get
    22873275   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    22883276   array size at least.  It's necessary to write '\x00'==0 to get something
    2289    that's true only with -std1.  */
     3277   that's true only with -std.  */
    22903278int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3279
     3280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3281   inside strings and character constants.  */
     3282#define FOO(x) 'x'
     3283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    22913284
    22923285int test (int i, double x);
     
    23043297}
    23053298_ACEOF
    2306 # Don't try gcc -ansi; that turns off useful extensions and
    2307 # breaks some systems' header files.
    2308 # AIX           -qlanglvl=ansi
    2309 # Ultrix and OSF/1  -std1
    2310 # HP-UX 10.20 and later -Ae
    2311 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2312 # SVR4          -Xc -D__EXTENSIONS__
    2313 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3300    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    23143301do
    23153302  CC="$ac_save_CC $ac_arg"
    2316   rm -f conftest.$ac_objext
    2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2318   (eval $ac_compile) 2>conftest.er1
    2319   ac_status=$?
    2320   grep -v '^ *+' conftest.er1 >conftest.err
    2321   rm -f conftest.er1
    2322   cat conftest.err >&5
    2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2324   (exit $ac_status); } &&
    2325      { ac_try='test -z "$ac_c_werror_flag"
    2326              || test ! -s conftest.err'
    2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2328   (eval $ac_try) 2>&5
    2329   ac_status=$?
    2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2331   (exit $ac_status); }; } &&
    2332      { ac_try='test -s conftest.$ac_objext'
    2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2334   (eval $ac_try) 2>&5
    2335   ac_status=$?
    2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2337   (exit $ac_status); }; }; then
    2338   ac_cv_prog_cc_stdc=$ac_arg
    2339 break
    2340 else
    2341   echo "$as_me: failed program was:" >&5
    2342 sed 's/^/| /' conftest.$ac_ext >&5
    2343 
    2344 fi
    2345 rm -f conftest.err conftest.$ac_objext
     3303  if ac_fn_c_try_compile "$LINENO"; then :
     3304  ac_cv_prog_cc_c89=$ac_arg
     3305fi
     3306rm -f core conftest.err conftest.$ac_objext
     3307  test "x$ac_cv_prog_cc_c89" != "xno" && break
    23463308done
    2347 rm -f conftest.$ac_ext conftest.$ac_objext
     3309rm -f conftest.$ac_ext
    23483310CC=$ac_save_CC
    23493311
    23503312fi
    2351 
    2352 case "x$ac_cv_prog_cc_stdc" in
    2353   x|xno)
    2354     echo "$as_me:$LINENO: result: none needed" >&5
    2355 echo "${ECHO_T}none needed" >&6 ;;
     3313# AC_CACHE_VAL
     3314case "x$ac_cv_prog_cc_c89" in
     3315  x)
     3316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3317$as_echo "none needed" >&6; } ;;
     3318  xno)
     3319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3320$as_echo "unsupported" >&6; } ;;
    23563321  *)
    2357     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2358 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2359     CC="$CC $ac_cv_prog_cc_stdc" ;;
     3322    CC="$CC $ac_cv_prog_cc_c89"
     3323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    23603325esac
    2361 
    2362 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2363 # in C++ we need to declare it.  In case someone uses the same compiler
    2364 # for both compiling C and C++ we need to have the C++ compiler decide
    2365 # the declaration of exit, since it's the most demanding environment.
    2366 cat >conftest.$ac_ext <<_ACEOF
    2367 #ifndef __cplusplus
    2368   choke me
    2369 #endif
    2370 _ACEOF
    2371 rm -f conftest.$ac_objext
    2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2373   (eval $ac_compile) 2>conftest.er1
    2374   ac_status=$?
    2375   grep -v '^ *+' conftest.er1 >conftest.err
    2376   rm -f conftest.er1
    2377   cat conftest.err >&5
    2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2379   (exit $ac_status); } &&
    2380      { ac_try='test -z "$ac_c_werror_flag"
    2381              || test ! -s conftest.err'
    2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2383   (eval $ac_try) 2>&5
    2384   ac_status=$?
    2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2386   (exit $ac_status); }; } &&
    2387      { ac_try='test -s conftest.$ac_objext'
    2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2389   (eval $ac_try) 2>&5
    2390   ac_status=$?
    2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2392   (exit $ac_status); }; }; then
    2393   for ac_declaration in \
    2394    '' \
    2395    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2396    'extern "C" void std::exit (int); using std::exit;' \
    2397    'extern "C" void exit (int) throw ();' \
    2398    'extern "C" void exit (int);' \
    2399    'void exit (int);'
    2400 do
    2401   cat >conftest.$ac_ext <<_ACEOF
    2402 /* confdefs.h.  */
    2403 _ACEOF
    2404 cat confdefs.h >>conftest.$ac_ext
    2405 cat >>conftest.$ac_ext <<_ACEOF
    2406 /* end confdefs.h.  */
    2407 $ac_declaration
    2408 #include <stdlib.h>
    2409 int
    2410 main ()
    2411 {
    2412 exit (42);
    2413   ;
    2414   return 0;
    2415 }
    2416 _ACEOF
    2417 rm -f conftest.$ac_objext
    2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2419   (eval $ac_compile) 2>conftest.er1
    2420   ac_status=$?
    2421   grep -v '^ *+' conftest.er1 >conftest.err
    2422   rm -f conftest.er1
    2423   cat conftest.err >&5
    2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2425   (exit $ac_status); } &&
    2426      { ac_try='test -z "$ac_c_werror_flag"
    2427              || test ! -s conftest.err'
    2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2429   (eval $ac_try) 2>&5
    2430   ac_status=$?
    2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2432   (exit $ac_status); }; } &&
    2433      { ac_try='test -s conftest.$ac_objext'
    2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2435   (eval $ac_try) 2>&5
    2436   ac_status=$?
    2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2438   (exit $ac_status); }; }; then
    2439   :
    2440 else
    2441   echo "$as_me: failed program was:" >&5
    2442 sed 's/^/| /' conftest.$ac_ext >&5
    2443 
    2444 continue
    2445 fi
    2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2447   cat >conftest.$ac_ext <<_ACEOF
    2448 /* confdefs.h.  */
    2449 _ACEOF
    2450 cat confdefs.h >>conftest.$ac_ext
    2451 cat >>conftest.$ac_ext <<_ACEOF
    2452 /* end confdefs.h.  */
    2453 $ac_declaration
    2454 int
    2455 main ()
    2456 {
    2457 exit (42);
    2458   ;
    2459   return 0;
    2460 }
    2461 _ACEOF
    2462 rm -f conftest.$ac_objext
    2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2464   (eval $ac_compile) 2>conftest.er1
    2465   ac_status=$?
    2466   grep -v '^ *+' conftest.er1 >conftest.err
    2467   rm -f conftest.er1
    2468   cat conftest.err >&5
    2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2470   (exit $ac_status); } &&
    2471      { ac_try='test -z "$ac_c_werror_flag"
    2472              || test ! -s conftest.err'
    2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2474   (eval $ac_try) 2>&5
    2475   ac_status=$?
    2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2477   (exit $ac_status); }; } &&
    2478      { ac_try='test -s conftest.$ac_objext'
    2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2480   (eval $ac_try) 2>&5
    2481   ac_status=$?
    2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2483   (exit $ac_status); }; }; then
    2484   break
    2485 else
    2486   echo "$as_me: failed program was:" >&5
    2487 sed 's/^/| /' conftest.$ac_ext >&5
    2488 
    2489 fi
    2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2491 done
    2492 rm -f conftest*
    2493 if test -n "$ac_declaration"; then
    2494   echo '#ifdef __cplusplus' >>confdefs.h
    2495   echo $ac_declaration      >>confdefs.h
    2496   echo '#endif'             >>confdefs.h
    2497 fi
    2498 
    2499 else
    2500   echo "$as_me: failed program was:" >&5
    2501 sed 's/^/| /' conftest.$ac_ext >&5
    2502 
    2503 fi
    2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3326if test "x$ac_cv_prog_cc_c89" != xno; then :
     3327
     3328fi
     3329
    25053330ac_ext=c
    25063331ac_cpp='$CPP $CPPFLAGS'
     
    25093334ac_compiler_gnu=$ac_cv_c_compiler_gnu
    25103335
    2511 ac_ext=cc
     3336ac_ext=cpp
    25123337ac_cpp='$CXXCPP $CPPFLAGS'
    25133338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    25143339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    25153340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2516 if test -n "$ac_tool_prefix"; then
    2517   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3341if test -z "$CXX"; then
     3342  if test -n "$CCC"; then
     3343    CXX=$CCC
     3344  else
     3345    if test -n "$ac_tool_prefix"; then
     3346  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25183347  do
    25193348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    25203349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2523 if test "${ac_cv_prog_CXX+set}" = set; then
    2524   echo $ECHO_N "(cached) $ECHO_C" >&6
     3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3351$as_echo_n "checking for $ac_word... " >&6; }
     3352if test "${ac_cv_prog_CXX+set}" = set; then :
     3353  $as_echo_n "(cached) " >&6
    25253354else
    25263355  if test -n "$CXX"; then
     
    25323361  IFS=$as_save_IFS
    25333362  test -z "$as_dir" && as_dir=.
    2534   for ac_exec_ext in '' $ac_executable_extensions; do
    2535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3363    for ac_exec_ext in '' $ac_executable_extensions; do
     3364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25363365    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25383367    break 2
    25393368  fi
    25403369done
    2541 done
     3370  done
     3371IFS=$as_save_IFS
    25423372
    25433373fi
     
    25453375CXX=$ac_cv_prog_CXX
    25463376if test -n "$CXX"; then
    2547   echo "$as_me:$LINENO: result: $CXX" >&5
    2548 echo "${ECHO_T}$CXX" >&6
    2549 else
    2550   echo "$as_me:$LINENO: result: no" >&5
    2551 echo "${ECHO_T}no" >&6
    2552 fi
     3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     3378$as_echo "$CXX" >&6; }
     3379else
     3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3381$as_echo "no" >&6; }
     3382fi
     3383
    25533384
    25543385    test -n "$CXX" && break
     
    25573388if test -z "$CXX"; then
    25583389  ac_ct_CXX=$CXX
    2559   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     3390  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    25603391do
    25613392  # Extract the first word of "$ac_prog", so it can be a program name with args.
    25623393set dummy $ac_prog; ac_word=$2
    2563 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2565 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2566   echo $ECHO_N "(cached) $ECHO_C" >&6
     3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3395$as_echo_n "checking for $ac_word... " >&6; }
     3396if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     3397  $as_echo_n "(cached) " >&6
    25673398else
    25683399  if test -n "$ac_ct_CXX"; then
     
    25743405  IFS=$as_save_IFS
    25753406  test -z "$as_dir" && as_dir=.
    2576   for ac_exec_ext in '' $ac_executable_extensions; do
    2577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3407    for ac_exec_ext in '' $ac_executable_extensions; do
     3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    25783409    ac_cv_prog_ac_ct_CXX="$ac_prog"
    2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25803411    break 2
    25813412  fi
    25823413done
    2583 done
     3414  done
     3415IFS=$as_save_IFS
    25843416
    25853417fi
     
    25873419ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    25883420if test -n "$ac_ct_CXX"; then
    2589   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2590 echo "${ECHO_T}$ac_ct_CXX" >&6
    2591 else
    2592   echo "$as_me:$LINENO: result: no" >&5
    2593 echo "${ECHO_T}no" >&6
    2594 fi
     3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     3422$as_echo "$ac_ct_CXX" >&6; }
     3423else
     3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3425$as_echo "no" >&6; }
     3426fi
     3427
    25953428
    25963429  test -n "$ac_ct_CXX" && break
    25973430done
    2598 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    2599 
    2600   CXX=$ac_ct_CXX
    2601 fi
    2602 
    2603 
     3431
     3432  if test "x$ac_ct_CXX" = x; then
     3433    CXX="g++"
     3434  else
     3435    case $cross_compiling:$ac_tool_warned in
     3436yes:)
     3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3439ac_tool_warned=yes ;;
     3440esac
     3441    CXX=$ac_ct_CXX
     3442  fi
     3443fi
     3444
     3445  fi
     3446fi
    26043447# Provide some information about the compiler.
    2605 echo "$as_me:$LINENO:" \
    2606      "checking for C++ compiler version" >&5
    2607 ac_compiler=`set X $ac_compile; echo $2`
    2608 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2609   (eval $ac_compiler --version </dev/null >&5) 2>&5
     3448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     3449set X $ac_compile
     3450ac_compiler=$2
     3451for ac_option in --version -v -V -qversion; do
     3452  { { ac_try="$ac_compiler $ac_option >&5"
     3453case "(($ac_try" in
     3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3455  *) ac_try_echo=$ac_try;;
     3456esac
     3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3458$as_echo "$ac_try_echo"; } >&5
     3459  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    26103460  ac_status=$?
    2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2612   (exit $ac_status); }
    2613 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2614   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2615   ac_status=$?
    2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2617   (exit $ac_status); }
    2618 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2619   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2620   ac_status=$?
    2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2622   (exit $ac_status); }
    2623 
    2624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2627   echo $ECHO_N "(cached) $ECHO_C" >&6
    2628 else
    2629   cat >conftest.$ac_ext <<_ACEOF
    2630 /* confdefs.h.  */
    2631 _ACEOF
    2632 cat confdefs.h >>conftest.$ac_ext
    2633 cat >>conftest.$ac_ext <<_ACEOF
     3461  if test -s conftest.err; then
     3462    sed '10a\
     3463... rest of stderr output deleted ...
     3464         10q' conftest.err >conftest.er1
     3465    cat conftest.er1 >&5
     3466  fi
     3467  rm -f conftest.er1 conftest.err
     3468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3469  test $ac_status = 0; }
     3470done
     3471
     3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     3473$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     3474if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3475  $as_echo_n "(cached) " >&6
     3476else
     3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26343478/* end confdefs.h.  */
    26353479
     
    26453489}
    26463490_ACEOF
    2647 rm -f conftest.$ac_objext
    2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2649   (eval $ac_compile) 2>conftest.er1
    2650   ac_status=$?
    2651   grep -v '^ *+' conftest.er1 >conftest.err
    2652   rm -f conftest.er1
    2653   cat conftest.err >&5
    2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2655   (exit $ac_status); } &&
    2656      { ac_try='test -z "$ac_cxx_werror_flag"
    2657              || test ! -s conftest.err'
    2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2659   (eval $ac_try) 2>&5
    2660   ac_status=$?
    2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2662   (exit $ac_status); }; } &&
    2663      { ac_try='test -s conftest.$ac_objext'
    2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2665   (eval $ac_try) 2>&5
    2666   ac_status=$?
    2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2668   (exit $ac_status); }; }; then
     3491if ac_fn_cxx_try_compile "$LINENO"; then :
    26693492  ac_compiler_gnu=yes
    26703493else
    2671   echo "$as_me: failed program was:" >&5
    2672 sed 's/^/| /' conftest.$ac_ext >&5
    2673 
    2674 ac_compiler_gnu=no
    2675 fi
    2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3494  ac_compiler_gnu=no
     3495fi
     3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    26773497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    26783498
    26793499fi
    2680 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2681 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2682 GXX=`test $ac_compiler_gnu = yes && echo yes`
     3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     3501$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     3502if test $ac_compiler_gnu = yes; then
     3503  GXX=yes
     3504else
     3505  GXX=
     3506fi
    26833507ac_test_CXXFLAGS=${CXXFLAGS+set}
    26843508ac_save_CXXFLAGS=$CXXFLAGS
    2685 CXXFLAGS="-g"
    2686 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2688 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2689   echo $ECHO_N "(cached) $ECHO_C" >&6
    2690 else
    2691   cat >conftest.$ac_ext <<_ACEOF
    2692 /* confdefs.h.  */
    2693 _ACEOF
    2694 cat confdefs.h >>conftest.$ac_ext
    2695 cat >>conftest.$ac_ext <<_ACEOF
     3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     3510$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     3511if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3512  $as_echo_n "(cached) " >&6
     3513else
     3514  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     3515   ac_cxx_werror_flag=yes
     3516   ac_cv_prog_cxx_g=no
     3517   CXXFLAGS="-g"
     3518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26963519/* end confdefs.h.  */
    26973520
     
    27043527}
    27053528_ACEOF
    2706 rm -f conftest.$ac_objext
    2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2708   (eval $ac_compile) 2>conftest.er1
    2709   ac_status=$?
    2710   grep -v '^ *+' conftest.er1 >conftest.err
    2711   rm -f conftest.er1
    2712   cat conftest.err >&5
    2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2714   (exit $ac_status); } &&
    2715      { ac_try='test -z "$ac_cxx_werror_flag"
    2716              || test ! -s conftest.err'
    2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2718   (eval $ac_try) 2>&5
    2719   ac_status=$?
    2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2721   (exit $ac_status); }; } &&
    2722      { ac_try='test -s conftest.$ac_objext'
    2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2724   (eval $ac_try) 2>&5
    2725   ac_status=$?
    2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2727   (exit $ac_status); }; }; then
     3529if ac_fn_cxx_try_compile "$LINENO"; then :
    27283530  ac_cv_prog_cxx_g=yes
    27293531else
    2730   echo "$as_me: failed program was:" >&5
    2731 sed 's/^/| /' conftest.$ac_ext >&5
    2732 
    2733 ac_cv_prog_cxx_g=no
    2734 fi
    2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2736 fi
    2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2738 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3532  CXXFLAGS=""
     3533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3534/* end confdefs.h.  */
     3535
     3536int
     3537main ()
     3538{
     3539
     3540  ;
     3541  return 0;
     3542}
     3543_ACEOF
     3544if ac_fn_cxx_try_compile "$LINENO"; then :
     3545
     3546else
     3547  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3548     CXXFLAGS="-g"
     3549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3550/* end confdefs.h.  */
     3551
     3552int
     3553main ()
     3554{
     3555
     3556  ;
     3557  return 0;
     3558}
     3559_ACEOF
     3560if ac_fn_cxx_try_compile "$LINENO"; then :
     3561  ac_cv_prog_cxx_g=yes
     3562fi
     3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3564fi
     3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3566fi
     3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3568   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     3569fi
     3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     3571$as_echo "$ac_cv_prog_cxx_g" >&6; }
    27393572if test "$ac_test_CXXFLAGS" = set; then
    27403573  CXXFLAGS=$ac_save_CXXFLAGS
     
    27523585  fi
    27533586fi
    2754 for ac_declaration in \
    2755    '' \
    2756    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2757    'extern "C" void std::exit (int); using std::exit;' \
    2758    'extern "C" void exit (int) throw ();' \
    2759    'extern "C" void exit (int);' \
    2760    'void exit (int);'
    2761 do
    2762   cat >conftest.$ac_ext <<_ACEOF
    2763 /* confdefs.h.  */
    2764 _ACEOF
    2765 cat confdefs.h >>conftest.$ac_ext
    2766 cat >>conftest.$ac_ext <<_ACEOF
    2767 /* end confdefs.h.  */
    2768 $ac_declaration
    2769 #include <stdlib.h>
    2770 int
    2771 main ()
    2772 {
    2773 exit (42);
    2774   ;
    2775   return 0;
    2776 }
    2777 _ACEOF
    2778 rm -f conftest.$ac_objext
    2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2780   (eval $ac_compile) 2>conftest.er1
    2781   ac_status=$?
    2782   grep -v '^ *+' conftest.er1 >conftest.err
    2783   rm -f conftest.er1
    2784   cat conftest.err >&5
    2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2786   (exit $ac_status); } &&
    2787      { ac_try='test -z "$ac_cxx_werror_flag"
    2788              || test ! -s conftest.err'
    2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2790   (eval $ac_try) 2>&5
    2791   ac_status=$?
    2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2793   (exit $ac_status); }; } &&
    2794      { ac_try='test -s conftest.$ac_objext'
    2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2796   (eval $ac_try) 2>&5
    2797   ac_status=$?
    2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2799   (exit $ac_status); }; }; then
    2800   :
    2801 else
    2802   echo "$as_me: failed program was:" >&5
    2803 sed 's/^/| /' conftest.$ac_ext >&5
    2804 
    2805 continue
    2806 fi
    2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2808   cat >conftest.$ac_ext <<_ACEOF
    2809 /* confdefs.h.  */
    2810 _ACEOF
    2811 cat confdefs.h >>conftest.$ac_ext
    2812 cat >>conftest.$ac_ext <<_ACEOF
    2813 /* end confdefs.h.  */
    2814 $ac_declaration
    2815 int
    2816 main ()
    2817 {
    2818 exit (42);
    2819   ;
    2820   return 0;
    2821 }
    2822 _ACEOF
    2823 rm -f conftest.$ac_objext
    2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2825   (eval $ac_compile) 2>conftest.er1
    2826   ac_status=$?
    2827   grep -v '^ *+' conftest.er1 >conftest.err
    2828   rm -f conftest.er1
    2829   cat conftest.err >&5
    2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2831   (exit $ac_status); } &&
    2832      { ac_try='test -z "$ac_cxx_werror_flag"
    2833              || test ! -s conftest.err'
    2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2835   (eval $ac_try) 2>&5
    2836   ac_status=$?
    2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2838   (exit $ac_status); }; } &&
    2839      { ac_try='test -s conftest.$ac_objext'
    2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2841   (eval $ac_try) 2>&5
    2842   ac_status=$?
    2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2844   (exit $ac_status); }; }; then
    2845   break
    2846 else
    2847   echo "$as_me: failed program was:" >&5
    2848 sed 's/^/| /' conftest.$ac_ext >&5
    2849 
    2850 fi
    2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2852 done
    2853 rm -f conftest*
    2854 if test -n "$ac_declaration"; then
    2855   echo '#ifdef __cplusplus' >>confdefs.h
    2856   echo $ac_declaration      >>confdefs.h
    2857   echo '#endif'             >>confdefs.h
    2858 fi
    2859 
    28603587ac_ext=c
    28613588ac_cpp='$CPP $CPPFLAGS'
     
    28643591ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28653592
    2866 for ac_prog in gawk mawk nawk awk
     3593if test $ENABLE_JAVA = "1" ; then
     3594
     3595
     3596if test "x$JAVAC" = x ; then
     3597    if test "x$JAVAPREFIX" = x; then
     3598    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    28673599do
    28683600  # Extract the first word of "$ac_prog", so it can be a program name with args.
    28693601set dummy $ac_prog; ac_word=$2
    2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2872 if test "${ac_cv_prog_AWK+set}" = set; then
    2873   echo $ECHO_N "(cached) $ECHO_C" >&6
    2874 else
    2875   if test -n "$AWK"; then
    2876   ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3603$as_echo_n "checking for $ac_word... " >&6; }
     3604if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3605  $as_echo_n "(cached) " >&6
     3606else
     3607  if test -n "$JAVAC"; then
     3608  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    28773609else
    28783610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    28813613  IFS=$as_save_IFS
    28823614  test -z "$as_dir" && as_dir=.
    2883   for ac_exec_ext in '' $ac_executable_extensions; do
    2884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2885     ac_cv_prog_AWK="$ac_prog"
    2886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3615    for ac_exec_ext in '' $ac_executable_extensions; do
     3616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3617    ac_cv_prog_JAVAC="$ac_prog"
     3618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28873619    break 2
    28883620  fi
    28893621done
     3622  done
     3623IFS=$as_save_IFS
     3624
     3625fi
     3626fi
     3627JAVAC=$ac_cv_prog_JAVAC
     3628if test -n "$JAVAC"; then
     3629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3630$as_echo "$JAVAC" >&6; }
     3631else
     3632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3633$as_echo "no" >&6; }
     3634fi
     3635
     3636
     3637  test -n "$JAVAC" && break
    28903638done
    28913639
    2892 fi
    2893 fi
    2894 AWK=$ac_cv_prog_AWK
    2895 if test -n "$AWK"; then
    2896   echo "$as_me:$LINENO: result: $AWK" >&5
    2897 echo "${ECHO_T}$AWK" >&6
    2898 else
    2899   echo "$as_me:$LINENO: result: no" >&5
    2900 echo "${ECHO_T}no" >&6
    2901 fi
    2902 
    2903   test -n "$AWK" && break
    2904 done
    2905 
    2906 for ac_prog in 'bison -y' byacc
     3640  else
     3641    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
    29073642do
    29083643  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29093644set dummy $ac_prog; ac_word=$2
    2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2912 if test "${ac_cv_prog_YACC+set}" = set; then
    2913   echo $ECHO_N "(cached) $ECHO_C" >&6
    2914 else
    2915   if test -n "$YACC"; then
    2916   ac_cv_prog_YACC="$YACC" # Let the user override the test.
     3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3646$as_echo_n "checking for $ac_word... " >&6; }
     3647if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3648  $as_echo_n "(cached) " >&6
     3649else
     3650  if test -n "$JAVAC"; then
     3651  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
    29173652else
    29183653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    29213656  IFS=$as_save_IFS
    29223657  test -z "$as_dir" && as_dir=.
    2923   for ac_exec_ext in '' $ac_executable_extensions; do
    2924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2925     ac_cv_prog_YACC="$ac_prog"
    2926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3658    for ac_exec_ext in '' $ac_executable_extensions; do
     3659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3660    ac_cv_prog_JAVAC="$ac_prog"
     3661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    29273662    break 2
    29283663  fi
    29293664done
     3665  done
     3666IFS=$as_save_IFS
     3667
     3668fi
     3669fi
     3670JAVAC=$ac_cv_prog_JAVAC
     3671if test -n "$JAVAC"; then
     3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3673$as_echo "$JAVAC" >&6; }
     3674else
     3675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3676$as_echo "no" >&6; }
     3677fi
     3678
     3679
     3680  test -n "$JAVAC" && break
    29303681done
     3682test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3683
     3684  fi
     3685  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3686else
     3687  echo "Checking for javac... $JAVAC"
     3688fi
     3689
     3690
     3691
     3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3693$as_echo_n "checking if $JAVAC works... " >&6; }
     3694if test "${ac_cv_prog_javac_works+set}" = set; then :
     3695  $as_echo_n "(cached) " >&6
     3696else
     3697
     3698JAVA_TEST=Test.java
     3699CLASS_TEST=Test.class
     3700cat << \EOF > $JAVA_TEST
     3701/* #line 3701 "configure" */
     3702public class Test {
     3703}
     3704EOF
     3705if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     3706  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     3707  (eval $ac_try) 2>&5
     3708  ac_status=$?
     3709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3710  test $ac_status = 0; }; } >/dev/null 2>&1; then
     3711  ac_cv_prog_javac_works=yes
     3712else
     3713  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     3714  echo "configure: failed program was:" >&5
     3715  cat $JAVA_TEST >&5
     3716fi
     3717rm -f $JAVA_TEST $CLASS_TEST
     3718
     3719fi
     3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     3721$as_echo "$ac_cv_prog_javac_works" >&6; }
     3722if test "x$JAVACFLAGS" = x ; then
     3723  JAVACFLAGS="-source 1.4 -target 1.4"
     3724fi
     3725
     3726
     3727
     3728
     3729if test "x$JAVA" = x ; then
     3730        if test x$JAVAPREFIX = x; then
     3731        test x$JAVA = x && for ac_prog in java$EXEEXT
     3732do
     3733  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3734set dummy $ac_prog; ac_word=$2
     3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3736$as_echo_n "checking for $ac_word... " >&6; }
     3737if test "${ac_cv_prog_JAVA+set}" = set; then :
     3738  $as_echo_n "(cached) " >&6
     3739else
     3740  if test -n "$JAVA"; then
     3741  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3742else
     3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3744for as_dir in $PATH
     3745do
     3746  IFS=$as_save_IFS
     3747  test -z "$as_dir" && as_dir=.
     3748    for ac_exec_ext in '' $ac_executable_extensions; do
     3749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3750    ac_cv_prog_JAVA="$ac_prog"
     3751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3752    break 2
     3753  fi
     3754done
     3755  done
     3756IFS=$as_save_IFS
     3757
     3758fi
     3759fi
     3760JAVA=$ac_cv_prog_JAVA
     3761if test -n "$JAVA"; then
     3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3763$as_echo "$JAVA" >&6; }
     3764else
     3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3766$as_echo "no" >&6; }
     3767fi
     3768
     3769
     3770  test -n "$JAVA" && break
     3771done
     3772
     3773    else
     3774        test x$JAVA = x && for ac_prog in java$EXEEXT
     3775do
     3776  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3777set dummy $ac_prog; ac_word=$2
     3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3779$as_echo_n "checking for $ac_word... " >&6; }
     3780if test "${ac_cv_prog_JAVA+set}" = set; then :
     3781  $as_echo_n "(cached) " >&6
     3782else
     3783  if test -n "$JAVA"; then
     3784  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
     3785else
     3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3787for as_dir in $PATH
     3788do
     3789  IFS=$as_save_IFS
     3790  test -z "$as_dir" && as_dir=.
     3791    for ac_exec_ext in '' $ac_executable_extensions; do
     3792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3793    ac_cv_prog_JAVA="$ac_prog"
     3794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3795    break 2
     3796  fi
     3797done
     3798  done
     3799IFS=$as_save_IFS
     3800
     3801fi
     3802fi
     3803JAVA=$ac_cv_prog_JAVA
     3804if test -n "$JAVA"; then
     3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     3806$as_echo "$JAVA" >&6; }
     3807else
     3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3809$as_echo "no" >&6; }
     3810fi
     3811
     3812
     3813  test -n "$JAVA" && break
     3814done
     3815test -n "$JAVA" || JAVA="$JAVAPREFIX"
     3816
     3817    fi
     3818    test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     3819fi
     3820
     3821
     3822# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
     3823set dummy uudecode$EXEEXT; ac_word=$2
     3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3825$as_echo_n "checking for $ac_word... " >&6; }
     3826if test "${ac_cv_prog_uudecode+set}" = set; then :
     3827  $as_echo_n "(cached) " >&6
     3828else
     3829  if test -n "$uudecode"; then
     3830  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
     3831else
     3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3833for as_dir in $PATH
     3834do
     3835  IFS=$as_save_IFS
     3836  test -z "$as_dir" && as_dir=.
     3837    for ac_exec_ext in '' $ac_executable_extensions; do
     3838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3839    ac_cv_prog_uudecode="yes"
     3840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3841    break 2
     3842  fi
     3843done
     3844  done
     3845IFS=$as_save_IFS
     3846
     3847fi
     3848fi
     3849uudecode=$ac_cv_prog_uudecode
     3850if test -n "$uudecode"; then
     3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
     3852$as_echo "$uudecode" >&6; }
     3853else
     3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3855$as_echo "no" >&6; }
     3856fi
     3857
     3858
     3859if test x$uudecode = xyes; then
     3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
     3861$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
     3862if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
     3863  $as_echo_n "(cached) " >&6
     3864else
     3865
     3866cat << \EOF > Test.uue
     3867begin-base64 644 Test.class
     3868yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
     3869bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
     3870bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
     3871YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
     3872aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
     3873AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
     3874AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
     3875====
     3876EOF
     3877if uudecode$EXEEXT Test.uue; then
     3878        ac_cv_prog_uudecode_base64=yes
     3879else
     3880        echo "configure: 3880: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     3881        echo "configure: failed file was:" >&5
     3882        cat Test.uue >&5
     3883        ac_cv_prog_uudecode_base64=no
     3884fi
     3885rm -f Test.uue
     3886fi
     3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
     3888$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
     3889fi
     3890if test x$ac_cv_prog_uudecode_base64 != xyes; then
     3891        rm -f Test.class
     3892        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
     3893$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
     3894        if test x$ac_cv_prog_javac_works = xno; then
     3895                as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     3896        fi
     3897        if test x$ac_cv_prog_javac_works = x; then
     3898
     3899if test "x$JAVAC" = x ; then
     3900    if test "x$JAVAPREFIX" = x; then
     3901    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3902do
     3903  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3904set dummy $ac_prog; ac_word=$2
     3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3906$as_echo_n "checking for $ac_word... " >&6; }
     3907if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3908  $as_echo_n "(cached) " >&6
     3909else
     3910  if test -n "$JAVAC"; then
     3911  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3912else
     3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3914for as_dir in $PATH
     3915do
     3916  IFS=$as_save_IFS
     3917  test -z "$as_dir" && as_dir=.
     3918    for ac_exec_ext in '' $ac_executable_extensions; do
     3919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3920    ac_cv_prog_JAVAC="$ac_prog"
     3921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3922    break 2
     3923  fi
     3924done
     3925  done
     3926IFS=$as_save_IFS
     3927
     3928fi
     3929fi
     3930JAVAC=$ac_cv_prog_JAVAC
     3931if test -n "$JAVAC"; then
     3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3933$as_echo "$JAVAC" >&6; }
     3934else
     3935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3936$as_echo "no" >&6; }
     3937fi
     3938
     3939
     3940  test -n "$JAVAC" && break
     3941done
     3942
     3943  else
     3944    test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
     3945do
     3946  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3947set dummy $ac_prog; ac_word=$2
     3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3949$as_echo_n "checking for $ac_word... " >&6; }
     3950if test "${ac_cv_prog_JAVAC+set}" = set; then :
     3951  $as_echo_n "(cached) " >&6
     3952else
     3953  if test -n "$JAVAC"; then
     3954  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
     3955else
     3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3957for as_dir in $PATH
     3958do
     3959  IFS=$as_save_IFS
     3960  test -z "$as_dir" && as_dir=.
     3961    for ac_exec_ext in '' $ac_executable_extensions; do
     3962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3963    ac_cv_prog_JAVAC="$ac_prog"
     3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3965    break 2
     3966  fi
     3967done
     3968  done
     3969IFS=$as_save_IFS
     3970
     3971fi
     3972fi
     3973JAVAC=$ac_cv_prog_JAVAC
     3974if test -n "$JAVAC"; then
     3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     3976$as_echo "$JAVAC" >&6; }
     3977else
     3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3979$as_echo "no" >&6; }
     3980fi
     3981
     3982
     3983  test -n "$JAVAC" && break
     3984done
     3985test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
     3986
     3987  fi
     3988  test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     3989else
     3990  echo "Checking for javac... $JAVAC"
     3991fi
     3992
     3993
     3994
     3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
     3996$as_echo_n "checking if $JAVAC works... " >&6; }
     3997if test "${ac_cv_prog_javac_works+set}" = set; then :
     3998  $as_echo_n "(cached) " >&6
     3999else
     4000
     4001JAVA_TEST=Test.java
     4002CLASS_TEST=Test.class
     4003cat << \EOF > $JAVA_TEST
     4004/* #line 4004 "configure" */
     4005public class Test {
     4006}
     4007EOF
     4008if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4009  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4010  (eval $ac_try) 2>&5
     4011  ac_status=$?
     4012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4013  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4014  ac_cv_prog_javac_works=yes
     4015else
     4016  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4017  echo "configure: failed program was:" >&5
     4018  cat $JAVA_TEST >&5
     4019fi
     4020rm -f $JAVA_TEST $CLASS_TEST
     4021
     4022fi
     4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
     4024$as_echo "$ac_cv_prog_javac_works" >&6; }
     4025if test "x$JAVACFLAGS" = x ; then
     4026  JAVACFLAGS="-source 1.4 -target 1.4"
     4027fi
     4028
     4029
     4030
     4031        fi
     4032fi
     4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
     4034$as_echo_n "checking if $JAVA works... " >&6; }
     4035if test "${ac_cv_prog_java_works+set}" = set; then :
     4036  $as_echo_n "(cached) " >&6
     4037else
     4038
     4039JAVA_TEST=Test.java
     4040CLASS_TEST=Test.class
     4041TEST=Test
     4042cat << \EOF > $JAVA_TEST
     4043/* [#]line 4043 "configure" */
     4044public class Test {
     4045public static void main (String args[]) {
     4046        System.exit (0);
     4047} }
     4048EOF
     4049if test x$ac_cv_prog_uudecode_base64 != xyes; then
     4050        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
     4051  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4052  (eval $ac_try) 2>&5
     4053  ac_status=$?
     4054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4055  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
     4056                :
     4057        else
     4058          echo "configure: failed program was:" >&5
     4059          cat $JAVA_TEST >&5
     4060          as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4061        fi
     4062fi
     4063if { ac_try='$JAVA $JAVAFLAGS $TEST'
     4064  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
     4065  (eval $ac_try) 2>&5
     4066  ac_status=$?
     4067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4068  test $ac_status = 0; }; } >/dev/null 2>&1; then
     4069  ac_cv_prog_java_works=yes
     4070else
     4071  echo "configure: failed program was:" >&5
     4072  cat $JAVA_TEST >&5
     4073  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4074fi
     4075rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     4076
     4077fi
     4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
     4079$as_echo "$ac_cv_prog_java_works" >&6; }
     4080
     4081
     4082
     4083fi
     4084for ac_prog in gawk mawk nawk awk
     4085do
     4086  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4087set dummy $ac_prog; ac_word=$2
     4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4089$as_echo_n "checking for $ac_word... " >&6; }
     4090if test "${ac_cv_prog_AWK+set}" = set; then :
     4091  $as_echo_n "(cached) " >&6
     4092else
     4093  if test -n "$AWK"; then
     4094  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     4095else
     4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4097for as_dir in $PATH
     4098do
     4099  IFS=$as_save_IFS
     4100  test -z "$as_dir" && as_dir=.
     4101    for ac_exec_ext in '' $ac_executable_extensions; do
     4102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4103    ac_cv_prog_AWK="$ac_prog"
     4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4105    break 2
     4106  fi
     4107done
     4108  done
     4109IFS=$as_save_IFS
     4110
     4111fi
     4112fi
     4113AWK=$ac_cv_prog_AWK
     4114if test -n "$AWK"; then
     4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     4116$as_echo "$AWK" >&6; }
     4117else
     4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4119$as_echo "no" >&6; }
     4120fi
     4121
     4122
     4123  test -n "$AWK" && break
     4124done
     4125
     4126for ac_prog in 'bison -y' byacc
     4127do
     4128  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4129set dummy $ac_prog; ac_word=$2
     4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4131$as_echo_n "checking for $ac_word... " >&6; }
     4132if test "${ac_cv_prog_YACC+set}" = set; then :
     4133  $as_echo_n "(cached) " >&6
     4134else
     4135  if test -n "$YACC"; then
     4136  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     4137else
     4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4139for as_dir in $PATH
     4140do
     4141  IFS=$as_save_IFS
     4142  test -z "$as_dir" && as_dir=.
     4143    for ac_exec_ext in '' $ac_executable_extensions; do
     4144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4145    ac_cv_prog_YACC="$ac_prog"
     4146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4147    break 2
     4148  fi
     4149done
     4150  done
     4151IFS=$as_save_IFS
    29314152
    29324153fi
     
    29344155YACC=$ac_cv_prog_YACC
    29354156if test -n "$YACC"; then
    2936   echo "$as_me:$LINENO: result: $YACC" >&5
    2937 echo "${ECHO_T}$YACC" >&6
    2938 else
    2939   echo "$as_me:$LINENO: result: no" >&5
    2940 echo "${ECHO_T}no" >&6
    2941 fi
     4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
     4158$as_echo "$YACC" >&6; }
     4159else
     4160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4161$as_echo "no" >&6; }
     4162fi
     4163
    29424164
    29434165  test -n "$YACC" && break
     
    29464168
    29474169ac_aux_dir=
    2948 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    2949   if test -f $ac_dir/install-sh; then
     4170for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     4171  if test -f "$ac_dir/install-sh"; then
    29504172    ac_aux_dir=$ac_dir
    29514173    ac_install_sh="$ac_aux_dir/install-sh -c"
    29524174    break
    2953   elif test -f $ac_dir/install.sh; then
     4175  elif test -f "$ac_dir/install.sh"; then
    29544176    ac_aux_dir=$ac_dir
    29554177    ac_install_sh="$ac_aux_dir/install.sh -c"
    29564178    break
    2957   elif test -f $ac_dir/shtool; then
     4179  elif test -f "$ac_dir/shtool"; then
    29584180    ac_aux_dir=$ac_dir
    29594181    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    29624184done
    29634185if test -z "$ac_aux_dir"; then
    2964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2965 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2966    { (exit 1); exit 1; }; }
    2967 fi
    2968 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2969 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2970 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     4186  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     4187fi
     4188
     4189# These three variables are undocumented and unsupported,
     4190# and are intended to be withdrawn in a future Autoconf release.
     4191# They can cause serious problems if a builder's source tree is in a directory
     4192# whose full name contains unusual characters.
     4193ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     4194ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     4195ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     4196
    29714197
    29724198# Make sure we can run config.sub.
    2973 $ac_config_sub sun4 >/dev/null 2>&1 ||
    2974   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    2975 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2976    { (exit 1); exit 1; }; }
    2977 
    2978 echo "$as_me:$LINENO: checking build system type" >&5
    2979 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2980 if test "${ac_cv_build+set}" = set; then
    2981   echo $ECHO_N "(cached) $ECHO_C" >&6
    2982 else
    2983   ac_cv_build_alias=$build_alias
    2984 test -z "$ac_cv_build_alias" &&
    2985   ac_cv_build_alias=`$ac_config_guess`
    2986 test -z "$ac_cv_build_alias" &&
    2987   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    2988 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2989    { (exit 1); exit 1; }; }
    2990 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2991   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    2992 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    2993    { (exit 1); exit 1; }; }
    2994 
    2995 fi
    2996 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    2997 echo "${ECHO_T}$ac_cv_build" >&6
     4199$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     4200  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     4201
     4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     4203$as_echo_n "checking build system type... " >&6; }
     4204if test "${ac_cv_build+set}" = set; then :
     4205  $as_echo_n "(cached) " >&6
     4206else
     4207  ac_build_alias=$build_alias
     4208test "x$ac_build_alias" = x &&
     4209  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     4210test "x$ac_build_alias" = x &&
     4211  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     4212ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     4213  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     4214
     4215fi
     4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     4217$as_echo "$ac_cv_build" >&6; }
     4218case $ac_cv_build in
     4219*-*-*) ;;
     4220*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     4221esac
    29984222build=$ac_cv_build
    2999 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3000 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3001 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3002 
    3003 
    3004 echo "$as_me:$LINENO: checking host system type" >&5
    3005 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    3006 if test "${ac_cv_host+set}" = set; then
    3007   echo $ECHO_N "(cached) $ECHO_C" >&6
    3008 else
    3009   ac_cv_host_alias=$host_alias
    3010 test -z "$ac_cv_host_alias" &&
    3011   ac_cv_host_alias=$ac_cv_build_alias
    3012 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    3013   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    3014 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    3015    { (exit 1); exit 1; }; }
    3016 
    3017 fi
    3018 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    3019 echo "${ECHO_T}$ac_cv_host" >&6
     4223ac_save_IFS=$IFS; IFS='-'
     4224set x $ac_cv_build
     4225shift
     4226build_cpu=$1
     4227build_vendor=$2
     4228shift; shift
     4229# Remember, the first character of IFS is used to create $*,
     4230# except with old shells:
     4231build_os=$*
     4232IFS=$ac_save_IFS
     4233case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     4234
     4235
     4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     4237$as_echo_n "checking host system type... " >&6; }
     4238if test "${ac_cv_host+set}" = set; then :
     4239  $as_echo_n "(cached) " >&6
     4240else
     4241  if test "x$host_alias" = x; then
     4242  ac_cv_host=$ac_cv_build
     4243else
     4244  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     4245    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     4246fi
     4247
     4248fi
     4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     4250$as_echo "$ac_cv_host" >&6; }
     4251case $ac_cv_host in
     4252*-*-*) ;;
     4253*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     4254esac
    30204255host=$ac_cv_host
    3021 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3022 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3023 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3024 
    3025 
    3026 echo "$as_me:$LINENO: checking target system type" >&5
    3027 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    3028 if test "${ac_cv_target+set}" = set; then
    3029   echo $ECHO_N "(cached) $ECHO_C" >&6
    3030 else
    3031   ac_cv_target_alias=$target_alias
    3032 test "x$ac_cv_target_alias" = "x" &&
    3033   ac_cv_target_alias=$ac_cv_host_alias
    3034 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    3035   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    3036 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    3037    { (exit 1); exit 1; }; }
    3038 
    3039 fi
    3040 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    3041 echo "${ECHO_T}$ac_cv_target" >&6
     4256ac_save_IFS=$IFS; IFS='-'
     4257set x $ac_cv_host
     4258shift
     4259host_cpu=$1
     4260host_vendor=$2
     4261shift; shift
     4262# Remember, the first character of IFS is used to create $*,
     4263# except with old shells:
     4264host_os=$*
     4265IFS=$ac_save_IFS
     4266case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     4267
     4268
     4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     4270$as_echo_n "checking target system type... " >&6; }
     4271if test "${ac_cv_target+set}" = set; then :
     4272  $as_echo_n "(cached) " >&6
     4273else
     4274  if test "x$target_alias" = x; then
     4275  ac_cv_target=$ac_cv_host
     4276else
     4277  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     4278    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     4279fi
     4280
     4281fi
     4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     4283$as_echo "$ac_cv_target" >&6; }
     4284case $ac_cv_target in
     4285*-*-*) ;;
     4286*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     4287esac
    30424288target=$ac_cv_target
    3043 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3044 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3045 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4289ac_save_IFS=$IFS; IFS='-'
     4290set x $ac_cv_target
     4291shift
     4292target_cpu=$1
     4293target_vendor=$2
     4294shift; shift
     4295# Remember, the first character of IFS is used to create $*,
     4296# except with old shells:
     4297target_os=$*
     4298IFS=$ac_save_IFS
     4299case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    30464300
    30474301
     
    30524306    NONENONEs,x,x, &&
    30534307  program_prefix=${target_alias}-
     4308
    30544309# Find a good install program.  We prefer a C program (faster),
    30554310# so one script is as good as another.  But avoid the broken or
     
    30654320# OS/2's system install, which has a completely different semantic
    30664321# ./install, which can be erroneously created by make from ./install.sh.
    3067 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    3068 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     4322# Reject install programs that cannot install multiple files.
     4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     4324$as_echo_n "checking for a BSD-compatible install... " >&6; }
    30694325if test -z "$INSTALL"; then
    3070 if test "${ac_cv_path_install+set}" = set; then
    3071   echo $ECHO_N "(cached) $ECHO_C" >&6
     4326if test "${ac_cv_path_install+set}" = set; then :
     4327  $as_echo_n "(cached) " >&6
    30724328else
    30734329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    30764332  IFS=$as_save_IFS
    30774333  test -z "$as_dir" && as_dir=.
    3078   # Account for people who put trailing slashes in PATH elements.
    3079 case $as_dir/ in
    3080   ./ | .// | /cC/* | \
     4334    # Account for people who put trailing slashes in PATH elements.
     4335case $as_dir/ in #((
     4336  ./ | .// | /[cC]/* | \
    30814337  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3082   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     4338  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    30834339  /usr/ucb/* ) ;;
    30844340  *)
     
    30884344    for ac_prog in ginstall scoinst install; do
    30894345      for ac_exec_ext in '' $ac_executable_extensions; do
    3090     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4346    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    30914347      if test $ac_prog = install &&
    30924348        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    30984354        :
    30994355      else
    3100         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    3101         break 3
     4356        rm -rf conftest.one conftest.two conftest.dir
     4357        echo one > conftest.one
     4358        echo two > conftest.two
     4359        mkdir conftest.dir
     4360        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     4361          test -s conftest.one && test -s conftest.two &&
     4362          test -s conftest.dir/conftest.one &&
     4363          test -s conftest.dir/conftest.two
     4364        then
     4365          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     4366          break 3
     4367        fi
    31024368      fi
    31034369    fi
     
    31064372    ;;
    31074373esac
    3108 done
    3109 
     4374
     4375  done
     4376IFS=$as_save_IFS
     4377
     4378rm -rf conftest.one conftest.two conftest.dir
    31104379
    31114380fi
     
    31134382    INSTALL=$ac_cv_path_install
    31144383  else
    3115     # As a last resort, use the slow shell script.  We don't cache a
    3116     # path for INSTALL within a source directory, because that will
     4384    # As a last resort, use the slow shell script.  Don't cache a
     4385    # value for INSTALL within a source directory, because that will
    31174386    # break other packages using the cache if that directory is
    3118     # removed, or if the path is relative.
     4387    # removed, or if the value is a relative name.
    31194388    INSTALL=$ac_install_sh
    31204389  fi
    31214390fi
    3122 echo "$as_me:$LINENO: result: $INSTALL" >&5
    3123 echo "${ECHO_T}$INSTALL" >&6
     4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     4392$as_echo "$INSTALL" >&6; }
    31244393
    31254394# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    31314400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    31324401
    3133 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     4403$as_echo_n "checking whether ln -s works... " >&6; }
    31354404LN_S=$as_ln_s
    31364405if test "$LN_S" = "ln -s"; then
    3137   echo "$as_me:$LINENO: result: yes" >&5
    3138 echo "${ECHO_T}yes" >&6
    3139 else
    3140   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3141 echo "${ECHO_T}no, using $LN_S" >&6
    3142 fi
    3143 
    3144 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3145 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    3146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    3147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    3148   echo $ECHO_N "(cached) $ECHO_C" >&6
     4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4407$as_echo "yes" >&6; }
     4408else
     4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     4410$as_echo "no, using $LN_S" >&6; }
     4411fi
     4412
     4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4414$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     4415set x ${MAKE-make}
     4416ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     4417if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     4418  $as_echo_n "(cached) " >&6
    31494419else
    31504420  cat >conftest.make <<\_ACEOF
     4421SHELL = /bin/sh
    31514422all:
    3152     @echo 'ac_maketemp="$(MAKE)"'
    3153 _ACEOF
    3154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    3156 if test -n "$ac_maketemp"; then
    3157   eval ac_cv_prog_make_${ac_make}_set=yes
    3158 else
    3159   eval ac_cv_prog_make_${ac_make}_set=no
    3160 fi
     4423    @echo '@@@%%%=$(MAKE)=@@@%%%'
     4424_ACEOF
     4425# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4426case `${MAKE-make} -f conftest.make 2>/dev/null` in
     4427  *@@@%%%=?*=@@@%%%*)
     4428    eval ac_cv_prog_make_${ac_make}_set=yes;;
     4429  *)
     4430    eval ac_cv_prog_make_${ac_make}_set=no;;
     4431esac
    31614432rm -f conftest.make
    31624433fi
    3163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    3164   echo "$as_me:$LINENO: result: yes" >&5
    3165 echo "${ECHO_T}yes" >&6
     4434if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4436$as_echo "yes" >&6; }
    31664437  SET_MAKE=
    31674438else
    3168   echo "$as_me:$LINENO: result: no" >&5
    3169 echo "${ECHO_T}no" >&6
     4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4440$as_echo "no" >&6; }
    31704441  SET_MAKE="MAKE=${MAKE-make}"
    31714442fi
     
    31744445  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    31754446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3178 if test "${ac_cv_prog_RANLIB+set}" = set; then
    3179   echo $ECHO_N "(cached) $ECHO_C" >&6
     4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4448$as_echo_n "checking for $ac_word... " >&6; }
     4449if test "${ac_cv_prog_RANLIB+set}" = set; then :
     4450  $as_echo_n "(cached) " >&6
    31804451else
    31814452  if test -n "$RANLIB"; then
     
    31874458  IFS=$as_save_IFS
    31884459  test -z "$as_dir" && as_dir=.
    3189   for ac_exec_ext in '' $ac_executable_extensions; do
    3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4460    for ac_exec_ext in '' $ac_executable_extensions; do
     4461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    31914462    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    31934464    break 2
    31944465  fi
    31954466done
    3196 done
     4467  done
     4468IFS=$as_save_IFS
    31974469
    31984470fi
     
    32004472RANLIB=$ac_cv_prog_RANLIB
    32014473if test -n "$RANLIB"; then
    3202   echo "$as_me:$LINENO: result: $RANLIB" >&5
    3203 echo "${ECHO_T}$RANLIB" >&6
    3204 else
    3205   echo "$as_me:$LINENO: result: no" >&5
    3206 echo "${ECHO_T}no" >&6
    3207 fi
     4474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     4475$as_echo "$RANLIB" >&6; }
     4476else
     4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4478$as_echo "no" >&6; }
     4479fi
     4480
    32084481
    32094482fi
     
    32124485  # Extract the first word of "ranlib", so it can be a program name with args.
    32134486set dummy ranlib; ac_word=$2
    3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    3217   echo $ECHO_N "(cached) $ECHO_C" >&6
     4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4488$as_echo_n "checking for $ac_word... " >&6; }
     4489if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     4490  $as_echo_n "(cached) " >&6
    32184491else
    32194492  if test -n "$ac_ct_RANLIB"; then
     
    32254498  IFS=$as_save_IFS
    32264499  test -z "$as_dir" && as_dir=.
    3227   for ac_exec_ext in '' $ac_executable_extensions; do
    3228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4500    for ac_exec_ext in '' $ac_executable_extensions; do
     4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    32294502    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    32314504    break 2
    32324505  fi
    32334506done
    3234 done
    3235 
    3236   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     4507  done
     4508IFS=$as_save_IFS
     4509
    32374510fi
    32384511fi
    32394512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    32404513if test -n "$ac_ct_RANLIB"; then
    3241   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    3242 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    3243 else
    3244   echo "$as_me:$LINENO: result: no" >&5
    3245 echo "${ECHO_T}no" >&6
    3246 fi
    3247 
    3248   RANLIB=$ac_ct_RANLIB
     4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     4515$as_echo "$ac_ct_RANLIB" >&6; }
     4516else
     4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4518$as_echo "no" >&6; }
     4519fi
     4520
     4521  if test "x$ac_ct_RANLIB" = x; then
     4522    RANLIB=":"
     4523  else
     4524    case $cross_compiling:$ac_tool_warned in
     4525yes:)
     4526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4528ac_tool_warned=yes ;;
     4529esac
     4530    RANLIB=$ac_ct_RANLIB
     4531  fi
    32494532else
    32504533  RANLIB="$ac_cv_prog_RANLIB"
     
    32524535
    32534536
    3254 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    3255 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
     4538$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    32564539arch_64bit=no
    32574540case "$host_cpu" in
     
    32604543
    32614544if test "$arch_64bit" = yes; then
    3262   echo "$as_me:$LINENO: result: yes" >&5
    3263 echo "${ECHO_T}yes" >&6
     4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4546$as_echo "yes" >&6; }
    32644547  if test -z "$COMPAT32BITFLAGS" ; then
    32654548    COMPAT32BITFLAGS="-m32"
    32664549  fi
    32674550else
    3268   echo "$as_me:$LINENO: result: no" >&5
    3269 echo "${ECHO_T}no" >&6
     4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4552$as_echo "no" >&6; }
    32704553  if test -z "$COMPAT32BITFLAGS" ; then
    32714554    COMPAT32BITFLAGS=
     
    33094592#do test of MICO_VER
    33104593if test MICO_VER != 0; then
    3311 cat >>confdefs.h <<\_ACEOF
    3312 #define MICO_VER 1
    3313 _ACEOF
     4594$as_echo "#define MICO_VER 1" >>confdefs.h
    33144595
    33154596
     
    33244605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    33254606ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3326 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3327 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4608$as_echo_n "checking how to run the C preprocessor... " >&6; }
    33284609# On Suns, sometimes $CPP names a directory.
    33294610if test -n "$CPP" && test -d "$CPP"; then
     
    33314612fi
    33324613if test -z "$CPP"; then
    3333   if test "${ac_cv_prog_CPP+set}" = set; then
    3334   echo $ECHO_N "(cached) $ECHO_C" >&6
     4614  if test "${ac_cv_prog_CPP+set}" = set; then :
     4615  $as_echo_n "(cached) " >&6
    33354616else
    33364617      # Double quotes because CPP needs to be expanded
     
    33464627  # On the NeXT, cc -E runs the code through the compiler's parser,
    33474628  # not just through cpp. "Syntax error" is here to catch this case.
    3348   cat >conftest.$ac_ext <<_ACEOF
    3349 /* confdefs.h.  */
    3350 _ACEOF
    3351 cat confdefs.h >>conftest.$ac_ext
    3352 cat >>conftest.$ac_ext <<_ACEOF
     4629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33534630/* end confdefs.h.  */
    33544631#ifdef __STDC__
     
    33594636             Syntax error
    33604637_ACEOF
    3361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3363   ac_status=$?
    3364   grep -v '^ *+' conftest.er1 >conftest.err
    3365   rm -f conftest.er1
    3366   cat conftest.err >&5
    3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3368   (exit $ac_status); } >/dev/null; then
    3369   if test -s conftest.err; then
    3370     ac_cpp_err=$ac_c_preproc_warn_flag
    3371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3372   else
    3373     ac_cpp_err=
    3374   fi
    3375 else
    3376   ac_cpp_err=yes
    3377 fi
    3378 if test -z "$ac_cpp_err"; then
    3379   :
    3380 else
    3381   echo "$as_me: failed program was:" >&5
    3382 sed 's/^/| /' conftest.$ac_ext >&5
    3383 
     4638if ac_fn_c_try_cpp "$LINENO"; then :
     4639
     4640else
    33844641  # Broken: fails on valid input.
    33854642continue
    33864643fi
    3387 rm -f conftest.err conftest.$ac_ext
    3388 
    3389   # OK, works on sane cases.  Now check whether non-existent headers
     4644rm -f conftest.err conftest.i conftest.$ac_ext
     4645
     4646  # OK, works on sane cases.  Now check whether nonexistent headers
    33904647  # can be detected and how.
    3391   cat >conftest.$ac_ext <<_ACEOF
    3392 /* confdefs.h.  */
    3393 _ACEOF
    3394 cat confdefs.h >>conftest.$ac_ext
    3395 cat >>conftest.$ac_ext <<_ACEOF
     4648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33964649/* end confdefs.h.  */
    33974650#include <ac_nonexistent.h>
    33984651_ACEOF
    3399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3401   ac_status=$?
    3402   grep -v '^ *+' conftest.er1 >conftest.err
    3403   rm -f conftest.er1
    3404   cat conftest.err >&5
    3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3406   (exit $ac_status); } >/dev/null; then
    3407   if test -s conftest.err; then
    3408     ac_cpp_err=$ac_c_preproc_warn_flag
    3409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3410   else
    3411     ac_cpp_err=
    3412   fi
    3413 else
    3414   ac_cpp_err=yes
    3415 fi
    3416 if test -z "$ac_cpp_err"; then
     4652if ac_fn_c_try_cpp "$LINENO"; then :
    34174653  # Broken: success on invalid input.
    34184654continue
    34194655else
    3420   echo "$as_me: failed program was:" >&5
    3421 sed 's/^/| /' conftest.$ac_ext >&5
    3422 
    34234656  # Passes both tests.
    34244657ac_preproc_ok=:
    34254658break
    34264659fi
    3427 rm -f conftest.err conftest.$ac_ext
     4660rm -f conftest.err conftest.i conftest.$ac_ext
    34284661
    34294662done
    34304663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3431 rm -f conftest.err conftest.$ac_ext
    3432 if $ac_preproc_ok; then
     4664rm -f conftest.i conftest.err conftest.$ac_ext
     4665if $ac_preproc_ok; then :
    34334666  break
    34344667fi
     
    34424675  ac_cv_prog_CPP=$CPP
    34434676fi
    3444 echo "$as_me:$LINENO: result: $CPP" >&5
    3445 echo "${ECHO_T}$CPP" >&6
     4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4678$as_echo "$CPP" >&6; }
    34464679ac_preproc_ok=false
    34474680for ac_c_preproc_warn_flag in '' yes
     
    34534686  # On the NeXT, cc -E runs the code through the compiler's parser,
    34544687  # not just through cpp. "Syntax error" is here to catch this case.
    3455   cat >conftest.$ac_ext <<_ACEOF
    3456 /* confdefs.h.  */
    3457 _ACEOF
    3458 cat confdefs.h >>conftest.$ac_ext
    3459 cat >>conftest.$ac_ext <<_ACEOF
     4688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    34604689/* end confdefs.h.  */
    34614690#ifdef __STDC__
     
    34664695             Syntax error
    34674696_ACEOF
    3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3470   ac_status=$?
    3471   grep -v '^ *+' conftest.er1 >conftest.err
    3472   rm -f conftest.er1
    3473   cat conftest.err >&5
    3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3475   (exit $ac_status); } >/dev/null; then
    3476   if test -s conftest.err; then
    3477     ac_cpp_err=$ac_c_preproc_warn_flag
    3478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3479   else
    3480     ac_cpp_err=
    3481   fi
    3482 else
    3483   ac_cpp_err=yes
    3484 fi
    3485 if test -z "$ac_cpp_err"; then
    3486   :
    3487 else
    3488   echo "$as_me: failed program was:" >&5
    3489 sed 's/^/| /' conftest.$ac_ext >&5
    3490 
     4697if ac_fn_c_try_cpp "$LINENO"; then :
     4698
     4699else
    34914700  # Broken: fails on valid input.
    34924701continue
    34934702fi
    3494 rm -f conftest.err conftest.$ac_ext
    3495 
    3496   # OK, works on sane cases.  Now check whether non-existent headers
     4703rm -f conftest.err conftest.i conftest.$ac_ext
     4704
     4705  # OK, works on sane cases.  Now check whether nonexistent headers
    34974706  # can be detected and how.
    3498   cat >conftest.$ac_ext <<_ACEOF
    3499 /* confdefs.h.  */
    3500 _ACEOF
    3501 cat confdefs.h >>conftest.$ac_ext
    3502 cat >>conftest.$ac_ext <<_ACEOF
     4707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    35034708/* end confdefs.h.  */
    35044709#include <ac_nonexistent.h>
    35054710_ACEOF
    3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3508   ac_status=$?
    3509   grep -v '^ *+' conftest.er1 >conftest.err
    3510   rm -f conftest.er1
    3511   cat conftest.err >&5
    3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3513   (exit $ac_status); } >/dev/null; then
    3514   if test -s conftest.err; then
    3515     ac_cpp_err=$ac_c_preproc_warn_flag
    3516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3517   else
    3518     ac_cpp_err=
    3519   fi
    3520 else
    3521   ac_cpp_err=yes
    3522 fi
    3523 if test -z "$ac_cpp_err"; then
     4711if ac_fn_c_try_cpp "$LINENO"; then :
    35244712  # Broken: success on invalid input.
    35254713continue
    35264714else
    3527   echo "$as_me: failed program was:" >&5
    3528 sed 's/^/| /' conftest.$ac_ext >&5
    3529 
    35304715  # Passes both tests.
    35314716ac_preproc_ok=:
    35324717break
    35334718fi
    3534 rm -f conftest.err conftest.$ac_ext
     4719rm -f conftest.err conftest.i conftest.$ac_ext
    35354720
    35364721done
    35374722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3538 rm -f conftest.err conftest.$ac_ext
    3539 if $ac_preproc_ok; then
    3540   :
    3541 else
    3542   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3543 See \`config.log' for more details." >&5
    3544 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3545 See \`config.log' for more details." >&2;}
    3546    { (exit 1); exit 1; }; }
     4723rm -f conftest.i conftest.err conftest.$ac_ext
     4724if $ac_preproc_ok; then :
     4725
     4726else
     4727  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4729as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4730See \`config.log' for more details" "$LINENO" 5 ; }
    35474731fi
    35484732
     
    35544738
    35554739
    3556 echo "$as_me:$LINENO: checking for egrep" >&5
    3557 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3558 if test "${ac_cv_prog_egrep+set}" = set; then
    3559   echo $ECHO_N "(cached) $ECHO_C" >&6
    3560 else
    3561   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3562     then ac_cv_prog_egrep='grep -E'
    3563     else ac_cv_prog_egrep='egrep'
     4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     4741$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     4742if test "${ac_cv_path_GREP+set}" = set; then :
     4743  $as_echo_n "(cached) " >&6
     4744else
     4745  if test -z "$GREP"; then
     4746  ac_path_GREP_found=false
     4747  # Loop through the user's path and test for each of PROGNAME-LIST
     4748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4750do
     4751  IFS=$as_save_IFS
     4752  test -z "$as_dir" && as_dir=.
     4753    for ac_prog in grep ggrep; do
     4754    for ac_exec_ext in '' $ac_executable_extensions; do
     4755      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4756      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4757# Check for GNU ac_path_GREP and select it if it is found.
     4758  # Check for GNU $ac_path_GREP
     4759case `"$ac_path_GREP" --version 2>&1` in
     4760*GNU*)
     4761  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4762*)
     4763  ac_count=0
     4764  $as_echo_n 0123456789 >"conftest.in"
     4765  while :
     4766  do
     4767    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4768    mv "conftest.tmp" "conftest.in"
     4769    cp "conftest.in" "conftest.nl"
     4770    $as_echo 'GREP' >> "conftest.nl"
     4771    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4772    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4773    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4774    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4775      # Best one so far, save it but keep looking for a better one
     4776      ac_cv_path_GREP="$ac_path_GREP"
     4777      ac_path_GREP_max=$ac_count
    35644778    fi
    3565 fi
    3566 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3567 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3568  EGREP=$ac_cv_prog_egrep
    3569 
    3570 
    3571 
    3572 echo "$as_me:$LINENO: checking for AIX" >&5
    3573 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    3574 cat >conftest.$ac_ext <<_ACEOF
    3575 /* confdefs.h.  */
    3576 _ACEOF
    3577 cat confdefs.h >>conftest.$ac_ext
    3578 cat >>conftest.$ac_ext <<_ACEOF
    3579 /* end confdefs.h.  */
    3580 #ifdef _AIX
    3581   yes
    3582 #endif
    3583 
    3584 _ACEOF
    3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3586   $EGREP "yes" >/dev/null 2>&1; then
    3587   echo "$as_me:$LINENO: result: yes" >&5
    3588 echo "${ECHO_T}yes" >&6
    3589 cat >>confdefs.h <<\_ACEOF
    3590 #define _ALL_SOURCE 1
    3591 _ACEOF
    3592 
    3593 else
    3594   echo "$as_me:$LINENO: result: no" >&5
    3595 echo "${ECHO_T}no" >&6
    3596 fi
    3597 rm -f conftest*
    3598 
    3599 
    3600 echo "$as_me:$LINENO: checking for library containing strerror" >&5
    3601 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
    3602 if test "${ac_cv_search_strerror+set}" = set; then
    3603   echo $ECHO_N "(cached) $ECHO_C" >&6
    3604 else
    3605   ac_func_search_save_LIBS=$LIBS
    3606 ac_cv_search_strerror=no
    3607 cat >conftest.$ac_ext <<_ACEOF
    3608 /* confdefs.h.  */
    3609 _ACEOF
    3610 cat confdefs.h >>conftest.$ac_ext
    3611 cat >>conftest.$ac_ext <<_ACEOF
    3612 /* end confdefs.h.  */
    3613 
    3614 /* Override any gcc2 internal prototype to avoid an error.  */
    3615 #ifdef __cplusplus
    3616 extern "C"
    3617 #endif
    3618 /* We use char because int might match the return type of a gcc2
    3619    builtin and then its argument prototype would still apply.  */
    3620 char strerror ();
    3621 int
    3622 main ()
    3623 {
    3624 strerror ();
    3625   ;
    3626   return 0;
    3627 }
    3628 _ACEOF
    3629 rm -f conftest.$ac_objext conftest$ac_exeext
    3630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3631   (eval $ac_link) 2>conftest.er1
    3632   ac_status=$?
    3633   grep -v '^ *+' conftest.er1 >conftest.err
    3634   rm -f conftest.er1
    3635   cat conftest.err >&5
    3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3637   (exit $ac_status); } &&
    3638      { ac_try='test -z "$ac_c_werror_flag"
    3639              || test ! -s conftest.err'
    3640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3641   (eval $ac_try) 2>&5
    3642   ac_status=$?
    3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3644   (exit $ac_status); }; } &&
    3645      { ac_try='test -s conftest$ac_exeext'
    3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3647   (eval $ac_try) 2>&5
    3648   ac_status=$?
    3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3650   (exit $ac_status); }; }; then
    3651   ac_cv_search_strerror="none required"
    3652 else
    3653   echo "$as_me: failed program was:" >&5
    3654 sed 's/^/| /' conftest.$ac_ext >&5
    3655 
    3656 fi
    3657 rm -f conftest.err conftest.$ac_objext \
    3658       conftest$ac_exeext conftest.$ac_ext
    3659 if test "$ac_cv_search_strerror" = no; then
    3660   for ac_lib in cposix; do
    3661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    3662     cat >conftest.$ac_ext <<_ACEOF
    3663 /* confdefs.h.  */
    3664 _ACEOF
    3665 cat confdefs.h >>conftest.$ac_ext
    3666 cat >>conftest.$ac_ext <<_ACEOF
    3667 /* end confdefs.h.  */
    3668 
    3669 /* Override any gcc2 internal prototype to avoid an error.  */
    3670 #ifdef __cplusplus
    3671 extern "C"
    3672 #endif
    3673 /* We use char because int might match the return type of a gcc2
    3674    builtin and then its argument prototype would still apply.  */
    3675 char strerror ();
    3676 int
    3677 main ()
    3678 {
    3679 strerror ();
    3680   ;
    3681   return 0;
    3682 }
    3683 _ACEOF
    3684 rm -f conftest.$ac_objext conftest$ac_exeext
    3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3686   (eval $ac_link) 2>conftest.er1
    3687   ac_status=$?
    3688   grep -v '^ *+' conftest.er1 >conftest.err
    3689   rm -f conftest.er1
    3690   cat conftest.err >&5
    3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3692   (exit $ac_status); } &&
    3693      { ac_try='test -z "$ac_c_werror_flag"
    3694              || test ! -s conftest.err'
    3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3696   (eval $ac_try) 2>&5
    3697   ac_status=$?
    3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3699   (exit $ac_status); }; } &&
    3700      { ac_try='test -s conftest$ac_exeext'
    3701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3702   (eval $ac_try) 2>&5
    3703   ac_status=$?
    3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3705   (exit $ac_status); }; }; then
    3706   ac_cv_search_strerror="-l$ac_lib"
    3707 break
    3708 else
    3709   echo "$as_me: failed program was:" >&5
    3710 sed 's/^/| /' conftest.$ac_ext >&5
    3711 
    3712 fi
    3713 rm -f conftest.err conftest.$ac_objext \
    3714       conftest$ac_exeext conftest.$ac_ext
     4779    # 10*(2^10) chars as input seems more than enough
     4780    test $ac_count -gt 10 && break
    37154781  done
    3716 fi
    3717 LIBS=$ac_func_search_save_LIBS
    3718 fi
    3719 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
    3720 echo "${ECHO_T}$ac_cv_search_strerror" >&6
    3721 if test "$ac_cv_search_strerror" != no; then
    3722   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
    3723 
    3724 fi
    3725 
    3726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3728 if test "${ac_cv_header_stdc+set}" = set; then
    3729   echo $ECHO_N "(cached) $ECHO_C" >&6
    3730 else
    3731   cat >conftest.$ac_ext <<_ACEOF
    3732 /* confdefs.h.  */
    3733 _ACEOF
    3734 cat confdefs.h >>conftest.$ac_ext
    3735 cat >>conftest.$ac_ext <<_ACEOF
     4782  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4783esac
     4784
     4785      $ac_path_GREP_found && break 3
     4786    done
     4787  done
     4788  done
     4789IFS=$as_save_IFS
     4790  if test -z "$ac_cv_path_GREP"; then
     4791    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4792  fi
     4793else
     4794  ac_cv_path_GREP=$GREP
     4795fi
     4796
     4797fi
     4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     4799$as_echo "$ac_cv_path_GREP" >&6; }
     4800 GREP="$ac_cv_path_GREP"
     4801
     4802
     4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     4804$as_echo_n "checking for egrep... " >&6; }
     4805if test "${ac_cv_path_EGREP+set}" = set; then :
     4806  $as_echo_n "(cached) " >&6
     4807else
     4808  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4809   then ac_cv_path_EGREP="$GREP -E"
     4810   else
     4811     if test -z "$EGREP"; then
     4812  ac_path_EGREP_found=false
     4813  # Loop through the user's path and test for each of PROGNAME-LIST
     4814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4816do
     4817  IFS=$as_save_IFS
     4818  test -z "$as_dir" && as_dir=.
     4819    for ac_prog in egrep; do
     4820    for ac_exec_ext in '' $ac_executable_extensions; do
     4821      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4822      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4823# Check for GNU ac_path_EGREP and select it if it is found.
     4824  # Check for GNU $ac_path_EGREP
     4825case `"$ac_path_EGREP" --version 2>&1` in
     4826*GNU*)
     4827  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4828*)
     4829  ac_count=0
     4830  $as_echo_n 0123456789 >"conftest.in"
     4831  while :
     4832  do
     4833    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4834    mv "conftest.tmp" "conftest.in"
     4835    cp "conftest.in" "conftest.nl"
     4836    $as_echo 'EGREP' >> "conftest.nl"
     4837    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4839    as_fn_arith $ac_count + 1 && ac_count=$as_val
     4840    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4841      # Best one so far, save it but keep looking for a better one
     4842      ac_cv_path_EGREP="$ac_path_EGREP"
     4843      ac_path_EGREP_max=$ac_count
     4844    fi
     4845    # 10*(2^10) chars as input seems more than enough
     4846    test $ac_count -gt 10 && break
     4847  done
     4848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4849esac
     4850
     4851      $ac_path_EGREP_found && break 3
     4852    done
     4853  done
     4854  done
     4855IFS=$as_save_IFS
     4856  if test -z "$ac_cv_path_EGREP"; then
     4857    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4858  fi
     4859else
     4860  ac_cv_path_EGREP=$EGREP
     4861fi
     4862
     4863   fi
     4864fi
     4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     4866$as_echo "$ac_cv_path_EGREP" >&6; }
     4867 EGREP="$ac_cv_path_EGREP"
     4868
     4869
     4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     4871$as_echo_n "checking for ANSI C header files... " >&6; }
     4872if test "${ac_cv_header_stdc+set}" = set; then :
     4873  $as_echo_n "(cached) " >&6
     4874else
     4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37364876/* end confdefs.h.  */
    37374877#include <stdlib.h>
     
    37484888}
    37494889_ACEOF
    3750 rm -f conftest.$ac_objext
    3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3752   (eval $ac_compile) 2>conftest.er1
    3753   ac_status=$?
    3754   grep -v '^ *+' conftest.er1 >conftest.err
    3755   rm -f conftest.er1
    3756   cat conftest.err >&5
    3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3758   (exit $ac_status); } &&
    3759      { ac_try='test -z "$ac_c_werror_flag"
    3760              || test ! -s conftest.err'
    3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3762   (eval $ac_try) 2>&5
    3763   ac_status=$?
    3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3765   (exit $ac_status); }; } &&
    3766      { ac_try='test -s conftest.$ac_objext'
    3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3768   (eval $ac_try) 2>&5
    3769   ac_status=$?
    3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3771   (exit $ac_status); }; }; then
     4890if ac_fn_c_try_compile "$LINENO"; then :
    37724891  ac_cv_header_stdc=yes
    37734892else
    3774   echo "$as_me: failed program was:" >&5
    3775 sed 's/^/| /' conftest.$ac_ext >&5
    3776 
    3777 ac_cv_header_stdc=no
    3778 fi
    3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4893  ac_cv_header_stdc=no
     4894fi
     4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    37804896
    37814897if test $ac_cv_header_stdc = yes; then
    37824898  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3783   cat >conftest.$ac_ext <<_ACEOF
    3784 /* confdefs.h.  */
    3785 _ACEOF
    3786 cat confdefs.h >>conftest.$ac_ext
    3787 cat >>conftest.$ac_ext <<_ACEOF
     4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    37884900/* end confdefs.h.  */
    37894901#include <string.h>
     
    37914903_ACEOF
    37924904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3793   $EGREP "memchr" >/dev/null 2>&1; then
    3794   :
     4905  $EGREP "memchr" >/dev/null 2>&1; then :
     4906
    37954907else
    37964908  ac_cv_header_stdc=no
     
    38024914if test $ac_cv_header_stdc = yes; then
    38034915  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3804   cat >conftest.$ac_ext <<_ACEOF
    3805 /* confdefs.h.  */
    3806 _ACEOF
    3807 cat confdefs.h >>conftest.$ac_ext
    3808 cat >>conftest.$ac_ext <<_ACEOF
     4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38094917/* end confdefs.h.  */
    38104918#include <stdlib.h>
     
    38124920_ACEOF
    38134921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3814   $EGREP "free" >/dev/null 2>&1; then
    3815   :
     4922  $EGREP "free" >/dev/null 2>&1; then :
     4923
    38164924else
    38174925  ac_cv_header_stdc=no
     
    38234931if test $ac_cv_header_stdc = yes; then
    38244932  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3825   if test "$cross_compiling" = yes; then
     4933  if test "$cross_compiling" = yes; then :
    38264934  :
    38274935else
    3828   cat >conftest.$ac_ext <<_ACEOF
    3829 /* confdefs.h.  */
    3830 _ACEOF
    3831 cat confdefs.h >>conftest.$ac_ext
    3832 cat >>conftest.$ac_ext <<_ACEOF
     4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    38334937/* end confdefs.h.  */
    38344938#include <ctype.h>
     4939#include <stdlib.h>
    38354940#if ((' ' & 0x0FF) == 0x020)
    38364941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    38524957    if (XOR (islower (i), ISLOWER (i))
    38534958    || toupper (i) != TOUPPER (i))
    3854       exit(2);
    3855   exit (0);
     4959      return 2;
     4960  return 0;
    38564961}
    38574962_ACEOF
    3858 rm -f conftest$ac_exeext
    3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3860   (eval $ac_link) 2>&5
    3861   ac_status=$?
    3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3865   (eval $ac_try) 2>&5
    3866   ac_status=$?
    3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3868   (exit $ac_status); }; }; then
    3869   :
    3870 else
    3871   echo "$as_me: program exited with status $ac_status" >&5
    3872 echo "$as_me: failed program was:" >&5
    3873 sed 's/^/| /' conftest.$ac_ext >&5
    3874 
    3875 ( exit $ac_status )
    3876 ac_cv_header_stdc=no
    3877 fi
    3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3879 fi
    3880 fi
    3881 fi
    3882 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3883 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4963if ac_fn_c_try_run "$LINENO"; then :
     4964
     4965else
     4966  ac_cv_header_stdc=no
     4967fi
     4968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     4969  conftest.$ac_objext conftest.beam conftest.$ac_ext
     4970fi
     4971
     4972fi
     4973fi
     4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     4975$as_echo "$ac_cv_header_stdc" >&6; }
    38844976if test $ac_cv_header_stdc = yes; then
    38854977
    3886 cat >>confdefs.h <<\_ACEOF
    3887 #define STDC_HEADERS 1
    3888 _ACEOF
     4978$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    38894979
    38904980fi
    38914981
    38924982# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3893 
    3894 
    3895 
    3896 
    3897 
    3898 
    3899 
    3900 
    3901 
    39024983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    39034984          inttypes.h stdint.h unistd.h
    3904 do
    3905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3906 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3909   echo $ECHO_N "(cached) $ECHO_C" >&6
    3910 else
    3911   cat >conftest.$ac_ext <<_ACEOF
    3912 /* confdefs.h.  */
    3913 _ACEOF
    3914 cat confdefs.h >>conftest.$ac_ext
    3915 cat >>conftest.$ac_ext <<_ACEOF
     4985do :
     4986  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4987ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     4988"
     4989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4990  cat >>confdefs.h <<_ACEOF
     4991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4992_ACEOF
     4993
     4994fi
     4995
     4996done
     4997
     4998
     4999
     5000  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
     5001if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     5002  MINIX=yes
     5003else
     5004  MINIX=
     5005fi
     5006
     5007
     5008  if test "$MINIX" = yes; then
     5009
     5010$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
     5011
     5012
     5013$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
     5014
     5015
     5016$as_echo "#define _MINIX 1" >>confdefs.h
     5017
     5018  fi
     5019
     5020
     5021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
     5022$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
     5023if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     5024  $as_echo_n "(cached) " >&6
     5025else
     5026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    39165027/* end confdefs.h.  */
    3917 $ac_includes_default
    3918 
    3919 #include <$ac_header>
    3920 _ACEOF
    3921 rm -f conftest.$ac_objext
    3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3923   (eval $ac_compile) 2>conftest.er1
    3924   ac_status=$?
    3925   grep -v '^ *+' conftest.er1 >conftest.err
    3926   rm -f conftest.er1
    3927   cat conftest.err >&5
    3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3929   (exit $ac_status); } &&
    3930      { ac_try='test -z "$ac_c_werror_flag"
    3931              || test ! -s conftest.err'
    3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3933   (eval $ac_try) 2>&5
    3934   ac_status=$?
    3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3936   (exit $ac_status); }; } &&
    3937      { ac_try='test -s conftest.$ac_objext'
    3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3939   (eval $ac_try) 2>&5
    3940   ac_status=$?
    3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3942   (exit $ac_status); }; }; then
    3943   eval "$as_ac_Header=yes"
    3944 else
    3945   echo "$as_me: failed program was:" >&5
    3946 sed 's/^/| /' conftest.$ac_ext >&5
    3947 
    3948 eval "$as_ac_Header=no"
    3949 fi
    3950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3951 fi
    3952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3955   cat >>confdefs.h <<_ACEOF
    3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3957 _ACEOF
    3958 
    3959 fi
    3960 
     5028
     5029#     define __EXTENSIONS__ 1
     5030      $ac_includes_default
     5031int
     5032main ()
     5033{
     5034
     5035  ;
     5036  return 0;
     5037}
     5038_ACEOF
     5039if ac_fn_c_try_compile "$LINENO"; then :
     5040  ac_cv_safe_to_define___extensions__=yes
     5041else
     5042  ac_cv_safe_to_define___extensions__=no
     5043fi
     5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5045fi
     5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
     5047$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
     5048  test $ac_cv_safe_to_define___extensions__ = yes &&
     5049    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
     5050
     5051  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
     5052
     5053  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
     5054
     5055  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     5056
     5057  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
     5058
     5059
     5060
     5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
     5062$as_echo_n "checking for library containing strerror... " >&6; }
     5063if test "${ac_cv_search_strerror+set}" = set; then :
     5064  $as_echo_n "(cached) " >&6
     5065else
     5066  ac_func_search_save_LIBS=$LIBS
     5067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5068/* end confdefs.h.  */
     5069
     5070/* Override any GCC internal prototype to avoid an error.
     5071   Use char because int might match the return type of a GCC
     5072   builtin and then its argument prototype would still apply.  */
     5073#ifdef __cplusplus
     5074extern "C"
     5075#endif
     5076char strerror ();
     5077int
     5078main ()
     5079{
     5080return strerror ();
     5081  ;
     5082  return 0;
     5083}
     5084_ACEOF
     5085for ac_lib in '' cposix; do
     5086  if test -z "$ac_lib"; then
     5087    ac_res="none required"
     5088  else
     5089    ac_res=-l$ac_lib
     5090    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5091  fi
     5092  if ac_fn_c_try_link "$LINENO"; then :
     5093  ac_cv_search_strerror=$ac_res
     5094fi
     5095rm -f core conftest.err conftest.$ac_objext \
     5096    conftest$ac_exeext
     5097  if test "${ac_cv_search_strerror+set}" = set; then :
     5098  break
     5099fi
    39615100done
    3962 
    3963 
    3964 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3965   echo "$as_me:$LINENO: checking for minix/config.h" >&5
    3966 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    3967 if test "${ac_cv_header_minix_config_h+set}" = set; then
    3968   echo $ECHO_N "(cached) $ECHO_C" >&6
    3969 fi
    3970 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    3971 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    3972 else
    3973   # Is the header compilable?
    3974 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
    3975 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
    3976 cat >conftest.$ac_ext <<_ACEOF
    3977 /* confdefs.h.  */
    3978 _ACEOF
    3979 cat confdefs.h >>conftest.$ac_ext
    3980 cat >>conftest.$ac_ext <<_ACEOF
    3981 /* end confdefs.h.  */
    3982 $ac_includes_default
    3983 #include <minix/config.h>
    3984 _ACEOF
    3985 rm -f conftest.$ac_objext
    3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3987   (eval $ac_compile) 2>conftest.er1
    3988   ac_status=$?
    3989   grep -v '^ *+' conftest.er1 >conftest.err
    3990   rm -f conftest.er1
    3991   cat conftest.err >&5
    3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3993   (exit $ac_status); } &&
    3994      { ac_try='test -z "$ac_c_werror_flag"
    3995              || test ! -s conftest.err'
    3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3997   (eval $ac_try) 2>&5
    3998   ac_status=$?
    3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4000   (exit $ac_status); }; } &&
    4001      { ac_try='test -s conftest.$ac_objext'
    4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4003   (eval $ac_try) 2>&5
    4004   ac_status=$?
    4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4006   (exit $ac_status); }; }; then
    4007   ac_header_compiler=yes
    4008 else
    4009   echo "$as_me: failed program was:" >&5
    4010 sed 's/^/| /' conftest.$ac_ext >&5
    4011 
    4012 ac_header_compiler=no
    4013 fi
    4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4016 echo "${ECHO_T}$ac_header_compiler" >&6
    4017 
    4018 # Is the header present?
    4019 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
    4020 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
    4021 cat >conftest.$ac_ext <<_ACEOF
    4022 /* confdefs.h.  */
    4023 _ACEOF
    4024 cat confdefs.h >>conftest.$ac_ext
    4025 cat >>conftest.$ac_ext <<_ACEOF
    4026 /* end confdefs.h.  */
    4027 #include <minix/config.h>
    4028 _ACEOF
    4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4031   ac_status=$?
    4032   grep -v '^ *+' conftest.er1 >conftest.err
    4033   rm -f conftest.er1
    4034   cat conftest.err >&5
    4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4036   (exit $ac_status); } >/dev/null; then
    4037   if test -s conftest.err; then
    4038     ac_cpp_err=$ac_c_preproc_warn_flag
    4039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4040   else
    4041     ac_cpp_err=
    4042   fi
    4043 else
    4044   ac_cpp_err=yes
    4045 fi
    4046 if test -z "$ac_cpp_err"; then
    4047   ac_header_preproc=yes
    4048 else
    4049   echo "$as_me: failed program was:" >&5
    4050 sed 's/^/| /' conftest.$ac_ext >&5
    4051 
    4052   ac_header_preproc=no
    4053 fi
    4054 rm -f conftest.err conftest.$ac_ext
    4055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4056 echo "${ECHO_T}$ac_header_preproc" >&6
    4057 
    4058 # So?  What about this header?
    4059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4060   yes:no: )
    4061     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
    4062 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4063     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
    4064 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
    4065     ac_header_preproc=yes
    4066     ;;
    4067   no:yes:* )
    4068     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
    4069 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
    4070     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
    4071 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
    4072     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
    4073 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
    4074     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
    4075 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    4076     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
    4077 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
    4078     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
    4079 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
    4080     (
    4081       cat <<\_ASBOX
    4082 ## ------------------------------------------ ##
    4083 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4084 ## ------------------------------------------ ##
    4085 _ASBOX
    4086     ) |
    4087       sed "s/^/$as_me: WARNING:     /" >&2
    4088     ;;
    4089 esac
    4090 echo "$as_me:$LINENO: checking for minix/config.h" >&5
    4091 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
    4092 if test "${ac_cv_header_minix_config_h+set}" = set; then
    4093   echo $ECHO_N "(cached) $ECHO_C" >&6
    4094 else
    4095   ac_cv_header_minix_config_h=$ac_header_preproc
    4096 fi
    4097 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
    4098 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
    4099 
    4100 fi
    4101 if test $ac_cv_header_minix_config_h = yes; then
    4102   MINIX=yes
    4103 else
    4104   MINIX=
    4105 fi
    4106 
    4107 
    4108 if test "$MINIX" = yes; then
    4109 
    4110 cat >>confdefs.h <<\_ACEOF
    4111 #define _POSIX_SOURCE 1
    4112 _ACEOF
    4113 
    4114 
    4115 cat >>confdefs.h <<\_ACEOF
    4116 #define _POSIX_1_SOURCE 2
    4117 _ACEOF
    4118 
    4119 
    4120 cat >>confdefs.h <<\_ACEOF
    4121 #define _MINIX 1
    4122 _ACEOF
    4123 
    4124 fi
    4125 
    4126 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
    4127 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    4128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    4129   echo $ECHO_N "(cached) $ECHO_C" >&6
     5101if test "${ac_cv_search_strerror+set}" = set; then :
     5102
     5103else
     5104  ac_cv_search_strerror=no
     5105fi
     5106rm conftest.$ac_ext
     5107LIBS=$ac_func_search_save_LIBS
     5108fi
     5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
     5110$as_echo "$ac_cv_search_strerror" >&6; }
     5111ac_res=$ac_cv_search_strerror
     5112if test "$ac_res" != no; then :
     5113  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5114
     5115fi
     5116
     5117
     5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
     5119$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
     5120if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     5121  $as_echo_n "(cached) " >&6
    41305122else
    41315123  ac_cv_prog_cc_stdc=no
     
    41405132do
    41415133  CFLAGS="$ac_save_CFLAGS $ac_arg"
    4142   cat >conftest.$ac_ext <<_ACEOF
    4143 /* confdefs.h.  */
    4144 _ACEOF
    4145 cat confdefs.h >>conftest.$ac_ext
    4146 cat >>conftest.$ac_ext <<_ACEOF
     5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    41475135/* end confdefs.h.  */
    41485136#if !defined(__STDC__) || __STDC__ != 1
     
    41605148}
    41615149_ACEOF
    4162 rm -f conftest.$ac_objext
    4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4164   (eval $ac_compile) 2>conftest.er1
    4165   ac_status=$?
    4166   grep -v '^ *+' conftest.er1 >conftest.err
    4167   rm -f conftest.er1
    4168   cat conftest.err >&5
    4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4170   (exit $ac_status); } &&
    4171      { ac_try='test -z "$ac_c_werror_flag"
    4172              || test ! -s conftest.err'
    4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4174   (eval $ac_try) 2>&5
    4175   ac_status=$?
    4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4177   (exit $ac_status); }; } &&
    4178      { ac_try='test -s conftest.$ac_objext'
    4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4180   (eval $ac_try) 2>&5
    4181   ac_status=$?
    4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4183   (exit $ac_status); }; }; then
     5150if ac_fn_c_try_compile "$LINENO"; then :
    41845151  ac_cv_prog_cc_stdc="$ac_arg"; break
    4185 else
    4186   echo "$as_me: failed program was:" >&5
    4187 sed 's/^/| /' conftest.$ac_ext >&5
    4188 
    4189 fi
    4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5152fi
     5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    41915154done
    41925155CFLAGS="$ac_save_CFLAGS"
     
    41945157fi
    41955158
    4196 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    4197 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
     5160$as_echo "$ac_cv_prog_cc_stdc" >&6; }
    41985161case "x$ac_cv_prog_cc_stdc" in
    41995162  x|xno) ;;
     
    42025165
    42035166
    4204 echo "$as_me:$LINENO: checking for function prototypes" >&5
    4205 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
     5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
     5168$as_echo_n "checking for function prototypes... " >&6; }
    42065169if test "$ac_cv_prog_cc_stdc" != no; then
    4207   echo "$as_me:$LINENO: result: yes" >&5
    4208 echo "${ECHO_T}yes" >&6
    4209   cat >>confdefs.h <<\_ACEOF
    4210 #define PROTOTYPES 1
    4211 _ACEOF
     5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     5171$as_echo "yes" >&6; }
     5172  $as_echo "#define PROTOTYPES 1" >>confdefs.h
    42125173
    42135174  U= ANSI2KNR=
    42145175else
    4215   echo "$as_me:$LINENO: result: no" >&5
    4216 echo "${ECHO_T}no" >&6
     5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5177$as_echo "no" >&6; }
    42175178  U=_ ANSI2KNR=ansi2knr
    42185179fi
    42195180
    4220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4222 if test "${ac_cv_c_const+set}" = set; then
    4223   echo $ECHO_N "(cached) $ECHO_C" >&6
    4224 else
    4225   cat >conftest.$ac_ext <<_ACEOF
    4226 /* confdefs.h.  */
    4227 _ACEOF
    4228 cat confdefs.h >>conftest.$ac_ext
    4229 cat >>conftest.$ac_ext <<_ACEOF
     5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     5182$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     5183if test "${ac_cv_c_const+set}" = set; then :
     5184  $as_echo_n "(cached) " >&6
     5185else
     5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42305187/* end confdefs.h.  */
    42315188
     
    42375194  /* Ultrix mips cc rejects this.  */
    42385195  typedef int charset[2];
    4239   const charset x;
     5196  const charset cs;
    42405197  /* SunOS 4.1.1 cc rejects this.  */
    4241   char const *const *ccp;
    4242   char **p;
     5198  char const *const *pcpcc;
     5199  char **ppc;
    42435200  /* NEC SVR4.0.2 mips cc rejects this.  */
    42445201  struct point {int x, y;};
     
    42495206     expression */
    42505207  const char *g = "string";
    4251   ccp = &g + (g ? g-g : 0);
     5208  pcpcc = &g + (g ? g-g : 0);
    42525209  /* HPUX 7.0 cc rejects these. */
    4253   ++ccp;
    4254   p = (char**) ccp;
    4255   ccp = (char const *const *) p;
     5210  ++pcpcc;
     5211  ppc = (char**) pcpcc;
     5212  pcpcc = (char const *const *) ppc;
    42565213  { /* SCO 3.2v4 cc rejects this.  */
    42575214    char *t;
     
    42595216
    42605217    *t++ = 0;
     5218    if (s) return 0;
    42615219  }
    42625220  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    42775235  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    42785236    const int foo = 10;
     5237    if (!foo) return 0;
    42795238  }
     5239  return !cs[0] && !zero.x;
    42805240#endif
    42815241
     
    42845244}
    42855245_ACEOF
    4286 rm -f conftest.$ac_objext
    4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4288   (eval $ac_compile) 2>conftest.er1
    4289   ac_status=$?
    4290   grep -v '^ *+' conftest.er1 >conftest.err
    4291   rm -f conftest.er1
    4292   cat conftest.err >&5
    4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4294   (exit $ac_status); } &&
    4295      { ac_try='test -z "$ac_c_werror_flag"
    4296              || test ! -s conftest.err'
    4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4298   (eval $ac_try) 2>&5
    4299   ac_status=$?
    4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4301   (exit $ac_status); }; } &&
    4302      { ac_try='test -s conftest.$ac_objext'
    4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4304   (eval $ac_try) 2>&5
    4305   ac_status=$?
    4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4307   (exit $ac_status); }; }; then
     5246if ac_fn_c_try_compile "$LINENO"; then :
    43085247  ac_cv_c_const=yes
    43095248else
    4310   echo "$as_me: failed program was:" >&5
    4311 sed 's/^/| /' conftest.$ac_ext >&5
    4312 
    4313 ac_cv_c_const=no
    4314 fi
    4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4316 fi
    4317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4318 echo "${ECHO_T}$ac_cv_c_const" >&6
     5249  ac_cv_c_const=no
     5250fi
     5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5252fi
     5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     5254$as_echo "$ac_cv_c_const" >&6; }
    43195255if test $ac_cv_c_const = no; then
    43205256
    4321 cat >>confdefs.h <<\_ACEOF
    4322 #define const
    4323 _ACEOF
    4324 
    4325 fi
    4326 
    4327 echo "$as_me:$LINENO: checking for off_t" >&5
    4328 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
    4329 if test "${ac_cv_type_off_t+set}" = set; then
    4330   echo $ECHO_N "(cached) $ECHO_C" >&6
    4331 else
    4332   cat >conftest.$ac_ext <<_ACEOF
    4333 /* confdefs.h.  */
    4334 _ACEOF
    4335 cat confdefs.h >>conftest.$ac_ext
    4336 cat >>conftest.$ac_ext <<_ACEOF
    4337 /* end confdefs.h.  */
    4338 $ac_includes_default
    4339 int
    4340 main ()
    4341 {
    4342 if ((off_t *) 0)
    4343   return 0;
    4344 if (sizeof (off_t))
    4345   return 0;
    4346   ;
    4347   return 0;
    4348 }
    4349 _ACEOF
    4350 rm -f conftest.$ac_objext
    4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4352   (eval $ac_compile) 2>conftest.er1
    4353   ac_status=$?
    4354   grep -v '^ *+' conftest.er1 >conftest.err
    4355   rm -f conftest.er1
    4356   cat conftest.err >&5
    4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4358   (exit $ac_status); } &&
    4359      { ac_try='test -z "$ac_c_werror_flag"
    4360              || test ! -s conftest.err'
    4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4362   (eval $ac_try) 2>&5
    4363   ac_status=$?
    4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4365   (exit $ac_status); }; } &&
    4366      { ac_try='test -s conftest.$ac_objext'
    4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4368   (eval $ac_try) 2>&5
    4369   ac_status=$?
    4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4371   (exit $ac_status); }; }; then
    4372   ac_cv_type_off_t=yes
    4373 else
    4374   echo "$as_me: failed program was:" >&5
    4375 sed 's/^/| /' conftest.$ac_ext >&5
    4376 
    4377 ac_cv_type_off_t=no
    4378 fi
    4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4380 fi
    4381 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
    4382 echo "${ECHO_T}$ac_cv_type_off_t" >&6
    4383 if test $ac_cv_type_off_t = yes; then
    4384   :
     5257$as_echo "#define const /**/" >>confdefs.h
     5258
     5259fi
     5260
     5261ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
     5262if test "x$ac_cv_type_off_t" = x""yes; then :
     5263
    43855264else
    43865265
    43875266cat >>confdefs.h <<_ACEOF
    4388 #define off_t long
    4389 _ACEOF
    4390 
    4391 fi
    4392 
    4393 echo "$as_me:$LINENO: checking for size_t" >&5
    4394 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4395 if test "${ac_cv_type_size_t+set}" = set; then
    4396   echo $ECHO_N "(cached) $ECHO_C" >&6
    4397 else
    4398   cat >conftest.$ac_ext <<_ACEOF
    4399 /* confdefs.h.  */
    4400 _ACEOF
    4401 cat confdefs.h >>conftest.$ac_ext
    4402 cat >>conftest.$ac_ext <<_ACEOF
    4403 /* end confdefs.h.  */
    4404 $ac_includes_default
    4405 int
    4406 main ()
    4407 {
    4408 if ((size_t *) 0)
    4409   return 0;
    4410 if (sizeof (size_t))
    4411   return 0;
    4412   ;
    4413   return 0;
    4414 }
    4415 _ACEOF
    4416 rm -f conftest.$ac_objext
    4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4418   (eval $ac_compile) 2>conftest.er1
    4419   ac_status=$?
    4420   grep -v '^ *+' conftest.er1 >conftest.err
    4421   rm -f conftest.er1
    4422   cat conftest.err >&5
    4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4424   (exit $ac_status); } &&
    4425      { ac_try='test -z "$ac_c_werror_flag"
    4426              || test ! -s conftest.err'
    4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4428   (eval $ac_try) 2>&5
    4429   ac_status=$?
    4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4431   (exit $ac_status); }; } &&
    4432      { ac_try='test -s conftest.$ac_objext'
    4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4434   (eval $ac_try) 2>&5
    4435   ac_status=$?
    4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4437   (exit $ac_status); }; }; then
    4438   ac_cv_type_size_t=yes
    4439 else
    4440   echo "$as_me: failed program was:" >&5
    4441 sed 's/^/| /' conftest.$ac_ext >&5
    4442 
    4443 ac_cv_type_size_t=no
    4444 fi
    4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4446 fi
    4447 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4448 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4449 if test $ac_cv_type_size_t = yes; then
    4450   :
     5267#define off_t long int
     5268_ACEOF
     5269
     5270fi
     5271
     5272ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     5273if test "x$ac_cv_type_size_t" = x""yes; then :
     5274
    44515275else
    44525276
    44535277cat >>confdefs.h <<_ACEOF
    4454 #define size_t unsigned
    4455 _ACEOF
    4456 
    4457 fi
    4458 
    4459 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4460 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4461 if test "${ac_cv_header_time+set}" = set; then
    4462   echo $ECHO_N "(cached) $ECHO_C" >&6
    4463 else
    4464   cat >conftest.$ac_ext <<_ACEOF
    4465 /* confdefs.h.  */
    4466 _ACEOF
    4467 cat confdefs.h >>conftest.$ac_ext
    4468 cat >>conftest.$ac_ext <<_ACEOF
     5278#define size_t unsigned int
     5279_ACEOF
     5280
     5281fi
     5282
     5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
     5284$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
     5285if test "${ac_cv_header_time+set}" = set; then :
     5286  $as_echo_n "(cached) " >&6
     5287else
     5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44695289/* end confdefs.h.  */
    44705290#include <sys/types.h>
     
    44815301}
    44825302_ACEOF
    4483 rm -f conftest.$ac_objext
    4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4485   (eval $ac_compile) 2>conftest.er1
    4486   ac_status=$?
    4487   grep -v '^ *+' conftest.er1 >conftest.err
    4488   rm -f conftest.er1
    4489   cat conftest.err >&5
    4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4491   (exit $ac_status); } &&
    4492      { ac_try='test -z "$ac_c_werror_flag"
    4493              || test ! -s conftest.err'
    4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4495   (eval $ac_try) 2>&5
    4496   ac_status=$?
    4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4498   (exit $ac_status); }; } &&
    4499      { ac_try='test -s conftest.$ac_objext'
    4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4501   (eval $ac_try) 2>&5
    4502   ac_status=$?
    4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4504   (exit $ac_status); }; }; then
     5303if ac_fn_c_try_compile "$LINENO"; then :
    45055304  ac_cv_header_time=yes
    45065305else
    4507   echo "$as_me: failed program was:" >&5
    4508 sed 's/^/| /' conftest.$ac_ext >&5
    4509 
    4510 ac_cv_header_time=no
    4511 fi
    4512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4513 fi
    4514 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4515 echo "${ECHO_T}$ac_cv_header_time" >&6
     5306  ac_cv_header_time=no
     5307fi
     5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5309fi
     5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
     5311$as_echo "$ac_cv_header_time" >&6; }
    45165312if test $ac_cv_header_time = yes; then
    45175313
    4518 cat >>confdefs.h <<\_ACEOF
    4519 #define TIME_WITH_SYS_TIME 1
    4520 _ACEOF
    4521 
    4522 fi
    4523 
    4524 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4525 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4526 if test "${ac_cv_struct_tm+set}" = set; then
    4527   echo $ECHO_N "(cached) $ECHO_C" >&6
    4528 else
    4529   cat >conftest.$ac_ext <<_ACEOF
    4530 /* confdefs.h.  */
    4531 _ACEOF
    4532 cat confdefs.h >>conftest.$ac_ext
    4533 cat >>conftest.$ac_ext <<_ACEOF
     5314$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
     5315
     5316fi
     5317
     5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     5319$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     5320if test "${ac_cv_struct_tm+set}" = set; then :
     5321  $as_echo_n "(cached) " >&6
     5322else
     5323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45345324/* end confdefs.h.  */
    45355325#include <sys/types.h>
     
    45395329main ()
    45405330{
    4541 struct tm *tp; tp->tm_sec;
     5331struct tm tm;
     5332                     int *p = &tm.tm_sec;
     5333                     return !p;
    45425334  ;
    45435335  return 0;
    45445336}
    45455337_ACEOF
    4546 rm -f conftest.$ac_objext
    4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4548   (eval $ac_compile) 2>conftest.er1
    4549   ac_status=$?
    4550   grep -v '^ *+' conftest.er1 >conftest.err
    4551   rm -f conftest.er1
    4552   cat conftest.err >&5
    4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4554   (exit $ac_status); } &&
    4555      { ac_try='test -z "$ac_c_werror_flag"
    4556              || test ! -s conftest.err'
    4557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4558   (eval $ac_try) 2>&5
    4559   ac_status=$?
    4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4561   (exit $ac_status); }; } &&
    4562      { ac_try='test -s conftest.$ac_objext'
    4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4564   (eval $ac_try) 2>&5
    4565   ac_status=$?
    4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4567   (exit $ac_status); }; }; then
     5338if ac_fn_c_try_compile "$LINENO"; then :
    45685339  ac_cv_struct_tm=time.h
    45695340else
    4570   echo "$as_me: failed program was:" >&5
    4571 sed 's/^/| /' conftest.$ac_ext >&5
    4572 
    4573 ac_cv_struct_tm=sys/time.h
    4574 fi
    4575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4576 fi
    4577 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4578 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     5341  ac_cv_struct_tm=sys/time.h
     5342fi
     5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5344fi
     5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     5346$as_echo "$ac_cv_struct_tm" >&6; }
    45795347if test $ac_cv_struct_tm = sys/time.h; then
    45805348
    4581 cat >>confdefs.h <<\_ACEOF
    4582 #define TM_IN_SYS_TIME 1
    4583 _ACEOF
     5349$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    45845350
    45855351fi
     
    45875353
    45885354if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    4589 cat >conftest.$ac_ext <<_ACEOF
    4590 /* confdefs.h.  */
    4591 _ACEOF
    4592 cat confdefs.h >>conftest.$ac_ext
    4593 cat >>conftest.$ac_ext <<_ACEOF
     5355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45945356/* end confdefs.h.  */
    45955357#include <stdio.h>
     
    46035365}
    46045366_ACEOF
    4605 rm -f conftest.$ac_objext
    4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4607   (eval $ac_compile) 2>conftest.er1
    4608   ac_status=$?
    4609   grep -v '^ *+' conftest.er1 >conftest.err
    4610   rm -f conftest.er1
    4611   cat conftest.err >&5
    4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4613   (exit $ac_status); } &&
    4614      { ac_try='test -z "$ac_c_werror_flag"
    4615              || test ! -s conftest.err'
    4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4617   (eval $ac_try) 2>&5
    4618   ac_status=$?
    4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4620   (exit $ac_status); }; } &&
    4621      { ac_try='test -s conftest.$ac_objext'
    4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4623   (eval $ac_try) 2>&5
    4624   ac_status=$?
    4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4626   (exit $ac_status); }; }; then
    4627   :
    4628 else
    4629   echo "$as_me: failed program was:" >&5
    4630 sed 's/^/| /' conftest.$ac_ext >&5
    4631 
    4632 CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
    4633 fi
    4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4635 fi
    4636 
    4637 
    4638 
    4639 echo "$as_me:$LINENO: checking for main in -lg" >&5
    4640 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
    4641 if test "${ac_cv_lib_g_main+set}" = set; then
    4642   echo $ECHO_N "(cached) $ECHO_C" >&6
     5367if ac_fn_c_try_compile "$LINENO"; then :
     5368
     5369else
     5370  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     5371fi
     5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5373fi
     5374
     5375
     5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
     5377$as_echo_n "checking for main in -lg... " >&6; }
     5378if test "${ac_cv_lib_g_main+set}" = set; then :
     5379  $as_echo_n "(cached) " >&6
    46435380else
    46445381  ac_check_lib_save_LIBS=$LIBS
    46455382LIBS="-lg  $LIBS"
    4646 cat >conftest.$ac_ext <<_ACEOF
    4647 /* confdefs.h.  */
    4648 _ACEOF
    4649 cat confdefs.h >>conftest.$ac_ext
    4650 cat >>conftest.$ac_ext <<_ACEOF
     5383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46515384/* end confdefs.h.  */
    46525385
     
    46555388main ()
    46565389{
    4657 main ();
     5390return main ();
    46585391  ;
    46595392  return 0;
    46605393}
    46615394_ACEOF
    4662 rm -f conftest.$ac_objext conftest$ac_exeext
    4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4664   (eval $ac_link) 2>conftest.er1
    4665   ac_status=$?
    4666   grep -v '^ *+' conftest.er1 >conftest.err
    4667   rm -f conftest.er1
    4668   cat conftest.err >&5
    4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4670   (exit $ac_status); } &&
    4671      { ac_try='test -z "$ac_c_werror_flag"
    4672              || test ! -s conftest.err'
    4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4674   (eval $ac_try) 2>&5
    4675   ac_status=$?
    4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4677   (exit $ac_status); }; } &&
    4678      { ac_try='test -s conftest$ac_exeext'
    4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4680   (eval $ac_try) 2>&5
    4681   ac_status=$?
    4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4683   (exit $ac_status); }; }; then
     5395if ac_fn_c_try_link "$LINENO"; then :
    46845396  ac_cv_lib_g_main=yes
    46855397else
    4686   echo "$as_me: failed program was:" >&5
    4687 sed 's/^/| /' conftest.$ac_ext >&5
    4688 
    4689 ac_cv_lib_g_main=no
    4690 fi
    4691 rm -f conftest.err conftest.$ac_objext \
    4692       conftest$ac_exeext conftest.$ac_ext
     5398  ac_cv_lib_g_main=no
     5399fi
     5400rm -f core conftest.err conftest.$ac_objext \
     5401    conftest$ac_exeext conftest.$ac_ext
    46935402LIBS=$ac_check_lib_save_LIBS
    46945403fi
    4695 echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
    4696 echo "${ECHO_T}$ac_cv_lib_g_main" >&6
    4697 if test $ac_cv_lib_g_main = yes; then
     5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
     5405$as_echo "$ac_cv_lib_g_main" >&6; }
     5406if test "x$ac_cv_lib_g_main" = x""yes; then :
    46985407  cat >>confdefs.h <<_ACEOF
    46995408#define HAVE_LIBG 1
     
    47055414ac_cv_lib_g=ac_cv_lib_g_main
    47065415
    4707 
    4708 echo "$as_me:$LINENO: checking for main in -lm" >&5
    4709 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    4710 if test "${ac_cv_lib_m_main+set}" = set; then
    4711   echo $ECHO_N "(cached) $ECHO_C" >&6
     5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     5417$as_echo_n "checking for main in -lm... " >&6; }
     5418if test "${ac_cv_lib_m_main+set}" = set; then :
     5419  $as_echo_n "(cached) " >&6
    47125420else
    47135421  ac_check_lib_save_LIBS=$LIBS
    47145422LIBS="-lm  $LIBS"
    4715 cat >conftest.$ac_ext <<_ACEOF
    4716 /* confdefs.h.  */
    4717 _ACEOF
    4718 cat confdefs.h >>conftest.$ac_ext
    4719 cat >>conftest.$ac_ext <<_ACEOF
     5423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47205424/* end confdefs.h.  */
    47215425
     
    47245428main ()
    47255429{
    4726 main ();
     5430return main ();
    47275431  ;
    47285432  return 0;
    47295433}
    47305434_ACEOF
    4731 rm -f conftest.$ac_objext conftest$ac_exeext
    4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4733   (eval $ac_link) 2>conftest.er1
    4734   ac_status=$?
    4735   grep -v '^ *+' conftest.er1 >conftest.err
    4736   rm -f conftest.er1
    4737   cat conftest.err >&5
    4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4739   (exit $ac_status); } &&
    4740      { ac_try='test -z "$ac_c_werror_flag"
    4741              || test ! -s conftest.err'
    4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4743   (eval $ac_try) 2>&5
    4744   ac_status=$?
    4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4746   (exit $ac_status); }; } &&
    4747      { ac_try='test -s conftest$ac_exeext'
    4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4749   (eval $ac_try) 2>&5
    4750   ac_status=$?
    4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4752   (exit $ac_status); }; }; then
     5435if ac_fn_c_try_link "$LINENO"; then :
    47535436  ac_cv_lib_m_main=yes
    47545437else
    4755   echo "$as_me: failed program was:" >&5
    4756 sed 's/^/| /' conftest.$ac_ext >&5
    4757 
    4758 ac_cv_lib_m_main=no
    4759 fi
    4760 rm -f conftest.err conftest.$ac_objext \
    4761       conftest$ac_exeext conftest.$ac_ext
     5438  ac_cv_lib_m_main=no
     5439fi
     5440rm -f core conftest.err conftest.$ac_objext \
     5441    conftest$ac_exeext conftest.$ac_ext
    47625442LIBS=$ac_check_lib_save_LIBS
    47635443fi
    4764 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    4765 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    4766 if test $ac_cv_lib_m_main = yes; then
     5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     5445$as_echo "$ac_cv_lib_m_main" >&6; }
     5446if test "x$ac_cv_lib_m_main" = x""yes; then :
    47675447  cat >>confdefs.h <<_ACEOF
    47685448#define HAVE_LIBM 1
     
    47745454ac_cv_lib_m=ac_cv_lib_m_main
    47755455
    4776 
    4777 echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
    4778 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
    4779 if test "${ac_cv_lib_crypt_main+set}" = set; then
    4780   echo $ECHO_N "(cached) $ECHO_C" >&6
     5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
     5457$as_echo_n "checking for main in -lcrypt... " >&6; }
     5458if test "${ac_cv_lib_crypt_main+set}" = set; then :
     5459  $as_echo_n "(cached) " >&6
    47815460else
    47825461  ac_check_lib_save_LIBS=$LIBS
    47835462LIBS="-lcrypt  $LIBS"
    4784 cat >conftest.$ac_ext <<_ACEOF
    4785 /* confdefs.h.  */
    4786 _ACEOF
    4787 cat confdefs.h >>conftest.$ac_ext
    4788 cat >>conftest.$ac_ext <<_ACEOF
     5463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47895464/* end confdefs.h.  */
    47905465
     
    47935468main ()
    47945469{
    4795 main ();
     5470return main ();
    47965471  ;
    47975472  return 0;
    47985473}
    47995474_ACEOF
    4800 rm -f conftest.$ac_objext conftest$ac_exeext
    4801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4802   (eval $ac_link) 2>conftest.er1
    4803   ac_status=$?
    4804   grep -v '^ *+' conftest.er1 >conftest.err
    4805   rm -f conftest.er1
    4806   cat conftest.err >&5
    4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4808   (exit $ac_status); } &&
    4809      { ac_try='test -z "$ac_c_werror_flag"
    4810              || test ! -s conftest.err'
    4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4812   (eval $ac_try) 2>&5
    4813   ac_status=$?
    4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4815   (exit $ac_status); }; } &&
    4816      { ac_try='test -s conftest$ac_exeext'
    4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4818   (eval $ac_try) 2>&5
    4819   ac_status=$?
    4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4821   (exit $ac_status); }; }; then
     5475if ac_fn_c_try_link "$LINENO"; then :
    48225476  ac_cv_lib_crypt_main=yes
    48235477else
    4824   echo "$as_me: failed program was:" >&5
    4825 sed 's/^/| /' conftest.$ac_ext >&5
    4826 
    4827 ac_cv_lib_crypt_main=no
    4828 fi
    4829 rm -f conftest.err conftest.$ac_objext \
    4830       conftest$ac_exeext conftest.$ac_ext
     5478  ac_cv_lib_crypt_main=no
     5479fi
     5480rm -f core conftest.err conftest.$ac_objext \
     5481    conftest$ac_exeext conftest.$ac_ext
    48315482LIBS=$ac_check_lib_save_LIBS
    48325483fi
    4833 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
    4834 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
    4835 if test $ac_cv_lib_crypt_main = yes; then
     5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
     5485$as_echo "$ac_cv_lib_crypt_main" >&6; }
     5486if test "x$ac_cv_lib_crypt_main" = x""yes; then :
    48365487  cat >>confdefs.h <<_ACEOF
    48375488#define HAVE_LIBCRYPT 1
     
    48475498#fi
    48485499
    4849 
    4850 
    4851 
    4852 
    4853 
    48545500ac_header_dirent=no
    48555501for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    4856   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    4857 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
    4858 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    4859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4860   echo $ECHO_N "(cached) $ECHO_C" >&6
    4861 else
    4862   cat >conftest.$ac_ext <<_ACEOF
    4863 /* confdefs.h.  */
    4864 _ACEOF
    4865 cat confdefs.h >>conftest.$ac_ext
    4866 cat >>conftest.$ac_ext <<_ACEOF
     5502  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
     5504$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
     5505if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5506  $as_echo_n "(cached) " >&6
     5507else
     5508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48675509/* end confdefs.h.  */
    48685510#include <sys/types.h>
     
    48785520}
    48795521_ACEOF
    4880 rm -f conftest.$ac_objext
    4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4882   (eval $ac_compile) 2>conftest.er1
    4883   ac_status=$?
    4884   grep -v '^ *+' conftest.er1 >conftest.err
    4885   rm -f conftest.er1
    4886   cat conftest.err >&5
    4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4888   (exit $ac_status); } &&
    4889      { ac_try='test -z "$ac_c_werror_flag"
    4890              || test ! -s conftest.err'
    4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4892   (eval $ac_try) 2>&5
    4893   ac_status=$?
    4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4895   (exit $ac_status); }; } &&
    4896      { ac_try='test -s conftest.$ac_objext'
    4897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4898   (eval $ac_try) 2>&5
    4899   ac_status=$?
    4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4901   (exit $ac_status); }; }; then
     5522if ac_fn_c_try_compile "$LINENO"; then :
    49025523  eval "$as_ac_Header=yes"
    49035524else
    4904   echo "$as_me: failed program was:" >&5
    4905 sed 's/^/| /' conftest.$ac_ext >&5
    4906 
    4907 eval "$as_ac_Header=no"
    4908 fi
    4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4910 fi
    4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5525  eval "$as_ac_Header=no"
     5526fi
     5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5528fi
     5529eval ac_res=\$$as_ac_Header
     5530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     5531$as_echo "$ac_res" >&6; }
     5532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    49145533  cat >>confdefs.h <<_ACEOF
    4915 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     5534#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
    49165535_ACEOF
    49175536
     
    49225541# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    49235542if test $ac_header_dirent = dirent.h; then
    4924   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    4925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    4926 if test "${ac_cv_search_opendir+set}" = set; then
    4927   echo $ECHO_N "(cached) $ECHO_C" >&6
     5543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5544$as_echo_n "checking for library containing opendir... " >&6; }
     5545if test "${ac_cv_search_opendir+set}" = set; then :
     5546  $as_echo_n "(cached) " >&6
    49285547else
    49295548  ac_func_search_save_LIBS=$LIBS
    4930 ac_cv_search_opendir=no
    4931 cat >conftest.$ac_ext <<_ACEOF
    4932 /* confdefs.h.  */
    4933 _ACEOF
    4934 cat confdefs.h >>conftest.$ac_ext
    4935 cat >>conftest.$ac_ext <<_ACEOF
     5549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49365550/* end confdefs.h.  */
    49375551
    4938 /* Override any gcc2 internal prototype to avoid an error.  */
     5552/* Override any GCC internal prototype to avoid an error.
     5553   Use char because int might match the return type of a GCC
     5554   builtin and then its argument prototype would still apply.  */
    49395555#ifdef __cplusplus
    49405556extern "C"
    49415557#endif
    4942 /* We use char because int might match the return type of a gcc2
    4943    builtin and then its argument prototype would still apply.  */
    49445558char opendir ();
    49455559int
    49465560main ()
    49475561{
    4948 opendir ();
     5562return opendir ();
    49495563  ;
    49505564  return 0;
    49515565}
    49525566_ACEOF
    4953 rm -f conftest.$ac_objext conftest$ac_exeext
    4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4955   (eval $ac_link) 2>conftest.er1
    4956   ac_status=$?
    4957   grep -v '^ *+' conftest.er1 >conftest.err
    4958   rm -f conftest.er1
    4959   cat conftest.err >&5
    4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4961   (exit $ac_status); } &&
    4962      { ac_try='test -z "$ac_c_werror_flag"
    4963              || test ! -s conftest.err'
    4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4965   (eval $ac_try) 2>&5
    4966   ac_status=$?
    4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4968   (exit $ac_status); }; } &&
    4969      { ac_try='test -s conftest$ac_exeext'
    4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4971   (eval $ac_try) 2>&5
    4972   ac_status=$?
    4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4974   (exit $ac_status); }; }; then
    4975   ac_cv_search_opendir="none required"
    4976 else
    4977   echo "$as_me: failed program was:" >&5
    4978 sed 's/^/| /' conftest.$ac_ext >&5
    4979 
    4980 fi
    4981 rm -f conftest.err conftest.$ac_objext \
    4982       conftest$ac_exeext conftest.$ac_ext
    4983 if test "$ac_cv_search_opendir" = no; then
    4984   for ac_lib in dir; do
     5567for ac_lib in '' dir; do
     5568  if test -z "$ac_lib"; then
     5569    ac_res="none required"
     5570  else
     5571    ac_res=-l$ac_lib
    49855572    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    4986     cat >conftest.$ac_ext <<_ACEOF
    4987 /* confdefs.h.  */
    4988 _ACEOF
    4989 cat confdefs.h >>conftest.$ac_ext
    4990 cat >>conftest.$ac_ext <<_ACEOF
     5573  fi
     5574  if ac_fn_c_try_link "$LINENO"; then :
     5575  ac_cv_search_opendir=$ac_res
     5576fi
     5577rm -f core conftest.err conftest.$ac_objext \
     5578    conftest$ac_exeext
     5579  if test "${ac_cv_search_opendir+set}" = set; then :
     5580  break
     5581fi
     5582done
     5583if test "${ac_cv_search_opendir+set}" = set; then :
     5584
     5585else
     5586  ac_cv_search_opendir=no
     5587fi
     5588rm conftest.$ac_ext
     5589LIBS=$ac_func_search_save_LIBS
     5590fi
     5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5592$as_echo "$ac_cv_search_opendir" >&6; }
     5593ac_res=$ac_cv_search_opendir
     5594if test "$ac_res" != no; then :
     5595  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5596
     5597fi
     5598
     5599else
     5600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
     5601$as_echo_n "checking for library containing opendir... " >&6; }
     5602if test "${ac_cv_search_opendir+set}" = set; then :
     5603  $as_echo_n "(cached) " >&6
     5604else
     5605  ac_func_search_save_LIBS=$LIBS
     5606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49915607/* end confdefs.h.  */
    49925608
    4993 /* Override any gcc2 internal prototype to avoid an error.  */
     5609/* Override any GCC internal prototype to avoid an error.
     5610   Use char because int might match the return type of a GCC
     5611   builtin and then its argument prototype would still apply.  */
    49945612#ifdef __cplusplus
    49955613extern "C"
    49965614#endif
    4997 /* We use char because int might match the return type of a gcc2
    4998    builtin and then its argument prototype would still apply.  */
    49995615char opendir ();
    50005616int
    50015617main ()
    50025618{
    5003 opendir ();
     5619return opendir ();
    50045620  ;
    50055621  return 0;
    50065622}
    50075623_ACEOF
    5008 rm -f conftest.$ac_objext conftest$ac_exeext
    5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5010   (eval $ac_link) 2>conftest.er1
    5011   ac_status=$?
    5012   grep -v '^ *+' conftest.er1 >conftest.err
    5013   rm -f conftest.er1
    5014   cat conftest.err >&5
    5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5016   (exit $ac_status); } &&
    5017      { ac_try='test -z "$ac_c_werror_flag"
    5018              || test ! -s conftest.err'
    5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5020   (eval $ac_try) 2>&5
    5021   ac_status=$?
    5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5023   (exit $ac_status); }; } &&
    5024      { ac_try='test -s conftest$ac_exeext'
    5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5026   (eval $ac_try) 2>&5
    5027   ac_status=$?
    5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5029   (exit $ac_status); }; }; then
    5030   ac_cv_search_opendir="-l$ac_lib"
    5031 break
    5032 else
    5033   echo "$as_me: failed program was:" >&5
    5034 sed 's/^/| /' conftest.$ac_ext >&5
    5035 
    5036 fi
    5037 rm -f conftest.err conftest.$ac_objext \
    5038       conftest$ac_exeext conftest.$ac_ext
    5039   done
    5040 fi
     5624for ac_lib in '' x; do
     5625  if test -z "$ac_lib"; then
     5626    ac_res="none required"
     5627  else
     5628    ac_res=-l$ac_lib
     5629    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     5630  fi
     5631  if ac_fn_c_try_link "$LINENO"; then :
     5632  ac_cv_search_opendir=$ac_res
     5633fi
     5634rm -f core conftest.err conftest.$ac_objext \
     5635    conftest$ac_exeext
     5636  if test "${ac_cv_search_opendir+set}" = set; then :
     5637  break
     5638fi
     5639done
     5640if test "${ac_cv_search_opendir+set}" = set; then :
     5641
     5642else
     5643  ac_cv_search_opendir=no
     5644fi
     5645rm conftest.$ac_ext
    50415646LIBS=$ac_func_search_save_LIBS
    50425647fi
    5043 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5044 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5045 if test "$ac_cv_search_opendir" != no; then
    5046   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5047 
    5048 fi
    5049 
    5050 else
    5051   echo "$as_me:$LINENO: checking for library containing opendir" >&5
    5052 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
    5053 if test "${ac_cv_search_opendir+set}" = set; then
    5054   echo $ECHO_N "(cached) $ECHO_C" >&6
    5055 else
    5056   ac_func_search_save_LIBS=$LIBS
    5057 ac_cv_search_opendir=no
    5058 cat >conftest.$ac_ext <<_ACEOF
    5059 /* confdefs.h.  */
    5060 _ACEOF
    5061 cat confdefs.h >>conftest.$ac_ext
    5062 cat >>conftest.$ac_ext <<_ACEOF
    5063 /* end confdefs.h.  */
    5064 
    5065 /* Override any gcc2 internal prototype to avoid an error.  */
    5066 #ifdef __cplusplus
    5067 extern "C"
    5068 #endif
    5069 /* We use char because int might match the return type of a gcc2
    5070    builtin and then its argument prototype would still apply.  */
    5071 char opendir ();
    5072 int
    5073 main ()
    5074 {
    5075 opendir ();
    5076   ;
    5077   return 0;
    5078 }
    5079 _ACEOF
    5080 rm -f conftest.$ac_objext conftest$ac_exeext
    5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5082   (eval $ac_link) 2>conftest.er1
    5083   ac_status=$?
    5084   grep -v '^ *+' conftest.er1 >conftest.err
    5085   rm -f conftest.er1
    5086   cat conftest.err >&5
    5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5088   (exit $ac_status); } &&
    5089      { ac_try='test -z "$ac_c_werror_flag"
    5090              || test ! -s conftest.err'
    5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5092   (eval $ac_try) 2>&5
    5093   ac_status=$?
    5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5095   (exit $ac_status); }; } &&
    5096      { ac_try='test -s conftest$ac_exeext'
    5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5098   (eval $ac_try) 2>&5
    5099   ac_status=$?
    5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5101   (exit $ac_status); }; }; then
    5102   ac_cv_search_opendir="none required"
    5103 else
    5104   echo "$as_me: failed program was:" >&5
    5105 sed 's/^/| /' conftest.$ac_ext >&5
    5106 
    5107 fi
    5108 rm -f conftest.err conftest.$ac_objext \
    5109       conftest$ac_exeext conftest.$ac_ext
    5110 if test "$ac_cv_search_opendir" = no; then
    5111   for ac_lib in x; do
    5112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    5113     cat >conftest.$ac_ext <<_ACEOF
    5114 /* confdefs.h.  */
    5115 _ACEOF
    5116 cat confdefs.h >>conftest.$ac_ext
    5117 cat >>conftest.$ac_ext <<_ACEOF
    5118 /* end confdefs.h.  */
    5119 
    5120 /* Override any gcc2 internal prototype to avoid an error.  */
    5121 #ifdef __cplusplus
    5122 extern "C"
    5123 #endif
    5124 /* We use char because int might match the return type of a gcc2
    5125    builtin and then its argument prototype would still apply.  */
    5126 char opendir ();
    5127 int
    5128 main ()
    5129 {
    5130 opendir ();
    5131   ;
    5132   return 0;
    5133 }
    5134 _ACEOF
    5135 rm -f conftest.$ac_objext conftest$ac_exeext
    5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5137   (eval $ac_link) 2>conftest.er1
    5138   ac_status=$?
    5139   grep -v '^ *+' conftest.er1 >conftest.err
    5140   rm -f conftest.er1
    5141   cat conftest.err >&5
    5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5143   (exit $ac_status); } &&
    5144      { ac_try='test -z "$ac_c_werror_flag"
    5145              || test ! -s conftest.err'
    5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5147   (eval $ac_try) 2>&5
    5148   ac_status=$?
    5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5150   (exit $ac_status); }; } &&
    5151      { ac_try='test -s conftest$ac_exeext'
    5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5153   (eval $ac_try) 2>&5
    5154   ac_status=$?
    5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5156   (exit $ac_status); }; }; then
    5157   ac_cv_search_opendir="-l$ac_lib"
    5158 break
    5159 else
    5160   echo "$as_me: failed program was:" >&5
    5161 sed 's/^/| /' conftest.$ac_ext >&5
    5162 
    5163 fi
    5164 rm -f conftest.err conftest.$ac_objext \
    5165       conftest$ac_exeext conftest.$ac_ext
    5166   done
    5167 fi
    5168 LIBS=$ac_func_search_save_LIBS
    5169 fi
    5170 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
    5171 echo "${ECHO_T}$ac_cv_search_opendir" >&6
    5172 if test "$ac_cv_search_opendir" != no; then
    5173   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
    5174 
    5175 fi
    5176 
    5177 fi
    5178 
    5179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5181 if test "${ac_cv_header_stdc+set}" = set; then
    5182   echo $ECHO_N "(cached) $ECHO_C" >&6
    5183 else
    5184   cat >conftest.$ac_ext <<_ACEOF
    5185 /* confdefs.h.  */
    5186 _ACEOF
    5187 cat confdefs.h >>conftest.$ac_ext
    5188 cat >>conftest.$ac_ext <<_ACEOF
     5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
     5649$as_echo "$ac_cv_search_opendir" >&6; }
     5650ac_res=$ac_cv_search_opendir
     5651if test "$ac_res" != no; then :
     5652  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     5653
     5654fi
     5655
     5656fi
     5657
     5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     5659$as_echo_n "checking for ANSI C header files... " >&6; }
     5660if test "${ac_cv_header_stdc+set}" = set; then :
     5661  $as_echo_n "(cached) " >&6
     5662else
     5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    51895664/* end confdefs.h.  */
    51905665#include <stdlib.h>
     
    52015676}
    52025677_ACEOF
    5203 rm -f conftest.$ac_objext
    5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5205   (eval $ac_compile) 2>conftest.er1
    5206   ac_status=$?
    5207   grep -v '^ *+' conftest.er1 >conftest.err
    5208   rm -f conftest.er1
    5209   cat conftest.err >&5
    5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5211   (exit $ac_status); } &&
    5212      { ac_try='test -z "$ac_c_werror_flag"
    5213              || test ! -s conftest.err'
    5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5215   (eval $ac_try) 2>&5
    5216   ac_status=$?
    5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5218   (exit $ac_status); }; } &&
    5219      { ac_try='test -s conftest.$ac_objext'
    5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5221   (eval $ac_try) 2>&5
    5222   ac_status=$?
    5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5224   (exit $ac_status); }; }; then
     5678if ac_fn_c_try_compile "$LINENO"; then :
    52255679  ac_cv_header_stdc=yes
    52265680else
    5227   echo "$as_me: failed program was:" >&5
    5228 sed 's/^/| /' conftest.$ac_ext >&5
    5229 
    5230 ac_cv_header_stdc=no
    5231 fi
    5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5681  ac_cv_header_stdc=no
     5682fi
     5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    52335684
    52345685if test $ac_cv_header_stdc = yes; then
    52355686  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5236   cat >conftest.$ac_ext <<_ACEOF
    5237 /* confdefs.h.  */
    5238 _ACEOF
    5239 cat confdefs.h >>conftest.$ac_ext
    5240 cat >>conftest.$ac_ext <<_ACEOF
     5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52415688/* end confdefs.h.  */
    52425689#include <string.h>
     
    52445691_ACEOF
    52455692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5246   $EGREP "memchr" >/dev/null 2>&1; then
    5247   :
     5693  $EGREP "memchr" >/dev/null 2>&1; then :
     5694
    52485695else
    52495696  ac_cv_header_stdc=no
     
    52555702if test $ac_cv_header_stdc = yes; then
    52565703  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5257   cat >conftest.$ac_ext <<_ACEOF
    5258 /* confdefs.h.  */
    5259 _ACEOF
    5260 cat confdefs.h >>conftest.$ac_ext
    5261 cat >>conftest.$ac_ext <<_ACEOF
     5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52625705/* end confdefs.h.  */
    52635706#include <stdlib.h>
     
    52655708_ACEOF
    52665709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5267   $EGREP "free" >/dev/null 2>&1; then
    5268   :
     5710  $EGREP "free" >/dev/null 2>&1; then :
     5711
    52695712else
    52705713  ac_cv_header_stdc=no
     
    52765719if test $ac_cv_header_stdc = yes; then
    52775720  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5278   if test "$cross_compiling" = yes; then
     5721  if test "$cross_compiling" = yes; then :
    52795722  :
    52805723else
    5281   cat >conftest.$ac_ext <<_ACEOF
    5282 /* confdefs.h.  */
    5283 _ACEOF
    5284 cat confdefs.h >>conftest.$ac_ext
    5285 cat >>conftest.$ac_ext <<_ACEOF
     5724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    52865725/* end confdefs.h.  */
    52875726#include <ctype.h>
     5727#include <stdlib.h>
    52885728#if ((' ' & 0x0FF) == 0x020)
    52895729# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    53055745    if (XOR (islower (i), ISLOWER (i))
    53065746    || toupper (i) != TOUPPER (i))
    5307       exit(2);
    5308   exit (0);
     5747      return 2;
     5748  return 0;
    53095749}
    53105750_ACEOF
    5311 rm -f conftest$ac_exeext
    5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5313   (eval $ac_link) 2>&5
    5314   ac_status=$?
    5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5318   (eval $ac_try) 2>&5
    5319   ac_status=$?
    5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5321   (exit $ac_status); }; }; then
    5322   :
    5323 else
    5324   echo "$as_me: program exited with status $ac_status" >&5
    5325 echo "$as_me: failed program was:" >&5
    5326 sed 's/^/| /' conftest.$ac_ext >&5
    5327 
    5328 ( exit $ac_status )
    5329 ac_cv_header_stdc=no
    5330 fi
    5331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5332 fi
    5333 fi
    5334 fi
    5335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5751if ac_fn_c_try_run "$LINENO"; then :
     5752
     5753else
     5754  ac_cv_header_stdc=no
     5755fi
     5756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5757  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5758fi
     5759
     5760fi
     5761fi
     5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     5763$as_echo "$ac_cv_header_stdc" >&6; }
    53375764if test $ac_cv_header_stdc = yes; then
    53385765
    5339 cat >>confdefs.h <<\_ACEOF
    5340 #define STDC_HEADERS 1
    5341 _ACEOF
    5342 
    5343 fi
    5344 
    5345 
    5346 
    5347 
    5348 
    5349 
    5350 
    5351 
    5352 
     5766$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     5767
     5768fi
    53535769
    53545770for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
    5355 do
    5356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5358   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5361   echo $ECHO_N "(cached) $ECHO_C" >&6
    5362 fi
    5363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5365 else
    5366   # Is the header compilable?
    5367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5369 cat >conftest.$ac_ext <<_ACEOF
    5370 /* confdefs.h.  */
    5371 _ACEOF
    5372 cat confdefs.h >>conftest.$ac_ext
    5373 cat >>conftest.$ac_ext <<_ACEOF
    5374 /* end confdefs.h.  */
    5375 $ac_includes_default
    5376 #include <$ac_header>
    5377 _ACEOF
    5378 rm -f conftest.$ac_objext
    5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5380   (eval $ac_compile) 2>conftest.er1
    5381   ac_status=$?
    5382   grep -v '^ *+' conftest.er1 >conftest.err
    5383   rm -f conftest.er1
    5384   cat conftest.err >&5
    5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5386   (exit $ac_status); } &&
    5387      { ac_try='test -z "$ac_c_werror_flag"
    5388              || test ! -s conftest.err'
    5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5390   (eval $ac_try) 2>&5
    5391   ac_status=$?
    5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5393   (exit $ac_status); }; } &&
    5394      { ac_try='test -s conftest.$ac_objext'
    5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5396   (eval $ac_try) 2>&5
    5397   ac_status=$?
    5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5399   (exit $ac_status); }; }; then
    5400   ac_header_compiler=yes
    5401 else
    5402   echo "$as_me: failed program was:" >&5
    5403 sed 's/^/| /' conftest.$ac_ext >&5
    5404 
    5405 ac_header_compiler=no
    5406 fi
    5407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5409 echo "${ECHO_T}$ac_header_compiler" >&6
    5410 
    5411 # Is the header present?
    5412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5414 cat >conftest.$ac_ext <<_ACEOF
    5415 /* confdefs.h.  */
    5416 _ACEOF
    5417 cat confdefs.h >>conftest.$ac_ext
    5418 cat >>conftest.$ac_ext <<_ACEOF
    5419 /* end confdefs.h.  */
    5420 #include <$ac_header>
    5421 _ACEOF
    5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5424   ac_status=$?
    5425   grep -v '^ *+' conftest.er1 >conftest.err
    5426   rm -f conftest.er1
    5427   cat conftest.err >&5
    5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5429   (exit $ac_status); } >/dev/null; then
    5430   if test -s conftest.err; then
    5431     ac_cpp_err=$ac_c_preproc_warn_flag
    5432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5433   else
    5434     ac_cpp_err=
    5435   fi
    5436 else
    5437   ac_cpp_err=yes
    5438 fi
    5439 if test -z "$ac_cpp_err"; then
    5440   ac_header_preproc=yes
    5441 else
    5442   echo "$as_me: failed program was:" >&5
    5443 sed 's/^/| /' conftest.$ac_ext >&5
    5444 
    5445   ac_header_preproc=no
    5446 fi
    5447 rm -f conftest.err conftest.$ac_ext
    5448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5449 echo "${ECHO_T}$ac_header_preproc" >&6
    5450 
    5451 # So?  What about this header?
    5452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5453   yes:no: )
    5454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5458     ac_header_preproc=yes
    5459     ;;
    5460   no:yes:* )
    5461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5473     (
    5474       cat <<\_ASBOX
    5475 ## ------------------------------------------ ##
    5476 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5477 ## ------------------------------------------ ##
    5478 _ASBOX
    5479     ) |
    5480       sed "s/^/$as_me: WARNING:     /" >&2
    5481     ;;
    5482 esac
    5483 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5486   echo $ECHO_N "(cached) $ECHO_C" >&6
    5487 else
    5488   eval "$as_ac_Header=\$ac_header_preproc"
    5489 fi
    5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5492 
    5493 fi
    5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5771do :
     5772  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5773ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     5774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    54955775  cat >>confdefs.h <<_ACEOF
    5496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    54975777_ACEOF
    54985778
     
    55015781done
    55025782
    5503 cat >conftest.$ac_ext <<_ACEOF
    5504 /* confdefs.h.  */
    5505 _ACEOF
    5506 cat confdefs.h >>conftest.$ac_ext
    5507 cat >>conftest.$ac_ext <<_ACEOF
     5783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55085784/* end confdefs.h.  */
    55095785#include <stdio.h>
     
    55115787_ACEOF
    55125788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5513   $EGREP "fread" >/dev/null 2>&1; then
    5514   cat >>confdefs.h <<\_ACEOF
    5515 #define HAVE_FREAD_DECL 1
    5516 _ACEOF
     5789  $EGREP "fread" >/dev/null 2>&1; then :
     5790  $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
    55175791
    55185792fi
    55195793rm -f conftest*
    55205794
    5521 cat >conftest.$ac_ext <<_ACEOF
    5522 /* confdefs.h.  */
    5523 _ACEOF
    5524 cat confdefs.h >>conftest.$ac_ext
    5525 cat >>conftest.$ac_ext <<_ACEOF
     5795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55265796/* end confdefs.h.  */
    55275797#include <stdio.h>
     
    55295799_ACEOF
    55305800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5531   $EGREP "fgetc" >/dev/null 2>&1; then
    5532   cat >>confdefs.h <<\_ACEOF
    5533 #define HAVE_FGETC_DECL 1
    5534 _ACEOF
     5801  $EGREP "fgetc" >/dev/null 2>&1; then :
     5802  $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
    55355803
    55365804fi
    55375805rm -f conftest*
    55385806
    5539 cat >conftest.$ac_ext <<_ACEOF
    5540 /* confdefs.h.  */
    5541 _ACEOF
    5542 cat confdefs.h >>conftest.$ac_ext
    5543 cat >>conftest.$ac_ext <<_ACEOF
     5807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55445808/* end confdefs.h.  */
    55455809#include <sys/procfs.h>
     
    55475811_ACEOF
    55485812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5549   $EGREP "pr_brksize" >/dev/null 2>&1; then
    5550   cat >>confdefs.h <<\_ACEOF
    5551 #define HAVE_PR_BRKSIZE 1
    5552 _ACEOF
     5813  $EGREP "pr_brksize" >/dev/null 2>&1; then :
     5814  $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
    55535815
    55545816fi
     
    55585820# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    55595821# for constant arguments.  Useless!
    5560 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    5561 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    5562 if test "${ac_cv_working_alloca_h+set}" = set; then
    5563   echo $ECHO_N "(cached) $ECHO_C" >&6
    5564 else
    5565   cat >conftest.$ac_ext <<_ACEOF
    5566 /* confdefs.h.  */
    5567 _ACEOF
    5568 cat confdefs.h >>conftest.$ac_ext
    5569 cat >>conftest.$ac_ext <<_ACEOF
     5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     5823$as_echo_n "checking for working alloca.h... " >&6; }
     5824if test "${ac_cv_working_alloca_h+set}" = set; then :
     5825  $as_echo_n "(cached) " >&6
     5826else
     5827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55705828/* end confdefs.h.  */
    55715829#include <alloca.h>
     
    55745832{
    55755833char *p = (char *) alloca (2 * sizeof (int));
     5834              if (p) return 0;
    55765835  ;
    55775836  return 0;
    55785837}
    55795838_ACEOF
    5580 rm -f conftest.$ac_objext conftest$ac_exeext
    5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5582   (eval $ac_link) 2>conftest.er1
    5583   ac_status=$?
    5584   grep -v '^ *+' conftest.er1 >conftest.err
    5585   rm -f conftest.er1
    5586   cat conftest.err >&5
    5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5588   (exit $ac_status); } &&
    5589      { ac_try='test -z "$ac_c_werror_flag"
    5590              || test ! -s conftest.err'
    5591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5592   (eval $ac_try) 2>&5
    5593   ac_status=$?
    5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5595   (exit $ac_status); }; } &&
    5596      { ac_try='test -s conftest$ac_exeext'
    5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5598   (eval $ac_try) 2>&5
    5599   ac_status=$?
    5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5601   (exit $ac_status); }; }; then
     5839if ac_fn_c_try_link "$LINENO"; then :
    56025840  ac_cv_working_alloca_h=yes
    56035841else
    5604   echo "$as_me: failed program was:" >&5
    5605 sed 's/^/| /' conftest.$ac_ext >&5
    5606 
    5607 ac_cv_working_alloca_h=no
    5608 fi
    5609 rm -f conftest.err conftest.$ac_objext \
    5610       conftest$ac_exeext conftest.$ac_ext
    5611 fi
    5612 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    5613 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     5842  ac_cv_working_alloca_h=no
     5843fi
     5844rm -f core conftest.err conftest.$ac_objext \
     5845    conftest$ac_exeext conftest.$ac_ext
     5846fi
     5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     5848$as_echo "$ac_cv_working_alloca_h" >&6; }
    56145849if test $ac_cv_working_alloca_h = yes; then
    56155850
    5616 cat >>confdefs.h <<\_ACEOF
    5617 #define HAVE_ALLOCA_H 1
    5618 _ACEOF
    5619 
    5620 fi
    5621 
    5622 echo "$as_me:$LINENO: checking for alloca" >&5
    5623 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    5624 if test "${ac_cv_func_alloca_works+set}" = set; then
    5625   echo $ECHO_N "(cached) $ECHO_C" >&6
    5626 else
    5627   cat >conftest.$ac_ext <<_ACEOF
    5628 /* confdefs.h.  */
    5629 _ACEOF
    5630 cat confdefs.h >>conftest.$ac_ext
    5631 cat >>conftest.$ac_ext <<_ACEOF
     5851$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     5852
     5853fi
     5854
     5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     5856$as_echo_n "checking for alloca... " >&6; }
     5857if test "${ac_cv_func_alloca_works+set}" = set; then :
     5858  $as_echo_n "(cached) " >&6
     5859else
     5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56325861/* end confdefs.h.  */
    56335862#ifdef __GNUC__
     
    56385867#  define alloca _alloca
    56395868# else
    5640 #  if HAVE_ALLOCA_H
     5869#  ifdef HAVE_ALLOCA_H
    56415870#   include <alloca.h>
    56425871#  else
     
    56565885{
    56575886char *p = (char *) alloca (1);
     5887                    if (p) return 0;
    56585888  ;
    56595889  return 0;
    56605890}
    56615891_ACEOF
    5662 rm -f conftest.$ac_objext conftest$ac_exeext
    5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5664   (eval $ac_link) 2>conftest.er1
    5665   ac_status=$?
    5666   grep -v '^ *+' conftest.er1 >conftest.err
    5667   rm -f conftest.er1
    5668   cat conftest.err >&5
    5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5670   (exit $ac_status); } &&
    5671      { ac_try='test -z "$ac_c_werror_flag"
    5672              || test ! -s conftest.err'
    5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5674   (eval $ac_try) 2>&5
    5675   ac_status=$?
    5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5677   (exit $ac_status); }; } &&
    5678      { ac_try='test -s conftest$ac_exeext'
    5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5680   (eval $ac_try) 2>&5
    5681   ac_status=$?
    5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5683   (exit $ac_status); }; }; then
     5892if ac_fn_c_try_link "$LINENO"; then :
    56845893  ac_cv_func_alloca_works=yes
    56855894else
    5686   echo "$as_me: failed program was:" >&5
    5687 sed 's/^/| /' conftest.$ac_ext >&5
    5688 
    5689 ac_cv_func_alloca_works=no
    5690 fi
    5691 rm -f conftest.err conftest.$ac_objext \
    5692       conftest$ac_exeext conftest.$ac_ext
    5693 fi
    5694 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    5695 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     5895  ac_cv_func_alloca_works=no
     5896fi
     5897rm -f core conftest.err conftest.$ac_objext \
     5898    conftest$ac_exeext conftest.$ac_ext
     5899fi
     5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     5901$as_echo "$ac_cv_func_alloca_works" >&6; }
    56965902
    56975903if test $ac_cv_func_alloca_works = yes; then
    56985904
    5699 cat >>confdefs.h <<\_ACEOF
    5700 #define HAVE_ALLOCA 1
    5701 _ACEOF
     5905$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
    57025906
    57035907else
     
    57075911# use ar to extract alloca.o from them instead of compiling alloca.c.
    57085912
    5709 ALLOCA=alloca.$ac_objext
    5710 
    5711 cat >>confdefs.h <<\_ACEOF
    5712 #define C_ALLOCA 1
    5713 _ACEOF
    5714 
    5715 
    5716 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    5717 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    5718 if test "${ac_cv_os_cray+set}" = set; then
    5719   echo $ECHO_N "(cached) $ECHO_C" >&6
    5720 else
    5721   cat >conftest.$ac_ext <<_ACEOF
    5722 /* confdefs.h.  */
    5723 _ACEOF
    5724 cat confdefs.h >>conftest.$ac_ext
    5725 cat >>conftest.$ac_ext <<_ACEOF
     5913ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     5914
     5915$as_echo "#define C_ALLOCA 1" >>confdefs.h
     5916
     5917
     5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     5919$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     5920if test "${ac_cv_os_cray+set}" = set; then :
     5921  $as_echo_n "(cached) " >&6
     5922else
     5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57265924/* end confdefs.h.  */
    5727 #if defined(CRAY) && ! defined(CRAY2)
     5925#if defined CRAY && ! defined CRAY2
    57285926webecray
    57295927#else
     
    57335931_ACEOF
    57345932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5735   $EGREP "webecray" >/dev/null 2>&1; then
     5933  $EGREP "webecray" >/dev/null 2>&1; then :
    57365934  ac_cv_os_cray=yes
    57375935else
     
    57415939
    57425940fi
    5743 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    5744 echo "${ECHO_T}$ac_cv_os_cray" >&6
     5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     5942$as_echo "$ac_cv_os_cray" >&6; }
    57455943if test $ac_cv_os_cray = yes; then
    57465944  for ac_func in _getb67 GETB67 getb67; do
    5747     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5748 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5750 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5751   echo $ECHO_N "(cached) $ECHO_C" >&6
    5752 else
    5753   cat >conftest.$ac_ext <<_ACEOF
    5754 /* confdefs.h.  */
    5755 _ACEOF
    5756 cat confdefs.h >>conftest.$ac_ext
    5757 cat >>conftest.$ac_ext <<_ACEOF
    5758 /* end confdefs.h.  */
    5759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5761 #define $ac_func innocuous_$ac_func
    5762 
    5763 /* System header to define __stub macros and hopefully few prototypes,
    5764     which can conflict with char $ac_func (); below.
    5765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5766     <limits.h> exists even on freestanding compilers.  */
    5767 
    5768 #ifdef __STDC__
    5769 # include <limits.h>
    5770 #else
    5771 # include <assert.h>
    5772 #endif
    5773 
    5774 #undef $ac_func
    5775 
    5776 /* Override any gcc2 internal prototype to avoid an error.  */
    5777 #ifdef __cplusplus
    5778 extern "C"
    5779 {
    5780 #endif
    5781 /* We use char because int might match the return type of a gcc2
    5782    builtin and then its argument prototype would still apply.  */
    5783 char $ac_func ();
    5784 /* The GNU C library defines this for functions which it implements
    5785     to always fail with ENOSYS.  Some functions are actually named
    5786     something starting with __ and the normal name is an alias.  */
    5787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5788 choke me
    5789 #else
    5790 char (*f) () = $ac_func;
    5791 #endif
    5792 #ifdef __cplusplus
    5793 }
    5794 #endif
    5795 
    5796 int
    5797 main ()
    5798 {
    5799 return f != $ac_func;
    5800   ;
    5801   return 0;
    5802 }
    5803 _ACEOF
    5804 rm -f conftest.$ac_objext conftest$ac_exeext
    5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5806   (eval $ac_link) 2>conftest.er1
    5807   ac_status=$?
    5808   grep -v '^ *+' conftest.er1 >conftest.err
    5809   rm -f conftest.er1
    5810   cat conftest.err >&5
    5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5812   (exit $ac_status); } &&
    5813      { ac_try='test -z "$ac_c_werror_flag"
    5814              || test ! -s conftest.err'
    5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5816   (eval $ac_try) 2>&5
    5817   ac_status=$?
    5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5819   (exit $ac_status); }; } &&
    5820      { ac_try='test -s conftest$ac_exeext'
    5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5822   (eval $ac_try) 2>&5
    5823   ac_status=$?
    5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5825   (exit $ac_status); }; }; then
    5826   eval "$as_ac_var=yes"
    5827 else
    5828   echo "$as_me: failed program was:" >&5
    5829 sed 's/^/| /' conftest.$ac_ext >&5
    5830 
    5831 eval "$as_ac_var=no"
    5832 fi
    5833 rm -f conftest.err conftest.$ac_objext \
    5834       conftest$ac_exeext conftest.$ac_ext
    5835 fi
    5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5838 if test `eval echo '${'$as_ac_var'}'` = yes; then
     5945    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     5947if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    58395948
    58405949cat >>confdefs.h <<_ACEOF
     
    58485957fi
    58495958
    5850 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5851 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5852 if test "${ac_cv_c_stack_direction+set}" = set; then
    5853   echo $ECHO_N "(cached) $ECHO_C" >&6
    5854 else
    5855   if test "$cross_compiling" = yes; then
     5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     5960$as_echo_n "checking stack direction for C alloca... " >&6; }
     5961if test "${ac_cv_c_stack_direction+set}" = set; then :
     5962  $as_echo_n "(cached) " >&6
     5963else
     5964  if test "$cross_compiling" = yes; then :
    58565965  ac_cv_c_stack_direction=0
    58575966else
    5858   cat >conftest.$ac_ext <<_ACEOF
    5859 /* confdefs.h.  */
    5860 _ACEOF
    5861 cat confdefs.h >>conftest.$ac_ext
    5862 cat >>conftest.$ac_ext <<_ACEOF
     5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58635968/* end confdefs.h.  */
     5969$ac_includes_default
    58645970int
    58655971find_stack_direction ()
     
    58795985main ()
    58805986{
    5881   exit (find_stack_direction () < 0);
     5987  return find_stack_direction () < 0;
    58825988}
    58835989_ACEOF
    5884 rm -f conftest$ac_exeext
    5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5886   (eval $ac_link) 2>&5
    5887   ac_status=$?
    5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5891   (eval $ac_try) 2>&5
    5892   ac_status=$?
    5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5894   (exit $ac_status); }; }; then
     5990if ac_fn_c_try_run "$LINENO"; then :
    58955991  ac_cv_c_stack_direction=1
    58965992else
    5897   echo "$as_me: program exited with status $ac_status" >&5
    5898 echo "$as_me: failed program was:" >&5
    5899 sed 's/^/| /' conftest.$ac_ext >&5
    5900 
    5901 ( exit $ac_status )
    5902 ac_cv_c_stack_direction=-1
    5903 fi
    5904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5905 fi
    5906 fi
    5907 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5908 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5909 
     5993  ac_cv_c_stack_direction=-1
     5994fi
     5995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5996  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5997fi
     5998
     5999fi
     6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     6001$as_echo "$ac_cv_c_stack_direction" >&6; }
    59106002cat >>confdefs.h <<_ACEOF
    59116003#define STACK_DIRECTION $ac_cv_c_stack_direction
     
    59166008
    59176009if test $ac_cv_c_compiler_gnu = yes; then
    5918     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5921   echo $ECHO_N "(cached) $ECHO_C" >&6
     6010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
     6011$as_echo_n "checking whether $CC needs -traditional... " >&6; }
     6012if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
     6013  $as_echo_n "(cached) " >&6
    59226014else
    59236015    ac_pattern="Autoconf.*'x'"
    5924   cat >conftest.$ac_ext <<_ACEOF
    5925 /* confdefs.h.  */
    5926 _ACEOF
    5927 cat confdefs.h >>conftest.$ac_ext
    5928 cat >>conftest.$ac_ext <<_ACEOF
     6016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59296017/* end confdefs.h.  */
    59306018#include <sgtty.h>
     
    59326020_ACEOF
    59336021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5934   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6022  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59356023  ac_cv_prog_gcc_traditional=yes
    59366024else
     
    59416029
    59426030  if test $ac_cv_prog_gcc_traditional = no; then
    5943     cat >conftest.$ac_ext <<_ACEOF
    5944 /* confdefs.h.  */
    5945 _ACEOF
    5946 cat confdefs.h >>conftest.$ac_ext
    5947 cat >>conftest.$ac_ext <<_ACEOF
     6031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59486032/* end confdefs.h.  */
    59496033#include <termio.h>
     
    59516035_ACEOF
    59526036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5953   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     6037  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
    59546038  ac_cv_prog_gcc_traditional=yes
    59556039fi
     
    59586042  fi
    59596043fi
    5960 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
     6045$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
    59626046  if test $ac_cv_prog_gcc_traditional = yes; then
    59636047    CC="$CC -traditional"
     
    59656049fi
    59666050
    5967 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5968 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5969 if test "${ac_cv_type_signal+set}" = set; then
    5970   echo $ECHO_N "(cached) $ECHO_C" >&6
    5971 else
    5972   cat >conftest.$ac_ext <<_ACEOF
    5973 /* confdefs.h.  */
    5974 _ACEOF
    5975 cat confdefs.h >>conftest.$ac_ext
    5976 cat >>conftest.$ac_ext <<_ACEOF
     6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     6052$as_echo_n "checking return type of signal handlers... " >&6; }
     6053if test "${ac_cv_type_signal+set}" = set; then :
     6054  $as_echo_n "(cached) " >&6
     6055else
     6056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    59776057/* end confdefs.h.  */
    59786058#include <sys/types.h>
    59796059#include <signal.h>
    5980 #ifdef signal
    5981 # undef signal
    5982 #endif
    5983 #ifdef __cplusplus
    5984 extern "C" void (*signal (int, void (*)(int)))(int);
    5985 #else
    5986 void (*signal ()) ();
    5987 #endif
    59886060
    59896061int
    59906062main ()
    59916063{
    5992 int i;
     6064return *(signal (0, 0)) (0) == 1;
    59936065  ;
    59946066  return 0;
    59956067}
    59966068_ACEOF
    5997 rm -f conftest.$ac_objext
    5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5999   (eval $ac_compile) 2>conftest.er1
    6000   ac_status=$?
    6001   grep -v '^ *+' conftest.er1 >conftest.err
    6002   rm -f conftest.er1
    6003   cat conftest.err >&5
    6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6005   (exit $ac_status); } &&
    6006      { ac_try='test -z "$ac_c_werror_flag"
    6007              || test ! -s conftest.err'
    6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6009   (eval $ac_try) 2>&5
    6010   ac_status=$?
    6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6012   (exit $ac_status); }; } &&
    6013      { ac_try='test -s conftest.$ac_objext'
    6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6015   (eval $ac_try) 2>&5
    6016   ac_status=$?
    6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6018   (exit $ac_status); }; }; then
     6069if ac_fn_c_try_compile "$LINENO"; then :
     6070  ac_cv_type_signal=int
     6071else
    60196072  ac_cv_type_signal=void
    6020 else
    6021   echo "$as_me: failed program was:" >&5
    6022 sed 's/^/| /' conftest.$ac_ext >&5
    6023 
    6024 ac_cv_type_signal=int
    6025 fi
    6026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6027 fi
    6028 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    6029 echo "${ECHO_T}$ac_cv_type_signal" >&6
     6073fi
     6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6075fi
     6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     6077$as_echo "$ac_cv_type_signal" >&6; }
    60306078
    60316079cat >>confdefs.h <<_ACEOF
     
    60346082
    60356083
    6036 
    60376084for ac_func in vprintf
    6038 do
    6039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6040 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6042 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6043   echo $ECHO_N "(cached) $ECHO_C" >&6
    6044 else
    6045   cat >conftest.$ac_ext <<_ACEOF
    6046 /* confdefs.h.  */
    6047 _ACEOF
    6048 cat confdefs.h >>conftest.$ac_ext
    6049 cat >>conftest.$ac_ext <<_ACEOF
    6050 /* end confdefs.h.  */
    6051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6053 #define $ac_func innocuous_$ac_func
    6054 
    6055 /* System header to define __stub macros and hopefully few prototypes,
    6056     which can conflict with char $ac_func (); below.
    6057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6058     <limits.h> exists even on freestanding compilers.  */
    6059 
    6060 #ifdef __STDC__
    6061 # include <limits.h>
    6062 #else
    6063 # include <assert.h>
    6064 #endif
    6065 
    6066 #undef $ac_func
    6067 
    6068 /* Override any gcc2 internal prototype to avoid an error.  */
    6069 #ifdef __cplusplus
    6070 extern "C"
    6071 {
    6072 #endif
    6073 /* We use char because int might match the return type of a gcc2
    6074    builtin and then its argument prototype would still apply.  */
    6075 char $ac_func ();
    6076 /* The GNU C library defines this for functions which it implements
    6077     to always fail with ENOSYS.  Some functions are actually named
    6078     something starting with __ and the normal name is an alias.  */
    6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6080 choke me
    6081 #else
    6082 char (*f) () = $ac_func;
    6083 #endif
    6084 #ifdef __cplusplus
    6085 }
    6086 #endif
    6087 
    6088 int
    6089 main ()
    6090 {
    6091 return f != $ac_func;
    6092   ;
    6093   return 0;
    6094 }
    6095 _ACEOF
    6096 rm -f conftest.$ac_objext conftest$ac_exeext
    6097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6098   (eval $ac_link) 2>conftest.er1
    6099   ac_status=$?
    6100   grep -v '^ *+' conftest.er1 >conftest.err
    6101   rm -f conftest.er1
    6102   cat conftest.err >&5
    6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6104   (exit $ac_status); } &&
    6105      { ac_try='test -z "$ac_c_werror_flag"
    6106              || test ! -s conftest.err'
    6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6108   (eval $ac_try) 2>&5
    6109   ac_status=$?
    6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6111   (exit $ac_status); }; } &&
    6112      { ac_try='test -s conftest$ac_exeext'
    6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6114   (eval $ac_try) 2>&5
    6115   ac_status=$?
    6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6117   (exit $ac_status); }; }; then
    6118   eval "$as_ac_var=yes"
    6119 else
    6120   echo "$as_me: failed program was:" >&5
    6121 sed 's/^/| /' conftest.$ac_ext >&5
    6122 
    6123 eval "$as_ac_var=no"
    6124 fi
    6125 rm -f conftest.err conftest.$ac_objext \
    6126       conftest$ac_exeext conftest.$ac_ext
    6127 fi
    6128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6130 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6085do :
     6086  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     6087if test "x$ac_cv_func_vprintf" = x""yes; then :
    61316088  cat >>confdefs.h <<_ACEOF
    6132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6133 _ACEOF
    6134 
    6135 echo "$as_me:$LINENO: checking for _doprnt" >&5
    6136 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    6137 if test "${ac_cv_func__doprnt+set}" = set; then
    6138   echo $ECHO_N "(cached) $ECHO_C" >&6
    6139 else
    6140   cat >conftest.$ac_ext <<_ACEOF
    6141 /* confdefs.h.  */
    6142 _ACEOF
    6143 cat confdefs.h >>conftest.$ac_ext
    6144 cat >>conftest.$ac_ext <<_ACEOF
    6145 /* end confdefs.h.  */
    6146 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    6147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6148 #define _doprnt innocuous__doprnt
    6149 
    6150 /* System header to define __stub macros and hopefully few prototypes,
    6151     which can conflict with char _doprnt (); below.
    6152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6153     <limits.h> exists even on freestanding compilers.  */
    6154 
    6155 #ifdef __STDC__
    6156 # include <limits.h>
    6157 #else
    6158 # include <assert.h>
    6159 #endif
    6160 
    6161 #undef _doprnt
    6162 
    6163 /* Override any gcc2 internal prototype to avoid an error.  */
    6164 #ifdef __cplusplus
    6165 extern "C"
    6166 {
    6167 #endif
    6168 /* We use char because int might match the return type of a gcc2
    6169    builtin and then its argument prototype would still apply.  */
    6170 char _doprnt ();
    6171 /* The GNU C library defines this for functions which it implements
    6172     to always fail with ENOSYS.  Some functions are actually named
    6173     something starting with __ and the normal name is an alias.  */
    6174 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    6175 choke me
    6176 #else
    6177 char (*f) () = _doprnt;
    6178 #endif
    6179 #ifdef __cplusplus
    6180 }
    6181 #endif
    6182 
    6183 int
    6184 main ()
    6185 {
    6186 return f != _doprnt;
    6187   ;
    6188   return 0;
    6189 }
    6190 _ACEOF
    6191 rm -f conftest.$ac_objext conftest$ac_exeext
    6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6193   (eval $ac_link) 2>conftest.er1
    6194   ac_status=$?
    6195   grep -v '^ *+' conftest.er1 >conftest.err
    6196   rm -f conftest.er1
    6197   cat conftest.err >&5
    6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6199   (exit $ac_status); } &&
    6200      { ac_try='test -z "$ac_c_werror_flag"
    6201              || test ! -s conftest.err'
    6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6203   (eval $ac_try) 2>&5
    6204   ac_status=$?
    6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6206   (exit $ac_status); }; } &&
    6207      { ac_try='test -s conftest$ac_exeext'
    6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6209   (eval $ac_try) 2>&5
    6210   ac_status=$?
    6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6212   (exit $ac_status); }; }; then
    6213   ac_cv_func__doprnt=yes
    6214 else
    6215   echo "$as_me: failed program was:" >&5
    6216 sed 's/^/| /' conftest.$ac_ext >&5
    6217 
    6218 ac_cv_func__doprnt=no
    6219 fi
    6220 rm -f conftest.err conftest.$ac_objext \
    6221       conftest$ac_exeext conftest.$ac_ext
    6222 fi
    6223 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    6224 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    6225 if test $ac_cv_func__doprnt = yes; then
    6226 
    6227 cat >>confdefs.h <<\_ACEOF
    6228 #define HAVE_DOPRNT 1
    6229 _ACEOF
     6089#define HAVE_VPRINTF 1
     6090_ACEOF
     6091
     6092ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     6093if test "x$ac_cv_func__doprnt" = x""yes; then :
     6094
     6095$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
    62306096
    62316097fi
     
    62356101
    62366102
    6237 
    6238 
    6239 
    6240 
    6241 
    6242 
    6243 
    6244 
    6245 
    6246 
    62476103for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
    6248 do
    6249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6250 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6252 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6253   echo $ECHO_N "(cached) $ECHO_C" >&6
    6254 else
    6255   cat >conftest.$ac_ext <<_ACEOF
    6256 /* confdefs.h.  */
    6257 _ACEOF
    6258 cat confdefs.h >>conftest.$ac_ext
    6259 cat >>conftest.$ac_ext <<_ACEOF
    6260 /* end confdefs.h.  */
    6261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6263 #define $ac_func innocuous_$ac_func
    6264 
    6265 /* System header to define __stub macros and hopefully few prototypes,
    6266     which can conflict with char $ac_func (); below.
    6267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6268     <limits.h> exists even on freestanding compilers.  */
    6269 
    6270 #ifdef __STDC__
    6271 # include <limits.h>
    6272 #else
    6273 # include <assert.h>
    6274 #endif
    6275 
    6276 #undef $ac_func
    6277 
    6278 /* Override any gcc2 internal prototype to avoid an error.  */
    6279 #ifdef __cplusplus
    6280 extern "C"
    6281 {
    6282 #endif
    6283 /* We use char because int might match the return type of a gcc2
    6284    builtin and then its argument prototype would still apply.  */
    6285 char $ac_func ();
    6286 /* The GNU C library defines this for functions which it implements
    6287     to always fail with ENOSYS.  Some functions are actually named
    6288     something starting with __ and the normal name is an alias.  */
    6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6290 choke me
    6291 #else
    6292 char (*f) () = $ac_func;
    6293 #endif
    6294 #ifdef __cplusplus
    6295 }
    6296 #endif
    6297 
    6298 int
    6299 main ()
    6300 {
    6301 return f != $ac_func;
    6302   ;
    6303   return 0;
    6304 }
    6305 _ACEOF
    6306 rm -f conftest.$ac_objext conftest$ac_exeext
    6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6308   (eval $ac_link) 2>conftest.er1
    6309   ac_status=$?
    6310   grep -v '^ *+' conftest.er1 >conftest.err
    6311   rm -f conftest.er1
    6312   cat conftest.err >&5
    6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6314   (exit $ac_status); } &&
    6315      { ac_try='test -z "$ac_c_werror_flag"
    6316              || test ! -s conftest.err'
    6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6318   (eval $ac_try) 2>&5
    6319   ac_status=$?
    6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6321   (exit $ac_status); }; } &&
    6322      { ac_try='test -s conftest$ac_exeext'
    6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6324   (eval $ac_try) 2>&5
    6325   ac_status=$?
    6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6327   (exit $ac_status); }; }; then
    6328   eval "$as_ac_var=yes"
    6329 else
    6330   echo "$as_me: failed program was:" >&5
    6331 sed 's/^/| /' conftest.$ac_ext >&5
    6332 
    6333 eval "$as_ac_var=no"
    6334 fi
    6335 rm -f conftest.err conftest.$ac_objext \
    6336       conftest$ac_exeext conftest.$ac_ext
    6337 fi
    6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6340 if test `eval echo '${'$as_ac_var'}'` = yes; then
     6104do :
     6105  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6106ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6107if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
    63416108  cat >>confdefs.h <<_ACEOF
    6342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    63436110_ACEOF
    63446111
     
    63466113done
    63476114
    6348 
    6349 
    6350 
    6351 for ac_func in ftruncate strstr strcasecmp
    6352 do
    6353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6354 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6356 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6357   echo $ECHO_N "(cached) $ECHO_C" >&6
    6358 else
    6359   cat >conftest.$ac_ext <<_ACEOF
    6360 /* confdefs.h.  */
    6361 _ACEOF
    6362 cat confdefs.h >>conftest.$ac_ext
    6363 cat >>conftest.$ac_ext <<_ACEOF
    6364 /* end confdefs.h.  */
    6365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6367 #define $ac_func innocuous_$ac_func
    6368 
    6369 /* System header to define __stub macros and hopefully few prototypes,
    6370     which can conflict with char $ac_func (); below.
    6371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6372     <limits.h> exists even on freestanding compilers.  */
    6373 
    6374 #ifdef __STDC__
    6375 # include <limits.h>
    6376 #else
    6377 # include <assert.h>
    6378 #endif
    6379 
    6380 #undef $ac_func
    6381 
    6382 /* Override any gcc2 internal prototype to avoid an error.  */
    6383 #ifdef __cplusplus
    6384 extern "C"
    6385 {
    6386 #endif
    6387 /* We use char because int might match the return type of a gcc2
    6388    builtin and then its argument prototype would still apply.  */
    6389 char $ac_func ();
    6390 /* The GNU C library defines this for functions which it implements
    6391     to always fail with ENOSYS.  Some functions are actually named
    6392     something starting with __ and the normal name is an alias.  */
    6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6394 choke me
    6395 #else
    6396 char (*f) () = $ac_func;
    6397 #endif
    6398 #ifdef __cplusplus
    6399 }
    6400 #endif
    6401 
    6402 int
    6403 main ()
    6404 {
    6405 return f != $ac_func;
    6406   ;
    6407   return 0;
    6408 }
    6409 _ACEOF
    6410 rm -f conftest.$ac_objext conftest$ac_exeext
    6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6412   (eval $ac_link) 2>conftest.er1
    6413   ac_status=$?
    6414   grep -v '^ *+' conftest.er1 >conftest.err
    6415   rm -f conftest.er1
    6416   cat conftest.err >&5
    6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6418   (exit $ac_status); } &&
    6419      { ac_try='test -z "$ac_c_werror_flag"
    6420              || test ! -s conftest.err'
    6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6422   (eval $ac_try) 2>&5
    6423   ac_status=$?
    6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6425   (exit $ac_status); }; } &&
    6426      { ac_try='test -s conftest$ac_exeext'
    6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6428   (eval $ac_try) 2>&5
    6429   ac_status=$?
    6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6431   (exit $ac_status); }; }; then
    6432   eval "$as_ac_var=yes"
    6433 else
    6434   echo "$as_me: failed program was:" >&5
    6435 sed 's/^/| /' conftest.$ac_ext >&5
    6436 
    6437 eval "$as_ac_var=no"
    6438 fi
    6439 rm -f conftest.err conftest.$ac_objext \
    6440       conftest$ac_exeext conftest.$ac_ext
    6441 fi
    6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6444 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6445   cat >>confdefs.h <<_ACEOF
    6446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6447 _ACEOF
    6448 
    6449 else
    6450   case $LIBOBJS in
    6451     "$ac_func.$ac_objext"   | \
    6452   *" $ac_func.$ac_objext"   | \
    6453     "$ac_func.$ac_objext "* | \
    6454   *" $ac_func.$ac_objext "* ) ;;
    6455   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
     6115ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
     6116if test "x$ac_cv_func_ftruncate" = x""yes; then :
     6117  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6118
     6119else
     6120  case " $LIBOBJS " in
     6121  *" ftruncate.$ac_objext "* ) ;;
     6122  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6123 ;;
    64566124esac
    64576125
    64586126fi
    6459 done
    6460 
    6461 
    6462 
    6463 echo "$as_me:$LINENO: checking for textdomain" >&5
    6464 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
    6465 if test "${ac_cv_func_textdomain+set}" = set; then
    6466   echo $ECHO_N "(cached) $ECHO_C" >&6
    6467 else
    6468   cat >conftest.$ac_ext <<_ACEOF
    6469 /* confdefs.h.  */
    6470 _ACEOF
    6471 cat confdefs.h >>conftest.$ac_ext
    6472 cat >>conftest.$ac_ext <<_ACEOF
    6473 /* end confdefs.h.  */
    6474 /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
    6475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6476 #define textdomain innocuous_textdomain
    6477 
    6478 /* System header to define __stub macros and hopefully few prototypes,
    6479     which can conflict with char textdomain (); below.
    6480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6481     <limits.h> exists even on freestanding compilers.  */
    6482 
    6483 #ifdef __STDC__
    6484 # include <limits.h>
    6485 #else
    6486 # include <assert.h>
    6487 #endif
    6488 
    6489 #undef textdomain
    6490 
    6491 /* Override any gcc2 internal prototype to avoid an error.  */
    6492 #ifdef __cplusplus
    6493 extern "C"
    6494 {
    6495 #endif
    6496 /* We use char because int might match the return type of a gcc2
    6497    builtin and then its argument prototype would still apply.  */
    6498 char textdomain ();
    6499 /* The GNU C library defines this for functions which it implements
    6500     to always fail with ENOSYS.  Some functions are actually named
    6501     something starting with __ and the normal name is an alias.  */
    6502 #if defined (__stub_textdomain) || defined (__stub___textdomain)
    6503 choke me
    6504 #else
    6505 char (*f) () = textdomain;
    6506 #endif
    6507 #ifdef __cplusplus
    6508 }
    6509 #endif
    6510 
    6511 int
    6512 main ()
    6513 {
    6514 return f != textdomain;
    6515   ;
    6516   return 0;
    6517 }
    6518 _ACEOF
    6519 rm -f conftest.$ac_objext conftest$ac_exeext
    6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6521   (eval $ac_link) 2>conftest.er1
    6522   ac_status=$?
    6523   grep -v '^ *+' conftest.er1 >conftest.err
    6524   rm -f conftest.er1
    6525   cat conftest.err >&5
    6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6527   (exit $ac_status); } &&
    6528      { ac_try='test -z "$ac_c_werror_flag"
    6529              || test ! -s conftest.err'
    6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6531   (eval $ac_try) 2>&5
    6532   ac_status=$?
    6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6534   (exit $ac_status); }; } &&
    6535      { ac_try='test -s conftest$ac_exeext'
    6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6537   (eval $ac_try) 2>&5
    6538   ac_status=$?
    6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6540   (exit $ac_status); }; }; then
    6541   ac_cv_func_textdomain=yes
    6542 else
    6543   echo "$as_me: failed program was:" >&5
    6544 sed 's/^/| /' conftest.$ac_ext >&5
    6545 
    6546 ac_cv_func_textdomain=no
    6547 fi
    6548 rm -f conftest.err conftest.$ac_objext \
    6549       conftest$ac_exeext conftest.$ac_ext
    6550 fi
    6551 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
    6552 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
    6553 if test $ac_cv_func_textdomain = yes; then
    6554   cat >>confdefs.h <<\_ACEOF
    6555 #define ENABLE_NLS  1
    6556 _ACEOF
     6127
     6128ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
     6129if test "x$ac_cv_func_strstr" = x""yes; then :
     6130  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
     6131
     6132else
     6133  case " $LIBOBJS " in
     6134  *" strstr.$ac_objext "* ) ;;
     6135  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
     6136 ;;
     6137esac
     6138
     6139fi
     6140
     6141ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
     6142if test "x$ac_cv_func_strcasecmp" = x""yes; then :
     6143  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
     6144
     6145else
     6146  case " $LIBOBJS " in
     6147  *" strcasecmp.$ac_objext "* ) ;;
     6148  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
     6149 ;;
     6150esac
     6151
     6152fi
     6153
     6154
     6155
     6156ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
     6157if test "x$ac_cv_func_textdomain" = x""yes; then :
     6158  $as_echo "#define ENABLE_NLS  1" >>confdefs.h
    65576159
    65586160fi
     
    65616163# *** Custom checking (based on GNU tar configure.in) ***
    65626164# ---------------------------------------------------------------------------
    6563 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
    6564 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
     6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
     6166$as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
    65656167if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    6566   echo "$as_me:$LINENO: result: yes" >&5
    6567 echo "${ECHO_T}yes" >&6
    6568   case $LIBOBJS in
    6569     "gmalloc.$ac_objext"   | \
    6570   *" gmalloc.$ac_objext"   | \
    6571     "gmalloc.$ac_objext "* | \
     6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6169$as_echo "yes" >&6; }
     6170  case " $LIBOBJS " in
    65726171  *" gmalloc.$ac_objext "* ) ;;
    6573   *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
     6172  *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
     6173 ;;
    65746174esac
    65756175
    6576   cat >>confdefs.h <<\_ACEOF
     6176  $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
     6177
     6178else
     6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6180$as_echo "no" >&6; }
     6181  for ac_func in valloc
     6182do :
     6183  ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
     6184if test "x$ac_cv_func_valloc" = x""yes; then :
     6185  cat >>confdefs.h <<_ACEOF
    65776186#define HAVE_VALLOC 1
    65786187_ACEOF
    65796188
    6580 else
    6581   echo "$as_me:$LINENO: result: no" >&5
    6582 echo "${ECHO_T}no" >&6
    6583 
    6584 for ac_func in valloc
    6585 do
    6586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    6587 echo "$as_me:$LINENO: checking for $ac_func" >&5
    6588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    6589 if eval "test \"\${$as_ac_var+set}\" = set"; then
    6590   echo $ECHO_N "(cached) $ECHO_C" >&6
    6591 else
    6592   cat >conftest.$ac_ext <<_ACEOF
    6593 /* confdefs.h.  */
    6594 _ACEOF
    6595 cat confdefs.h >>conftest.$ac_ext
    6596 cat >>conftest.$ac_ext <<_ACEOF
    6597 /* end confdefs.h.  */
    6598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    6599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6600 #define $ac_func innocuous_$ac_func
    6601 
    6602 /* System header to define __stub macros and hopefully few prototypes,
    6603     which can conflict with char $ac_func (); below.
    6604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6605     <limits.h> exists even on freestanding compilers.  */
    6606 
    6607 #ifdef __STDC__
    6608 # include <limits.h>
    6609 #else
    6610 # include <assert.h>
    6611 #endif
    6612 
    6613 #undef $ac_func
    6614 
    6615 /* Override any gcc2 internal prototype to avoid an error.  */
    6616 #ifdef __cplusplus
    6617 extern "C"
    6618 {
    6619 #endif
    6620 /* We use char because int might match the return type of a gcc2
    6621    builtin and then its argument prototype would still apply.  */
    6622 char $ac_func ();
    6623 /* The GNU C library defines this for functions which it implements
    6624     to always fail with ENOSYS.  Some functions are actually named
    6625     something starting with __ and the normal name is an alias.  */
    6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    6627 choke me
    6628 #else
    6629 char (*f) () = $ac_func;
    6630 #endif
    6631 #ifdef __cplusplus
    6632 }
    6633 #endif
    6634 
    6635 int
    6636 main ()
    6637 {
    6638 return f != $ac_func;
    6639   ;
    6640   return 0;
    6641 }
    6642 _ACEOF
    6643 rm -f conftest.$ac_objext conftest$ac_exeext
    6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6645   (eval $ac_link) 2>conftest.er1
    6646   ac_status=$?
    6647   grep -v '^ *+' conftest.er1 >conftest.err
    6648   rm -f conftest.er1
    6649   cat conftest.err >&5
    6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6651   (exit $ac_status); } &&
    6652      { ac_try='test -z "$ac_c_werror_flag"
    6653              || test ! -s conftest.err'
    6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6655   (eval $ac_try) 2>&5
    6656   ac_status=$?
    6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6658   (exit $ac_status); }; } &&
    6659      { ac_try='test -s conftest$ac_exeext'
    6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6661   (eval $ac_try) 2>&5
    6662   ac_status=$?
    6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6664   (exit $ac_status); }; }; then
    6665   eval "$as_ac_var=yes"
    6666 else
    6667   echo "$as_me: failed program was:" >&5
    6668 sed 's/^/| /' conftest.$ac_ext >&5
    6669 
    6670 eval "$as_ac_var=no"
    6671 fi
    6672 rm -f conftest.err conftest.$ac_objext \
    6673       conftest$ac_exeext conftest.$ac_ext
    6674 fi
    6675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6677 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6678   cat >>confdefs.h <<_ACEOF
    6679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6680 _ACEOF
    6681 
    66826189fi
    66836190done
     
    66866193
    66876194# we cannot generate static libraries under Darwin
    6688 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6689 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
     6196$as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
    66906197if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6691   echo "$as_me:$LINENO: result: yes" >&5
    6692 echo "${ECHO_T}yes" >&6
     6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6199$as_echo "yes" >&6; }
    66936200  STATIC=""
    66946201else
    6695   echo "$as_me:$LINENO: result: no" >&5
    6696 echo "${ECHO_T}no" >&6
     6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6203$as_echo "no" >&6; }
    66976204  STATIC="-static "
    66986205fi
    66996206
    67006207
    6701 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
    6702 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
    6703 
    6704 # Check whether --with-dmalloc or --without-dmalloc was given.
    6705 if test "${with_dmalloc+set}" = set; then
    6706   withval="$with_dmalloc"
    6707   if test "$withval" = yes; then
    6708   echo "$as_me:$LINENO: result: yes" >&5
    6709 echo "${ECHO_T}yes" >&6
    6710   cat >>confdefs.h <<\_ACEOF
    6711 #define WITH_DMALLOC 1
    6712 _ACEOF
     6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
     6209$as_echo_n "checking if malloc debugging is wanted... " >&6; }
     6210
     6211# Check whether --with-dmalloc was given.
     6212if test "${with_dmalloc+set}" = set; then :
     6213  withval=$with_dmalloc; if test "$withval" = yes; then
     6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     6215$as_echo "yes" >&6; }
     6216  $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
    67136217
    67146218  LIBS="$LIBS -ldmalloc"
    67156219  LDFLAGS="$LDFLAGS -g"
    67166220else
    6717   echo "$as_me:$LINENO: result: no" >&5
    6718 echo "${ECHO_T}no" >&6
    6719 fi
    6720 else
    6721   echo "$as_me:$LINENO: result: no" >&5
    6722 echo "${ECHO_T}no" >&6
    6723 fi;
    6724 
    6725 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
    6726 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
    6727 
    6728 # Check whether --with-regex or --without-regex was given.
    6729 if test "${with_regex+set}" = set; then
    6730   withval="$with_regex"
    6731   if test "$withval" = yes; then
     6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6222$as_echo "no" >&6; }
     6223fi
     6224else
     6225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6226$as_echo "no" >&6; }
     6227fi
     6228
     6229
     6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
     6231$as_echo_n "checking which of rx or regex is wanted... " >&6; }
     6232
     6233# Check whether --with-regex was given.
     6234if test "${with_regex+set}" = set; then :
     6235  withval=$with_regex; if test "$withval" = yes; then
    67326236  ac_with_regex=1
    6733   echo "$as_me:$LINENO: result: regex" >&5
    6734 echo "${ECHO_T}regex" >&6
    6735   cat >>confdefs.h <<\_ACEOF
    6736 #define WITH_REGEX 1
    6737 _ACEOF
    6738 
    6739   case $LIBOBJS in
    6740     "regex.$ac_objext"   | \
    6741   *" regex.$ac_objext"   | \
    6742     "regex.$ac_objext "* | \
     6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
     6238$as_echo "regex" >&6; }
     6239  $as_echo "#define WITH_REGEX 1" >>confdefs.h
     6240
     6241  case " $LIBOBJS " in
    67436242  *" regex.$ac_objext "* ) ;;
    6744   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
     6243  *) LIBOBJS="$LIBOBJS regex.$ac_objext"
     6244 ;;
    67456245esac
    67466246
    67476247fi
    6748 fi;
     6248fi
     6249
    67496250if test -z "$ac_with_regex"; then
    6750   echo "$as_me:$LINENO: result: rx" >&5
    6751 echo "${ECHO_T}rx" >&6
    6752   echo "$as_me:$LINENO: checking for re_rx_search" >&5
    6753 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
    6754 if test "${ac_cv_func_re_rx_search+set}" = set; then
    6755   echo $ECHO_N "(cached) $ECHO_C" >&6
    6756 else
    6757   cat >conftest.$ac_ext <<_ACEOF
    6758 /* confdefs.h.  */
    6759 _ACEOF
    6760 cat confdefs.h >>conftest.$ac_ext
    6761 cat >>conftest.$ac_ext <<_ACEOF
    6762 /* end confdefs.h.  */
    6763 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
    6764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6765 #define re_rx_search innocuous_re_rx_search
    6766 
    6767 /* System header to define __stub macros and hopefully few prototypes,
    6768     which can conflict with char re_rx_search (); below.
    6769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6770     <limits.h> exists even on freestanding compilers.  */
    6771 
    6772 #ifdef __STDC__
    6773 # include <limits.h>
    6774 #else
    6775 # include <assert.h>
    6776 #endif
    6777 
    6778 #undef re_rx_search
    6779 
    6780 /* Override any gcc2 internal prototype to avoid an error.  */
    6781 #ifdef __cplusplus
    6782 extern "C"
    6783 {
    6784 #endif
    6785 /* We use char because int might match the return type of a gcc2
    6786    builtin and then its argument prototype would still apply.  */
    6787 char re_rx_search ();
    6788 /* The GNU C library defines this for functions which it implements
    6789     to always fail with ENOSYS.  Some functions are actually named
    6790     something starting with __ and the normal name is an alias.  */
    6791 #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
    6792 choke me
    6793 #else
    6794 char (*f) () = re_rx_search;
    6795 #endif
    6796 #ifdef __cplusplus
    6797 }
    6798 #endif
    6799 
    6800 int
    6801 main ()
    6802 {
    6803 return f != re_rx_search;
    6804   ;
    6805   return 0;
    6806 }
    6807 _ACEOF
    6808 rm -f conftest.$ac_objext conftest$ac_exeext
    6809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6810   (eval $ac_link) 2>conftest.er1
    6811   ac_status=$?
    6812   grep -v '^ *+' conftest.er1 >conftest.err
    6813   rm -f conftest.er1
    6814   cat conftest.err >&5
    6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6816   (exit $ac_status); } &&
    6817      { ac_try='test -z "$ac_c_werror_flag"
    6818              || test ! -s conftest.err'
    6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6820   (eval $ac_try) 2>&5
    6821   ac_status=$?
    6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6823   (exit $ac_status); }; } &&
    6824      { ac_try='test -s conftest$ac_exeext'
    6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6826   (eval $ac_try) 2>&5
    6827   ac_status=$?
    6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6829   (exit $ac_status); }; }; then
    6830   ac_cv_func_re_rx_search=yes
    6831 else
    6832   echo "$as_me: failed program was:" >&5
    6833 sed 's/^/| /' conftest.$ac_ext >&5
    6834 
    6835 ac_cv_func_re_rx_search=no
    6836 fi
    6837 rm -f conftest.err conftest.$ac_objext \
    6838       conftest$ac_exeext conftest.$ac_ext
    6839 fi
    6840 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
    6841 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
    6842 if test $ac_cv_func_re_rx_search = yes; then
    6843   :
    6844 else
    6845   case $LIBOBJS in
    6846     "rx.$ac_objext"   | \
    6847   *" rx.$ac_objext"   | \
    6848     "rx.$ac_objext "* | \
     6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
     6252$as_echo "rx" >&6; }
     6253  ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
     6254if test "x$ac_cv_func_re_rx_search" = x""yes; then :
     6255
     6256else
     6257  case " $LIBOBJS " in
    68496258  *" rx.$ac_objext "* ) ;;
    6850   *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
     6259  *) LIBOBJS="$LIBOBJS rx.$ac_objext"
     6260 ;;
    68516261esac
    68526262
     
    68586268# ---------------------------------------------------------------------------
    68596269if test "$ac_cv_func_alloca" = 'no'; then
    6860   case $LIBOBJS in
    6861     "xmalloc.$ac_objext"   | \
    6862   *" xmalloc.$ac_objext"   | \
    6863     "xmalloc.$ac_objext "* | \
     6270  case " $LIBOBJS " in
    68646271  *" xmalloc.$ac_objext "* ) ;;
    6865   *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
     6272  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
     6273 ;;
    68666274esac
    68676275
    6868   case $LIBOBJS in
    6869     "error.$ac_objext"   | \
    6870   *" error.$ac_objext"   | \
    6871     "error.$ac_objext "* | \
     6276  case " $LIBOBJS " in
    68726277  *" error.$ac_objext "* ) ;;
    6873   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6278  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6279 ;;
    68746280esac
    68756281
     
    68796285# ---------------------------------------------------------------------------
    68806286
    6881 ac_ext=cc
     6287ac_ext=cpp
    68826288ac_cpp='$CXXCPP $CPPFLAGS'
    68836289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    68866292
    68876293
    6888 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
    6889 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
     6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
     6295$as_echo_n "checking that Perl 5 is available... " >&6; }
    68906296success="no"
    68916297pl_path="$PATH"
     
    69016307
    69026308success=no
    6903 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
    6904 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
    6905 
    6906 
    6907 cat >conftest.$ac_ext <<_ACEOF
    6908 /* confdefs.h.  */
    6909 _ACEOF
    6910 cat confdefs.h >>conftest.$ac_ext
    6911 cat >>conftest.$ac_ext <<_ACEOF
     6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
     6310$as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
     6311
     6312
     6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69126314/* end confdefs.h.  */
    69136315#include <vector>
     
    69216323}
    69226324_ACEOF
    6923 rm -f conftest.$ac_objext
    6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6925   (eval $ac_compile) 2>conftest.er1
    6926   ac_status=$?
    6927   grep -v '^ *+' conftest.er1 >conftest.err
    6928   rm -f conftest.er1
    6929   cat conftest.err >&5
    6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6931   (exit $ac_status); } &&
    6932      { ac_try='test -z "$ac_cxx_werror_flag"
    6933              || test ! -s conftest.err'
    6934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6935   (eval $ac_try) 2>&5
    6936   ac_status=$?
    6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6938   (exit $ac_status); }; } &&
    6939      { ac_try='test -s conftest.$ac_objext'
    6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6941   (eval $ac_try) 2>&5
    6942   ac_status=$?
    6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6944   (exit $ac_status); }; }; then
     6325if ac_fn_cxx_try_compile "$LINENO"; then :
    69456326  success=yes
    6946 else
    6947   echo "$as_me: failed program was:" >&5
    6948 sed 's/^/| /' conftest.$ac_ext >&5
    6949 
    6950 fi
    6951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6327fi
     6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69526329
    69536330if test $success = "no"; then
    6954 cat >conftest.$ac_ext <<_ACEOF
    6955 /* confdefs.h.  */
    6956 _ACEOF
    6957 cat confdefs.h >>conftest.$ac_ext
    6958 cat >>conftest.$ac_ext <<_ACEOF
     6331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69596332/* end confdefs.h.  */
    69606333#include <vector.h>
     
    69686341}
    69696342_ACEOF
    6970 rm -f conftest.$ac_objext
    6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6972   (eval $ac_compile) 2>conftest.er1
    6973   ac_status=$?
    6974   grep -v '^ *+' conftest.er1 >conftest.err
    6975   rm -f conftest.er1
    6976   cat conftest.err >&5
    6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6978   (exit $ac_status); } &&
    6979      { ac_try='test -z "$ac_cxx_werror_flag"
    6980              || test ! -s conftest.err'
    6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6982   (eval $ac_try) 2>&5
    6983   ac_status=$?
    6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6985   (exit $ac_status); }; } &&
    6986      { ac_try='test -s conftest.$ac_objext'
    6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6988   (eval $ac_try) 2>&5
    6989   ac_status=$?
    6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6991   (exit $ac_status); }; }; then
     6343if ac_fn_cxx_try_compile "$LINENO"; then :
    69926344  success="yes"
    6993 else
    6994   echo "$as_me: failed program was:" >&5
    6995 sed 's/^/| /' conftest.$ac_ext >&5
    6996 
    6997 fi
    6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6345fi
     6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    69996347fi
    70006348
    70016349if test $success = "no"; then
    7002 cat >conftest.$ac_ext <<_ACEOF
    7003 /* confdefs.h.  */
    7004 _ACEOF
    7005 cat confdefs.h >>conftest.$ac_ext
    7006 cat >>conftest.$ac_ext <<_ACEOF
     6350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70076351/* end confdefs.h.  */
    70086352#include <ospace\\std\\vector>
     
    70166360}
    70176361_ACEOF
    7018 rm -f conftest.$ac_objext
    7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7020   (eval $ac_compile) 2>conftest.er1
    7021   ac_status=$?
    7022   grep -v '^ *+' conftest.er1 >conftest.err
    7023   rm -f conftest.er1
    7024   cat conftest.err >&5
    7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7026   (exit $ac_status); } &&
    7027      { ac_try='test -z "$ac_cxx_werror_flag"
    7028              || test ! -s conftest.err'
    7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7030   (eval $ac_try) 2>&5
    7031   ac_status=$?
    7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7033   (exit $ac_status); }; } &&
    7034      { ac_try='test -s conftest.$ac_objext'
    7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7036   (eval $ac_try) 2>&5
    7037   ac_status=$?
    7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7039   (exit $ac_status); }; }; then
     6362if ac_fn_cxx_try_compile "$LINENO"; then :
    70406363  success="yes"
    7041 else
    7042   echo "$as_me: failed program was:" >&5
    7043 sed 's/^/| /' conftest.$ac_ext >&5
    7044 
    7045 fi
    7046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6364fi
     6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    70476366fi
    70486367
    70496368if test $success = yes; then
    7050 echo "$as_me:$LINENO: result: \"no\"" >&5
    7051 echo "${ECHO_T}\"no\"" >&6
    7052 else
    7053 echo "$as_me:$LINENO: result: \"yes\"" >&5
    7054 echo "${ECHO_T}\"yes\"" >&6
    7055 { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
    7056 echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
    7057    { (exit 1); exit 1; }; }
     6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6370$as_echo "\"no\"" >&6; }
     6371else
     6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6373$as_echo "\"yes\"" >&6; }
     6374as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
    70586375fi
    70596376
     
    70676384
    70686385# check for endianness
    7069 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    7070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    7071 if test "${ac_cv_c_bigendian+set}" = set; then
    7072   echo $ECHO_N "(cached) $ECHO_C" >&6
    7073 else
    7074   # See if sys/param.h defines the BYTE_ORDER macro.
    7075 cat >conftest.$ac_ext <<_ACEOF
    7076 /* confdefs.h.  */
    7077 _ACEOF
    7078 cat confdefs.h >>conftest.$ac_ext
    7079 cat >>conftest.$ac_ext <<_ACEOF
     6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6387$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6388if test "${ac_cv_c_bigendian+set}" = set; then :
     6389  $as_echo_n "(cached) " >&6
     6390else
     6391  ac_cv_c_bigendian=unknown
     6392    # See if we're dealing with a universal compiler.
     6393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6394/* end confdefs.h.  */
     6395#ifndef __APPLE_CC__
     6396           not a universal capable compiler
     6397         #endif
     6398         typedef int dummy;
     6399
     6400_ACEOF
     6401if ac_fn_cxx_try_compile "$LINENO"; then :
     6402
     6403    # Check for potential -arch flags.  It is not universal unless
     6404    # there are at least two -arch flags with different values.
     6405    ac_arch=
     6406    ac_prev=
     6407    for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     6408     if test -n "$ac_prev"; then
     6409       case $ac_word in
     6410         i?86 | x86_64 | ppc | ppc64)
     6411           if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     6412         ac_arch=$ac_word
     6413           else
     6414         ac_cv_c_bigendian=universal
     6415         break
     6416           fi
     6417           ;;
     6418       esac
     6419       ac_prev=
     6420     elif test "x$ac_word" = "x-arch"; then
     6421       ac_prev=arch
     6422     fi
     6423       done
     6424fi
     6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6426    if test $ac_cv_c_bigendian = unknown; then
     6427      # See if sys/param.h defines the BYTE_ORDER macro.
     6428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70806429/* end confdefs.h.  */
    70816430#include <sys/types.h>
    7082 #include <sys/param.h>
     6431         #include <sys/param.h>
    70836432
    70846433int
    70856434main ()
    70866435{
    7087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    7088  bogus endian macros
    7089 #endif
     6436#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     6437             && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     6438             && LITTLE_ENDIAN)
     6439          bogus endian macros
     6440         #endif
    70906441
    70916442  ;
     
    70936444}
    70946445_ACEOF
    7095 rm -f conftest.$ac_objext
    7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7097   (eval $ac_compile) 2>conftest.er1
    7098   ac_status=$?
    7099   grep -v '^ *+' conftest.er1 >conftest.err
    7100   rm -f conftest.er1
    7101   cat conftest.err >&5
    7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7103   (exit $ac_status); } &&
    7104      { ac_try='test -z "$ac_cxx_werror_flag"
    7105              || test ! -s conftest.err'
    7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7107   (eval $ac_try) 2>&5
    7108   ac_status=$?
    7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7110   (exit $ac_status); }; } &&
    7111      { ac_try='test -s conftest.$ac_objext'
    7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7113   (eval $ac_try) 2>&5
    7114   ac_status=$?
    7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7116   (exit $ac_status); }; }; then
     6446if ac_fn_cxx_try_compile "$LINENO"; then :
    71176447  # It does; now see whether it defined to BIG_ENDIAN or not.
    7118 cat >conftest.$ac_ext <<_ACEOF
    7119 /* confdefs.h.  */
    7120 _ACEOF
    7121 cat confdefs.h >>conftest.$ac_ext
    7122 cat >>conftest.$ac_ext <<_ACEOF
     6448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71236449/* end confdefs.h.  */
    71246450#include <sys/types.h>
    7125 #include <sys/param.h>
     6451        #include <sys/param.h>
    71266452
    71276453int
     
    71296455{
    71306456#if BYTE_ORDER != BIG_ENDIAN
    7131  not big endian
    7132 #endif
     6457        not big endian
     6458        #endif
    71336459
    71346460  ;
     
    71366462}
    71376463_ACEOF
    7138 rm -f conftest.$ac_objext
    7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7140   (eval $ac_compile) 2>conftest.er1
    7141   ac_status=$?
    7142   grep -v '^ *+' conftest.er1 >conftest.err
    7143   rm -f conftest.er1
    7144   cat conftest.err >&5
    7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7146   (exit $ac_status); } &&
    7147      { ac_try='test -z "$ac_cxx_werror_flag"
    7148              || test ! -s conftest.err'
    7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7150   (eval $ac_try) 2>&5
    7151   ac_status=$?
    7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7153   (exit $ac_status); }; } &&
    7154      { ac_try='test -s conftest.$ac_objext'
    7155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7156   (eval $ac_try) 2>&5
    7157   ac_status=$?
    7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7159   (exit $ac_status); }; }; then
     6464if ac_fn_cxx_try_compile "$LINENO"; then :
    71606465  ac_cv_c_bigendian=yes
    71616466else
    7162   echo "$as_me: failed program was:" >&5
    7163 sed 's/^/| /' conftest.$ac_ext >&5
    7164 
    7165 ac_cv_c_bigendian=no
    7166 fi
    7167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7168 else
    7169   echo "$as_me: failed program was:" >&5
    7170 sed 's/^/| /' conftest.$ac_ext >&5
    7171 
    7172 # It does not; compile a test program.
    7173 if test "$cross_compiling" = yes; then
    7174   # try to guess the endianness by grepping values into an object file
    7175   ac_cv_c_bigendian=unknown
    7176   cat >conftest.$ac_ext <<_ACEOF
    7177 /* confdefs.h.  */
    7178 _ACEOF
    7179 cat confdefs.h >>conftest.$ac_ext
    7180 cat >>conftest.$ac_ext <<_ACEOF
     6467  ac_cv_c_bigendian=no
     6468fi
     6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6470fi
     6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6472    fi
     6473    if test $ac_cv_c_bigendian = unknown; then
     6474      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     6475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    71816476/* end confdefs.h.  */
    7182 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    7183 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    7184 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    7185 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    7186 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    7187 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     6477#include <limits.h>
     6478
    71886479int
    71896480main ()
    71906481{
    7191  _ascii (); _ebcdic ();
     6482#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     6483          bogus endian macros
     6484         #endif
     6485
    71926486  ;
    71936487  return 0;
    71946488}
    71956489_ACEOF
    7196 rm -f conftest.$ac_objext
    7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7198   (eval $ac_compile) 2>conftest.er1
    7199   ac_status=$?
    7200   grep -v '^ *+' conftest.er1 >conftest.err
    7201   rm -f conftest.er1
    7202   cat conftest.err >&5
    7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7204   (exit $ac_status); } &&
    7205      { ac_try='test -z "$ac_cxx_werror_flag"
    7206              || test ! -s conftest.err'
    7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7208   (eval $ac_try) 2>&5
    7209   ac_status=$?
    7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7211   (exit $ac_status); }; } &&
    7212      { ac_try='test -s conftest.$ac_objext'
    7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7214   (eval $ac_try) 2>&5
    7215   ac_status=$?
    7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7217   (exit $ac_status); }; }; then
    7218   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    7219   ac_cv_c_bigendian=yes
    7220 fi
    7221 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    7222   if test "$ac_cv_c_bigendian" = unknown; then
    7223     ac_cv_c_bigendian=no
    7224   else
    7225     # finding both strings is unlikely to happen, but who knows?
    7226     ac_cv_c_bigendian=unknown
    7227   fi
    7228 fi
    7229 else
    7230   echo "$as_me: failed program was:" >&5
    7231 sed 's/^/| /' conftest.$ac_ext >&5
    7232 
    7233 fi
    7234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7235 else
    7236   cat >conftest.$ac_ext <<_ACEOF
    7237 /* confdefs.h.  */
    7238 _ACEOF
    7239 cat confdefs.h >>conftest.$ac_ext
    7240 cat >>conftest.$ac_ext <<_ACEOF
     6490if ac_fn_cxx_try_compile "$LINENO"; then :
     6491  # It does; now see whether it defined to _BIG_ENDIAN or not.
     6492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    72416493/* end confdefs.h.  */
     6494#include <limits.h>
     6495
    72426496int
    72436497main ()
    72446498{
    7245   /* Are we little or big endian?  From Harbison&Steele.  */
    7246   union
    7247   {
    7248     long l;
    7249     char c[sizeof (long)];
    7250   } u;
    7251   u.l = 1;
    7252   exit (u.c[sizeof (long) - 1] == 1);
     6499#ifndef _BIG_ENDIAN
     6500         not big endian
     6501        #endif
     6502
     6503  ;
     6504  return 0;
    72536505}
    72546506_ACEOF
    7255 rm -f conftest$ac_exeext
    7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7257   (eval $ac_link) 2>&5
    7258   ac_status=$?
    7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7262   (eval $ac_try) 2>&5
    7263   ac_status=$?
    7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7265   (exit $ac_status); }; }; then
     6507if ac_fn_cxx_try_compile "$LINENO"; then :
     6508  ac_cv_c_bigendian=yes
     6509else
    72666510  ac_cv_c_bigendian=no
    7267 else
    7268   echo "$as_me: program exited with status $ac_status" >&5
    7269 echo "$as_me: failed program was:" >&5
    7270 sed 's/^/| /' conftest.$ac_ext >&5
    7271 
    7272 ( exit $ac_status )
    7273 ac_cv_c_bigendian=yes
    7274 fi
    7275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7276 fi
    7277 fi
    7278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7279 fi
    7280 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    7281 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    7282 case $ac_cv_c_bigendian in
    7283   yes)
    7284 
    7285 cat >>confdefs.h <<\_ACEOF
    7286 #define WORDS_BIGENDIAN 1
    7287 _ACEOF
    7288  ;;
    7289   no)
    7290      ;;
    7291   *)
    7292     { { echo "$as_me:$LINENO: error: unknown endianness
    7293 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    7294 echo "$as_me: error: unknown endianness
    7295 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    7296    { (exit 1); exit 1; }; } ;;
    7297 esac
     6511fi
     6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6513fi
     6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6515    fi
     6516    if test $ac_cv_c_bigendian = unknown; then
     6517      # Compile a test program.
     6518      if test "$cross_compiling" = yes; then :
     6519  # Try to guess by grepping values from an object file.
     6520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6521/* end confdefs.h.  */
     6522short int ascii_mm[] =
     6523          { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     6524        short int ascii_ii[] =
     6525          { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     6526        int use_ascii (int i) {
     6527          return ascii_mm[i] + ascii_ii[i];
     6528        }
     6529        short int ebcdic_ii[] =
     6530          { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     6531        short int ebcdic_mm[] =
     6532          { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     6533        int use_ebcdic (int i) {
     6534          return ebcdic_mm[i] + ebcdic_ii[i];
     6535        }
     6536        extern int foo;
     6537
     6538int
     6539main ()
     6540{
     6541return use_ascii (foo) == use_ebcdic (foo);
     6542  ;
     6543  return 0;
     6544}
     6545_ACEOF
     6546if ac_fn_cxx_try_compile "$LINENO"; then :
     6547  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     6548          ac_cv_c_bigendian=yes
     6549        fi
     6550        if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     6551          if test "$ac_cv_c_bigendian" = unknown; then
     6552        ac_cv_c_bigendian=no
     6553          else
     6554        # finding both strings is unlikely to happen, but who knows?
     6555        ac_cv_c_bigendian=unknown
     6556          fi
     6557        fi
     6558fi
     6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6560else
     6561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6562/* end confdefs.h.  */
     6563$ac_includes_default
     6564int
     6565main ()
     6566{
     6567
     6568         /* Are we little or big endian?  From Harbison&Steele.  */
     6569         union
     6570         {
     6571           long int l;
     6572           char c[sizeof (long int)];
     6573         } u;
     6574         u.l = 1;
     6575         return u.c[sizeof (long int) - 1] == 1;
     6576
     6577  ;
     6578  return 0;
     6579}
     6580_ACEOF
     6581if ac_fn_cxx_try_run "$LINENO"; then :
     6582  ac_cv_c_bigendian=no
     6583else
     6584  ac_cv_c_bigendian=yes
     6585fi
     6586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6587  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6588fi
     6589
     6590    fi
     6591fi
     6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     6593$as_echo "$ac_cv_c_bigendian" >&6; }
     6594 case $ac_cv_c_bigendian in #(
     6595   yes)
     6596     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     6597;; #(
     6598   no)
     6599      ;; #(
     6600   universal)
     6601
     6602$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     6603
     6604     ;; #(
     6605   *)
     6606     as_fn_error $? "unknown endianness
     6607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6608 esac
    72986609
    72996610# ---------------------------------------------------------------------------
    73006611if test "$ac_cv_func_alloca" = 'no'; then
    7301   case $LIBOBJS in
    7302     "xmalloc.o.$ac_objext"   | \
    7303   *" xmalloc.o.$ac_objext"   | \
    7304     "xmalloc.o.$ac_objext "* | \
     6612  case " $LIBOBJS " in
    73056613  *" xmalloc.o.$ac_objext "* ) ;;
    7306   *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
     6614  *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
     6615 ;;
    73076616esac
    73086617
    7309   case $LIBOBJS in
    7310     "error.$ac_objext"   | \
    7311   *" error.$ac_objext"   | \
    7312     "error.$ac_objext "* | \
     6618  case " $LIBOBJS " in
    73136619  *" error.$ac_objext "* ) ;;
    7314   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     6620  *) LIBOBJS="$LIBOBJS error.$ac_objext"
     6621 ;;
    73156622esac
    73166623
     
    73486655         src/recpt/Makefile \
    73496656         src/oaiservr/Makefile \
    7350          src/z3950/Makefile"
    7351 
    7352                                         ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6657         src/z3950/Makefile \
     6658     src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
     6659     src/java/org/nzdl/gsdl/Phind/Makefile"
     6660
     6661ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
     6662
    73536663cat >confcache <<\_ACEOF
    73546664# This file is a shell script that caches the results of configure
     
    73696679# The following way of writing the cache mishandles newlines in values,
    73706680# but we know of no workaround that is simple, portable, and efficient.
    7371 # So, don't put newlines in cache variables' values.
     6681# So, we kill variables containing newlines.
    73726682# Ultrix sh set writes to stderr and can't be redirected directly,
    73736683# and sets the high bit in the cache file unless we assign to the vars.
    7374 {
     6684(
     6685  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     6686    eval ac_val=\$$ac_var
     6687    case $ac_val in #(
     6688    *${as_nl}*)
     6689      case $ac_var in #(
     6690      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     6691$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     6692      esac
     6693      case $ac_var in #(
     6694      _ | IFS | as_nl) ;; #(
     6695      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     6696      *) { eval $ac_var=; unset $ac_var;} ;;
     6697      esac ;;
     6698    esac
     6699  done
     6700
    73756701  (set) 2>&1 |
    7376     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    7377     *ac_space=\ *)
    7378       # `set' does not quote correctly, so add quotes (double-quote
    7379       # substitution turns \\\\ into \\, and sed turns \\ into \).
     6702    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     6703    *${as_nl}ac_space=\ *)
     6704      # `set' does not quote correctly, so add quotes: double-quote
     6705      # substitution turns \\\\ into \\, and sed turns \\ into \.
    73806706      sed -n \
    73816707    "s/'/'\\\\''/g;
    73826708      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    7383       ;;
     6709      ;; #(
    73846710    *)
    73856711      # `set' quotes correctly as required by POSIX, so do not add quotes.
    7386       sed -n \
    7387     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6712      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    73886713      ;;
    7389     esac;
    7390 } |
     6714    esac |
     6715    sort
     6716) |
    73916717  sed '
     6718     /^ac_cv_env_/b end
    73926719     t clear
    7393      : clear
     6720     :clear
    73946721     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    73956722     t end
    7396      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    7397      : end' >>confcache
    7398 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    7399   if test -w $cache_file; then
    7400     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6723     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6724     :end' >>confcache
     6725if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     6726  if test -w "$cache_file"; then
     6727    test "x$cache_file" != "x/dev/null" &&
     6728      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     6729$as_echo "$as_me: updating cache $cache_file" >&6;}
    74016730    cat confcache >$cache_file
    74026731  else
    7403     echo "not updating unwritable cache $cache_file"
     6732    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     6733$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    74046734  fi
    74056735fi
     
    74106740test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    74116741
    7412 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    7413 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    7414 # trailing colons and then remove the whole line if VPATH becomes empty
    7415 # (actually we leave an empty line to preserve line numbers).
    7416 if test "x$srcdir" = x.; then
    7417   ac_vpsub='/^[  ]*VPATH[    ]*=/{
    7418 s/:*\$(srcdir):*/:/;
    7419 s/:*\${srcdir}:*/:/;
    7420 s/:*@srcdir@:*/:/;
    7421 s/^\([^=]*=[     ]*\):*/\1/;
    7422 s/:*$//;
    7423 s/^[^=]*=[   ]*$//;
    7424 }'
    7425 fi
    7426 
    74276742DEFS=-DHAVE_CONFIG_H
    74286743
    74296744ac_libobjs=
    74306745ac_ltlibobjs=
     6746U=
    74316747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    74326748  # 1. Remove the extension, and $U if already installed.
    7433   ac_i=`echo "$ac_i" |
    7434      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    7435   # 2. Add them.
    7436   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    7437   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6749  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     6750  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     6751  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     6752  #    will be set to the directory where LIBOBJS objects are built.
     6753  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     6754  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    74386755done
    74396756LIBOBJS=$ac_libobjs
     
    74436760
    74446761
     6762
    74456763: ${CONFIG_STATUS=./config.status}
     6764ac_write_fail=0
    74466765ac_clean_files_save=$ac_clean_files
    74476766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    7448 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    7449 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    7450 cat >$CONFIG_STATUS <<_ACEOF
     6767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     6768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6769as_write_fail=0
     6770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    74516771#! $SHELL
    74526772# Generated by $as_me.
     
    74586778ac_cs_recheck=false
    74596779ac_cs_silent=false
     6780
    74606781SHELL=\${CONFIG_SHELL-$SHELL}
    7461 _ACEOF
    7462 
    7463 cat >>$CONFIG_STATUS <<\_ACEOF
    7464 ## --------------------- ##
    7465 ## M4sh Initialization.  ##
    7466 ## --------------------- ##
    7467 
    7468 # Be Bourne compatible
    7469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6782export SHELL
     6783_ASEOF
     6784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     6785## -------------------- ##
     6786## M4sh Initialization. ##
     6787## -------------------- ##
     6788
     6789# Be more Bourne compatible
     6790DUALCASE=1; export DUALCASE # for MKS sh
     6791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    74706792  emulate sh
    74716793  NULLCMD=:
    7472   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6794  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    74736795  # is contrary to our usage.  Disable this feature.
    74746796  alias -g '${1+"$@"}'='"$@"'
    7475 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    7476   set -o posix
    7477 fi
    7478 DUALCASE=1; export DUALCASE # for MKS sh
    7479 
    7480 # Support unset when possible.
    7481 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    7482   as_unset=unset
    7483 else
    7484   as_unset=false
    7485 fi
    7486 
    7487 
    7488 # Work around bugs in pre-3.0 UWIN ksh.
    7489 $as_unset ENV MAIL MAILPATH
     6797  setopt NO_GLOB_SUBST
     6798else
     6799  case `(set -o) 2>/dev/null` in #(
     6800  *posix*) :
     6801    set -o posix ;; #(
     6802  *) :
     6803     ;;
     6804esac
     6805fi
     6806
     6807
     6808as_nl='
     6809'
     6810export as_nl
     6811# Printing a long string crashes Solaris 7 /usr/bin/printf.
     6812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     6813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     6814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     6815# Prefer a ksh shell builtin over an external printf program on Solaris,
     6816# but without wasting forks for bash or zsh.
     6817if test -z "$BASH_VERSION$ZSH_VERSION" \
     6818    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     6819  as_echo='print -r --'
     6820  as_echo_n='print -rn --'
     6821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     6822  as_echo='printf %s\n'
     6823  as_echo_n='printf %s'
     6824else
     6825  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     6826    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     6827    as_echo_n='/usr/ucb/echo -n'
     6828  else
     6829    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     6830    as_echo_n_body='eval
     6831      arg=$1;
     6832      case $arg in #(
     6833      *"$as_nl"*)
     6834    expr "X$arg" : "X\\(.*\\)$as_nl";
     6835    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     6836      esac;
     6837      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     6838    '
     6839    export as_echo_n_body
     6840    as_echo_n='sh -c $as_echo_n_body as_echo'
     6841  fi
     6842  export as_echo_body
     6843  as_echo='sh -c $as_echo_body as_echo'
     6844fi
     6845
     6846# The user is always right.
     6847if test "${PATH_SEPARATOR+set}" != set; then
     6848  PATH_SEPARATOR=:
     6849  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     6850    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     6851      PATH_SEPARATOR=';'
     6852  }
     6853fi
     6854
     6855
     6856# IFS
     6857# We need space, tab and new line, in precisely that order.  Quoting is
     6858# there to prevent editors from complaining about space-tab.
     6859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     6860# splitting by setting IFS to empty value.)
     6861IFS=" ""    $as_nl"
     6862
     6863# Find who we are.  Look in the path if we contain no directory separator.
     6864case $0 in #((
     6865  *[\\/]* ) as_myself=$0 ;;
     6866  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6867for as_dir in $PATH
     6868do
     6869  IFS=$as_save_IFS
     6870  test -z "$as_dir" && as_dir=.
     6871    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6872  done
     6873IFS=$as_save_IFS
     6874
     6875     ;;
     6876esac
     6877# We did not find ourselves, most probably we were run as `sh COMMAND'
     6878# in which case we are not to be found in the path.
     6879if test "x$as_myself" = x; then
     6880  as_myself=$0
     6881fi
     6882if test ! -f "$as_myself"; then
     6883  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     6884  exit 1
     6885fi
     6886
     6887# Unset variables that we do not need and which cause bugs (e.g. in
     6888# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     6889# suppresses any "Segmentation fault" message there.  '((' could
     6890# trigger a bug in pdksh 5.2.14.
     6891for as_var in BASH_ENV ENV MAIL MAILPATH
     6892do eval test x\${$as_var+set} = xset \
     6893  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     6894done
    74906895PS1='$ '
    74916896PS2='> '
     
    74936898
    74946899# NLS nuisances.
    7495 for as_var in \
    7496   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    7497   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    7498   LC_TELEPHONE LC_TIME
    7499 do
    7500   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    7501     eval $as_var=C; export $as_var
    7502   else
    7503     $as_unset $as_var
     6900LC_ALL=C
     6901export LC_ALL
     6902LANGUAGE=C
     6903export LANGUAGE
     6904
     6905# CDPATH.
     6906(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     6907
     6908
     6909# as_fn_error STATUS ERROR [LINENO LOG_FD]
     6910# ----------------------------------------
     6911# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     6912# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     6913# script with STATUS, using 1 if that was 0.
     6914as_fn_error ()
     6915{
     6916  as_status=$1; test $as_status -eq 0 && as_status=1
     6917  if test "$4"; then
     6918    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6919    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    75046920  fi
    7505 done
    7506 
    7507 # Required to use basename.
    7508 if expr a : '\(a\)' >/dev/null 2>&1; then
     6921  $as_echo "$as_me: error: $2" >&2
     6922  as_fn_exit $as_status
     6923} # as_fn_error
     6924
     6925
     6926# as_fn_set_status STATUS
     6927# -----------------------
     6928# Set $? to STATUS, without forking.
     6929as_fn_set_status ()
     6930{
     6931  return $1
     6932} # as_fn_set_status
     6933
     6934# as_fn_exit STATUS
     6935# -----------------
     6936# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     6937as_fn_exit ()
     6938{
     6939  set +e
     6940  as_fn_set_status $1
     6941  exit $1
     6942} # as_fn_exit
     6943
     6944# as_fn_unset VAR
     6945# ---------------
     6946# Portably unset VAR.
     6947as_fn_unset ()
     6948{
     6949  { eval $1=; unset $1;}
     6950}
     6951as_unset=as_fn_unset
     6952# as_fn_append VAR VALUE
     6953# ----------------------
     6954# Append the text in VALUE to the end of the definition contained in VAR. Take
     6955# advantage of any shell optimizations that allow amortized linear growth over
     6956# repeated appends, instead of the typical quadratic growth present in naive
     6957# implementations.
     6958if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     6959  eval 'as_fn_append ()
     6960  {
     6961    eval $1+=\$2
     6962  }'
     6963else
     6964  as_fn_append ()
     6965  {
     6966    eval $1=\$$1\$2
     6967  }
     6968fi # as_fn_append
     6969
     6970# as_fn_arith ARG...
     6971# ------------------
     6972# Perform arithmetic evaluation on the ARGs, and store the result in the
     6973# global $as_val. Take advantage of shells that can avoid forks. The arguments
     6974# must be portable across $(()) and expr.
     6975if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     6976  eval 'as_fn_arith ()
     6977  {
     6978    as_val=$(( $* ))
     6979  }'
     6980else
     6981  as_fn_arith ()
     6982  {
     6983    as_val=`expr "$@" || test $? -eq 1`
     6984  }
     6985fi # as_fn_arith
     6986
     6987
     6988if expr a : '\(a\)' >/dev/null 2>&1 &&
     6989   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    75096990  as_expr=expr
    75106991else
     
    75126993fi
    75136994
    7514 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    75156996  as_basename=basename
    75166997else
     
    75186999fi
    75197000
    7520 
    7521 # Name of the executable.
    7522 as_me=`$as_basename "$0" ||
     7001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     7002  as_dirname=dirname
     7003else
     7004  as_dirname=false
     7005fi
     7006
     7007as_me=`$as_basename -- "$0" ||
    75237008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    75247009     X"$0" : 'X\(//\)$' \| \
    7525      X"$0" : 'X\(/\)$' \| \
    7526      .     : '\(.\)' 2>/dev/null ||
    7527 echo X/"$0" |
    7528     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    7529       /^X\/\(\/\/\)$/{ s//\1/; q; }
    7530       /^X\/\(\/\).*/{ s//\1/; q; }
    7531       s/.*/./; q'`
    7532 
    7533 
    7534 # PATH needs CR, and LINENO needs CR and PATH.
     7010     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     7011$as_echo X/"$0" |
     7012    sed '/^.*\/\([^/][^/]*\)\/*$/{
     7013        s//\1/
     7014        q
     7015      }
     7016      /^X\/\(\/\/\)$/{
     7017        s//\1/
     7018        q
     7019      }
     7020      /^X\/\(\/\).*/{
     7021        s//\1/
     7022        q
     7023      }
     7024      s/.*/./; q'`
     7025
    75357026# Avoid depending upon Character Ranges.
    75367027as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    75407031as_cr_alnum=$as_cr_Letters$as_cr_digits
    75417032
    7542 # The user is always right.
    7543 if test "${PATH_SEPARATOR+set}" != set; then
    7544   echo "#! /bin/sh" >conf$$.sh
    7545   echo  "exit 0"   >>conf$$.sh
    7546   chmod +x conf$$.sh
    7547   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    7548     PATH_SEPARATOR=';'
     7033ECHO_C= ECHO_N= ECHO_T=
     7034case `echo -n x` in #(((((
     7035-n*)
     7036  case `echo 'xy\c'` in
     7037  *c*) ECHO_T=' ';; # ECHO_T is single tab character.
     7038  xy)  ECHO_C='\c';;
     7039  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     7040       ECHO_T=' ';;
     7041  esac;;
     7042*)
     7043  ECHO_N='-n';;
     7044esac
     7045
     7046rm -f conf$$ conf$$.exe conf$$.file
     7047if test -d conf$$.dir; then
     7048  rm -f conf$$.dir/conf$$.file
     7049else
     7050  rm -f conf$$.dir
     7051  mkdir conf$$.dir 2>/dev/null
     7052fi
     7053if (echo >conf$$.file) 2>/dev/null; then
     7054  if ln -s conf$$.file conf$$ 2>/dev/null; then
     7055    as_ln_s='ln -s'
     7056    # ... but there are two gotchas:
     7057    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     7058    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     7059    # In both cases, we have to default to `cp -p'.
     7060    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     7061      as_ln_s='cp -p'
     7062  elif ln conf$$.file conf$$ 2>/dev/null; then
     7063    as_ln_s=ln
    75497064  else
    7550     PATH_SEPARATOR=:
     7065    as_ln_s='cp -p'
    75517066  fi
    7552   rm -f conf$$.sh
    7553 fi
    7554 
    7555 
    7556   as_lineno_1=$LINENO
    7557   as_lineno_2=$LINENO
    7558   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7559   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7560   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    7561   # Find who we are.  Look in the path if we contain no path at all
    7562   # relative or not.
    7563   case $0 in
    7564     *[\\/]* ) as_myself=$0 ;;
    7565     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7566 for as_dir in $PATH
    7567 do
    7568   IFS=$as_save_IFS
    7569   test -z "$as_dir" && as_dir=.
    7570   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    7571 done
    7572 
    7573        ;;
     7067else
     7068  as_ln_s='cp -p'
     7069fi
     7070rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     7071rmdir conf$$.dir 2>/dev/null
     7072
     7073
     7074# as_fn_mkdir_p
     7075# -------------
     7076# Create "$as_dir" as a directory, including parents if necessary.
     7077as_fn_mkdir_p ()
     7078{
     7079
     7080  case $as_dir in #(
     7081  -*) as_dir=./$as_dir;;
    75747082  esac
    7575   # We did not find ourselves, most probably we were run as `sh COMMAND'
    7576   # in which case we are not to be found in the path.
    7577   if test "x$as_myself" = x; then
    7578     as_myself=$0
    7579   fi
    7580   if test ! -f "$as_myself"; then
    7581     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    7582 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    7583    { (exit 1); exit 1; }; }
    7584   fi
    7585   case $CONFIG_SHELL in
    7586   '')
    7587     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7588 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    7589 do
    7590   IFS=$as_save_IFS
    7591   test -z "$as_dir" && as_dir=.
    7592   for as_base in sh bash ksh sh5; do
    7593      case $as_dir in
    7594      /*)
    7595        if ("$as_dir/$as_base" -c '
    7596   as_lineno_1=$LINENO
    7597   as_lineno_2=$LINENO
    7598   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    7599   test "x$as_lineno_1" != "x$as_lineno_2" &&
    7600   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    7601          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    7602          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    7603          CONFIG_SHELL=$as_dir/$as_base
    7604          export CONFIG_SHELL
    7605          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    7606        fi;;
    7607      esac
    7608        done
    7609 done
    7610 ;;
    7611   esac
    7612 
    7613   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    7614   # uniformly replaced by the line number.  The first 'sed' inserts a
    7615   # line-number line before each line; the second 'sed' does the real
    7616   # work.  The second script uses 'N' to pair each line-number line
    7617   # with the numbered line, and appends trailing '-' during
    7618   # substitution so that $LINENO is not a special case at line end.
    7619   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    7620   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    7621   sed '=' <$as_myself |
    7622     sed '
    7623       N
    7624       s,$,-,
    7625       : loop
    7626       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    7627       t loop
    7628       s,-$,,
    7629       s,^['$as_cr_digits']*\n,,
    7630     ' >$as_me.lineno &&
    7631   chmod +x $as_me.lineno ||
    7632     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    7633 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    7634    { (exit 1); exit 1; }; }
    7635 
    7636   # Don't try to exec as it changes $[0], causing all sort of problems
    7637   # (the dirname of $[0] is not the place where we might find the
    7638   # original and so on.  Autoconf is especially sensible to this).
    7639   . ./$as_me.lineno
    7640   # Exit status is that of the last command.
    7641   exit
    7642 }
    7643 
    7644 
    7645 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    7646   *c*,-n*) ECHO_N= ECHO_C='
    7647 ' ECHO_T='  ' ;;
    7648   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    7649   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    7650 esac
    7651 
    7652 if expr a : '\(a\)' >/dev/null 2>&1; then
    7653   as_expr=expr
    7654 else
    7655   as_expr=false
    7656 fi
    7657 
    7658 rm -f conf$$ conf$$.exe conf$$.file
    7659 echo >conf$$.file
    7660 if ln -s conf$$.file conf$$ 2>/dev/null; then
    7661   # We could just check for DJGPP; but this test a) works b) is more generic
    7662   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    7663   if test -f conf$$.exe; then
    7664     # Don't use ln at all; we don't have any links
    7665     as_ln_s='cp -p'
    7666   else
    7667     as_ln_s='ln -s'
    7668   fi
    7669 elif ln conf$$.file conf$$ 2>/dev/null; then
    7670   as_ln_s=ln
    7671 else
    7672   as_ln_s='cp -p'
    7673 fi
    7674 rm -f conf$$ conf$$.exe conf$$.file
    7675 
     7083  test -d "$as_dir" || eval $as_mkdir_p || {
     7084    as_dirs=
     7085    while :; do
     7086      case $as_dir in #(
     7087      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     7088      *) as_qdir=$as_dir;;
     7089      esac
     7090      as_dirs="'$as_qdir' $as_dirs"
     7091      as_dir=`$as_dirname -- "$as_dir" ||
     7092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7093     X"$as_dir" : 'X\(//\)[^/]' \| \
     7094     X"$as_dir" : 'X\(//\)$' \| \
     7095     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     7096$as_echo X"$as_dir" |
     7097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7098        s//\1/
     7099        q
     7100      }
     7101      /^X\(\/\/\)[^/].*/{
     7102        s//\1/
     7103        q
     7104      }
     7105      /^X\(\/\/\)$/{
     7106        s//\1/
     7107        q
     7108      }
     7109      /^X\(\/\).*/{
     7110        s//\1/
     7111        q
     7112      }
     7113      s/.*/./; q'`
     7114      test -d "$as_dir" && break
     7115    done
     7116    test -z "$as_dirs" || eval "mkdir $as_dirs"
     7117  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7118
     7119
     7120} # as_fn_mkdir_p
    76767121if mkdir -p . 2>/dev/null; then
    7677   as_mkdir_p=:
     7122  as_mkdir_p='mkdir -p "$as_dir"'
    76787123else
    76797124  test -d ./-p && rmdir ./-p
     
    76817126fi
    76827127
    7683 as_executable_p="test -f"
     7128if test -x / >/dev/null 2>&1; then
     7129  as_test_x='test -x'
     7130else
     7131  if ls -dL / >/dev/null 2>&1; then
     7132    as_ls_L_option=L
     7133  else
     7134    as_ls_L_option=
     7135  fi
     7136  as_test_x='
     7137    eval sh -c '\''
     7138      if test -d "$1"; then
     7139    test -d "$1/.";
     7140      else
     7141    case $1 in #(
     7142    -*)set "./$1";;
     7143    esac;
     7144    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
     7145    ???[sx]*):;;*)false;;esac;fi
     7146    '\'' sh
     7147  '
     7148fi
     7149as_executable_p=$as_test_x
    76847150
    76857151# Sed expression to map a string onto a valid CPP name.
     
    76907156
    76917157
    7692 # IFS
    7693 # We need space, tab and new line, in precisely that order.
    7694 as_nl='
    7695 '
    7696 IFS="   $as_nl"
    7697 
    7698 # CDPATH.
    7699 $as_unset CDPATH
    7700 
    77017158exec 6>&1
    7702 
    7703 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     7159## ----------------------------------- ##
     7160## Main body of $CONFIG_STATUS script. ##
     7161## ----------------------------------- ##
     7162_ASEOF
     7163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     7164
     7165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7166# Save the log message, to keep $0 and so on meaningful, and to
    77047167# report actual input values of CONFIG_FILES etc. instead of their
    7705 # values after options handling.  Logging --version etc. is OK.
     7168# values after options handling.
     7169ac_log="
     7170This file was extended by $as_me, which was
     7171generated by GNU Autoconf 2.67.  Invocation command line was
     7172
     7173  CONFIG_FILES    = $CONFIG_FILES
     7174  CONFIG_HEADERS  = $CONFIG_HEADERS
     7175  CONFIG_LINKS    = $CONFIG_LINKS
     7176  CONFIG_COMMANDS = $CONFIG_COMMANDS
     7177  $ $0 $@
     7178
     7179on `(hostname || uname -n) 2>/dev/null | sed 1q`
     7180"
     7181
     7182_ACEOF
     7183
     7184case $ac_config_files in *"
     7185"*) set x $ac_config_files; shift; ac_config_files=$*;;
     7186esac
     7187
     7188case $ac_config_headers in *"
     7189"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     7190esac
     7191
     7192
     7193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7194# Files that config.status was made for.
     7195config_files="$ac_config_files"
     7196config_headers="$ac_config_headers"
     7197
     7198_ACEOF
     7199
     7200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7201ac_cs_usage="\
     7202\`$as_me' instantiates files and other configuration actions
     7203from templates according to the current configuration.  Unless the files
     7204and actions are specified as TAGs, all are instantiated by default.
     7205
     7206Usage: $0 [OPTION]... [TAG]...
     7207
     7208  -h, --help       print this help, then exit
     7209  -V, --version    print version number and configuration settings, then exit
     7210      --config     print configuration, then exit
     7211  -q, --quiet, --silent
     7212                   do not print progress messages
     7213  -d, --debug      don't remove temporary files
     7214      --recheck    update $as_me by reconfiguring in the same conditions
     7215      --file=FILE[:TEMPLATE]
     7216                   instantiate the configuration file FILE
     7217      --header=FILE[:TEMPLATE]
     7218                   instantiate the configuration header FILE
     7219
     7220Configuration files:
     7221$config_files
     7222
     7223Configuration headers:
     7224$config_headers
     7225
     7226Report bugs to the package provider."
     7227
     7228_ACEOF
     7229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7230ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     7231ac_cs_version="\\
     7232config.status
     7233configured by $0, generated by GNU Autoconf 2.67,
     7234  with options \\"\$ac_cs_config\\"
     7235
     7236Copyright (C) 2010 Free Software Foundation, Inc.
     7237This config.status script is free software; the Free Software Foundation
     7238gives unlimited permission to copy, distribute and modify it."
     7239
     7240ac_pwd='$ac_pwd'
     7241srcdir='$srcdir'
     7242INSTALL='$INSTALL'
     7243AWK='$AWK'
     7244test -n "\$AWK" || AWK=awk
     7245_ACEOF
     7246
     7247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7248# The default lists apply if the user does not specify any file.
     7249ac_need_defaults=:
     7250while test $# != 0
     7251do
     7252  case $1 in
     7253  --*=?*)
     7254    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7255    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     7256    ac_shift=:
     7257    ;;
     7258  --*=)
     7259    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     7260    ac_optarg=
     7261    ac_shift=:
     7262    ;;
     7263  *)
     7264    ac_option=$1
     7265    ac_optarg=$2
     7266    ac_shift=shift
     7267    ;;
     7268  esac
     7269
     7270  case $ac_option in
     7271  # Handling of the options.
     7272  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     7273    ac_cs_recheck=: ;;
     7274  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     7275    $as_echo "$ac_cs_version"; exit ;;
     7276  --config | --confi | --conf | --con | --co | --c )
     7277    $as_echo "$ac_cs_config"; exit ;;
     7278  --debug | --debu | --deb | --de | --d | -d )
     7279    debug=: ;;
     7280  --file | --fil | --fi | --f )
     7281    $ac_shift
     7282    case $ac_optarg in
     7283    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7284    '') as_fn_error $? "missing file argument" ;;
     7285    esac
     7286    as_fn_append CONFIG_FILES " '$ac_optarg'"
     7287    ac_need_defaults=false;;
     7288  --header | --heade | --head | --hea )
     7289    $ac_shift
     7290    case $ac_optarg in
     7291    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7292    esac
     7293    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     7294    ac_need_defaults=false;;
     7295  --he | --h)
     7296    # Conflict between --help and --header
     7297    as_fn_error $? "ambiguous option: \`$1'
     7298Try \`$0 --help' for more information.";;
     7299  --help | --hel | -h )
     7300    $as_echo "$ac_cs_usage"; exit ;;
     7301  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     7302  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     7303    ac_cs_silent=: ;;
     7304
     7305  # This is an error.
     7306  -*) as_fn_error $? "unrecognized option: \`$1'
     7307Try \`$0 --help' for more information." ;;
     7308
     7309  *) as_fn_append ac_config_targets " $1"
     7310     ac_need_defaults=false ;;
     7311
     7312  esac
     7313  shift
     7314done
     7315
     7316ac_configure_extra_args=
     7317
     7318if $ac_cs_silent; then
     7319  exec 6>/dev/null
     7320  ac_configure_extra_args="$ac_configure_extra_args --silent"
     7321fi
     7322
     7323_ACEOF
     7324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7325if \$ac_cs_recheck; then
     7326  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     7327  shift
     7328  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     7329  CONFIG_SHELL='$SHELL'
     7330  export CONFIG_SHELL
     7331  exec "\$@"
     7332fi
     7333
     7334_ACEOF
     7335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    77067336exec 5>>config.log
    77077337{
     
    77107340## Running $as_me. ##
    77117341_ASBOX
     7342  $as_echo "$ac_log"
    77127343} >&5
    7713 cat >&5 <<_CSEOF
    7714 
    7715 This file was extended by $as_me, which was
    7716 generated by GNU Autoconf 2.59.  Invocation command line was
    7717 
    7718   CONFIG_FILES    = $CONFIG_FILES
    7719   CONFIG_HEADERS  = $CONFIG_HEADERS
    7720   CONFIG_LINKS    = $CONFIG_LINKS
    7721   CONFIG_COMMANDS = $CONFIG_COMMANDS
    7722   $ $0 $@
    7723 
    7724 _CSEOF
    7725 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    7726 echo >&5
    7727 _ACEOF
    7728 
    7729 # Files that config.status was made for.
    7730 if test -n "$ac_config_files"; then
    7731   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    7732 fi
    7733 
    7734 if test -n "$ac_config_headers"; then
    7735   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    7736 fi
    7737 
    7738 if test -n "$ac_config_links"; then
    7739   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    7740 fi
    7741 
    7742 if test -n "$ac_config_commands"; then
    7743   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    7744 fi
    7745 
    7746 cat >>$CONFIG_STATUS <<\_ACEOF
    7747 
    7748 ac_cs_usage="\
    7749 \`$as_me' instantiates files from templates according to the
    7750 current configuration.
    7751 
    7752 Usage: $0 [OPTIONS] [FILE]...
    7753 
    7754   -h, --help       print this help, then exit
    7755   -V, --version    print version number, then exit
    7756   -q, --quiet      do not print progress messages
    7757   -d, --debug      don't remove temporary files
    7758       --recheck    update $as_me by reconfiguring in the same conditions
    7759   --file=FILE[:TEMPLATE]
    7760            instantiate the configuration file FILE
    7761   --header=FILE[:TEMPLATE]
    7762            instantiate the configuration header FILE
    7763 
    7764 Configuration files:
    7765 $config_files
    7766 
    7767 Configuration headers:
    7768 $config_headers
    7769 
    7770 Report bugs to <[email protected]>."
    7771 _ACEOF
    7772 
    7773 cat >>$CONFIG_STATUS <<_ACEOF
    7774 ac_cs_version="\\
    7775 config.status
    7776 configured by $0, generated by GNU Autoconf 2.59,
    7777   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    7778 
    7779 Copyright (C) 2003 Free Software Foundation, Inc.
    7780 This config.status script is free software; the Free Software Foundation
    7781 gives unlimited permission to copy, distribute and modify it."
    7782 srcdir=$srcdir
    7783 INSTALL="$INSTALL"
    7784 _ACEOF
    7785 
    7786 cat >>$CONFIG_STATUS <<\_ACEOF
    7787 # If no file are specified by the user, then we need to provide default
    7788 # value.  By we need to know if files were specified by the user.
    7789 ac_need_defaults=:
    7790 while test $# != 0
    7791 do
    7792   case $1 in
    7793   --*=*)
    7794     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    7795     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    7796     ac_shift=:
    7797     ;;
    7798   -*)
    7799     ac_option=$1
    7800     ac_optarg=$2
    7801     ac_shift=shift
    7802     ;;
    7803   *) # This is not an option, so the user has probably given explicit
    7804      # arguments.
    7805      ac_option=$1
    7806      ac_need_defaults=false;;
    7807   esac
    7808 
    7809   case $ac_option in
    7810   # Handling of the options.
    7811 _ACEOF
    7812 cat >>$CONFIG_STATUS <<\_ACEOF
    7813   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    7814     ac_cs_recheck=: ;;
    7815   --version | --vers* | -V )
    7816     echo "$ac_cs_version"; exit 0 ;;
    7817   --he | --h)
    7818     # Conflict between --help and --header
    7819     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    7820 Try \`$0 --help' for more information." >&5
    7821 echo "$as_me: error: ambiguous option: $1
    7822 Try \`$0 --help' for more information." >&2;}
    7823    { (exit 1); exit 1; }; };;
    7824   --help | --hel | -h )
    7825     echo "$ac_cs_usage"; exit 0 ;;
    7826   --debug | --d* | -d )
    7827     debug=: ;;
    7828   --file | --fil | --fi | --f )
    7829     $ac_shift
    7830     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    7831     ac_need_defaults=false;;
    7832   --header | --heade | --head | --hea )
    7833     $ac_shift
    7834     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    7835     ac_need_defaults=false;;
    7836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    7837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    7838     ac_cs_silent=: ;;
    7839 
    7840   # This is an error.
    7841   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    7842 Try \`$0 --help' for more information." >&5
    7843 echo "$as_me: error: unrecognized option: $1
    7844 Try \`$0 --help' for more information." >&2;}
    7845    { (exit 1); exit 1; }; } ;;
    7846 
    7847   *) ac_config_targets="$ac_config_targets $1" ;;
    7848 
    7849   esac
    7850   shift
    7851 done
    7852 
    7853 ac_configure_extra_args=
    7854 
    7855 if $ac_cs_silent; then
    7856   exec 6>/dev/null
    7857   ac_configure_extra_args="$ac_configure_extra_args --silent"
    7858 fi
    7859 
    7860 _ACEOF
    7861 cat >>$CONFIG_STATUS <<_ACEOF
    7862 if \$ac_cs_recheck; then
    7863   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    7864   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    7865 fi
    7866 
    7867 _ACEOF
    7868 
    7869 
    7870 
    7871 
    7872 
    7873 cat >>$CONFIG_STATUS <<\_ACEOF
     7344
     7345_ACEOF
     7346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7347_ACEOF
     7348
     7349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7350
     7351# Handling of arguments.
    78747352for ac_config_target in $ac_config_targets
    78757353do
    7876   case "$ac_config_target" in
    7877   # Handling of arguments.
    7878   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    7879   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7880   "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
    7881   "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
    7882   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    7883   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    7884 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    7885    { (exit 1); exit 1; }; };;
     7354  case $ac_config_target in
     7355    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     7356    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     7357    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     7358    "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
     7359    "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
     7360
     7361  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
    78867362  esac
    78877363done
     7364
    78887365
    78897366# If the user did not use the arguments to specify the items to instantiate,
     
    78977374
    78987375# Have a temporary directory for convenience.  Make it in the build tree
    7899 # simply because there is no reason to put it here, and in addition,
     7376# simply because there is no reason against having it here, and in addition,
    79007377# creating and moving files from /tmp can sometimes cause problems.
    7901 # Create a temporary directory, and hook for its removal unless debugging.
     7378# Hook for its removal unless debugging.
     7379# Note that there is a small window in which the directory will not be cleaned:
     7380# after its creation but before its name has been assigned to `$tmp'.
    79027381$debug ||
    79037382{
    7904   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    7905   trap '{ (exit 1); exit 1; }' 1 2 13 15
     7383  tmp=
     7384  trap 'exit_status=$?
     7385  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     7386' 0
     7387  trap 'as_fn_exit 1' 1 2 13 15
    79067388}
    7907 
    79087389# Create a (secure) tmp directory for tmp files.
    79097390
    79107391{
    7911   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     7392  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    79127393  test -n "$tmp" && test -d "$tmp"
    79137394}  ||
    79147395{
    7915   tmp=./confstat$$-$RANDOM
    7916   (umask 077 && mkdir $tmp)
    7917 } ||
     7396  tmp=./conf$$-$RANDOM
     7397  (umask 077 && mkdir "$tmp")
     7398} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7399
     7400# Set up the scripts for CONFIG_FILES section.
     7401# No need to generate them if there are no CONFIG_FILES.
     7402# This happens for instance with `./config.status config.h'.
     7403if test -n "$CONFIG_FILES"; then
     7404
     7405
     7406ac_cr=`echo X | tr X '\015'`
     7407# On cygwin, bash can eat \r inside `` if the user requested igncr.
     7408# But we know of no other shell where ac_cr would be empty at this
     7409# point, so we can use a bashism as a fallback.
     7410if test "x$ac_cr" = x; then
     7411  eval ac_cr=\$\'\\r\'
     7412fi
     7413ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     7414if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     7415  ac_cs_awk_cr='\\r'
     7416else
     7417  ac_cs_awk_cr=$ac_cr
     7418fi
     7419
     7420echo 'BEGIN {' >"$tmp/subs1.awk" &&
     7421_ACEOF
     7422
     7423
    79187424{
    7919    echo "$me: cannot create a temporary directory in ." >&2
    7920    { (exit 1); exit 1; }
     7425  echo "cat >conf$$subs.awk <<_ACEOF" &&
     7426  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     7427  echo "_ACEOF"
     7428} >conf$$subs.sh ||
     7429  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7430ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7431ac_delim='%!_!# '
     7432for ac_last_try in false false false false false :; do
     7433  . ./conf$$subs.sh ||
     7434    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7435
     7436  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     7437  if test $ac_delim_n = $ac_delim_num; then
     7438    break
     7439  elif $ac_last_try; then
     7440    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7441  else
     7442    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7443  fi
     7444done
     7445rm -f conf$$subs.sh
     7446
     7447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7448cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     7449_ACEOF
     7450sed -n '
     7451h
     7452s/^/S["/; s/!.*/"]=/
     7453p
     7454g
     7455s/^[^!]*!//
     7456:repl
     7457t repl
     7458s/'"$ac_delim"'$//
     7459t delim
     7460:nl
     7461h
     7462s/\(.\{148\}\)..*/\1/
     7463t more1
     7464s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     7465p
     7466n
     7467b repl
     7468:more1
     7469s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7470p
     7471g
     7472s/.\{148\}//
     7473t nl
     7474:delim
     7475h
     7476s/\(.\{148\}\)..*/\1/
     7477t more2
     7478s/["\\]/\\&/g; s/^/"/; s/$/"/
     7479p
     7480b
     7481:more2
     7482s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     7483p
     7484g
     7485s/.\{148\}//
     7486t delim
     7487' <conf$$subs.awk | sed '
     7488/^[^""]/{
     7489  N
     7490  s/\n//
    79217491}
    7922 
    7923 _ACEOF
    7924 
    7925 cat >>$CONFIG_STATUS <<_ACEOF
    7926 
    7927 #
    7928 # CONFIG_FILES section.
    7929 #
    7930 
    7931 # No need to generate the scripts if there are no CONFIG_FILES.
    7932 # This happens for instance when ./config.status config.h
    7933 if test -n "\$CONFIG_FILES"; then
    7934   # Protect against being on the right side of a sed subst in config.status.
    7935   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    7936    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    7937 s,@SHELL@,$SHELL,;t t
    7938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    7939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    7940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    7941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    7942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    7943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    7944 s,@exec_prefix@,$exec_prefix,;t t
    7945 s,@prefix@,$prefix,;t t
    7946 s,@program_transform_name@,$program_transform_name,;t t
    7947 s,@bindir@,$bindir,;t t
    7948 s,@sbindir@,$sbindir,;t t
    7949 s,@libexecdir@,$libexecdir,;t t
    7950 s,@datadir@,$datadir,;t t
    7951 s,@sysconfdir@,$sysconfdir,;t t
    7952 s,@sharedstatedir@,$sharedstatedir,;t t
    7953 s,@localstatedir@,$localstatedir,;t t
    7954 s,@libdir@,$libdir,;t t
    7955 s,@includedir@,$includedir,;t t
    7956 s,@oldincludedir@,$oldincludedir,;t t
    7957 s,@infodir@,$infodir,;t t
    7958 s,@mandir@,$mandir,;t t
    7959 s,@build_alias@,$build_alias,;t t
    7960 s,@host_alias@,$host_alias,;t t
    7961 s,@target_alias@,$target_alias,;t t
    7962 s,@DEFS@,$DEFS,;t t
    7963 s,@ECHO_C@,$ECHO_C,;t t
    7964 s,@ECHO_N@,$ECHO_N,;t t
    7965 s,@ECHO_T@,$ECHO_T,;t t
    7966 s,@LIBS@,$LIBS,;t t
    7967 s,@PACKAGE@,$PACKAGE,;t t
    7968 s,@VERSION@,$VERSION,;t t
    7969 s,@USE_FASTCGI@,$USE_FASTCGI,;t t
    7970 s,@USE_LANGACTION@,$USE_LANGACTION,;t t
    7971 s,@USE_CORBA@,$USE_CORBA,;t t
    7972 s,@MICO_DIR@,$MICO_DIR,;t t
    7973 s,@USE_Z3950@,$USE_Z3950,;t t
    7974 s,@USE_YAZ@,$USE_YAZ,;t t
    7975 s,@USE_JDBM@,$USE_JDBM,;t t
    7976 s,@USE_GDBM@,$USE_GDBM,;t t
    7977 s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
    7978 s,@USE_SQLITE@,$USE_SQLITE,;t t
    7979 s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
    7980 s,@ENABLE_MG@,$ENABLE_MG,;t t
    7981 s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
    7982 s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
    7983 s,@LDFLAGS@,$LDFLAGS,;t t
    7984 s,@CFLAGS@,$CFLAGS,;t t
    7985 s,@CC@,$CC,;t t
    7986 s,@CPPFLAGS@,$CPPFLAGS,;t t
    7987 s,@ac_ct_CC@,$ac_ct_CC,;t t
    7988 s,@EXEEXT@,$EXEEXT,;t t
    7989 s,@OBJEXT@,$OBJEXT,;t t
    7990 s,@CXX@,$CXX,;t t
    7991 s,@CXXFLAGS@,$CXXFLAGS,;t t
    7992 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    7993 s,@AWK@,$AWK,;t t
    7994 s,@YACC@,$YACC,;t t
    7995 s,@build@,$build,;t t
    7996 s,@build_cpu@,$build_cpu,;t t
    7997 s,@build_vendor@,$build_vendor,;t t
    7998 s,@build_os@,$build_os,;t t
    7999 s,@host@,$host,;t t
    8000 s,@host_cpu@,$host_cpu,;t t
    8001 s,@host_vendor@,$host_vendor,;t t
    8002 s,@host_os@,$host_os,;t t
    8003 s,@target@,$target,;t t
    8004 s,@target_cpu@,$target_cpu,;t t
    8005 s,@target_vendor@,$target_vendor,;t t
    8006 s,@target_os@,$target_os,;t t
    8007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    8008 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    8009 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    8010 s,@LN_S@,$LN_S,;t t
    8011 s,@SET_MAKE@,$SET_MAKE,;t t
    8012 s,@RANLIB@,$RANLIB,;t t
    8013 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    8014 s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    8015 s,@MICO_VER@,$MICO_VER,;t t
    8016 s,@CPP@,$CPP,;t t
    8017 s,@EGREP@,$EGREP,;t t
    8018 s,@U@,$U,;t t
    8019 s,@ANSI2KNR@,$ANSI2KNR,;t t
    8020 s,@ALLOCA@,$ALLOCA,;t t
    8021 s,@LIBOBJS@,$LIBOBJS,;t t
    8022 s,@STATIC@,$STATIC,;t t
    8023 s,@gsdlos@,$gsdlos,;t t
    8024 s,@MODULEDIRS@,$MODULEDIRS,;t t
    8025 s,@subdirs@,$subdirs,;t t
    8026 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    8027 CEOF
    8028 
    8029 _ACEOF
    8030 
    8031   cat >>$CONFIG_STATUS <<\_ACEOF
    8032   # Split the substitutions into bite-sized pieces for seds with
    8033   # small command number limits, like on Digital OSF/1 and HP-UX.
    8034   ac_max_sed_lines=48
    8035   ac_sed_frag=1 # Number of current file.
    8036   ac_beg=1 # First line for current file.
    8037   ac_end=$ac_max_sed_lines # Line after last line for current file.
    8038   ac_more_lines=:
    8039   ac_sed_cmds=
    8040   while $ac_more_lines; do
    8041     if test $ac_beg -gt 1; then
    8042       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    8043     else
    8044       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     7492' >>$CONFIG_STATUS || ac_write_fail=1
     7493rm -f conf$$subs.awk
     7494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7495_ACAWK
     7496cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     7497  for (key in S) S_is_set[key] = 1
     7498  FS = ""
     7499
     7500}
     7501{
     7502  line = $ 0
     7503  nfields = split(line, field, "@")
     7504  substed = 0
     7505  len = length(field[1])
     7506  for (i = 2; i < nfields; i++) {
     7507    key = field[i]
     7508    keylen = length(key)
     7509    if (S_is_set[key]) {
     7510      value = S[key]
     7511      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     7512      len += length(value) + length(field[++i])
     7513      substed = 1
     7514    } else
     7515      len += 1 + keylen
     7516  }
     7517
     7518  print line
     7519}
     7520
     7521_ACAWK
     7522_ACEOF
     7523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7524if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     7525  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     7526else
     7527  cat
     7528fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     7529  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     7530_ACEOF
     7531
     7532# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     7533# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7534# trailing colons and then remove the whole line if VPATH becomes empty
     7535# (actually we leave an empty line to preserve line numbers).
     7536if test "x$srcdir" = x.; then
     7537  ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
     7538h
     7539s///
     7540s/^/:/
     7541s/[  ]*$/:/
     7542s/:\$(srcdir):/:/g
     7543s/:\${srcdir}:/:/g
     7544s/:@srcdir@:/:/g
     7545s/^:*//
     7546s/:*$//
     7547x
     7548s/\(=[   ]*\).*/\1/
     7549G
     7550s/\n//
     7551s/^[^=]*=[   ]*$//
     7552}'
     7553fi
     7554
     7555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7556fi # test -n "$CONFIG_FILES"
     7557
     7558# Set up the scripts for CONFIG_HEADERS section.
     7559# No need to generate them if there are no CONFIG_HEADERS.
     7560# This happens for instance with `./config.status Makefile'.
     7561if test -n "$CONFIG_HEADERS"; then
     7562cat >"$tmp/defines.awk" <<\_ACAWK ||
     7563BEGIN {
     7564_ACEOF
     7565
     7566# Transform confdefs.h into an awk script `defines.awk', embedded as
     7567# here-document in config.status, that substitutes the proper values into
     7568# config.h.in to produce config.h.
     7569
     7570# Create a delimiter string that does not exist in confdefs.h, to ease
     7571# handling of long lines.
     7572ac_delim='%!_!# '
     7573for ac_last_try in false false :; do
     7574  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     7575  if test -z "$ac_t"; then
     7576    break
     7577  elif $ac_last_try; then
     7578    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7579  else
     7580    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     7581  fi
     7582done
     7583
     7584# For the awk script, D is an array of macro values keyed by name,
     7585# likewise P contains macro parameters if any.  Preserve backslash
     7586# newline sequences.
     7587
     7588ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     7589sed -n '
     7590s/.\{148\}/&'"$ac_delim"'/g
     7591t rset
     7592:rset
     7593s/^[     ]*#[    ]*define[   ][  ]*/ /
     7594t def
     7595d
     7596:def
     7597s/\\$//
     7598t bsnl
     7599s/["\\]/\\&/g
     7600s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7601D["\1"]=" \3"/p
     7602s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2"/p
     7603d
     7604:bsnl
     7605s/["\\]/\\&/g
     7606s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     7607D["\1"]=" \3\\\\\\n"\\/p
     7608t cont
     7609s/^ \('"$ac_word_re"'\)[     ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     7610t cont
     7611d
     7612:cont
     7613n
     7614s/.\{148\}/&'"$ac_delim"'/g
     7615t clear
     7616:clear
     7617s/\\$//
     7618t bsnlc
     7619s/["\\]/\\&/g; s/^/"/; s/$/"/p
     7620d
     7621:bsnlc
     7622s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     7623b cont
     7624' <confdefs.h | sed '
     7625s/'"$ac_delim"'/"\\\
     7626"/g' >>$CONFIG_STATUS || ac_write_fail=1
     7627
     7628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7629  for (key in D) D_is_set[key] = 1
     7630  FS = ""
     7631}
     7632/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     7633  line = \$ 0
     7634  split(line, arg, " ")
     7635  if (arg[1] == "#") {
     7636    defundef = arg[2]
     7637    mac1 = arg[3]
     7638  } else {
     7639    defundef = substr(arg[1], 2)
     7640    mac1 = arg[2]
     7641  }
     7642  split(mac1, mac2, "(") #)
     7643  macro = mac2[1]
     7644  prefix = substr(line, 1, index(line, defundef) - 1)
     7645  if (D_is_set[macro]) {
     7646    # Preserve the white space surrounding the "#".
     7647    print prefix "define", macro P[macro] D[macro]
     7648    next
     7649  } else {
     7650    # Replace #undef with comments.  This is necessary, for example,
     7651    # in the case of _POSIX_SOURCE, which is predefined and required
     7652    # on some systems where configure will not decide to define it.
     7653    if (defundef == "undef") {
     7654      print "/*", prefix defundef, macro, "*/"
     7655      next
     7656    }
     7657  }
     7658}
     7659{ print }
     7660_ACAWK
     7661_ACEOF
     7662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7663  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7664fi # test -n "$CONFIG_HEADERS"
     7665
     7666
     7667eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
     7668shift
     7669for ac_tag
     7670do
     7671  case $ac_tag in
     7672  :[FHLC]) ac_mode=$ac_tag; continue;;
     7673  esac
     7674  case $ac_mode$ac_tag in
     7675  :[FHL]*:*);;
     7676  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7677  :[FH]-) ac_tag=-:-;;
     7678  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     7679  esac
     7680  ac_save_IFS=$IFS
     7681  IFS=:
     7682  set x $ac_tag
     7683  IFS=$ac_save_IFS
     7684  shift
     7685  ac_file=$1
     7686  shift
     7687
     7688  case $ac_mode in
     7689  :L) ac_source=$1;;
     7690  :[FH])
     7691    ac_file_inputs=
     7692    for ac_f
     7693    do
     7694      case $ac_f in
     7695      -) ac_f="$tmp/stdin";;
     7696      *) # Look for the file first in the build tree, then in the source tree
     7697     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     7698     # because $ac_f cannot contain `:'.
     7699     test -f "$ac_f" ||
     7700       case $ac_f in
     7701       [\\/$]*) false;;
     7702       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     7703       esac ||
     7704       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7705      esac
     7706      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     7707      as_fn_append ac_file_inputs " '$ac_f'"
     7708    done
     7709
     7710    # Let's still pretend it is `configure' which instantiates (i.e., don't
     7711    # use $as_me), people would be surprised to read:
     7712    #    /* config.h.  Generated by config.status.  */
     7713    configure_input='Generated from '`
     7714      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     7715    `' by configure.'
     7716    if test x"$ac_file" != x-; then
     7717      configure_input="$ac_file.  $configure_input"
     7718      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     7719$as_echo "$as_me: creating $ac_file" >&6;}
    80457720    fi
    8046     if test ! -s $tmp/subs.frag; then
    8047       ac_more_lines=false
    8048     else
    8049       # The purpose of the label and of the branching condition is to
    8050       # speed up the sed processing (if there are no `@' at all, there
    8051       # is no need to browse any of the substitutions).
    8052       # These are the two extra sed commands mentioned above.
    8053       (echo ':t
    8054   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    8055       if test -z "$ac_sed_cmds"; then
    8056     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    8057       else
    8058     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    8059       fi
    8060       ac_sed_frag=`expr $ac_sed_frag + 1`
    8061       ac_beg=$ac_end
    8062       ac_end=`expr $ac_end + $ac_max_sed_lines`
    8063     fi
    8064   done
    8065   if test -z "$ac_sed_cmds"; then
    8066     ac_sed_cmds=cat
    8067   fi
    8068 fi # test -n "$CONFIG_FILES"
    8069 
    8070 _ACEOF
    8071 cat >>$CONFIG_STATUS <<\_ACEOF
    8072 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    8073   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8074   case $ac_file in
    8075   - | *:- | *:-:* ) # input from stdin
    8076     cat >$tmp/stdin
    8077     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8078     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8079   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8080     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8081   * )   ac_file_in=$ac_file.in ;;
     7721    # Neutralize special characters interpreted by sed in replacement strings.
     7722    case $configure_input in #(
     7723    *\&* | *\|* | *\\* )
     7724       ac_sed_conf_input=`$as_echo "$configure_input" |
     7725       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     7726    *) ac_sed_conf_input=$configure_input;;
     7727    esac
     7728
     7729    case $ac_tag in
     7730    *:-:* | *:-) cat >"$tmp/stdin" \
     7731      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     7732    esac
     7733    ;;
    80827734  esac
    80837735
    8084   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    8085   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7736  ac_dir=`$as_dirname -- "$ac_file" ||
    80867737$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    80877738     X"$ac_file" : 'X\(//\)[^/]' \| \
    80887739     X"$ac_file" : 'X\(//\)$' \| \
    8089      X"$ac_file" : 'X\(/\)' \| \
    8090      .     : '\(.\)' 2>/dev/null ||
    8091 echo X"$ac_file" |
    8092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8093       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8094       /^X\(\/\/\)$/{ s//\1/; q; }
    8095       /^X\(\/\).*/{ s//\1/; q; }
    8096       s/.*/./; q'`
    8097   { if $as_mkdir_p; then
    8098     mkdir -p "$ac_dir"
    8099   else
    8100     as_dir="$ac_dir"
    8101     as_dirs=
    8102     while test ! -d "$as_dir"; do
    8103       as_dirs="$as_dir $as_dirs"
    8104       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8106      X"$as_dir" : 'X\(//\)[^/]' \| \
    8107      X"$as_dir" : 'X\(//\)$' \| \
    8108      X"$as_dir" : 'X\(/\)' \| \
    8109      .     : '\(.\)' 2>/dev/null ||
    8110 echo X"$as_dir" |
    8111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8112       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8113       /^X\(\/\/\)$/{ s//\1/; q; }
    8114       /^X\(\/\).*/{ s//\1/; q; }
    8115       s/.*/./; q'`
    8116     done
    8117     test ! -n "$as_dirs" || mkdir $as_dirs
    8118   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8120    { (exit 1); exit 1; }; }; }
    8121 
     7740     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     7741$as_echo X"$ac_file" |
     7742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     7743        s//\1/
     7744        q
     7745      }
     7746      /^X\(\/\/\)[^/].*/{
     7747        s//\1/
     7748        q
     7749      }
     7750      /^X\(\/\/\)$/{
     7751        s//\1/
     7752        q
     7753      }
     7754      /^X\(\/\).*/{
     7755        s//\1/
     7756        q
     7757      }
     7758      s/.*/./; q'`
     7759  as_dir="$ac_dir"; as_fn_mkdir_p
    81227760  ac_builddir=.
    81237761
    8124 if test "$ac_dir" != .; then
    8125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8126   # A "../" for each directory in $ac_dir_suffix.
    8127   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8128 else
    8129   ac_dir_suffix= ac_top_builddir=
    8130 fi
     7762case "$ac_dir" in
     7763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7764*)
     7765  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     7766  # A ".." for each directory in $ac_dir_suffix.
     7767  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     7768  case $ac_top_builddir_sub in
     7769  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     7770  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     7771  esac ;;
     7772esac
     7773ac_abs_top_builddir=$ac_pwd
     7774ac_abs_builddir=$ac_pwd$ac_dir_suffix
     7775# for backward compatibility:
     7776ac_top_builddir=$ac_top_build_prefix
    81317777
    81327778case $srcdir in
    8133   .)  # No --srcdir option.  We are building in place.
     7779  .)  # We are building in place.
    81347780    ac_srcdir=.
    8135     if test -z "$ac_top_builddir"; then
    8136        ac_top_srcdir=.
    8137     else
    8138        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8139     fi ;;
    8140   [\\/]* | ?:[\\/]* )  # Absolute path.
     7781    ac_top_srcdir=$ac_top_builddir_sub
     7782    ac_abs_top_srcdir=$ac_pwd ;;
     7783  [\\/]* | ?:[\\/]* )  # Absolute name.
    81417784    ac_srcdir=$srcdir$ac_dir_suffix;
    8142     ac_top_srcdir=$srcdir ;;
    8143   *) # Relative path.
    8144     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8145     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     7785    ac_top_srcdir=$srcdir
     7786    ac_abs_top_srcdir=$srcdir ;;
     7787  *) # Relative name.
     7788    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     7789    ac_top_srcdir=$ac_top_build_prefix$srcdir
     7790    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    81467791esac
    8147 
    8148 # Do not use `cd foo && pwd` to compute absolute paths, because
    8149 # the directories may not exist.
    8150 case `pwd` in
    8151 .) ac_abs_builddir="$ac_dir";;
    8152 *)
    8153   case "$ac_dir" in
    8154   .) ac_abs_builddir=`pwd`;;
    8155   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8156   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8157   esac;;
    8158 esac
    8159 case $ac_abs_builddir in
    8160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8161 *)
    8162   case ${ac_top_builddir}. in
    8163   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8164   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8165   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8166   esac;;
    8167 esac
    8168 case $ac_abs_builddir in
    8169 .) ac_abs_srcdir=$ac_srcdir;;
    8170 *)
    8171   case $ac_srcdir in
    8172   .) ac_abs_srcdir=$ac_abs_builddir;;
    8173   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8174   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8175   esac;;
    8176 esac
    8177 case $ac_abs_builddir in
    8178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8179 *)
    8180   case $ac_top_srcdir in
    8181   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8182   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8183   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8184   esac;;
    8185 esac
    8186 
     7792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     7793
     7794
     7795  case $ac_mode in
     7796  :F)
     7797  #
     7798  # CONFIG_FILE
     7799  #
    81877800
    81887801  case $INSTALL in
    81897802  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    8190   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     7803  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    81917804  esac
    8192 
    8193   if test x"$ac_file" != x-; then
    8194     { echo "$as_me:$LINENO: creating $ac_file" >&5
    8195 echo "$as_me: creating $ac_file" >&6;}
    8196     rm -f "$ac_file"
    8197   fi
    8198   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8199   # use $as_me), people would be surprised to read:
    8200   #    /* config.h.  Generated by config.status.  */
    8201   if test x"$ac_file" = x-; then
    8202     configure_input=
    8203   else
    8204     configure_input="$ac_file.  "
    8205   fi
    8206   configure_input=$configure_input"Generated from `echo $ac_file_in |
    8207                      sed 's,.*/,,'` by configure."
    8208 
    8209   # First look for the input files in the build tree, otherwise in the
    8210   # src tree.
    8211   ac_file_inputs=`IFS=:
    8212     for f in $ac_file_in; do
    8213       case $f in
    8214       -) echo $tmp/stdin ;;
    8215       [\\/$]*)
    8216      # Absolute (can't be DOS-style, as IFS=:)
    8217      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8218 echo "$as_me: error: cannot find input file: $f" >&2;}
    8219    { (exit 1); exit 1; }; }
    8220      echo "$f";;
    8221       *) # Relative
    8222      if test -f "$f"; then
    8223        # Build tree
    8224        echo "$f"
    8225      elif test -f "$srcdir/$f"; then
    8226        # Source tree
    8227        echo "$srcdir/$f"
    8228      else
    8229        # /dev/null tree
    8230        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8231 echo "$as_me: error: cannot find input file: $f" >&2;}
    8232    { (exit 1); exit 1; }; }
    8233      fi;;
    8234       esac
    8235     done` || { (exit 1); exit 1; }
    8236 _ACEOF
    8237 cat >>$CONFIG_STATUS <<_ACEOF
    8238   sed "$ac_vpsub
     7805_ACEOF
     7806
     7807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     7808# If the template does not know about datarootdir, expand it.
     7809# FIXME: This hack should be removed a few years after 2.60.
     7810ac_datarootdir_hack=; ac_datarootdir_seen=
     7811ac_sed_dataroot='
     7812/datarootdir/ {
     7813  p
     7814  q
     7815}
     7816/@datadir@/p
     7817/@docdir@/p
     7818/@infodir@/p
     7819/@localedir@/p
     7820/@mandir@/p'
     7821case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     7822*datarootdir*) ac_datarootdir_seen=yes;;
     7823*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     7824  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     7825$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     7826_ACEOF
     7827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7828  ac_datarootdir_hack='
     7829  s&@datadir@&$datadir&g
     7830  s&@docdir@&$docdir&g
     7831  s&@infodir@&$infodir&g
     7832  s&@localedir@&$localedir&g
     7833  s&@mandir@&$mandir&g
     7834  s&\\\${datarootdir}&$datarootdir&g' ;;
     7835esac
     7836_ACEOF
     7837
     7838# Neutralize VPATH when `$srcdir' = `.'.
     7839# Shell code in configure.ac might set extrasub.
     7840# FIXME: do we really want to maintain this feature?
     7841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     7842ac_sed_extra="$ac_vpsub
    82397843$extrasub
    82407844_ACEOF
    8241 cat >>$CONFIG_STATUS <<\_ACEOF
     7845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    82427846:t
    82437847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    8244 s,@configure_input@,$configure_input,;t t
    8245 s,@srcdir@,$ac_srcdir,;t t
    8246 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    8247 s,@top_srcdir@,$ac_top_srcdir,;t t
    8248 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    8249 s,@builddir@,$ac_builddir,;t t
    8250 s,@abs_builddir@,$ac_abs_builddir,;t t
    8251 s,@top_builddir@,$ac_top_builddir,;t t
    8252 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    8253 s,@INSTALL@,$ac_INSTALL,;t t
    8254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    8255   rm -f $tmp/stdin
     7848s|@configure_input@|$ac_sed_conf_input|;t t
     7849s&@top_builddir@&$ac_top_builddir_sub&;t t
     7850s&@top_build_prefix@&$ac_top_build_prefix&;t t
     7851s&@srcdir@&$ac_srcdir&;t t
     7852s&@abs_srcdir@&$ac_abs_srcdir&;t t
     7853s&@top_srcdir@&$ac_top_srcdir&;t t
     7854s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     7855s&@builddir@&$ac_builddir&;t t
     7856s&@abs_builddir@&$ac_abs_builddir&;t t
     7857s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     7858s&@INSTALL@&$ac_INSTALL&;t t
     7859$ac_datarootdir_hack
     7860"
     7861eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     7862  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7863
     7864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     7865  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     7866  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     7867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7868which seems to be undefined.  Please make sure it is defined" >&5
     7869$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     7870which seems to be undefined.  Please make sure it is defined" >&2;}
     7871
     7872  rm -f "$tmp/stdin"
     7873  case $ac_file in
     7874  -) cat "$tmp/out" && rm -f "$tmp/out";;
     7875  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     7876  esac \
     7877  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7878 ;;
     7879  :H)
     7880  #
     7881  # CONFIG_HEADER
     7882  #
    82567883  if test x"$ac_file" != x-; then
    8257     mv $tmp/out $ac_file
    8258   else
    8259     cat $tmp/out
    8260     rm -f $tmp/out
    8261   fi
    8262 
    8263 done
    8264 _ACEOF
    8265 cat >>$CONFIG_STATUS <<\_ACEOF
    8266 
    8267 #
    8268 # CONFIG_HEADER section.
    8269 #
    8270 
    8271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    8272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    8273 #
    8274 # ac_d sets the value in "#define NAME VALUE" lines.
    8275 ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
    8276 ac_dB='[     ].*$,\1#\2'
    8277 ac_dC=' '
    8278 ac_dD=',;t'
    8279 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    8280 ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
    8281 ac_uB='$,\1#\2define\3'
    8282 ac_uC=' '
    8283 ac_uD=',;t'
    8284 
    8285 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    8286   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    8287   case $ac_file in
    8288   - | *:- | *:-:* ) # input from stdin
    8289     cat >$tmp/stdin
    8290     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8291     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8292   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8293     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    8294   * )   ac_file_in=$ac_file.in ;;
    8295   esac
    8296 
    8297   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    8298 echo "$as_me: creating $ac_file" >&6;}
    8299 
    8300   # First look for the input files in the build tree, otherwise in the
    8301   # src tree.
    8302   ac_file_inputs=`IFS=:
    8303     for f in $ac_file_in; do
    8304       case $f in
    8305       -) echo $tmp/stdin ;;
    8306       [\\/$]*)
    8307      # Absolute (can't be DOS-style, as IFS=:)
    8308      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8309 echo "$as_me: error: cannot find input file: $f" >&2;}
    8310    { (exit 1); exit 1; }; }
    8311      # Do quote $f, to prevent DOS paths from being IFS'd.
    8312      echo "$f";;
    8313       *) # Relative
    8314      if test -f "$f"; then
    8315        # Build tree
    8316        echo "$f"
    8317      elif test -f "$srcdir/$f"; then
    8318        # Source tree
    8319        echo "$srcdir/$f"
    8320      else
    8321        # /dev/null tree
    8322        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    8323 echo "$as_me: error: cannot find input file: $f" >&2;}
    8324    { (exit 1); exit 1; }; }
    8325      fi;;
    8326       esac
    8327     done` || { (exit 1); exit 1; }
    8328   # Remove the trailing spaces.
    8329   sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
    8330 
    8331 _ACEOF
    8332 
    8333 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    8334 # `conftest.undefs', that substitutes the proper values into
    8335 # config.h.in to produce config.h.  The first handles `#define'
    8336 # templates, and the second `#undef' templates.
    8337 # And first: Protect against being on the right side of a sed subst in
    8338 # config.status.  Protect against being in an unquoted here document
    8339 # in config.status.
    8340 rm -f conftest.defines conftest.undefs
    8341 # Using a here document instead of a string reduces the quoting nightmare.
    8342 # Putting comments in sed scripts is not portable.
    8343 #
    8344 # `end' is used to avoid that the second main sed command (meant for
    8345 # 0-ary CPP macros) applies to n-ary macro definitions.
    8346 # See the Autoconf documentation for `clear'.
    8347 cat >confdef2sed.sed <<\_ACEOF
    8348 s/[\\&,]/\\&/g
    8349 s,[\\$`],\\&,g
    8350 t clear
    8351 : clear
    8352 s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    8353 t end
    8354 s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    8355 : end
    8356 _ACEOF
    8357 # If some macros were called several times there might be several times
    8358 # the same #defines, which is useless.  Nevertheless, we may not want to
    8359 # sort them, since we want the *last* AC-DEFINE to be honored.
    8360 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    8361 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    8362 rm -f confdef2sed.sed
    8363 
    8364 # This sed command replaces #undef with comments.  This is necessary, for
    8365 # example, in the case of _POSIX_SOURCE, which is predefined and required
    8366 # on some systems where configure will not decide to define it.
    8367 cat >>conftest.undefs <<\_ACEOF
    8368 s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    8369 _ACEOF
    8370 
    8371 # Break up conftest.defines because some shells have a limit on the size
    8372 # of here documents, and old seds have small limits too (100 cmds).
    8373 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    8374 echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    8375 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    8376 echo '  :' >>$CONFIG_STATUS
    8377 rm -f conftest.tail
    8378 while grep . conftest.defines >/dev/null
    8379 do
    8380   # Write a limited-size here document to $tmp/defines.sed.
    8381   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    8382   # Speed up: don't consider the non `#define' lines.
    8383   echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
    8384   # Work around the forget-to-reset-the-flag bug.
    8385   echo 't clr' >>$CONFIG_STATUS
    8386   echo ': clr' >>$CONFIG_STATUS
    8387   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    8388   echo 'CEOF
    8389   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    8390   rm -f $tmp/in
    8391   mv $tmp/out $tmp/in
    8392 ' >>$CONFIG_STATUS
    8393   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    8394   rm -f conftest.defines
    8395   mv conftest.tail conftest.defines
    8396 done
    8397 rm -f conftest.defines
    8398 echo '  fi # grep' >>$CONFIG_STATUS
    8399 echo >>$CONFIG_STATUS
    8400 
    8401 # Break up conftest.undefs because some shells have a limit on the size
    8402 # of here documents, and old seds have small limits too (100 cmds).
    8403 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    8404 rm -f conftest.tail
    8405 while grep . conftest.undefs >/dev/null
    8406 do
    8407   # Write a limited-size here document to $tmp/undefs.sed.
    8408   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    8409   # Speed up: don't consider the non `#undef'
    8410   echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    8411   # Work around the forget-to-reset-the-flag bug.
    8412   echo 't clr' >>$CONFIG_STATUS
    8413   echo ': clr' >>$CONFIG_STATUS
    8414   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    8415   echo 'CEOF
    8416   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    8417   rm -f $tmp/in
    8418   mv $tmp/out $tmp/in
    8419 ' >>$CONFIG_STATUS
    8420   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    8421   rm -f conftest.undefs
    8422   mv conftest.tail conftest.undefs
    8423 done
    8424 rm -f conftest.undefs
    8425 
    8426 cat >>$CONFIG_STATUS <<\_ACEOF
    8427   # Let's still pretend it is `configure' which instantiates (i.e., don't
    8428   # use $as_me), people would be surprised to read:
    8429   #    /* config.h.  Generated by config.status.  */
    8430   if test x"$ac_file" = x-; then
    8431     echo "/* Generated by configure.  */" >$tmp/config.h
    8432   else
    8433     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    8434   fi
    8435   cat $tmp/in >>$tmp/config.h
    8436   rm -f $tmp/in
    8437   if test x"$ac_file" != x-; then
    8438     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    8439       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    8440 echo "$as_me: $ac_file is unchanged" >&6;}
     7884    {
     7885      $as_echo "/* $configure_input  */" \
     7886      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     7887    } >"$tmp/config.h" \
     7888      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7889    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     7890      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     7891$as_echo "$as_me: $ac_file is unchanged" >&6;}
    84417892    else
    8442       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    8443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8444      X"$ac_file" : 'X\(//\)[^/]' \| \
    8445      X"$ac_file" : 'X\(//\)$' \| \
    8446      X"$ac_file" : 'X\(/\)' \| \
    8447      .     : '\(.\)' 2>/dev/null ||
    8448 echo X"$ac_file" |
    8449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8450       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8451       /^X\(\/\/\)$/{ s//\1/; q; }
    8452       /^X\(\/\).*/{ s//\1/; q; }
    8453       s/.*/./; q'`
    8454       { if $as_mkdir_p; then
    8455     mkdir -p "$ac_dir"
    8456   else
    8457     as_dir="$ac_dir"
    8458     as_dirs=
    8459     while test ! -d "$as_dir"; do
    8460       as_dirs="$as_dir $as_dirs"
    8461       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8463      X"$as_dir" : 'X\(//\)[^/]' \| \
    8464      X"$as_dir" : 'X\(//\)$' \| \
    8465      X"$as_dir" : 'X\(/\)' \| \
    8466      .     : '\(.\)' 2>/dev/null ||
    8467 echo X"$as_dir" |
    8468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8469       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8470       /^X\(\/\/\)$/{ s//\1/; q; }
    8471       /^X\(\/\).*/{ s//\1/; q; }
    8472       s/.*/./; q'`
    8473     done
    8474     test ! -n "$as_dirs" || mkdir $as_dirs
    8475   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8476 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8477    { (exit 1); exit 1; }; }; }
    8478 
    8479       rm -f $ac_file
    8480       mv $tmp/config.h $ac_file
     7893      rm -f "$ac_file"
     7894      mv "$tmp/config.h" "$ac_file" \
     7895    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    84817896    fi
    84827897  else
    8483     cat $tmp/config.h
    8484     rm -f $tmp/config.h
     7898    $as_echo "/* $configure_input  */" \
     7899      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     7900      || as_fn_error $? "could not create -" "$LINENO" 5
    84857901  fi
    8486 done
    8487 _ACEOF
    8488 
    8489 cat >>$CONFIG_STATUS <<\_ACEOF
    8490 
    8491 { (exit 0); exit 0; }
    8492 _ACEOF
    8493 chmod +x $CONFIG_STATUS
     7902 ;;
     7903
     7904
     7905  esac
     7906
     7907done # for ac_tag
     7908
     7909
     7910as_fn_exit 0
     7911_ACEOF
    84947912ac_clean_files=$ac_clean_files_save
     7913
     7914test $ac_write_fail = 0 ||
     7915  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    84957916
    84967917
     
    85137934  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    85147935  # would make configure fail if this is the last instruction.
    8515   $ac_cs_success || { (exit 1); exit 1; }
     7936  $ac_cs_success || as_fn_exit 1
    85167937fi
    85177938
     
    85217942if test "$no_recursion" != yes; then
    85227943
    8523   # Remove --cache-file and --srcdir arguments so they do not pile up.
     7944  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
     7945  # so they do not pile up.
    85247946  ac_sub_configure_args=
    85257947  ac_prev=
    8526   for ac_arg in $ac_configure_args; do
     7948  eval "set x $ac_configure_args"
     7949  shift
     7950  for ac_arg
     7951  do
    85277952    if test -n "$ac_prev"; then
    85287953      ac_prev=
     
    85477972    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    85487973      ;;
    8549     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     7974    --disable-option-checking)
     7975      ;;
     7976    *)
     7977      case $ac_arg in
     7978      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7979      esac
     7980      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    85507981    esac
    85517982  done
     
    85537984  # Always prepend --prefix to ensure using the same prefix
    85547985  # in subdir configurations.
    8555   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     7986  ac_arg="--prefix=$prefix"
     7987  case $ac_arg in
     7988  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     7989  esac
     7990  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
     7991
     7992  # Pass --silent
     7993  if test "$silent" = yes; then
     7994    ac_sub_configure_args="--silent $ac_sub_configure_args"
     7995  fi
     7996
     7997  # Always prepend --disable-option-checking to silence warnings, since
     7998  # different subdirs can have different --enable and --with options.
     7999  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
    85568000
    85578001  ac_popdir=`pwd`
     
    85608004    # Do not complain, so a configure script can configure whichever
    85618005    # parts of a large source tree are present.
    8562     test -d $srcdir/$ac_dir || continue
    8563 
    8564     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
    8565 echo "$as_me: configuring in $ac_dir" >&6;}
    8566     { if $as_mkdir_p; then
    8567     mkdir -p "$ac_dir"
    8568   else
    8569     as_dir="$ac_dir"
    8570     as_dirs=
    8571     while test ! -d "$as_dir"; do
    8572       as_dirs="$as_dir $as_dirs"
    8573       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8575      X"$as_dir" : 'X\(//\)[^/]' \| \
    8576      X"$as_dir" : 'X\(//\)$' \| \
    8577      X"$as_dir" : 'X\(/\)' \| \
    8578      .     : '\(.\)' 2>/dev/null ||
    8579 echo X"$as_dir" |
    8580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    8581       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    8582       /^X\(\/\/\)$/{ s//\1/; q; }
    8583       /^X\(\/\).*/{ s//\1/; q; }
    8584       s/.*/./; q'`
    8585     done
    8586     test ! -n "$as_dirs" || mkdir $as_dirs
    8587   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    8588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    8589    { (exit 1); exit 1; }; }; }
    8590 
     8006    test -d "$srcdir/$ac_dir" || continue
     8007
     8008    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
     8009    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
     8010    $as_echo "$ac_msg" >&6
     8011    as_dir="$ac_dir"; as_fn_mkdir_p
    85918012    ac_builddir=.
    85928013
    8593 if test "$ac_dir" != .; then
    8594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    8595   # A "../" for each directory in $ac_dir_suffix.
    8596   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    8597 else
    8598   ac_dir_suffix= ac_top_builddir=
    8599 fi
     8014case "$ac_dir" in
     8015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8016*)
     8017  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     8018  # A ".." for each directory in $ac_dir_suffix.
     8019  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     8020  case $ac_top_builddir_sub in
     8021  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     8022  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     8023  esac ;;
     8024esac
     8025ac_abs_top_builddir=$ac_pwd
     8026ac_abs_builddir=$ac_pwd$ac_dir_suffix
     8027# for backward compatibility:
     8028ac_top_builddir=$ac_top_build_prefix
    86008029
    86018030case $srcdir in
    8602   .)  # No --srcdir option.  We are building in place.
     8031  .)  # We are building in place.
    86038032    ac_srcdir=.
    8604     if test -z "$ac_top_builddir"; then
    8605        ac_top_srcdir=.
     8033    ac_top_srcdir=$ac_top_builddir_sub
     8034    ac_abs_top_srcdir=$ac_pwd ;;
     8035  [\\/]* | ?:[\\/]* )  # Absolute name.
     8036    ac_srcdir=$srcdir$ac_dir_suffix;
     8037    ac_top_srcdir=$srcdir
     8038    ac_abs_top_srcdir=$srcdir ;;
     8039  *) # Relative name.
     8040    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     8041    ac_top_srcdir=$ac_top_build_prefix$srcdir
     8042    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     8043esac
     8044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     8045
     8046
     8047    cd "$ac_dir"
     8048
     8049    # Check for guested configure; otherwise get Cygnus style configure.
     8050    if test -f "$ac_srcdir/configure.gnu"; then
     8051      ac_sub_configure=$ac_srcdir/configure.gnu
     8052    elif test -f "$ac_srcdir/configure"; then
     8053      ac_sub_configure=$ac_srcdir/configure
     8054    elif test -f "$ac_srcdir/configure.in"; then
     8055      # This should be Cygnus configure.
     8056      ac_sub_configure=$ac_aux_dir/configure
    86068057    else
    8607        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    8608     fi ;;
    8609   [\\/]* | ?:[\\/]* )  # Absolute path.
    8610     ac_srcdir=$srcdir$ac_dir_suffix;
    8611     ac_top_srcdir=$srcdir ;;
    8612   *) # Relative path.
    8613     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    8614     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    8615 esac
    8616 
    8617 # Do not use `cd foo && pwd` to compute absolute paths, because
    8618 # the directories may not exist.
    8619 case `pwd` in
    8620 .) ac_abs_builddir="$ac_dir";;
    8621 *)
    8622   case "$ac_dir" in
    8623   .) ac_abs_builddir=`pwd`;;
    8624   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8625   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8626   esac;;
    8627 esac
    8628 case $ac_abs_builddir in
    8629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8630 *)
    8631   case ${ac_top_builddir}. in
    8632   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8633   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8634   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8635   esac;;
    8636 esac
    8637 case $ac_abs_builddir in
    8638 .) ac_abs_srcdir=$ac_srcdir;;
    8639 *)
    8640   case $ac_srcdir in
    8641   .) ac_abs_srcdir=$ac_abs_builddir;;
    8642   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8643   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8644   esac;;
    8645 esac
    8646 case $ac_abs_builddir in
    8647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8648 *)
    8649   case $ac_top_srcdir in
    8650   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8651   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8652   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8653   esac;;
    8654 esac
    8655 
    8656 
    8657     cd $ac_dir
    8658 
    8659     # Check for guested configure; otherwise get Cygnus style configure.
    8660     if test -f $ac_srcdir/configure.gnu; then
    8661       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
    8662     elif test -f $ac_srcdir/configure; then
    8663       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
    8664     elif test -f $ac_srcdir/configure.in; then
    8665       ac_sub_configure=$ac_configure
    8666     else
    8667       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
    8668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
     8058      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
     8059$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    86698060      ac_sub_configure=
    86708061    fi
     
    86758066      case $cache_file in
    86768067      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    8677       *) # Relative path.
    8678     ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     8068      *) # Relative name.
     8069    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    86798070      esac
    86808071
    8681       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
    8682 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
     8072      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
     8073$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    86838074      # The eval makes quoting arguments work.
    8684       eval $ac_sub_configure $ac_sub_configure_args \
    8685        --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
    8686     { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
    8687 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
    8688    { (exit 1); exit 1; }; }
     8075      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
     8076       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
     8077    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    86898078    fi
    86908079
    8691     cd $ac_popdir
     8080    cd "$ac_popdir"
    86928081  done
    86938082fi
    8694 
    8695 
    8696 
     8083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     8084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     8085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
     8086fi
     8087
     8088
     8089
  • main/trunk/greenstone2/runtime-src/configure.in

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

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

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