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/common-src/indexers/mg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.