Home | History | Annotate | Line # | Download | only in dist
      1  1.1  christos #! /bin/sh
      2  1.1  christos # Guess values for system-dependent variables and create Makefiles.
      3  1.1  christos # Generated by GNU Autoconf 2.53 for GNU diffutils 2.8.1.
      4  1.1  christos #
      5  1.1  christos # Report bugs to <bug-gnu-utils (at] gnu.org>.
      6  1.1  christos #
      7  1.1  christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
      8  1.1  christos # Free Software Foundation, Inc.
      9  1.1  christos # This configure script is free software; the Free Software Foundation
     10  1.1  christos # gives unlimited permission to copy, distribute and modify it.
     11  1.1  christos if mkdir -p . 2>/dev/null; then
     12  1.1  christos   as_mkdir_p=:
     13  1.1  christos else
     14  1.1  christos   as_mkdir_p=false
     15  1.1  christos fi
     16  1.1  christos 
     17  1.1  christos 
     18  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
     19  1.1  christos   as_expr=expr
     20  1.1  christos else
     21  1.1  christos   as_expr=false
     22  1.1  christos fi
     23  1.1  christos 
     24  1.1  christos 
     25  1.1  christos ## --------------------- ##
     26  1.1  christos ## M4sh Initialization.  ##
     27  1.1  christos ## --------------------- ##
     28  1.1  christos 
     29  1.1  christos # Be Bourne compatible
     30  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     31  1.1  christos   emulate sh
     32  1.1  christos   NULLCMD=:
     33  1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     34  1.1  christos   set -o posix
     35  1.1  christos fi
     36  1.1  christos 
     37  1.1  christos # NLS nuisances.
     38  1.1  christos # Support unset when possible.
     39  1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     40  1.1  christos   as_unset=unset
     41  1.1  christos else
     42  1.1  christos   as_unset=false
     43  1.1  christos fi
     44  1.1  christos 
     45  1.1  christos (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
     46  1.1  christos     { $as_unset LANG || test "${LANG+set}" != set; } ||
     47  1.1  christos       { LANG=C; export LANG; }
     48  1.1  christos (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
     49  1.1  christos     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
     50  1.1  christos       { LC_ALL=C; export LC_ALL; }
     51  1.1  christos (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
     52  1.1  christos     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
     53  1.1  christos       { LC_TIME=C; export LC_TIME; }
     54  1.1  christos (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
     55  1.1  christos     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
     56  1.1  christos       { LC_CTYPE=C; export LC_CTYPE; }
     57  1.1  christos (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
     58  1.1  christos     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
     59  1.1  christos       { LANGUAGE=C; export LANGUAGE; }
     60  1.1  christos (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
     61  1.1  christos     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
     62  1.1  christos       { LC_COLLATE=C; export LC_COLLATE; }
     63  1.1  christos (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
     64  1.1  christos     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
     65  1.1  christos       { LC_NUMERIC=C; export LC_NUMERIC; }
     66  1.1  christos (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
     67  1.1  christos     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
     68  1.1  christos       { LC_MESSAGES=C; export LC_MESSAGES; }
     69  1.1  christos 
     70  1.1  christos 
     71  1.1  christos # Name of the executable.
     72  1.1  christos as_me=`(basename "$0") 2>/dev/null ||
     73  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     74  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
     75  1.1  christos 	 X"$0" : 'X\(/\)$' \| \
     76  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
     77  1.1  christos echo X/"$0" |
     78  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     79  1.1  christos   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
     80  1.1  christos   	  /^X\/\(\/\).*/{ s//\1/; q; }
     81  1.1  christos   	  s/.*/./; q'`
     82  1.1  christos 
     83  1.1  christos # PATH needs CR, and LINENO needs CR and PATH.
     84  1.1  christos # Avoid depending upon Character Ranges.
     85  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     86  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     87  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     88  1.1  christos as_cr_digits='0123456789'
     89  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
     90  1.1  christos 
     91  1.1  christos # The user is always right.
     92  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
     93  1.1  christos   echo "#! /bin/sh" >conftest.sh
     94  1.1  christos   echo  "exit 0"   >>conftest.sh
     95  1.1  christos   chmod +x conftest.sh
     96  1.1  christos   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
     97  1.1  christos     PATH_SEPARATOR=';'
     98  1.1  christos   else
     99  1.1  christos     PATH_SEPARATOR=:
    100  1.1  christos   fi
    101  1.1  christos   rm -f conftest.sh
    102  1.1  christos fi
    103  1.1  christos 
    104  1.1  christos 
    105  1.1  christos   as_lineno_1=$LINENO
    106  1.1  christos   as_lineno_2=$LINENO
    107  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    108  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    109  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    110  1.1  christos   # Find who we are.  Look in the path if we contain no path at all
    111  1.1  christos   # relative or not.
    112  1.1  christos   case $0 in
    113  1.1  christos     *[\\/]* ) as_myself=$0 ;;
    114  1.1  christos     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    115  1.1  christos for as_dir in $PATH
    116  1.1  christos do
    117  1.1  christos   IFS=$as_save_IFS
    118  1.1  christos   test -z "$as_dir" && as_dir=.
    119  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    120  1.1  christos done
    121  1.1  christos 
    122  1.1  christos        ;;
    123  1.1  christos   esac
    124  1.1  christos   # We did not find ourselves, most probably we were run as `sh COMMAND'
    125  1.1  christos   # in which case we are not to be found in the path.
    126  1.1  christos   if test "x$as_myself" = x; then
    127  1.1  christos     as_myself=$0
    128  1.1  christos   fi
    129  1.1  christos   if test ! -f "$as_myself"; then
    130  1.1  christos     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    131  1.1  christos    { (exit 1); exit 1; }; }
    132  1.1  christos   fi
    133  1.1  christos   case $CONFIG_SHELL in
    134  1.1  christos   '')
    135  1.1  christos     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    136  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    137  1.1  christos do
    138  1.1  christos   IFS=$as_save_IFS
    139  1.1  christos   test -z "$as_dir" && as_dir=.
    140  1.1  christos   for as_base in sh bash ksh sh5; do
    141  1.1  christos 	 case $as_dir in
    142  1.1  christos 	 /*)
    143  1.1  christos 	   if ("$as_dir/$as_base" -c '
    144  1.1  christos   as_lineno_1=$LINENO
    145  1.1  christos   as_lineno_2=$LINENO
    146  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    147  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    148  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    149  1.1  christos 	     CONFIG_SHELL=$as_dir/$as_base
    150  1.1  christos 	     export CONFIG_SHELL
    151  1.1  christos 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    152  1.1  christos 	   fi;;
    153  1.1  christos 	 esac
    154  1.1  christos        done
    155  1.1  christos done
    156  1.1  christos ;;
    157  1.1  christos   esac
    158  1.1  christos 
    159  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    160  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
    161  1.1  christos   # line-number line before each line; the second 'sed' does the real
    162  1.1  christos   # work.  The second script uses 'N' to pair each line-number line
    163  1.1  christos   # with the numbered line, and appends trailing '-' during
    164  1.1  christos   # substitution so that $LINENO is not a special case at line end.
    165  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    166  1.1  christos   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    167  1.1  christos   sed '=' <$as_myself |
    168  1.1  christos     sed '
    169  1.1  christos       N
    170  1.1  christos       s,$,-,
    171  1.1  christos       : loop
    172  1.1  christos       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    173  1.1  christos       t loop
    174  1.1  christos       s,-$,,
    175  1.1  christos       s,^['$as_cr_digits']*\n,,
    176  1.1  christos     ' >$as_me.lineno &&
    177  1.1  christos   chmod +x $as_me.lineno ||
    178  1.1  christos     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    179  1.1  christos    { (exit 1); exit 1; }; }
    180  1.1  christos 
    181  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    182  1.1  christos   # (the dirname of $[0] is not the place where we might find the
    183  1.1  christos   # original and so on.  Autoconf is especially sensible to this).
    184  1.1  christos   . ./$as_me.lineno
    185  1.1  christos   # Exit status is that of the last command.
    186  1.1  christos   exit
    187  1.1  christos }
    188  1.1  christos 
    189  1.1  christos 
    190  1.1  christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    191  1.1  christos   *c*,-n*) ECHO_N= ECHO_C='
    192  1.1  christos ' ECHO_T='	' ;;
    193  1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    194  1.1  christos   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    195  1.1  christos esac
    196  1.1  christos 
    197  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
    198  1.1  christos   as_expr=expr
    199  1.1  christos else
    200  1.1  christos   as_expr=false
    201  1.1  christos fi
    202  1.1  christos 
    203  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    204  1.1  christos echo >conf$$.file
    205  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
    206  1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
    207  1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    208  1.1  christos   if test -f conf$$.exe; then
    209  1.1  christos     # Don't use ln at all; we don't have any links
    210  1.1  christos     as_ln_s='cp -p'
    211  1.1  christos   else
    212  1.1  christos     as_ln_s='ln -s'
    213  1.1  christos   fi
    214  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
    215  1.1  christos   as_ln_s=ln
    216  1.1  christos else
    217  1.1  christos   as_ln_s='cp -p'
    218  1.1  christos fi
    219  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    220  1.1  christos 
    221  1.1  christos as_executable_p="test -f"
    222  1.1  christos 
    223  1.1  christos # Sed expression to map a string onto a valid CPP name.
    224  1.1  christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    225  1.1  christos 
    226  1.1  christos # Sed expression to map a string onto a valid variable name.
    227  1.1  christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    228  1.1  christos 
    229  1.1  christos 
    230  1.1  christos # IFS
    231  1.1  christos # We need space, tab and new line, in precisely that order.
    232  1.1  christos as_nl='
    233  1.1  christos '
    234  1.1  christos IFS=" 	$as_nl"
    235  1.1  christos 
    236  1.1  christos # CDPATH.
    237  1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
    238  1.1  christos 
    239  1.1  christos 
    240  1.1  christos # Name of the host.
    241  1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    242  1.1  christos # so uname gets run too.
    243  1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    244  1.1  christos 
    245  1.1  christos exec 6>&1
    246  1.1  christos 
    247  1.1  christos #
    248  1.1  christos # Initializations.
    249  1.1  christos #
    250  1.1  christos ac_default_prefix=/usr/local
    251  1.1  christos cross_compiling=no
    252  1.1  christos subdirs=
    253  1.1  christos MFLAGS=
    254  1.1  christos MAKEFLAGS=
    255  1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    256  1.1  christos 
    257  1.1  christos # Maximum number of lines to put in a shell here document.
    258  1.1  christos # This variable seems obsolete.  It should probably be removed, and
    259  1.1  christos # only ac_max_sed_lines should be used.
    260  1.1  christos : ${ac_max_here_lines=38}
    261  1.1  christos 
    262  1.1  christos # Identity of this package.
    263  1.1  christos PACKAGE_NAME='GNU diffutils'
    264  1.1  christos PACKAGE_TARNAME='diffutils'
    265  1.1  christos PACKAGE_VERSION='2.8.1'
    266  1.1  christos PACKAGE_STRING='GNU diffutils 2.8.1'
    267  1.1  christos PACKAGE_BUGREPORT='bug-gnu-utils (at] gnu.org'
    268  1.1  christos 
    269  1.1  christos ac_unique_file="src/diff.c"
    270  1.1  christos # Factoring default headers for most tests.
    271  1.1  christos ac_includes_default="\
    272  1.1  christos #include <stdio.h>
    273  1.1  christos #if HAVE_SYS_TYPES_H
    274  1.1  christos # include <sys/types.h>
    275  1.1  christos #endif
    276  1.1  christos #if HAVE_SYS_STAT_H
    277  1.1  christos # include <sys/stat.h>
    278  1.1  christos #endif
    279  1.1  christos #if STDC_HEADERS
    280  1.1  christos # include <stdlib.h>
    281  1.1  christos # include <stddef.h>
    282  1.1  christos #else
    283  1.1  christos # if HAVE_STDLIB_H
    284  1.1  christos #  include <stdlib.h>
    285  1.1  christos # endif
    286  1.1  christos #endif
    287  1.1  christos #if HAVE_STRING_H
    288  1.1  christos # if !STDC_HEADERS && HAVE_MEMORY_H
    289  1.1  christos #  include <memory.h>
    290  1.1  christos # endif
    291  1.1  christos # include <string.h>
    292  1.1  christos #endif
    293  1.1  christos #if HAVE_STRINGS_H
    294  1.1  christos # include <strings.h>
    295  1.1  christos #endif
    296  1.1  christos #if HAVE_INTTYPES_H
    297  1.1  christos # include <inttypes.h>
    298  1.1  christos #else
    299  1.1  christos # if HAVE_STDINT_H
    300  1.1  christos #  include <stdint.h>
    301  1.1  christos # endif
    302  1.1  christos #endif
    303  1.1  christos #if HAVE_UNISTD_H
    304  1.1  christos # include <unistd.h>
    305  1.1  christos #endif"
    306  1.1  christos 
    307  1.1  christos 
    308  1.1  christos # Initialize some variables set by options.
    309  1.1  christos ac_init_help=
    310  1.1  christos ac_init_version=false
    311  1.1  christos # The variables have the same names as the options, with
    312  1.1  christos # dashes changed to underlines.
    313  1.1  christos cache_file=/dev/null
    314  1.1  christos exec_prefix=NONE
    315  1.1  christos no_create=
    316  1.1  christos no_recursion=
    317  1.1  christos prefix=NONE
    318  1.1  christos program_prefix=NONE
    319  1.1  christos program_suffix=NONE
    320  1.1  christos program_transform_name=s,x,x,
    321  1.1  christos silent=
    322  1.1  christos site=
    323  1.1  christos srcdir=
    324  1.1  christos verbose=
    325  1.1  christos x_includes=NONE
    326  1.1  christos x_libraries=NONE
    327  1.1  christos 
    328  1.1  christos # Installation directory options.
    329  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    330  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    331  1.1  christos # by default will actually change.
    332  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    333  1.1  christos bindir='${exec_prefix}/bin'
    334  1.1  christos sbindir='${exec_prefix}/sbin'
    335  1.1  christos libexecdir='${exec_prefix}/libexec'
    336  1.1  christos datadir='${prefix}/share'
    337  1.1  christos sysconfdir='${prefix}/etc'
    338  1.1  christos sharedstatedir='${prefix}/com'
    339  1.1  christos localstatedir='${prefix}/var'
    340  1.1  christos libdir='${exec_prefix}/lib'
    341  1.1  christos includedir='${prefix}/include'
    342  1.1  christos oldincludedir='/usr/include'
    343  1.1  christos infodir='${prefix}/info'
    344  1.1  christos mandir='${prefix}/man'
    345  1.1  christos 
    346  1.1  christos ac_prev=
    347  1.1  christos for ac_option
    348  1.1  christos do
    349  1.1  christos   # If the previous option needs an argument, assign it.
    350  1.1  christos   if test -n "$ac_prev"; then
    351  1.1  christos     eval "$ac_prev=\$ac_option"
    352  1.1  christos     ac_prev=
    353  1.1  christos     continue
    354  1.1  christos   fi
    355  1.1  christos 
    356  1.1  christos   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    357  1.1  christos 
    358  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    359  1.1  christos 
    360  1.1  christos   case $ac_option in
    361  1.1  christos 
    362  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    363  1.1  christos     ac_prev=bindir ;;
    364  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    365  1.1  christos     bindir=$ac_optarg ;;
    366  1.1  christos 
    367  1.1  christos   -build | --build | --buil | --bui | --bu)
    368  1.1  christos     ac_prev=build_alias ;;
    369  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    370  1.1  christos     build_alias=$ac_optarg ;;
    371  1.1  christos 
    372  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    373  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    374  1.1  christos     ac_prev=cache_file ;;
    375  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    376  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    377  1.1  christos     cache_file=$ac_optarg ;;
    378  1.1  christos 
    379  1.1  christos   --config-cache | -C)
    380  1.1  christos     cache_file=config.cache ;;
    381  1.1  christos 
    382  1.1  christos   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    383  1.1  christos     ac_prev=datadir ;;
    384  1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    385  1.1  christos   | --da=*)
    386  1.1  christos     datadir=$ac_optarg ;;
    387  1.1  christos 
    388  1.1  christos   -disable-* | --disable-*)
    389  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    390  1.1  christos     # Reject names that are not valid shell variable names.
    391  1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    392  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    393  1.1  christos    { (exit 1); exit 1; }; }
    394  1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    395  1.1  christos     eval "enable_$ac_feature=no" ;;
    396  1.1  christos 
    397  1.1  christos   -enable-* | --enable-*)
    398  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    399  1.1  christos     # Reject names that are not valid shell variable names.
    400  1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    401  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    402  1.1  christos    { (exit 1); exit 1; }; }
    403  1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    404  1.1  christos     case $ac_option in
    405  1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    406  1.1  christos       *) ac_optarg=yes ;;
    407  1.1  christos     esac
    408  1.1  christos     eval "enable_$ac_feature='$ac_optarg'" ;;
    409  1.1  christos 
    410  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    411  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    412  1.1  christos   | --exec | --exe | --ex)
    413  1.1  christos     ac_prev=exec_prefix ;;
    414  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    415  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    416  1.1  christos   | --exec=* | --exe=* | --ex=*)
    417  1.1  christos     exec_prefix=$ac_optarg ;;
    418  1.1  christos 
    419  1.1  christos   -gas | --gas | --ga | --g)
    420  1.1  christos     # Obsolete; use --with-gas.
    421  1.1  christos     with_gas=yes ;;
    422  1.1  christos 
    423  1.1  christos   -help | --help | --hel | --he | -h)
    424  1.1  christos     ac_init_help=long ;;
    425  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    426  1.1  christos     ac_init_help=recursive ;;
    427  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    428  1.1  christos     ac_init_help=short ;;
    429  1.1  christos 
    430  1.1  christos   -host | --host | --hos | --ho)
    431  1.1  christos     ac_prev=host_alias ;;
    432  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    433  1.1  christos     host_alias=$ac_optarg ;;
    434  1.1  christos 
    435  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    436  1.1  christos   | --includ | --inclu | --incl | --inc)
    437  1.1  christos     ac_prev=includedir ;;
    438  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    439  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    440  1.1  christos     includedir=$ac_optarg ;;
    441  1.1  christos 
    442  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    443  1.1  christos     ac_prev=infodir ;;
    444  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    445  1.1  christos     infodir=$ac_optarg ;;
    446  1.1  christos 
    447  1.1  christos   -libdir | --libdir | --libdi | --libd)
    448  1.1  christos     ac_prev=libdir ;;
    449  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    450  1.1  christos     libdir=$ac_optarg ;;
    451  1.1  christos 
    452  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    453  1.1  christos   | --libexe | --libex | --libe)
    454  1.1  christos     ac_prev=libexecdir ;;
    455  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    456  1.1  christos   | --libexe=* | --libex=* | --libe=*)
    457  1.1  christos     libexecdir=$ac_optarg ;;
    458  1.1  christos 
    459  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    460  1.1  christos   | --localstate | --localstat | --localsta | --localst \
    461  1.1  christos   | --locals | --local | --loca | --loc | --lo)
    462  1.1  christos     ac_prev=localstatedir ;;
    463  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    464  1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    465  1.1  christos   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    466  1.1  christos     localstatedir=$ac_optarg ;;
    467  1.1  christos 
    468  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    469  1.1  christos     ac_prev=mandir ;;
    470  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    471  1.1  christos     mandir=$ac_optarg ;;
    472  1.1  christos 
    473  1.1  christos   -nfp | --nfp | --nf)
    474  1.1  christos     # Obsolete; use --without-fp.
    475  1.1  christos     with_fp=no ;;
    476  1.1  christos 
    477  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    478  1.1  christos   | --no-cr | --no-c | -n)
    479  1.1  christos     no_create=yes ;;
    480  1.1  christos 
    481  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    482  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    483  1.1  christos     no_recursion=yes ;;
    484  1.1  christos 
    485  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    486  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    487  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    488  1.1  christos     ac_prev=oldincludedir ;;
    489  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    490  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    491  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    492  1.1  christos     oldincludedir=$ac_optarg ;;
    493  1.1  christos 
    494  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    495  1.1  christos     ac_prev=prefix ;;
    496  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    497  1.1  christos     prefix=$ac_optarg ;;
    498  1.1  christos 
    499  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    500  1.1  christos   | --program-pre | --program-pr | --program-p)
    501  1.1  christos     ac_prev=program_prefix ;;
    502  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    503  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    504  1.1  christos     program_prefix=$ac_optarg ;;
    505  1.1  christos 
    506  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    507  1.1  christos   | --program-suf | --program-su | --program-s)
    508  1.1  christos     ac_prev=program_suffix ;;
    509  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    510  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    511  1.1  christos     program_suffix=$ac_optarg ;;
    512  1.1  christos 
    513  1.1  christos   -program-transform-name | --program-transform-name \
    514  1.1  christos   | --program-transform-nam | --program-transform-na \
    515  1.1  christos   | --program-transform-n | --program-transform- \
    516  1.1  christos   | --program-transform | --program-transfor \
    517  1.1  christos   | --program-transfo | --program-transf \
    518  1.1  christos   | --program-trans | --program-tran \
    519  1.1  christos   | --progr-tra | --program-tr | --program-t)
    520  1.1  christos     ac_prev=program_transform_name ;;
    521  1.1  christos   -program-transform-name=* | --program-transform-name=* \
    522  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
    523  1.1  christos   | --program-transform-n=* | --program-transform-=* \
    524  1.1  christos   | --program-transform=* | --program-transfor=* \
    525  1.1  christos   | --program-transfo=* | --program-transf=* \
    526  1.1  christos   | --program-trans=* | --program-tran=* \
    527  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
    528  1.1  christos     program_transform_name=$ac_optarg ;;
    529  1.1  christos 
    530  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    531  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
    532  1.1  christos     silent=yes ;;
    533  1.1  christos 
    534  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    535  1.1  christos     ac_prev=sbindir ;;
    536  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    537  1.1  christos   | --sbi=* | --sb=*)
    538  1.1  christos     sbindir=$ac_optarg ;;
    539  1.1  christos 
    540  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    541  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    542  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
    543  1.1  christos   | --sha | --sh)
    544  1.1  christos     ac_prev=sharedstatedir ;;
    545  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    546  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    547  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    548  1.1  christos   | --sha=* | --sh=*)
    549  1.1  christos     sharedstatedir=$ac_optarg ;;
    550  1.1  christos 
    551  1.1  christos   -site | --site | --sit)
    552  1.1  christos     ac_prev=site ;;
    553  1.1  christos   -site=* | --site=* | --sit=*)
    554  1.1  christos     site=$ac_optarg ;;
    555  1.1  christos 
    556  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    557  1.1  christos     ac_prev=srcdir ;;
    558  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    559  1.1  christos     srcdir=$ac_optarg ;;
    560  1.1  christos 
    561  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    562  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
    563  1.1  christos     ac_prev=sysconfdir ;;
    564  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    565  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    566  1.1  christos     sysconfdir=$ac_optarg ;;
    567  1.1  christos 
    568  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
    569  1.1  christos     ac_prev=target_alias ;;
    570  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    571  1.1  christos     target_alias=$ac_optarg ;;
    572  1.1  christos 
    573  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    574  1.1  christos     verbose=yes ;;
    575  1.1  christos 
    576  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
    577  1.1  christos     ac_init_version=: ;;
    578  1.1  christos 
    579  1.1  christos   -with-* | --with-*)
    580  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    581  1.1  christos     # Reject names that are not valid shell variable names.
    582  1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    583  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    584  1.1  christos    { (exit 1); exit 1; }; }
    585  1.1  christos     ac_package=`echo $ac_package| sed 's/-/_/g'`
    586  1.1  christos     case $ac_option in
    587  1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    588  1.1  christos       *) ac_optarg=yes ;;
    589  1.1  christos     esac
    590  1.1  christos     eval "with_$ac_package='$ac_optarg'" ;;
    591  1.1  christos 
    592  1.1  christos   -without-* | --without-*)
    593  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    594  1.1  christos     # Reject names that are not valid shell variable names.
    595  1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    596  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    597  1.1  christos    { (exit 1); exit 1; }; }
    598  1.1  christos     ac_package=`echo $ac_package | sed 's/-/_/g'`
    599  1.1  christos     eval "with_$ac_package=no" ;;
    600  1.1  christos 
    601  1.1  christos   --x)
    602  1.1  christos     # Obsolete; use --with-x.
    603  1.1  christos     with_x=yes ;;
    604  1.1  christos 
    605  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    606  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
    607  1.1  christos     ac_prev=x_includes ;;
    608  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    609  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    610  1.1  christos     x_includes=$ac_optarg ;;
    611  1.1  christos 
    612  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    613  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    614  1.1  christos     ac_prev=x_libraries ;;
    615  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    616  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    617  1.1  christos     x_libraries=$ac_optarg ;;
    618  1.1  christos 
    619  1.1  christos   -*) { echo "$as_me: error: unrecognized option: $ac_option
    620  1.1  christos Try \`$0 --help' for more information." >&2
    621  1.1  christos    { (exit 1); exit 1; }; }
    622  1.1  christos     ;;
    623  1.1  christos 
    624  1.1  christos   *=*)
    625  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    626  1.1  christos     # Reject names that are not valid shell variable names.
    627  1.1  christos     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    628  1.1  christos       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    629  1.1  christos    { (exit 1); exit 1; }; }
    630  1.1  christos     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    631  1.1  christos     eval "$ac_envvar='$ac_optarg'"
    632  1.1  christos     export $ac_envvar ;;
    633  1.1  christos 
    634  1.1  christos   *)
    635  1.1  christos     # FIXME: should be removed in autoconf 3.0.
    636  1.1  christos     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    637  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    638  1.1  christos       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    639  1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    640  1.1  christos     ;;
    641  1.1  christos 
    642  1.1  christos   esac
    643  1.1  christos done
    644  1.1  christos 
    645  1.1  christos if test -n "$ac_prev"; then
    646  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    647  1.1  christos   { echo "$as_me: error: missing argument to $ac_option" >&2
    648  1.1  christos    { (exit 1); exit 1; }; }
    649  1.1  christos fi
    650  1.1  christos 
    651  1.1  christos # Be sure to have absolute paths.
    652  1.1  christos for ac_var in exec_prefix prefix
    653  1.1  christos do
    654  1.1  christos   eval ac_val=$`echo $ac_var`
    655  1.1  christos   case $ac_val in
    656  1.1  christos     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    657  1.1  christos     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    658  1.1  christos    { (exit 1); exit 1; }; };;
    659  1.1  christos   esac
    660  1.1  christos done
    661  1.1  christos 
    662  1.1  christos # Be sure to have absolute paths.
    663  1.1  christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    664  1.1  christos               localstatedir libdir includedir oldincludedir infodir mandir
    665  1.1  christos do
    666  1.1  christos   eval ac_val=$`echo $ac_var`
    667  1.1  christos   case $ac_val in
    668  1.1  christos     [\\/$]* | ?:[\\/]* ) ;;
    669  1.1  christos     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    670  1.1  christos    { (exit 1); exit 1; }; };;
    671  1.1  christos   esac
    672  1.1  christos done
    673  1.1  christos 
    674  1.1  christos # There might be people who depend on the old broken behavior: `$host'
    675  1.1  christos # used to hold the argument of --host etc.
    676  1.1  christos # FIXME: To remove some day.
    677  1.1  christos build=$build_alias
    678  1.1  christos host=$host_alias
    679  1.1  christos target=$target_alias
    680  1.1  christos 
    681  1.1  christos # FIXME: To remove some day.
    682  1.1  christos if test "x$host_alias" != x; then
    683  1.1  christos   if test "x$build_alias" = x; then
    684  1.1  christos     cross_compiling=maybe
    685  1.1  christos     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    686  1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
    687  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
    688  1.1  christos     cross_compiling=yes
    689  1.1  christos   fi
    690  1.1  christos fi
    691  1.1  christos 
    692  1.1  christos ac_tool_prefix=
    693  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
    694  1.1  christos 
    695  1.1  christos test "$silent" = yes && exec 6>/dev/null
    696  1.1  christos 
    697  1.1  christos 
    698  1.1  christos # Find the source files, if location was not specified.
    699  1.1  christos if test -z "$srcdir"; then
    700  1.1  christos   ac_srcdir_defaulted=yes
    701  1.1  christos   # Try the directory containing this script, then its parent.
    702  1.1  christos   ac_confdir=`(dirname "$0") 2>/dev/null ||
    703  1.1  christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    704  1.1  christos          X"$0" : 'X\(//\)[^/]' \| \
    705  1.1  christos          X"$0" : 'X\(//\)$' \| \
    706  1.1  christos          X"$0" : 'X\(/\)' \| \
    707  1.1  christos          .     : '\(.\)' 2>/dev/null ||
    708  1.1  christos echo X"$0" |
    709  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    710  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    711  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
    712  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
    713  1.1  christos   	  s/.*/./; q'`
    714  1.1  christos   srcdir=$ac_confdir
    715  1.1  christos   if test ! -r $srcdir/$ac_unique_file; then
    716  1.1  christos     srcdir=..
    717  1.1  christos   fi
    718  1.1  christos else
    719  1.1  christos   ac_srcdir_defaulted=no
    720  1.1  christos fi
    721  1.1  christos if test ! -r $srcdir/$ac_unique_file; then
    722  1.1  christos   if test "$ac_srcdir_defaulted" = yes; then
    723  1.1  christos     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    724  1.1  christos    { (exit 1); exit 1; }; }
    725  1.1  christos   else
    726  1.1  christos     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    727  1.1  christos    { (exit 1); exit 1; }; }
    728  1.1  christos   fi
    729  1.1  christos fi
    730  1.1  christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    731  1.1  christos ac_env_build_alias_set=${build_alias+set}
    732  1.1  christos ac_env_build_alias_value=$build_alias
    733  1.1  christos ac_cv_env_build_alias_set=${build_alias+set}
    734  1.1  christos ac_cv_env_build_alias_value=$build_alias
    735  1.1  christos ac_env_host_alias_set=${host_alias+set}
    736  1.1  christos ac_env_host_alias_value=$host_alias
    737  1.1  christos ac_cv_env_host_alias_set=${host_alias+set}
    738  1.1  christos ac_cv_env_host_alias_value=$host_alias
    739  1.1  christos ac_env_target_alias_set=${target_alias+set}
    740  1.1  christos ac_env_target_alias_value=$target_alias
    741  1.1  christos ac_cv_env_target_alias_set=${target_alias+set}
    742  1.1  christos ac_cv_env_target_alias_value=$target_alias
    743  1.1  christos ac_env_CC_set=${CC+set}
    744  1.1  christos ac_env_CC_value=$CC
    745  1.1  christos ac_cv_env_CC_set=${CC+set}
    746  1.1  christos ac_cv_env_CC_value=$CC
    747  1.1  christos ac_env_CFLAGS_set=${CFLAGS+set}
    748  1.1  christos ac_env_CFLAGS_value=$CFLAGS
    749  1.1  christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
    750  1.1  christos ac_cv_env_CFLAGS_value=$CFLAGS
    751  1.1  christos ac_env_LDFLAGS_set=${LDFLAGS+set}
    752  1.1  christos ac_env_LDFLAGS_value=$LDFLAGS
    753  1.1  christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    754  1.1  christos ac_cv_env_LDFLAGS_value=$LDFLAGS
    755  1.1  christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    756  1.1  christos ac_env_CPPFLAGS_value=$CPPFLAGS
    757  1.1  christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    758  1.1  christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    759  1.1  christos ac_env_CPP_set=${CPP+set}
    760  1.1  christos ac_env_CPP_value=$CPP
    761  1.1  christos ac_cv_env_CPP_set=${CPP+set}
    762  1.1  christos ac_cv_env_CPP_value=$CPP
    763  1.1  christos 
    764  1.1  christos #
    765  1.1  christos # Report the --help message.
    766  1.1  christos #
    767  1.1  christos if test "$ac_init_help" = "long"; then
    768  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
    769  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
    770  1.1  christos   cat <<_ACEOF
    771  1.1  christos \`configure' configures GNU diffutils 2.8.1 to adapt to many kinds of systems.
    772  1.1  christos 
    773  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
    774  1.1  christos 
    775  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
    776  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
    777  1.1  christos 
    778  1.1  christos Defaults for the options are specified in brackets.
    779  1.1  christos 
    780  1.1  christos Configuration:
    781  1.1  christos   -h, --help              display this help and exit
    782  1.1  christos       --help=short        display options specific to this package
    783  1.1  christos       --help=recursive    display the short help of all the included packages
    784  1.1  christos   -V, --version           display version information and exit
    785  1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
    786  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
    787  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
    788  1.1  christos   -n, --no-create         do not create output files
    789  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    790  1.1  christos 
    791  1.1  christos _ACEOF
    792  1.1  christos 
    793  1.1  christos   cat <<_ACEOF
    794  1.1  christos Installation directories:
    795  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
    796  1.1  christos                           [$ac_default_prefix]
    797  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    798  1.1  christos                           [PREFIX]
    799  1.1  christos 
    800  1.1  christos By default, \`make install' will install all the files in
    801  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    802  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    803  1.1  christos for instance \`--prefix=\$HOME'.
    804  1.1  christos 
    805  1.1  christos For better control, use the options below.
    806  1.1  christos 
    807  1.1  christos Fine tuning of the installation directories:
    808  1.1  christos   --bindir=DIR           user executables [EPREFIX/bin]
    809  1.1  christos   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    810  1.1  christos   --libexecdir=DIR       program executables [EPREFIX/libexec]
    811  1.1  christos   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    812  1.1  christos   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    813  1.1  christos   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    814  1.1  christos   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    815  1.1  christos   --libdir=DIR           object code libraries [EPREFIX/lib]
    816  1.1  christos   --includedir=DIR       C header files [PREFIX/include]
    817  1.1  christos   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    818  1.1  christos   --infodir=DIR          info documentation [PREFIX/info]
    819  1.1  christos   --mandir=DIR           man documentation [PREFIX/man]
    820  1.1  christos _ACEOF
    821  1.1  christos 
    822  1.1  christos   cat <<\_ACEOF
    823  1.1  christos 
    824  1.1  christos Program names:
    825  1.1  christos   --program-prefix=PREFIX            prepend PREFIX to installed program names
    826  1.1  christos   --program-suffix=SUFFIX            append SUFFIX to installed program names
    827  1.1  christos   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    828  1.1  christos 
    829  1.1  christos System types:
    830  1.1  christos   --build=BUILD     configure for building on BUILD [guessed]
    831  1.1  christos   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    832  1.1  christos _ACEOF
    833  1.1  christos fi
    834  1.1  christos 
    835  1.1  christos if test -n "$ac_init_help"; then
    836  1.1  christos   case $ac_init_help in
    837  1.1  christos      short | recursive ) echo "Configuration of GNU diffutils 2.8.1:";;
    838  1.1  christos    esac
    839  1.1  christos   cat <<\_ACEOF
    840  1.1  christos 
    841  1.1  christos Optional Features:
    842  1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    843  1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    844  1.1  christos   --disable-dependency-tracking Speeds up one-time builds
    845  1.1  christos   --enable-dependency-tracking  Do not reject slow dependency extractors
    846  1.1  christos   --disable-largefile     omit support for large files
    847  1.1  christos   --disable-nls           do not use Native Language Support
    848  1.1  christos 
    849  1.1  christos Optional Packages:
    850  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    851  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    852  1.1  christos   --with-gnu-ld           assume the C compiler uses GNU ld default=no
    853  1.1  christos   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
    854  1.1  christos   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
    855  1.1  christos   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
    856  1.1  christos   --without-libintl-prefix     don't search for libintl in includedir and libdir
    857  1.1  christos   --without-included-regex don't compile regex; this is the default on
    858  1.1  christos                           systems with version 2 of the GNU C library
    859  1.1  christos                           (use with caution on other system)
    860  1.1  christos 
    861  1.1  christos Some influential environment variables:
    862  1.1  christos   CC          C compiler command
    863  1.1  christos   CFLAGS      C compiler flags
    864  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    865  1.1  christos               nonstandard directory <lib dir>
    866  1.1  christos   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    867  1.1  christos               headers in a nonstandard directory <include dir>
    868  1.1  christos   CPP         C preprocessor
    869  1.1  christos 
    870  1.1  christos Use these variables to override the choices made by `configure' or to help
    871  1.1  christos it to find libraries and programs with nonstandard names/locations.
    872  1.1  christos 
    873  1.1  christos Report bugs to <bug-gnu-utils@gnu.org>.
    874  1.1  christos _ACEOF
    875  1.1  christos fi
    876  1.1  christos 
    877  1.1  christos if test "$ac_init_help" = "recursive"; then
    878  1.1  christos   # If there are subdirs, report their specific --help.
    879  1.1  christos   ac_popdir=`pwd`
    880  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    881  1.1  christos     test -d $ac_dir || continue
    882  1.1  christos     ac_builddir=.
    883  1.1  christos 
    884  1.1  christos if test "$ac_dir" != .; then
    885  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    886  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
    887  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    888  1.1  christos else
    889  1.1  christos   ac_dir_suffix= ac_top_builddir=
    890  1.1  christos fi
    891  1.1  christos 
    892  1.1  christos case $srcdir in
    893  1.1  christos   .)  # No --srcdir option.  We are building in place.
    894  1.1  christos     ac_srcdir=.
    895  1.1  christos     if test -z "$ac_top_builddir"; then
    896  1.1  christos        ac_top_srcdir=.
    897  1.1  christos     else
    898  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    899  1.1  christos     fi ;;
    900  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute path.
    901  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
    902  1.1  christos     ac_top_srcdir=$srcdir ;;
    903  1.1  christos   *) # Relative path.
    904  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    905  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    906  1.1  christos esac
    907  1.1  christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
    908  1.1  christos # absolute.
    909  1.1  christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
    910  1.1  christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
    911  1.1  christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
    912  1.1  christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    913  1.1  christos 
    914  1.1  christos     cd $ac_dir
    915  1.1  christos     # Check for guested configure; otherwise get Cygnus style configure.
    916  1.1  christos     if test -f $ac_srcdir/configure.gnu; then
    917  1.1  christos       echo
    918  1.1  christos       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    919  1.1  christos     elif test -f $ac_srcdir/configure; then
    920  1.1  christos       echo
    921  1.1  christos       $SHELL $ac_srcdir/configure  --help=recursive
    922  1.1  christos     elif test -f $ac_srcdir/configure.ac ||
    923  1.1  christos            test -f $ac_srcdir/configure.in; then
    924  1.1  christos       echo
    925  1.1  christos       $ac_configure --help
    926  1.1  christos     else
    927  1.1  christos       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    928  1.1  christos     fi
    929  1.1  christos     cd $ac_popdir
    930  1.1  christos   done
    931  1.1  christos fi
    932  1.1  christos 
    933  1.1  christos test -n "$ac_init_help" && exit 0
    934  1.1  christos if $ac_init_version; then
    935  1.1  christos   cat <<\_ACEOF
    936  1.1  christos GNU diffutils configure 2.8.1
    937  1.1  christos generated by GNU Autoconf 2.53
    938  1.1  christos 
    939  1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    940  1.1  christos Free Software Foundation, Inc.
    941  1.1  christos This configure script is free software; the Free Software Foundation
    942  1.1  christos gives unlimited permission to copy, distribute and modify it.
    943  1.1  christos _ACEOF
    944  1.1  christos   exit 0
    945  1.1  christos fi
    946  1.1  christos exec 5>config.log
    947  1.1  christos cat >&5 <<_ACEOF
    948  1.1  christos This file contains any messages produced by compilers while
    949  1.1  christos running configure, to aid debugging if configure makes a mistake.
    950  1.1  christos 
    951  1.1  christos It was created by GNU diffutils $as_me 2.8.1, which was
    952  1.1  christos generated by GNU Autoconf 2.53.  Invocation command line was
    953  1.1  christos 
    954  1.1  christos   $ $0 $@
    955  1.1  christos 
    956  1.1  christos _ACEOF
    957  1.1  christos {
    958  1.1  christos cat <<_ASUNAME
    959  1.1  christos ## --------- ##
    960  1.1  christos ## Platform. ##
    961  1.1  christos ## --------- ##
    962  1.1  christos 
    963  1.1  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    964  1.1  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
    965  1.1  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
    966  1.1  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
    967  1.1  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
    968  1.1  christos 
    969  1.1  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    970  1.1  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    971  1.1  christos 
    972  1.1  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    973  1.1  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    974  1.1  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    975  1.1  christos hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    976  1.1  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    977  1.1  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    978  1.1  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    979  1.1  christos 
    980  1.1  christos _ASUNAME
    981  1.1  christos 
    982  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    983  1.1  christos for as_dir in $PATH
    984  1.1  christos do
    985  1.1  christos   IFS=$as_save_IFS
    986  1.1  christos   test -z "$as_dir" && as_dir=.
    987  1.1  christos   echo "PATH: $as_dir"
    988  1.1  christos done
    989  1.1  christos 
    990  1.1  christos } >&5
    991  1.1  christos 
    992  1.1  christos cat >&5 <<_ACEOF
    993  1.1  christos 
    994  1.1  christos 
    995  1.1  christos ## ----------- ##
    996  1.1  christos ## Core tests. ##
    997  1.1  christos ## ----------- ##
    998  1.1  christos 
    999  1.1  christos _ACEOF
   1000  1.1  christos 
   1001  1.1  christos 
   1002  1.1  christos # Keep a trace of the command line.
   1003  1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   1004  1.1  christos # Also quote any args containing shell meta-characters.
   1005  1.1  christos ac_configure_args=
   1006  1.1  christos ac_sep=
   1007  1.1  christos for ac_arg
   1008  1.1  christos do
   1009  1.1  christos   case $ac_arg in
   1010  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1011  1.1  christos   | --no-cr | --no-c | -n ) continue ;;
   1012  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1013  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1014  1.1  christos     continue ;;
   1015  1.1  christos   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1016  1.1  christos     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1017  1.1  christos   esac
   1018  1.1  christos   case " $ac_configure_args " in
   1019  1.1  christos     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1020  1.1  christos     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
   1021  1.1  christos        ac_sep=" " ;;
   1022  1.1  christos   esac
   1023  1.1  christos   # Get rid of the leading space.
   1024  1.1  christos done
   1025  1.1  christos 
   1026  1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   1027  1.1  christos # config.log.  We remove comments because anyway the quotes in there
   1028  1.1  christos # would cause problems or look ugly.
   1029  1.1  christos # WARNING: Be sure not to use single quotes in there, as some shells,
   1030  1.1  christos # such as our DU 5.0 friend, will then `close' the trap.
   1031  1.1  christos trap 'exit_status=$?
   1032  1.1  christos   # Save into config.log some information that might help in debugging.
   1033  1.1  christos   {
   1034  1.1  christos     echo
   1035  1.1  christos     cat <<\_ASBOX
   1036  1.1  christos ## ---------------- ##
   1037  1.1  christos ## Cache variables. ##
   1038  1.1  christos ## ---------------- ##
   1039  1.1  christos _ASBOX
   1040  1.1  christos     echo
   1041  1.1  christos     # The following way of writing the cache mishandles newlines in values,
   1042  1.1  christos {
   1043  1.1  christos   (set) 2>&1 |
   1044  1.1  christos     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
   1045  1.1  christos     *ac_space=\ *)
   1046  1.1  christos       sed -n \
   1047  1.1  christos         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
   1048  1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
   1049  1.1  christos       ;;
   1050  1.1  christos     *)
   1051  1.1  christos       sed -n \
   1052  1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   1053  1.1  christos       ;;
   1054  1.1  christos     esac;
   1055  1.1  christos }
   1056  1.1  christos     echo
   1057  1.1  christos     if test -s confdefs.h; then
   1058  1.1  christos       cat <<\_ASBOX
   1059  1.1  christos ## ----------- ##
   1060  1.1  christos ## confdefs.h. ##
   1061  1.1  christos ## ----------- ##
   1062  1.1  christos _ASBOX
   1063  1.1  christos       echo
   1064  1.1  christos       sed "/^$/d" confdefs.h
   1065  1.1  christos       echo
   1066  1.1  christos     fi
   1067  1.1  christos     test "$ac_signal" != 0 &&
   1068  1.1  christos       echo "$as_me: caught signal $ac_signal"
   1069  1.1  christos     echo "$as_me: exit $exit_status"
   1070  1.1  christos   } >&5
   1071  1.1  christos   rm -f core core.* *.core &&
   1072  1.1  christos   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
   1073  1.1  christos     exit $exit_status
   1074  1.1  christos      ' 0
   1075  1.1  christos for ac_signal in 1 2 13 15; do
   1076  1.1  christos   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1077  1.1  christos done
   1078  1.1  christos ac_signal=0
   1079  1.1  christos 
   1080  1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1081  1.1  christos rm -rf conftest* confdefs.h
   1082  1.1  christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1083  1.1  christos echo >confdefs.h
   1084  1.1  christos 
   1085  1.1  christos # Predefined preprocessor variables.
   1086  1.1  christos 
   1087  1.1  christos cat >>confdefs.h <<_ACEOF
   1088  1.1  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   1089  1.1  christos _ACEOF
   1090  1.1  christos 
   1091  1.1  christos 
   1092  1.1  christos cat >>confdefs.h <<_ACEOF
   1093  1.1  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1094  1.1  christos _ACEOF
   1095  1.1  christos 
   1096  1.1  christos 
   1097  1.1  christos cat >>confdefs.h <<_ACEOF
   1098  1.1  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1099  1.1  christos _ACEOF
   1100  1.1  christos 
   1101  1.1  christos 
   1102  1.1  christos cat >>confdefs.h <<_ACEOF
   1103  1.1  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   1104  1.1  christos _ACEOF
   1105  1.1  christos 
   1106  1.1  christos 
   1107  1.1  christos cat >>confdefs.h <<_ACEOF
   1108  1.1  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1109  1.1  christos _ACEOF
   1110  1.1  christos 
   1111  1.1  christos 
   1112  1.1  christos # Let the site file select an alternate cache file if it wants to.
   1113  1.1  christos # Prefer explicitly selected file to automatically selected ones.
   1114  1.1  christos if test -z "$CONFIG_SITE"; then
   1115  1.1  christos   if test "x$prefix" != xNONE; then
   1116  1.1  christos     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1117  1.1  christos   else
   1118  1.1  christos     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1119  1.1  christos   fi
   1120  1.1  christos fi
   1121  1.1  christos for ac_site_file in $CONFIG_SITE; do
   1122  1.1  christos   if test -r "$ac_site_file"; then
   1123  1.1  christos     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1124  1.1  christos echo "$as_me: loading site script $ac_site_file" >&6;}
   1125  1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   1126  1.1  christos     . "$ac_site_file"
   1127  1.1  christos   fi
   1128  1.1  christos done
   1129  1.1  christos 
   1130  1.1  christos if test -r "$cache_file"; then
   1131  1.1  christos   # Some versions of bash will fail to source /dev/null (special
   1132  1.1  christos   # files actually), so we avoid doing that.
   1133  1.1  christos   if test -f "$cache_file"; then
   1134  1.1  christos     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1135  1.1  christos echo "$as_me: loading cache $cache_file" >&6;}
   1136  1.1  christos     case $cache_file in
   1137  1.1  christos       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1138  1.1  christos       *)                      . ./$cache_file;;
   1139  1.1  christos     esac
   1140  1.1  christos   fi
   1141  1.1  christos else
   1142  1.1  christos   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1143  1.1  christos echo "$as_me: creating cache $cache_file" >&6;}
   1144  1.1  christos   >$cache_file
   1145  1.1  christos fi
   1146  1.1  christos 
   1147  1.1  christos # Check that the precious variables saved in the cache have kept the same
   1148  1.1  christos # value.
   1149  1.1  christos ac_cache_corrupted=false
   1150  1.1  christos for ac_var in `(set) 2>&1 |
   1151  1.1  christos                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1152  1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1153  1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   1154  1.1  christos   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1155  1.1  christos   eval ac_new_val="\$ac_env_${ac_var}_value"
   1156  1.1  christos   case $ac_old_set,$ac_new_set in
   1157  1.1  christos     set,)
   1158  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1159  1.1  christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1160  1.1  christos       ac_cache_corrupted=: ;;
   1161  1.1  christos     ,set)
   1162  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1163  1.1  christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1164  1.1  christos       ac_cache_corrupted=: ;;
   1165  1.1  christos     ,);;
   1166  1.1  christos     *)
   1167  1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   1168  1.1  christos         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1169  1.1  christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1170  1.1  christos         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1171  1.1  christos echo "$as_me:   former value:  $ac_old_val" >&2;}
   1172  1.1  christos         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1173  1.1  christos echo "$as_me:   current value: $ac_new_val" >&2;}
   1174  1.1  christos         ac_cache_corrupted=:
   1175  1.1  christos       fi;;
   1176  1.1  christos   esac
   1177  1.1  christos   # Pass precious variables to config.status.
   1178  1.1  christos   if test "$ac_new_set" = set; then
   1179  1.1  christos     case $ac_new_val in
   1180  1.1  christos     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1181  1.1  christos       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1182  1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   1183  1.1  christos     esac
   1184  1.1  christos     case " $ac_configure_args " in
   1185  1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1186  1.1  christos       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1187  1.1  christos     esac
   1188  1.1  christos   fi
   1189  1.1  christos done
   1190  1.1  christos if $ac_cache_corrupted; then
   1191  1.1  christos   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1192  1.1  christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1193  1.1  christos   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1194  1.1  christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1195  1.1  christos    { (exit 1); exit 1; }; }
   1196  1.1  christos fi
   1197  1.1  christos 
   1198  1.1  christos ac_ext=c
   1199  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1200  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1201  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1202  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1203  1.1  christos 
   1204  1.1  christos 
   1205  1.1  christos 
   1206  1.1  christos 
   1207  1.1  christos 
   1208  1.1  christos 
   1209  1.1  christos 
   1210  1.1  christos 
   1211  1.1  christos 
   1212  1.1  christos 
   1213  1.1  christos 
   1214  1.1  christos 
   1215  1.1  christos 
   1216  1.1  christos 
   1217  1.1  christos 
   1218  1.1  christos 
   1219  1.1  christos 
   1220  1.1  christos 
   1221  1.1  christos 
   1222  1.1  christos 
   1223  1.1  christos 
   1224  1.1  christos 
   1225  1.1  christos 
   1226  1.1  christos 
   1227  1.1  christos 
   1228  1.1  christos 
   1229  1.1  christos 
   1230  1.1  christos 
   1231  1.1  christos ac_aux_dir=
   1232  1.1  christos for ac_dir in config $srcdir/config; do
   1233  1.1  christos   if test -f $ac_dir/install-sh; then
   1234  1.1  christos     ac_aux_dir=$ac_dir
   1235  1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   1236  1.1  christos     break
   1237  1.1  christos   elif test -f $ac_dir/install.sh; then
   1238  1.1  christos     ac_aux_dir=$ac_dir
   1239  1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   1240  1.1  christos     break
   1241  1.1  christos   elif test -f $ac_dir/shtool; then
   1242  1.1  christos     ac_aux_dir=$ac_dir
   1243  1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   1244  1.1  christos     break
   1245  1.1  christos   fi
   1246  1.1  christos done
   1247  1.1  christos if test -z "$ac_aux_dir"; then
   1248  1.1  christos   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
   1249  1.1  christos echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
   1250  1.1  christos    { (exit 1); exit 1; }; }
   1251  1.1  christos fi
   1252  1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1253  1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1254  1.1  christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1255  1.1  christos 
   1256  1.1  christos # Add the stamp file to the list of files AC keeps track of,
   1257  1.1  christos # along with our hook.
   1258  1.1  christos ac_config_headers="$ac_config_headers config.h:config.hin"
   1259  1.1  christos 
   1260  1.1  christos 
   1261  1.1  christos 
   1262  1.1  christos am__api_version="1.6"
   1263  1.1  christos # Find a good install program.  We prefer a C program (faster),
   1264  1.1  christos # so one script is as good as another.  But avoid the broken or
   1265  1.1  christos # incompatible versions:
   1266  1.1  christos # SysV /etc/install, /usr/sbin/install
   1267  1.1  christos # SunOS /usr/etc/install
   1268  1.1  christos # IRIX /sbin/install
   1269  1.1  christos # AIX /bin/install
   1270  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   1271  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   1272  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   1273  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   1274  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   1275  1.1  christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   1276  1.1  christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   1277  1.1  christos if test -z "$INSTALL"; then
   1278  1.1  christos if test "${ac_cv_path_install+set}" = set; then
   1279  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1280  1.1  christos else
   1281  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1282  1.1  christos for as_dir in $PATH
   1283  1.1  christos do
   1284  1.1  christos   IFS=$as_save_IFS
   1285  1.1  christos   test -z "$as_dir" && as_dir=.
   1286  1.1  christos   # Account for people who put trailing slashes in PATH elements.
   1287  1.1  christos case $as_dir/ in
   1288  1.1  christos   ./ | .// | /cC/* | \
   1289  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   1290  1.1  christos   /usr/ucb/* ) ;;
   1291  1.1  christos   *)
   1292  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   1293  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   1294  1.1  christos     # by default.
   1295  1.1  christos     for ac_prog in ginstall scoinst install; do
   1296  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   1297  1.1  christos         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   1298  1.1  christos           if test $ac_prog = install &&
   1299  1.1  christos             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   1300  1.1  christos             # AIX install.  It has an incompatible calling convention.
   1301  1.1  christos             :
   1302  1.1  christos           elif test $ac_prog = install &&
   1303  1.1  christos             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   1304  1.1  christos             # program-specific install script used by HP pwplus--don't use.
   1305  1.1  christos             :
   1306  1.1  christos           else
   1307  1.1  christos             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   1308  1.1  christos             break 3
   1309  1.1  christos           fi
   1310  1.1  christos         fi
   1311  1.1  christos       done
   1312  1.1  christos     done
   1313  1.1  christos     ;;
   1314  1.1  christos esac
   1315  1.1  christos done
   1316  1.1  christos 
   1317  1.1  christos 
   1318  1.1  christos fi
   1319  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   1320  1.1  christos     INSTALL=$ac_cv_path_install
   1321  1.1  christos   else
   1322  1.1  christos     # As a last resort, use the slow shell script.  We don't cache a
   1323  1.1  christos     # path for INSTALL within a source directory, because that will
   1324  1.1  christos     # break other packages using the cache if that directory is
   1325  1.1  christos     # removed, or if the path is relative.
   1326  1.1  christos     INSTALL=$ac_install_sh
   1327  1.1  christos   fi
   1328  1.1  christos fi
   1329  1.1  christos echo "$as_me:$LINENO: result: $INSTALL" >&5
   1330  1.1  christos echo "${ECHO_T}$INSTALL" >&6
   1331  1.1  christos 
   1332  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   1333  1.1  christos # It thinks the first close brace ends the variable substitution.
   1334  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   1335  1.1  christos 
   1336  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   1337  1.1  christos 
   1338  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   1339  1.1  christos 
   1340  1.1  christos echo "$as_me:$LINENO: checking whether build environment is sane" >&5
   1341  1.1  christos echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
   1342  1.1  christos # Just in case
   1343  1.1  christos sleep 1
   1344  1.1  christos echo timestamp > conftest.file
   1345  1.1  christos # Do `set' in a subshell so we don't clobber the current shell's
   1346  1.1  christos # arguments.  Must try -L first in case configure is actually a
   1347  1.1  christos # symlink; some systems play weird games with the mod time of symlinks
   1348  1.1  christos # (eg FreeBSD returns the mod time of the symlink's containing
   1349  1.1  christos # directory).
   1350  1.1  christos if (
   1351  1.1  christos    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   1352  1.1  christos    if test "$*" = "X"; then
   1353  1.1  christos       # -L didn't work.
   1354  1.1  christos       set X `ls -t $srcdir/configure conftest.file`
   1355  1.1  christos    fi
   1356  1.1  christos    rm -f conftest.file
   1357  1.1  christos    if test "$*" != "X $srcdir/configure conftest.file" \
   1358  1.1  christos       && test "$*" != "X conftest.file $srcdir/configure"; then
   1359  1.1  christos 
   1360  1.1  christos       # If neither matched, then we have a broken ls.  This can happen
   1361  1.1  christos       # if, for instance, CONFIG_SHELL is bash and it inherits a
   1362  1.1  christos       # broken ls alias from the environment.  This has actually
   1363  1.1  christos       # happened.  Such a system could not be considered "sane".
   1364  1.1  christos       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
   1365  1.1  christos alias in your environment" >&5
   1366  1.1  christos echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
   1367  1.1  christos alias in your environment" >&2;}
   1368  1.1  christos    { (exit 1); exit 1; }; }
   1369  1.1  christos    fi
   1370  1.1  christos 
   1371  1.1  christos    test "$2" = conftest.file
   1372  1.1  christos    )
   1373  1.1  christos then
   1374  1.1  christos    # Ok.
   1375  1.1  christos    :
   1376  1.1  christos else
   1377  1.1  christos    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
   1378  1.1  christos Check your system clock" >&5
   1379  1.1  christos echo "$as_me: error: newly created file is older than distributed files!
   1380  1.1  christos Check your system clock" >&2;}
   1381  1.1  christos    { (exit 1); exit 1; }; }
   1382  1.1  christos fi
   1383  1.1  christos echo "$as_me:$LINENO: result: yes" >&5
   1384  1.1  christos echo "${ECHO_T}yes" >&6
   1385  1.1  christos test "$program_prefix" != NONE &&
   1386  1.1  christos   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   1387  1.1  christos # Use a double $ so make ignores it.
   1388  1.1  christos test "$program_suffix" != NONE &&
   1389  1.1  christos   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   1390  1.1  christos # Double any \ or $.  echo might interpret backslashes.
   1391  1.1  christos # By default was `s,x,x', remove it if useless.
   1392  1.1  christos cat <<\_ACEOF >conftest.sed
   1393  1.1  christos s/[\\$]/&&/g;s/;s,x,x,$//
   1394  1.1  christos _ACEOF
   1395  1.1  christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   1396  1.1  christos rm conftest.sed
   1397  1.1  christos 
   1398  1.1  christos 
   1399  1.1  christos # expand $ac_aux_dir to an absolute path
   1400  1.1  christos am_aux_dir=`cd $ac_aux_dir && pwd`
   1401  1.1  christos 
   1402  1.1  christos test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   1403  1.1  christos # Use eval to expand $SHELL
   1404  1.1  christos if eval "$MISSING --run true"; then
   1405  1.1  christos   am_missing_run="$MISSING --run "
   1406  1.1  christos else
   1407  1.1  christos   am_missing_run=
   1408  1.1  christos   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
   1409  1.1  christos echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   1410  1.1  christos fi
   1411  1.1  christos 
   1412  1.1  christos for ac_prog in gawk mawk nawk awk
   1413  1.1  christos do
   1414  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1415  1.1  christos set dummy $ac_prog; ac_word=$2
   1416  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1417  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1418  1.1  christos if test "${ac_cv_prog_AWK+set}" = set; then
   1419  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1420  1.1  christos else
   1421  1.1  christos   if test -n "$AWK"; then
   1422  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   1423  1.1  christos else
   1424  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1425  1.1  christos for as_dir in $PATH
   1426  1.1  christos do
   1427  1.1  christos   IFS=$as_save_IFS
   1428  1.1  christos   test -z "$as_dir" && as_dir=.
   1429  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1430  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1431  1.1  christos     ac_cv_prog_AWK="$ac_prog"
   1432  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1433  1.1  christos     break 2
   1434  1.1  christos   fi
   1435  1.1  christos done
   1436  1.1  christos done
   1437  1.1  christos 
   1438  1.1  christos fi
   1439  1.1  christos fi
   1440  1.1  christos AWK=$ac_cv_prog_AWK
   1441  1.1  christos if test -n "$AWK"; then
   1442  1.1  christos   echo "$as_me:$LINENO: result: $AWK" >&5
   1443  1.1  christos echo "${ECHO_T}$AWK" >&6
   1444  1.1  christos else
   1445  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1446  1.1  christos echo "${ECHO_T}no" >&6
   1447  1.1  christos fi
   1448  1.1  christos 
   1449  1.1  christos   test -n "$AWK" && break
   1450  1.1  christos done
   1451  1.1  christos 
   1452  1.1  christos echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
   1453  1.1  christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
   1454  1.1  christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
   1455  1.1  christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   1456  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1457  1.1  christos else
   1458  1.1  christos   cat >conftest.make <<\_ACEOF
   1459  1.1  christos all:
   1460  1.1  christos 	@echo 'ac_maketemp="${MAKE}"'
   1461  1.1  christos _ACEOF
   1462  1.1  christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   1463  1.1  christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
   1464  1.1  christos if test -n "$ac_maketemp"; then
   1465  1.1  christos   eval ac_cv_prog_make_${ac_make}_set=yes
   1466  1.1  christos else
   1467  1.1  christos   eval ac_cv_prog_make_${ac_make}_set=no
   1468  1.1  christos fi
   1469  1.1  christos rm -f conftest.make
   1470  1.1  christos fi
   1471  1.1  christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   1472  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   1473  1.1  christos echo "${ECHO_T}yes" >&6
   1474  1.1  christos   SET_MAKE=
   1475  1.1  christos else
   1476  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1477  1.1  christos echo "${ECHO_T}no" >&6
   1478  1.1  christos   SET_MAKE="MAKE=${MAKE-make}"
   1479  1.1  christos fi
   1480  1.1  christos 
   1481  1.1  christos  # test to see if srcdir already configured
   1482  1.1  christos if test "`cd $srcdir && pwd`" != "`pwd`" &&
   1483  1.1  christos    test -f $srcdir/config.status; then
   1484  1.1  christos   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
   1485  1.1  christos echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   1486  1.1  christos    { (exit 1); exit 1; }; }
   1487  1.1  christos fi
   1488  1.1  christos 
   1489  1.1  christos # Define the identity of the package.
   1490  1.1  christos  PACKAGE=diffutils
   1491  1.1  christos  VERSION=2.8.1
   1492  1.1  christos 
   1493  1.1  christos 
   1494  1.1  christos cat >>confdefs.h <<_ACEOF
   1495  1.1  christos #define PACKAGE "$PACKAGE"
   1496  1.1  christos _ACEOF
   1497  1.1  christos 
   1498  1.1  christos 
   1499  1.1  christos cat >>confdefs.h <<_ACEOF
   1500  1.1  christos #define VERSION "$VERSION"
   1501  1.1  christos _ACEOF
   1502  1.1  christos 
   1503  1.1  christos # Some tools Automake needs.
   1504  1.1  christos 
   1505  1.1  christos ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
   1506  1.1  christos 
   1507  1.1  christos 
   1508  1.1  christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   1509  1.1  christos 
   1510  1.1  christos 
   1511  1.1  christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
   1512  1.1  christos 
   1513  1.1  christos 
   1514  1.1  christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   1515  1.1  christos 
   1516  1.1  christos 
   1517  1.1  christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   1518  1.1  christos 
   1519  1.1  christos 
   1520  1.1  christos AMTAR=${AMTAR-"${am_missing_run}tar"}
   1521  1.1  christos 
   1522  1.1  christos install_sh=${install_sh-"$am_aux_dir/install-sh"}
   1523  1.1  christos 
   1524  1.1  christos # Installed binaries are usually stripped using `strip' when the user
   1525  1.1  christos # run `make install-strip'.  However `strip' might not be the right
   1526  1.1  christos # tool to use in cross-compilation environments, therefore Automake
   1527  1.1  christos # will honor the `STRIP' environment variable to overrule this program.
   1528  1.1  christos if test "$cross_compiling" != no; then
   1529  1.1  christos   if test -n "$ac_tool_prefix"; then
   1530  1.1  christos   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   1531  1.1  christos set dummy ${ac_tool_prefix}strip; ac_word=$2
   1532  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1533  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1534  1.1  christos if test "${ac_cv_prog_STRIP+set}" = set; then
   1535  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1536  1.1  christos else
   1537  1.1  christos   if test -n "$STRIP"; then
   1538  1.1  christos   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   1539  1.1  christos else
   1540  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1541  1.1  christos for as_dir in $PATH
   1542  1.1  christos do
   1543  1.1  christos   IFS=$as_save_IFS
   1544  1.1  christos   test -z "$as_dir" && as_dir=.
   1545  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1546  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1547  1.1  christos     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   1548  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1549  1.1  christos     break 2
   1550  1.1  christos   fi
   1551  1.1  christos done
   1552  1.1  christos done
   1553  1.1  christos 
   1554  1.1  christos fi
   1555  1.1  christos fi
   1556  1.1  christos STRIP=$ac_cv_prog_STRIP
   1557  1.1  christos if test -n "$STRIP"; then
   1558  1.1  christos   echo "$as_me:$LINENO: result: $STRIP" >&5
   1559  1.1  christos echo "${ECHO_T}$STRIP" >&6
   1560  1.1  christos else
   1561  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1562  1.1  christos echo "${ECHO_T}no" >&6
   1563  1.1  christos fi
   1564  1.1  christos 
   1565  1.1  christos fi
   1566  1.1  christos if test -z "$ac_cv_prog_STRIP"; then
   1567  1.1  christos   ac_ct_STRIP=$STRIP
   1568  1.1  christos   # Extract the first word of "strip", so it can be a program name with args.
   1569  1.1  christos set dummy strip; ac_word=$2
   1570  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1571  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1572  1.1  christos if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   1573  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1574  1.1  christos else
   1575  1.1  christos   if test -n "$ac_ct_STRIP"; then
   1576  1.1  christos   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   1577  1.1  christos else
   1578  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1579  1.1  christos for as_dir in $PATH
   1580  1.1  christos do
   1581  1.1  christos   IFS=$as_save_IFS
   1582  1.1  christos   test -z "$as_dir" && as_dir=.
   1583  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1584  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1585  1.1  christos     ac_cv_prog_ac_ct_STRIP="strip"
   1586  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1587  1.1  christos     break 2
   1588  1.1  christos   fi
   1589  1.1  christos done
   1590  1.1  christos done
   1591  1.1  christos 
   1592  1.1  christos   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
   1593  1.1  christos fi
   1594  1.1  christos fi
   1595  1.1  christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   1596  1.1  christos if test -n "$ac_ct_STRIP"; then
   1597  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   1598  1.1  christos echo "${ECHO_T}$ac_ct_STRIP" >&6
   1599  1.1  christos else
   1600  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1601  1.1  christos echo "${ECHO_T}no" >&6
   1602  1.1  christos fi
   1603  1.1  christos 
   1604  1.1  christos   STRIP=$ac_ct_STRIP
   1605  1.1  christos else
   1606  1.1  christos   STRIP="$ac_cv_prog_STRIP"
   1607  1.1  christos fi
   1608  1.1  christos 
   1609  1.1  christos fi
   1610  1.1  christos INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   1611  1.1  christos 
   1612  1.1  christos # We need awk for the "check" target.  The system "awk" is bad on
   1613  1.1  christos # some platforms.
   1614  1.1  christos 
   1615  1.1  christos 
   1616  1.1  christos 
   1617  1.1  christos 
   1618  1.1  christos for ac_prog in gawk mawk nawk awk
   1619  1.1  christos do
   1620  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1621  1.1  christos set dummy $ac_prog; ac_word=$2
   1622  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1623  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1624  1.1  christos if test "${ac_cv_prog_AWK+set}" = set; then
   1625  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1626  1.1  christos else
   1627  1.1  christos   if test -n "$AWK"; then
   1628  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   1629  1.1  christos else
   1630  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1631  1.1  christos for as_dir in $PATH
   1632  1.1  christos do
   1633  1.1  christos   IFS=$as_save_IFS
   1634  1.1  christos   test -z "$as_dir" && as_dir=.
   1635  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1636  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1637  1.1  christos     ac_cv_prog_AWK="$ac_prog"
   1638  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1639  1.1  christos     break 2
   1640  1.1  christos   fi
   1641  1.1  christos done
   1642  1.1  christos done
   1643  1.1  christos 
   1644  1.1  christos fi
   1645  1.1  christos fi
   1646  1.1  christos AWK=$ac_cv_prog_AWK
   1647  1.1  christos if test -n "$AWK"; then
   1648  1.1  christos   echo "$as_me:$LINENO: result: $AWK" >&5
   1649  1.1  christos echo "${ECHO_T}$AWK" >&6
   1650  1.1  christos else
   1651  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1652  1.1  christos echo "${ECHO_T}no" >&6
   1653  1.1  christos fi
   1654  1.1  christos 
   1655  1.1  christos   test -n "$AWK" && break
   1656  1.1  christos done
   1657  1.1  christos 
   1658  1.1  christos ac_ext=c
   1659  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1660  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1661  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1662  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1663  1.1  christos if test -n "$ac_tool_prefix"; then
   1664  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1665  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1666  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1667  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1668  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1669  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1670  1.1  christos else
   1671  1.1  christos   if test -n "$CC"; then
   1672  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1673  1.1  christos else
   1674  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1675  1.1  christos for as_dir in $PATH
   1676  1.1  christos do
   1677  1.1  christos   IFS=$as_save_IFS
   1678  1.1  christos   test -z "$as_dir" && as_dir=.
   1679  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1680  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1681  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1682  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1683  1.1  christos     break 2
   1684  1.1  christos   fi
   1685  1.1  christos done
   1686  1.1  christos done
   1687  1.1  christos 
   1688  1.1  christos fi
   1689  1.1  christos fi
   1690  1.1  christos CC=$ac_cv_prog_CC
   1691  1.1  christos if test -n "$CC"; then
   1692  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1693  1.1  christos echo "${ECHO_T}$CC" >&6
   1694  1.1  christos else
   1695  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1696  1.1  christos echo "${ECHO_T}no" >&6
   1697  1.1  christos fi
   1698  1.1  christos 
   1699  1.1  christos fi
   1700  1.1  christos if test -z "$ac_cv_prog_CC"; then
   1701  1.1  christos   ac_ct_CC=$CC
   1702  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   1703  1.1  christos set dummy gcc; ac_word=$2
   1704  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1705  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1706  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1707  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1708  1.1  christos else
   1709  1.1  christos   if test -n "$ac_ct_CC"; then
   1710  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1711  1.1  christos else
   1712  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1713  1.1  christos for as_dir in $PATH
   1714  1.1  christos do
   1715  1.1  christos   IFS=$as_save_IFS
   1716  1.1  christos   test -z "$as_dir" && as_dir=.
   1717  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1718  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1719  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   1720  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1721  1.1  christos     break 2
   1722  1.1  christos   fi
   1723  1.1  christos done
   1724  1.1  christos done
   1725  1.1  christos 
   1726  1.1  christos fi
   1727  1.1  christos fi
   1728  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1729  1.1  christos if test -n "$ac_ct_CC"; then
   1730  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1731  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1732  1.1  christos else
   1733  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1734  1.1  christos echo "${ECHO_T}no" >&6
   1735  1.1  christos fi
   1736  1.1  christos 
   1737  1.1  christos   CC=$ac_ct_CC
   1738  1.1  christos else
   1739  1.1  christos   CC="$ac_cv_prog_CC"
   1740  1.1  christos fi
   1741  1.1  christos 
   1742  1.1  christos if test -z "$CC"; then
   1743  1.1  christos   if test -n "$ac_tool_prefix"; then
   1744  1.1  christos   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1745  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   1746  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1747  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1748  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1749  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1750  1.1  christos else
   1751  1.1  christos   if test -n "$CC"; then
   1752  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1753  1.1  christos else
   1754  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1755  1.1  christos for as_dir in $PATH
   1756  1.1  christos do
   1757  1.1  christos   IFS=$as_save_IFS
   1758  1.1  christos   test -z "$as_dir" && as_dir=.
   1759  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1760  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1761  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   1762  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1763  1.1  christos     break 2
   1764  1.1  christos   fi
   1765  1.1  christos done
   1766  1.1  christos done
   1767  1.1  christos 
   1768  1.1  christos fi
   1769  1.1  christos fi
   1770  1.1  christos CC=$ac_cv_prog_CC
   1771  1.1  christos if test -n "$CC"; then
   1772  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1773  1.1  christos echo "${ECHO_T}$CC" >&6
   1774  1.1  christos else
   1775  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1776  1.1  christos echo "${ECHO_T}no" >&6
   1777  1.1  christos fi
   1778  1.1  christos 
   1779  1.1  christos fi
   1780  1.1  christos if test -z "$ac_cv_prog_CC"; then
   1781  1.1  christos   ac_ct_CC=$CC
   1782  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1783  1.1  christos set dummy cc; ac_word=$2
   1784  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1785  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1786  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1787  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1788  1.1  christos else
   1789  1.1  christos   if test -n "$ac_ct_CC"; then
   1790  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1791  1.1  christos else
   1792  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1793  1.1  christos for as_dir in $PATH
   1794  1.1  christos do
   1795  1.1  christos   IFS=$as_save_IFS
   1796  1.1  christos   test -z "$as_dir" && as_dir=.
   1797  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1798  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1799  1.1  christos     ac_cv_prog_ac_ct_CC="cc"
   1800  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1801  1.1  christos     break 2
   1802  1.1  christos   fi
   1803  1.1  christos done
   1804  1.1  christos done
   1805  1.1  christos 
   1806  1.1  christos fi
   1807  1.1  christos fi
   1808  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1809  1.1  christos if test -n "$ac_ct_CC"; then
   1810  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1811  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1812  1.1  christos else
   1813  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1814  1.1  christos echo "${ECHO_T}no" >&6
   1815  1.1  christos fi
   1816  1.1  christos 
   1817  1.1  christos   CC=$ac_ct_CC
   1818  1.1  christos else
   1819  1.1  christos   CC="$ac_cv_prog_CC"
   1820  1.1  christos fi
   1821  1.1  christos 
   1822  1.1  christos fi
   1823  1.1  christos if test -z "$CC"; then
   1824  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1825  1.1  christos set dummy cc; ac_word=$2
   1826  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1827  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1828  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1829  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1830  1.1  christos else
   1831  1.1  christos   if test -n "$CC"; then
   1832  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1833  1.1  christos else
   1834  1.1  christos   ac_prog_rejected=no
   1835  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1836  1.1  christos for as_dir in $PATH
   1837  1.1  christos do
   1838  1.1  christos   IFS=$as_save_IFS
   1839  1.1  christos   test -z "$as_dir" && as_dir=.
   1840  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1841  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1842  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1843  1.1  christos        ac_prog_rejected=yes
   1844  1.1  christos        continue
   1845  1.1  christos      fi
   1846  1.1  christos     ac_cv_prog_CC="cc"
   1847  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1848  1.1  christos     break 2
   1849  1.1  christos   fi
   1850  1.1  christos done
   1851  1.1  christos done
   1852  1.1  christos 
   1853  1.1  christos if test $ac_prog_rejected = yes; then
   1854  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   1855  1.1  christos   set dummy $ac_cv_prog_CC
   1856  1.1  christos   shift
   1857  1.1  christos   if test $# != 0; then
   1858  1.1  christos     # We chose a different compiler from the bogus one.
   1859  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   1860  1.1  christos     # first if we set CC to just the basename; use the full file name.
   1861  1.1  christos     shift
   1862  1.1  christos     set dummy "$as_dir/$ac_word" ${1+"$@"}
   1863  1.1  christos     shift
   1864  1.1  christos     ac_cv_prog_CC="$@"
   1865  1.1  christos   fi
   1866  1.1  christos fi
   1867  1.1  christos fi
   1868  1.1  christos fi
   1869  1.1  christos CC=$ac_cv_prog_CC
   1870  1.1  christos if test -n "$CC"; then
   1871  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1872  1.1  christos echo "${ECHO_T}$CC" >&6
   1873  1.1  christos else
   1874  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1875  1.1  christos echo "${ECHO_T}no" >&6
   1876  1.1  christos fi
   1877  1.1  christos 
   1878  1.1  christos fi
   1879  1.1  christos if test -z "$CC"; then
   1880  1.1  christos   if test -n "$ac_tool_prefix"; then
   1881  1.1  christos   for ac_prog in cl
   1882  1.1  christos   do
   1883  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1884  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1885  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1886  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1887  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1888  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1889  1.1  christos else
   1890  1.1  christos   if test -n "$CC"; then
   1891  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1892  1.1  christos else
   1893  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1894  1.1  christos for as_dir in $PATH
   1895  1.1  christos do
   1896  1.1  christos   IFS=$as_save_IFS
   1897  1.1  christos   test -z "$as_dir" && as_dir=.
   1898  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1899  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1900  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1901  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1902  1.1  christos     break 2
   1903  1.1  christos   fi
   1904  1.1  christos done
   1905  1.1  christos done
   1906  1.1  christos 
   1907  1.1  christos fi
   1908  1.1  christos fi
   1909  1.1  christos CC=$ac_cv_prog_CC
   1910  1.1  christos if test -n "$CC"; then
   1911  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1912  1.1  christos echo "${ECHO_T}$CC" >&6
   1913  1.1  christos else
   1914  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1915  1.1  christos echo "${ECHO_T}no" >&6
   1916  1.1  christos fi
   1917  1.1  christos 
   1918  1.1  christos     test -n "$CC" && break
   1919  1.1  christos   done
   1920  1.1  christos fi
   1921  1.1  christos if test -z "$CC"; then
   1922  1.1  christos   ac_ct_CC=$CC
   1923  1.1  christos   for ac_prog in cl
   1924  1.1  christos do
   1925  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1926  1.1  christos set dummy $ac_prog; ac_word=$2
   1927  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1928  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1929  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1930  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1931  1.1  christos else
   1932  1.1  christos   if test -n "$ac_ct_CC"; then
   1933  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1934  1.1  christos else
   1935  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1936  1.1  christos for as_dir in $PATH
   1937  1.1  christos do
   1938  1.1  christos   IFS=$as_save_IFS
   1939  1.1  christos   test -z "$as_dir" && as_dir=.
   1940  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1941  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1942  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   1943  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1944  1.1  christos     break 2
   1945  1.1  christos   fi
   1946  1.1  christos done
   1947  1.1  christos done
   1948  1.1  christos 
   1949  1.1  christos fi
   1950  1.1  christos fi
   1951  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1952  1.1  christos if test -n "$ac_ct_CC"; then
   1953  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1954  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1955  1.1  christos else
   1956  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1957  1.1  christos echo "${ECHO_T}no" >&6
   1958  1.1  christos fi
   1959  1.1  christos 
   1960  1.1  christos   test -n "$ac_ct_CC" && break
   1961  1.1  christos done
   1962  1.1  christos 
   1963  1.1  christos   CC=$ac_ct_CC
   1964  1.1  christos fi
   1965  1.1  christos 
   1966  1.1  christos fi
   1967  1.1  christos 
   1968  1.1  christos 
   1969  1.1  christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
   1970  1.1  christos echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
   1971  1.1  christos    { (exit 1); exit 1; }; }
   1972  1.1  christos 
   1973  1.1  christos # Provide some information about the compiler.
   1974  1.1  christos echo "$as_me:$LINENO:" \
   1975  1.1  christos      "checking for C compiler version" >&5
   1976  1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   1977  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   1978  1.1  christos   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1979  1.1  christos   ac_status=$?
   1980  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1981  1.1  christos   (exit $ac_status); }
   1982  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   1983  1.1  christos   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1984  1.1  christos   ac_status=$?
   1985  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1986  1.1  christos   (exit $ac_status); }
   1987  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   1988  1.1  christos   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1989  1.1  christos   ac_status=$?
   1990  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1991  1.1  christos   (exit $ac_status); }
   1992  1.1  christos 
   1993  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1994  1.1  christos #line $LINENO "configure"
   1995  1.1  christos #include "confdefs.h"
   1996  1.1  christos 
   1997  1.1  christos #ifdef F77_DUMMY_MAIN
   1998  1.1  christos #  ifdef __cplusplus
   1999  1.1  christos      extern "C"
   2000  1.1  christos #  endif
   2001  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2002  1.1  christos #endif
   2003  1.1  christos int
   2004  1.1  christos main ()
   2005  1.1  christos {
   2006  1.1  christos 
   2007  1.1  christos   ;
   2008  1.1  christos   return 0;
   2009  1.1  christos }
   2010  1.1  christos _ACEOF
   2011  1.1  christos ac_clean_files_save=$ac_clean_files
   2012  1.1  christos ac_clean_files="$ac_clean_files a.out a.exe"
   2013  1.1  christos # Try to create an executable without -o first, disregard a.out.
   2014  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   2015  1.1  christos # of exeext.
   2016  1.1  christos echo "$as_me:$LINENO: checking for C compiler default output" >&5
   2017  1.1  christos echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   2018  1.1  christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2019  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
   2020  1.1  christos   (eval $ac_link_default) 2>&5
   2021  1.1  christos   ac_status=$?
   2022  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2023  1.1  christos   (exit $ac_status); }; then
   2024  1.1  christos   # Find the output, starting from the most likely.  This scheme is
   2025  1.1  christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   2026  1.1  christos # resort.
   2027  1.1  christos 
   2028  1.1  christos # Be careful to initialize this variable, since it used to be cached.
   2029  1.1  christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
   2030  1.1  christos ac_cv_exeext=
   2031  1.1  christos for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
   2032  1.1  christos                 ls a.out conftest 2>/dev/null;
   2033  1.1  christos                 ls a.* conftest.* 2>/dev/null`; do
   2034  1.1  christos   case $ac_file in
   2035  1.1  christos     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
   2036  1.1  christos     a.out ) # We found the default executable, but exeext='' is most
   2037  1.1  christos             # certainly right.
   2038  1.1  christos             break;;
   2039  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2040  1.1  christos           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   2041  1.1  christos           export ac_cv_exeext
   2042  1.1  christos           break;;
   2043  1.1  christos     * ) break;;
   2044  1.1  christos   esac
   2045  1.1  christos done
   2046  1.1  christos else
   2047  1.1  christos   echo "$as_me: failed program was:" >&5
   2048  1.1  christos cat conftest.$ac_ext >&5
   2049  1.1  christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
   2050  1.1  christos echo "$as_me: error: C compiler cannot create executables" >&2;}
   2051  1.1  christos    { (exit 77); exit 77; }; }
   2052  1.1  christos fi
   2053  1.1  christos 
   2054  1.1  christos ac_exeext=$ac_cv_exeext
   2055  1.1  christos echo "$as_me:$LINENO: result: $ac_file" >&5
   2056  1.1  christos echo "${ECHO_T}$ac_file" >&6
   2057  1.1  christos 
   2058  1.1  christos # Check the compiler produces executables we can run.  If not, either
   2059  1.1  christos # the compiler is broken, or we cross compile.
   2060  1.1  christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2061  1.1  christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   2062  1.1  christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2063  1.1  christos # If not cross compiling, check that we can run a simple program.
   2064  1.1  christos if test "$cross_compiling" != yes; then
   2065  1.1  christos   if { ac_try='./$ac_file'
   2066  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2067  1.1  christos   (eval $ac_try) 2>&5
   2068  1.1  christos   ac_status=$?
   2069  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2070  1.1  christos   (exit $ac_status); }; }; then
   2071  1.1  christos     cross_compiling=no
   2072  1.1  christos   else
   2073  1.1  christos     if test "$cross_compiling" = maybe; then
   2074  1.1  christos 	cross_compiling=yes
   2075  1.1  christos     else
   2076  1.1  christos 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2077  1.1  christos If you meant to cross compile, use \`--host'." >&5
   2078  1.1  christos echo "$as_me: error: cannot run C compiled programs.
   2079  1.1  christos If you meant to cross compile, use \`--host'." >&2;}
   2080  1.1  christos    { (exit 1); exit 1; }; }
   2081  1.1  christos     fi
   2082  1.1  christos   fi
   2083  1.1  christos fi
   2084  1.1  christos echo "$as_me:$LINENO: result: yes" >&5
   2085  1.1  christos echo "${ECHO_T}yes" >&6
   2086  1.1  christos 
   2087  1.1  christos rm -f a.out a.exe conftest$ac_cv_exeext
   2088  1.1  christos ac_clean_files=$ac_clean_files_save
   2089  1.1  christos # Check the compiler produces executables we can run.  If not, either
   2090  1.1  christos # the compiler is broken, or we cross compile.
   2091  1.1  christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2092  1.1  christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   2093  1.1  christos echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2094  1.1  christos echo "${ECHO_T}$cross_compiling" >&6
   2095  1.1  christos 
   2096  1.1  christos echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2097  1.1  christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
   2098  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2099  1.1  christos   (eval $ac_link) 2>&5
   2100  1.1  christos   ac_status=$?
   2101  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2102  1.1  christos   (exit $ac_status); }; then
   2103  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2104  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2105  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   2106  1.1  christos # `rm'.
   2107  1.1  christos for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   2108  1.1  christos   case $ac_file in
   2109  1.1  christos     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
   2110  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2111  1.1  christos           export ac_cv_exeext
   2112  1.1  christos           break;;
   2113  1.1  christos     * ) break;;
   2114  1.1  christos   esac
   2115  1.1  christos done
   2116  1.1  christos else
   2117  1.1  christos   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
   2118  1.1  christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
   2119  1.1  christos    { (exit 1); exit 1; }; }
   2120  1.1  christos fi
   2121  1.1  christos 
   2122  1.1  christos rm -f conftest$ac_cv_exeext
   2123  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2124  1.1  christos echo "${ECHO_T}$ac_cv_exeext" >&6
   2125  1.1  christos 
   2126  1.1  christos rm -f conftest.$ac_ext
   2127  1.1  christos EXEEXT=$ac_cv_exeext
   2128  1.1  christos ac_exeext=$EXEEXT
   2129  1.1  christos echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2130  1.1  christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
   2131  1.1  christos if test "${ac_cv_objext+set}" = set; then
   2132  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2133  1.1  christos else
   2134  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2135  1.1  christos #line $LINENO "configure"
   2136  1.1  christos #include "confdefs.h"
   2137  1.1  christos 
   2138  1.1  christos #ifdef F77_DUMMY_MAIN
   2139  1.1  christos #  ifdef __cplusplus
   2140  1.1  christos      extern "C"
   2141  1.1  christos #  endif
   2142  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2143  1.1  christos #endif
   2144  1.1  christos int
   2145  1.1  christos main ()
   2146  1.1  christos {
   2147  1.1  christos 
   2148  1.1  christos   ;
   2149  1.1  christos   return 0;
   2150  1.1  christos }
   2151  1.1  christos _ACEOF
   2152  1.1  christos rm -f conftest.o conftest.obj
   2153  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2154  1.1  christos   (eval $ac_compile) 2>&5
   2155  1.1  christos   ac_status=$?
   2156  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2157  1.1  christos   (exit $ac_status); }; then
   2158  1.1  christos   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   2159  1.1  christos   case $ac_file in
   2160  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
   2161  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2162  1.1  christos        break;;
   2163  1.1  christos   esac
   2164  1.1  christos done
   2165  1.1  christos else
   2166  1.1  christos   echo "$as_me: failed program was:" >&5
   2167  1.1  christos cat conftest.$ac_ext >&5
   2168  1.1  christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
   2169  1.1  christos echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
   2170  1.1  christos    { (exit 1); exit 1; }; }
   2171  1.1  christos fi
   2172  1.1  christos 
   2173  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2174  1.1  christos fi
   2175  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2176  1.1  christos echo "${ECHO_T}$ac_cv_objext" >&6
   2177  1.1  christos OBJEXT=$ac_cv_objext
   2178  1.1  christos ac_objext=$OBJEXT
   2179  1.1  christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2180  1.1  christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   2181  1.1  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2182  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2183  1.1  christos else
   2184  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2185  1.1  christos #line $LINENO "configure"
   2186  1.1  christos #include "confdefs.h"
   2187  1.1  christos 
   2188  1.1  christos #ifdef F77_DUMMY_MAIN
   2189  1.1  christos #  ifdef __cplusplus
   2190  1.1  christos      extern "C"
   2191  1.1  christos #  endif
   2192  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2193  1.1  christos #endif
   2194  1.1  christos int
   2195  1.1  christos main ()
   2196  1.1  christos {
   2197  1.1  christos #ifndef __GNUC__
   2198  1.1  christos        choke me
   2199  1.1  christos #endif
   2200  1.1  christos 
   2201  1.1  christos   ;
   2202  1.1  christos   return 0;
   2203  1.1  christos }
   2204  1.1  christos _ACEOF
   2205  1.1  christos rm -f conftest.$ac_objext
   2206  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2207  1.1  christos   (eval $ac_compile) 2>&5
   2208  1.1  christos   ac_status=$?
   2209  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2210  1.1  christos   (exit $ac_status); } &&
   2211  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2212  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2213  1.1  christos   (eval $ac_try) 2>&5
   2214  1.1  christos   ac_status=$?
   2215  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2216  1.1  christos   (exit $ac_status); }; }; then
   2217  1.1  christos   ac_compiler_gnu=yes
   2218  1.1  christos else
   2219  1.1  christos   echo "$as_me: failed program was:" >&5
   2220  1.1  christos cat conftest.$ac_ext >&5
   2221  1.1  christos ac_compiler_gnu=no
   2222  1.1  christos fi
   2223  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2224  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2225  1.1  christos 
   2226  1.1  christos fi
   2227  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2228  1.1  christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   2229  1.1  christos GCC=`test $ac_compiler_gnu = yes && echo yes`
   2230  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   2231  1.1  christos ac_save_CFLAGS=$CFLAGS
   2232  1.1  christos CFLAGS="-g"
   2233  1.1  christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2234  1.1  christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   2235  1.1  christos if test "${ac_cv_prog_cc_g+set}" = set; then
   2236  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2237  1.1  christos else
   2238  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2239  1.1  christos #line $LINENO "configure"
   2240  1.1  christos #include "confdefs.h"
   2241  1.1  christos 
   2242  1.1  christos #ifdef F77_DUMMY_MAIN
   2243  1.1  christos #  ifdef __cplusplus
   2244  1.1  christos      extern "C"
   2245  1.1  christos #  endif
   2246  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2247  1.1  christos #endif
   2248  1.1  christos int
   2249  1.1  christos main ()
   2250  1.1  christos {
   2251  1.1  christos 
   2252  1.1  christos   ;
   2253  1.1  christos   return 0;
   2254  1.1  christos }
   2255  1.1  christos _ACEOF
   2256  1.1  christos rm -f conftest.$ac_objext
   2257  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2258  1.1  christos   (eval $ac_compile) 2>&5
   2259  1.1  christos   ac_status=$?
   2260  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2261  1.1  christos   (exit $ac_status); } &&
   2262  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2263  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2264  1.1  christos   (eval $ac_try) 2>&5
   2265  1.1  christos   ac_status=$?
   2266  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2267  1.1  christos   (exit $ac_status); }; }; then
   2268  1.1  christos   ac_cv_prog_cc_g=yes
   2269  1.1  christos else
   2270  1.1  christos   echo "$as_me: failed program was:" >&5
   2271  1.1  christos cat conftest.$ac_ext >&5
   2272  1.1  christos ac_cv_prog_cc_g=no
   2273  1.1  christos fi
   2274  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2275  1.1  christos fi
   2276  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2277  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   2278  1.1  christos if test "$ac_test_CFLAGS" = set; then
   2279  1.1  christos   CFLAGS=$ac_save_CFLAGS
   2280  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   2281  1.1  christos   if test "$GCC" = yes; then
   2282  1.1  christos     CFLAGS="-g -O2"
   2283  1.1  christos   else
   2284  1.1  christos     CFLAGS="-g"
   2285  1.1  christos   fi
   2286  1.1  christos else
   2287  1.1  christos   if test "$GCC" = yes; then
   2288  1.1  christos     CFLAGS="-O2"
   2289  1.1  christos   else
   2290  1.1  christos     CFLAGS=
   2291  1.1  christos   fi
   2292  1.1  christos fi
   2293  1.1  christos # Some people use a C++ compiler to compile C.  Since we use `exit',
   2294  1.1  christos # in C++ we need to declare it.  In case someone uses the same compiler
   2295  1.1  christos # for both compiling C and C++ we need to have the C++ compiler decide
   2296  1.1  christos # the declaration of exit, since it's the most demanding environment.
   2297  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2298  1.1  christos #ifndef __cplusplus
   2299  1.1  christos   choke me
   2300  1.1  christos #endif
   2301  1.1  christos _ACEOF
   2302  1.1  christos rm -f conftest.$ac_objext
   2303  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2304  1.1  christos   (eval $ac_compile) 2>&5
   2305  1.1  christos   ac_status=$?
   2306  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2307  1.1  christos   (exit $ac_status); } &&
   2308  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2309  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2310  1.1  christos   (eval $ac_try) 2>&5
   2311  1.1  christos   ac_status=$?
   2312  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2313  1.1  christos   (exit $ac_status); }; }; then
   2314  1.1  christos   for ac_declaration in \
   2315  1.1  christos    ''\
   2316  1.1  christos    '#include <stdlib.h>' \
   2317  1.1  christos    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2318  1.1  christos    'extern "C" void std::exit (int); using std::exit;' \
   2319  1.1  christos    'extern "C" void exit (int) throw ();' \
   2320  1.1  christos    'extern "C" void exit (int);' \
   2321  1.1  christos    'void exit (int);'
   2322  1.1  christos do
   2323  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2324  1.1  christos #line $LINENO "configure"
   2325  1.1  christos #include "confdefs.h"
   2326  1.1  christos #include <stdlib.h>
   2327  1.1  christos $ac_declaration
   2328  1.1  christos #ifdef F77_DUMMY_MAIN
   2329  1.1  christos #  ifdef __cplusplus
   2330  1.1  christos      extern "C"
   2331  1.1  christos #  endif
   2332  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2333  1.1  christos #endif
   2334  1.1  christos int
   2335  1.1  christos main ()
   2336  1.1  christos {
   2337  1.1  christos exit (42);
   2338  1.1  christos   ;
   2339  1.1  christos   return 0;
   2340  1.1  christos }
   2341  1.1  christos _ACEOF
   2342  1.1  christos rm -f conftest.$ac_objext
   2343  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2344  1.1  christos   (eval $ac_compile) 2>&5
   2345  1.1  christos   ac_status=$?
   2346  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2347  1.1  christos   (exit $ac_status); } &&
   2348  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2349  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2350  1.1  christos   (eval $ac_try) 2>&5
   2351  1.1  christos   ac_status=$?
   2352  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2353  1.1  christos   (exit $ac_status); }; }; then
   2354  1.1  christos   :
   2355  1.1  christos else
   2356  1.1  christos   echo "$as_me: failed program was:" >&5
   2357  1.1  christos cat conftest.$ac_ext >&5
   2358  1.1  christos continue
   2359  1.1  christos fi
   2360  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2361  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2362  1.1  christos #line $LINENO "configure"
   2363  1.1  christos #include "confdefs.h"
   2364  1.1  christos $ac_declaration
   2365  1.1  christos #ifdef F77_DUMMY_MAIN
   2366  1.1  christos #  ifdef __cplusplus
   2367  1.1  christos      extern "C"
   2368  1.1  christos #  endif
   2369  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2370  1.1  christos #endif
   2371  1.1  christos int
   2372  1.1  christos main ()
   2373  1.1  christos {
   2374  1.1  christos exit (42);
   2375  1.1  christos   ;
   2376  1.1  christos   return 0;
   2377  1.1  christos }
   2378  1.1  christos _ACEOF
   2379  1.1  christos rm -f conftest.$ac_objext
   2380  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2381  1.1  christos   (eval $ac_compile) 2>&5
   2382  1.1  christos   ac_status=$?
   2383  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2384  1.1  christos   (exit $ac_status); } &&
   2385  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2386  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2387  1.1  christos   (eval $ac_try) 2>&5
   2388  1.1  christos   ac_status=$?
   2389  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2390  1.1  christos   (exit $ac_status); }; }; then
   2391  1.1  christos   break
   2392  1.1  christos else
   2393  1.1  christos   echo "$as_me: failed program was:" >&5
   2394  1.1  christos cat conftest.$ac_ext >&5
   2395  1.1  christos fi
   2396  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2397  1.1  christos done
   2398  1.1  christos rm -f conftest*
   2399  1.1  christos if test -n "$ac_declaration"; then
   2400  1.1  christos   echo '#ifdef __cplusplus' >>confdefs.h
   2401  1.1  christos   echo $ac_declaration      >>confdefs.h
   2402  1.1  christos   echo '#endif'             >>confdefs.h
   2403  1.1  christos fi
   2404  1.1  christos 
   2405  1.1  christos else
   2406  1.1  christos   echo "$as_me: failed program was:" >&5
   2407  1.1  christos cat conftest.$ac_ext >&5
   2408  1.1  christos fi
   2409  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2410  1.1  christos ac_ext=c
   2411  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2412  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2413  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2414  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2415  1.1  christos rm -f .deps 2>/dev/null
   2416  1.1  christos mkdir .deps 2>/dev/null
   2417  1.1  christos if test -d .deps; then
   2418  1.1  christos   DEPDIR=.deps
   2419  1.1  christos else
   2420  1.1  christos   # MS-DOS does not allow filenames that begin with a dot.
   2421  1.1  christos   DEPDIR=_deps
   2422  1.1  christos fi
   2423  1.1  christos rmdir .deps 2>/dev/null
   2424  1.1  christos 
   2425  1.1  christos 
   2426  1.1  christos ac_config_commands="$ac_config_commands depfiles"
   2427  1.1  christos 
   2428  1.1  christos 
   2429  1.1  christos am_make=${MAKE-make}
   2430  1.1  christos cat > confinc << 'END'
   2431  1.1  christos doit:
   2432  1.1  christos 	@echo done
   2433  1.1  christos END
   2434  1.1  christos # If we don't find an include directive, just comment out the code.
   2435  1.1  christos echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
   2436  1.1  christos echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
   2437  1.1  christos am__include="#"
   2438  1.1  christos am__quote=
   2439  1.1  christos _am_result=none
   2440  1.1  christos # First try GNU make style include.
   2441  1.1  christos echo "include confinc" > confmf
   2442  1.1  christos # We grep out `Entering directory' and `Leaving directory'
   2443  1.1  christos # messages which can occur if `w' ends up in MAKEFLAGS.
   2444  1.1  christos # In particular we don't look at `^make:' because GNU make might
   2445  1.1  christos # be invoked under some other name (usually "gmake"), in which
   2446  1.1  christos # case it prints its new name instead of `make'.
   2447  1.1  christos if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
   2448  1.1  christos    am__include=include
   2449  1.1  christos    am__quote=
   2450  1.1  christos    _am_result=GNU
   2451  1.1  christos fi
   2452  1.1  christos # Now try BSD make style include.
   2453  1.1  christos if test "$am__include" = "#"; then
   2454  1.1  christos    echo '.include "confinc"' > confmf
   2455  1.1  christos    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   2456  1.1  christos       am__include=.include
   2457  1.1  christos       am__quote="\""
   2458  1.1  christos       _am_result=BSD
   2459  1.1  christos    fi
   2460  1.1  christos fi
   2461  1.1  christos 
   2462  1.1  christos 
   2463  1.1  christos echo "$as_me:$LINENO: result: $_am_result" >&5
   2464  1.1  christos echo "${ECHO_T}$_am_result" >&6
   2465  1.1  christos rm -f confinc confmf
   2466  1.1  christos 
   2467  1.1  christos # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
   2468  1.1  christos if test "${enable_dependency_tracking+set}" = set; then
   2469  1.1  christos   enableval="$enable_dependency_tracking"
   2470  1.1  christos 
   2471  1.1  christos fi;
   2472  1.1  christos if test "x$enable_dependency_tracking" != xno; then
   2473  1.1  christos   am_depcomp="$ac_aux_dir/depcomp"
   2474  1.1  christos   AMDEPBACKSLASH='\'
   2475  1.1  christos fi
   2476  1.1  christos 
   2477  1.1  christos 
   2478  1.1  christos if test "x$enable_dependency_tracking" != xno; then
   2479  1.1  christos   AMDEP_TRUE=
   2480  1.1  christos   AMDEP_FALSE='#'
   2481  1.1  christos else
   2482  1.1  christos   AMDEP_TRUE='#'
   2483  1.1  christos   AMDEP_FALSE=
   2484  1.1  christos fi
   2485  1.1  christos 
   2486  1.1  christos 
   2487  1.1  christos 
   2488  1.1  christos 
   2489  1.1  christos depcc="$CC"   am_compiler_list=
   2490  1.1  christos 
   2491  1.1  christos echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
   2492  1.1  christos echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
   2493  1.1  christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
   2494  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2495  1.1  christos else
   2496  1.1  christos   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   2497  1.1  christos   # We make a subdir and do the tests there.  Otherwise we can end up
   2498  1.1  christos   # making bogus files that we don't know about and never remove.  For
   2499  1.1  christos   # instance it was reported that on HP-UX the gcc test will end up
   2500  1.1  christos   # making a dummy file named `D' -- because `-MD' means `put the output
   2501  1.1  christos   # in D'.
   2502  1.1  christos   mkdir conftest.dir
   2503  1.1  christos   # Copy depcomp to subdir because otherwise we won't find it if we're
   2504  1.1  christos   # using a relative directory.
   2505  1.1  christos   cp "$am_depcomp" conftest.dir
   2506  1.1  christos   cd conftest.dir
   2507  1.1  christos 
   2508  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   2509  1.1  christos   if test "$am_compiler_list" = ""; then
   2510  1.1  christos      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   2511  1.1  christos   fi
   2512  1.1  christos   for depmode in $am_compiler_list; do
   2513  1.1  christos     # We need to recreate these files for each test, as the compiler may
   2514  1.1  christos     # overwrite some of them when testing with obscure command lines.
   2515  1.1  christos     # This happens at least with the AIX C compiler.
   2516  1.1  christos     echo '#include "conftest.h"' > conftest.c
   2517  1.1  christos     echo 'int i;' > conftest.h
   2518  1.1  christos     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
   2519  1.1  christos 
   2520  1.1  christos     case $depmode in
   2521  1.1  christos     nosideeffect)
   2522  1.1  christos       # after this tag, mechanisms are not by side-effect, so they'll
   2523  1.1  christos       # only be used when explicitly requested
   2524  1.1  christos       if test "x$enable_dependency_tracking" = xyes; then
   2525  1.1  christos 	continue
   2526  1.1  christos       else
   2527  1.1  christos 	break
   2528  1.1  christos       fi
   2529  1.1  christos       ;;
   2530  1.1  christos     none) break ;;
   2531  1.1  christos     esac
   2532  1.1  christos     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   2533  1.1  christos     # mode.  It turns out that the SunPro C++ compiler does not properly
   2534  1.1  christos     # handle `-M -o', and we need to detect this.
   2535  1.1  christos     if depmode=$depmode \
   2536  1.1  christos        source=conftest.c object=conftest.o \
   2537  1.1  christos        depfile=conftest.Po tmpdepfile=conftest.TPo \
   2538  1.1  christos        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
   2539  1.1  christos        grep conftest.h conftest.Po > /dev/null 2>&1 &&
   2540  1.1  christos        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   2541  1.1  christos       am_cv_CC_dependencies_compiler_type=$depmode
   2542  1.1  christos       break
   2543  1.1  christos     fi
   2544  1.1  christos   done
   2545  1.1  christos 
   2546  1.1  christos   cd ..
   2547  1.1  christos   rm -rf conftest.dir
   2548  1.1  christos else
   2549  1.1  christos   am_cv_CC_dependencies_compiler_type=none
   2550  1.1  christos fi
   2551  1.1  christos 
   2552  1.1  christos fi
   2553  1.1  christos echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
   2554  1.1  christos echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
   2555  1.1  christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   2556  1.1  christos 
   2557  1.1  christos 
   2558  1.1  christos 
   2559  1.1  christos 
   2560  1.1  christos         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
   2561  1.1  christos echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
   2562  1.1  christos if test "${ac_cv_lib_cposix_strerror+set}" = set; then
   2563  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2564  1.1  christos else
   2565  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   2566  1.1  christos LIBS="-lcposix  $LIBS"
   2567  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2568  1.1  christos #line $LINENO "configure"
   2569  1.1  christos #include "confdefs.h"
   2570  1.1  christos 
   2571  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   2572  1.1  christos #ifdef __cplusplus
   2573  1.1  christos extern "C"
   2574  1.1  christos #endif
   2575  1.1  christos /* We use char because int might match the return type of a gcc2
   2576  1.1  christos    builtin and then its argument prototype would still apply.  */
   2577  1.1  christos char strerror ();
   2578  1.1  christos #ifdef F77_DUMMY_MAIN
   2579  1.1  christos #  ifdef __cplusplus
   2580  1.1  christos      extern "C"
   2581  1.1  christos #  endif
   2582  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2583  1.1  christos #endif
   2584  1.1  christos int
   2585  1.1  christos main ()
   2586  1.1  christos {
   2587  1.1  christos strerror ();
   2588  1.1  christos   ;
   2589  1.1  christos   return 0;
   2590  1.1  christos }
   2591  1.1  christos _ACEOF
   2592  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   2593  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2594  1.1  christos   (eval $ac_link) 2>&5
   2595  1.1  christos   ac_status=$?
   2596  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2597  1.1  christos   (exit $ac_status); } &&
   2598  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   2599  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2600  1.1  christos   (eval $ac_try) 2>&5
   2601  1.1  christos   ac_status=$?
   2602  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2603  1.1  christos   (exit $ac_status); }; }; then
   2604  1.1  christos   ac_cv_lib_cposix_strerror=yes
   2605  1.1  christos else
   2606  1.1  christos   echo "$as_me: failed program was:" >&5
   2607  1.1  christos cat conftest.$ac_ext >&5
   2608  1.1  christos ac_cv_lib_cposix_strerror=no
   2609  1.1  christos fi
   2610  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   2611  1.1  christos LIBS=$ac_check_lib_save_LIBS
   2612  1.1  christos fi
   2613  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
   2614  1.1  christos echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
   2615  1.1  christos if test $ac_cv_lib_cposix_strerror = yes; then
   2616  1.1  christos   LIBS="$LIBS -lcposix"
   2617  1.1  christos fi
   2618  1.1  christos 
   2619  1.1  christos 
   2620  1.1  christos 
   2621  1.1  christos 
   2622  1.1  christos 
   2623  1.1  christos 
   2624  1.1  christos echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
   2625  1.1  christos echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
   2626  1.1  christos if test "${am_cv_prog_cc_stdc+set}" = set; then
   2627  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2628  1.1  christos else
   2629  1.1  christos   am_cv_prog_cc_stdc=no
   2630  1.1  christos ac_save_CC="$CC"
   2631  1.1  christos # Don't try gcc -ansi; that turns off useful extensions and
   2632  1.1  christos # breaks some systems' header files.
   2633  1.1  christos # AIX			-qlanglvl=ansi
   2634  1.1  christos # Ultrix and OSF/1	-std1
   2635  1.1  christos # HP-UX 10.20 and later	-Ae
   2636  1.1  christos # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2637  1.1  christos # SVR4			-Xc -D__EXTENSIONS__
   2638  1.1  christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2639  1.1  christos do
   2640  1.1  christos   CC="$ac_save_CC $ac_arg"
   2641  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2642  1.1  christos #line $LINENO "configure"
   2643  1.1  christos #include "confdefs.h"
   2644  1.1  christos #include <stdarg.h>
   2645  1.1  christos #include <stdio.h>
   2646  1.1  christos #include <sys/types.h>
   2647  1.1  christos #include <sys/stat.h>
   2648  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2649  1.1  christos struct buf { int x; };
   2650  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2651  1.1  christos static char *e (p, i)
   2652  1.1  christos      char **p;
   2653  1.1  christos      int i;
   2654  1.1  christos {
   2655  1.1  christos   return p[i];
   2656  1.1  christos }
   2657  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   2658  1.1  christos {
   2659  1.1  christos   char *s;
   2660  1.1  christos   va_list v;
   2661  1.1  christos   va_start (v,p);
   2662  1.1  christos   s = g (p, va_arg (v,int));
   2663  1.1  christos   va_end (v);
   2664  1.1  christos   return s;
   2665  1.1  christos }
   2666  1.1  christos int test (int i, double x);
   2667  1.1  christos struct s1 {int (*f) (int a);};
   2668  1.1  christos struct s2 {int (*f) (double a);};
   2669  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2670  1.1  christos int argc;
   2671  1.1  christos char **argv;
   2672  1.1  christos 
   2673  1.1  christos #ifdef F77_DUMMY_MAIN
   2674  1.1  christos #  ifdef __cplusplus
   2675  1.1  christos      extern "C"
   2676  1.1  christos #  endif
   2677  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   2678  1.1  christos #endif
   2679  1.1  christos int
   2680  1.1  christos main ()
   2681  1.1  christos {
   2682  1.1  christos 
   2683  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2684  1.1  christos 
   2685  1.1  christos   ;
   2686  1.1  christos   return 0;
   2687  1.1  christos }
   2688  1.1  christos _ACEOF
   2689  1.1  christos rm -f conftest.$ac_objext
   2690  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2691  1.1  christos   (eval $ac_compile) 2>&5
   2692  1.1  christos   ac_status=$?
   2693  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2694  1.1  christos   (exit $ac_status); } &&
   2695  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   2696  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2697  1.1  christos   (eval $ac_try) 2>&5
   2698  1.1  christos   ac_status=$?
   2699  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2700  1.1  christos   (exit $ac_status); }; }; then
   2701  1.1  christos   am_cv_prog_cc_stdc="$ac_arg"; break
   2702  1.1  christos else
   2703  1.1  christos   echo "$as_me: failed program was:" >&5
   2704  1.1  christos cat conftest.$ac_ext >&5
   2705  1.1  christos fi
   2706  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2707  1.1  christos done
   2708  1.1  christos CC="$ac_save_CC"
   2709  1.1  christos 
   2710  1.1  christos fi
   2711  1.1  christos 
   2712  1.1  christos if test -z "$am_cv_prog_cc_stdc"; then
   2713  1.1  christos   echo "$as_me:$LINENO: result: none needed" >&5
   2714  1.1  christos echo "${ECHO_T}none needed" >&6
   2715  1.1  christos else
   2716  1.1  christos   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
   2717  1.1  christos echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
   2718  1.1  christos fi
   2719  1.1  christos case "x$am_cv_prog_cc_stdc" in
   2720  1.1  christos   x|xno) ;;
   2721  1.1  christos   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   2722  1.1  christos esac
   2723  1.1  christos 
   2724  1.1  christos ac_ext=c
   2725  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2726  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2727  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2728  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2729  1.1  christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   2730  1.1  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   2731  1.1  christos # On Suns, sometimes $CPP names a directory.
   2732  1.1  christos if test -n "$CPP" && test -d "$CPP"; then
   2733  1.1  christos   CPP=
   2734  1.1  christos fi
   2735  1.1  christos if test -z "$CPP"; then
   2736  1.1  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   2737  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2738  1.1  christos else
   2739  1.1  christos       # Double quotes because CPP needs to be expanded
   2740  1.1  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   2741  1.1  christos     do
   2742  1.1  christos       ac_preproc_ok=false
   2743  1.1  christos for ac_c_preproc_warn_flag in '' yes
   2744  1.1  christos do
   2745  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   2746  1.1  christos   # with a fresh cross-compiler works.
   2747  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   2748  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   2749  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2750  1.1  christos #line $LINENO "configure"
   2751  1.1  christos #include "confdefs.h"
   2752  1.1  christos #include <assert.h>
   2753  1.1  christos                      Syntax error
   2754  1.1  christos _ACEOF
   2755  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2756  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2757  1.1  christos   ac_status=$?
   2758  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   2759  1.1  christos   rm -f conftest.er1
   2760  1.1  christos   cat conftest.err >&5
   2761  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2762  1.1  christos   (exit $ac_status); } >/dev/null; then
   2763  1.1  christos   if test -s conftest.err; then
   2764  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   2765  1.1  christos   else
   2766  1.1  christos     ac_cpp_err=
   2767  1.1  christos   fi
   2768  1.1  christos else
   2769  1.1  christos   ac_cpp_err=yes
   2770  1.1  christos fi
   2771  1.1  christos if test -z "$ac_cpp_err"; then
   2772  1.1  christos   :
   2773  1.1  christos else
   2774  1.1  christos   echo "$as_me: failed program was:" >&5
   2775  1.1  christos   cat conftest.$ac_ext >&5
   2776  1.1  christos   # Broken: fails on valid input.
   2777  1.1  christos continue
   2778  1.1  christos fi
   2779  1.1  christos rm -f conftest.err conftest.$ac_ext
   2780  1.1  christos 
   2781  1.1  christos   # OK, works on sane cases.  Now check whether non-existent headers
   2782  1.1  christos   # can be detected and how.
   2783  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2784  1.1  christos #line $LINENO "configure"
   2785  1.1  christos #include "confdefs.h"
   2786  1.1  christos #include <ac_nonexistent.h>
   2787  1.1  christos _ACEOF
   2788  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2789  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2790  1.1  christos   ac_status=$?
   2791  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   2792  1.1  christos   rm -f conftest.er1
   2793  1.1  christos   cat conftest.err >&5
   2794  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2795  1.1  christos   (exit $ac_status); } >/dev/null; then
   2796  1.1  christos   if test -s conftest.err; then
   2797  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   2798  1.1  christos   else
   2799  1.1  christos     ac_cpp_err=
   2800  1.1  christos   fi
   2801  1.1  christos else
   2802  1.1  christos   ac_cpp_err=yes
   2803  1.1  christos fi
   2804  1.1  christos if test -z "$ac_cpp_err"; then
   2805  1.1  christos   # Broken: success on invalid input.
   2806  1.1  christos continue
   2807  1.1  christos else
   2808  1.1  christos   echo "$as_me: failed program was:" >&5
   2809  1.1  christos   cat conftest.$ac_ext >&5
   2810  1.1  christos   # Passes both tests.
   2811  1.1  christos ac_preproc_ok=:
   2812  1.1  christos break
   2813  1.1  christos fi
   2814  1.1  christos rm -f conftest.err conftest.$ac_ext
   2815  1.1  christos 
   2816  1.1  christos done
   2817  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2818  1.1  christos rm -f conftest.err conftest.$ac_ext
   2819  1.1  christos if $ac_preproc_ok; then
   2820  1.1  christos   break
   2821  1.1  christos fi
   2822  1.1  christos 
   2823  1.1  christos     done
   2824  1.1  christos     ac_cv_prog_CPP=$CPP
   2825  1.1  christos 
   2826  1.1  christos fi
   2827  1.1  christos   CPP=$ac_cv_prog_CPP
   2828  1.1  christos else
   2829  1.1  christos   ac_cv_prog_CPP=$CPP
   2830  1.1  christos fi
   2831  1.1  christos echo "$as_me:$LINENO: result: $CPP" >&5
   2832  1.1  christos echo "${ECHO_T}$CPP" >&6
   2833  1.1  christos ac_preproc_ok=false
   2834  1.1  christos for ac_c_preproc_warn_flag in '' yes
   2835  1.1  christos do
   2836  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   2837  1.1  christos   # with a fresh cross-compiler works.
   2838  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   2839  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   2840  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2841  1.1  christos #line $LINENO "configure"
   2842  1.1  christos #include "confdefs.h"
   2843  1.1  christos #include <assert.h>
   2844  1.1  christos                      Syntax error
   2845  1.1  christos _ACEOF
   2846  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2847  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2848  1.1  christos   ac_status=$?
   2849  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   2850  1.1  christos   rm -f conftest.er1
   2851  1.1  christos   cat conftest.err >&5
   2852  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2853  1.1  christos   (exit $ac_status); } >/dev/null; then
   2854  1.1  christos   if test -s conftest.err; then
   2855  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   2856  1.1  christos   else
   2857  1.1  christos     ac_cpp_err=
   2858  1.1  christos   fi
   2859  1.1  christos else
   2860  1.1  christos   ac_cpp_err=yes
   2861  1.1  christos fi
   2862  1.1  christos if test -z "$ac_cpp_err"; then
   2863  1.1  christos   :
   2864  1.1  christos else
   2865  1.1  christos   echo "$as_me: failed program was:" >&5
   2866  1.1  christos   cat conftest.$ac_ext >&5
   2867  1.1  christos   # Broken: fails on valid input.
   2868  1.1  christos continue
   2869  1.1  christos fi
   2870  1.1  christos rm -f conftest.err conftest.$ac_ext
   2871  1.1  christos 
   2872  1.1  christos   # OK, works on sane cases.  Now check whether non-existent headers
   2873  1.1  christos   # can be detected and how.
   2874  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2875  1.1  christos #line $LINENO "configure"
   2876  1.1  christos #include "confdefs.h"
   2877  1.1  christos #include <ac_nonexistent.h>
   2878  1.1  christos _ACEOF
   2879  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2880  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2881  1.1  christos   ac_status=$?
   2882  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   2883  1.1  christos   rm -f conftest.er1
   2884  1.1  christos   cat conftest.err >&5
   2885  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2886  1.1  christos   (exit $ac_status); } >/dev/null; then
   2887  1.1  christos   if test -s conftest.err; then
   2888  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   2889  1.1  christos   else
   2890  1.1  christos     ac_cpp_err=
   2891  1.1  christos   fi
   2892  1.1  christos else
   2893  1.1  christos   ac_cpp_err=yes
   2894  1.1  christos fi
   2895  1.1  christos if test -z "$ac_cpp_err"; then
   2896  1.1  christos   # Broken: success on invalid input.
   2897  1.1  christos continue
   2898  1.1  christos else
   2899  1.1  christos   echo "$as_me: failed program was:" >&5
   2900  1.1  christos   cat conftest.$ac_ext >&5
   2901  1.1  christos   # Passes both tests.
   2902  1.1  christos ac_preproc_ok=:
   2903  1.1  christos break
   2904  1.1  christos fi
   2905  1.1  christos rm -f conftest.err conftest.$ac_ext
   2906  1.1  christos 
   2907  1.1  christos done
   2908  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2909  1.1  christos rm -f conftest.err conftest.$ac_ext
   2910  1.1  christos if $ac_preproc_ok; then
   2911  1.1  christos   :
   2912  1.1  christos else
   2913  1.1  christos   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
   2914  1.1  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   2915  1.1  christos    { (exit 1); exit 1; }; }
   2916  1.1  christos fi
   2917  1.1  christos 
   2918  1.1  christos ac_ext=c
   2919  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2920  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2921  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2922  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2923  1.1  christos 
   2924  1.1  christos 
   2925  1.1  christos HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
   2926  1.1  christos 
   2927  1.1  christos # Find a good install program.  We prefer a C program (faster),
   2928  1.1  christos # so one script is as good as another.  But avoid the broken or
   2929  1.1  christos # incompatible versions:
   2930  1.1  christos # SysV /etc/install, /usr/sbin/install
   2931  1.1  christos # SunOS /usr/etc/install
   2932  1.1  christos # IRIX /sbin/install
   2933  1.1  christos # AIX /bin/install
   2934  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   2935  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2936  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2937  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2938  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   2939  1.1  christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   2940  1.1  christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   2941  1.1  christos if test -z "$INSTALL"; then
   2942  1.1  christos if test "${ac_cv_path_install+set}" = set; then
   2943  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2944  1.1  christos else
   2945  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2946  1.1  christos for as_dir in $PATH
   2947  1.1  christos do
   2948  1.1  christos   IFS=$as_save_IFS
   2949  1.1  christos   test -z "$as_dir" && as_dir=.
   2950  1.1  christos   # Account for people who put trailing slashes in PATH elements.
   2951  1.1  christos case $as_dir/ in
   2952  1.1  christos   ./ | .// | /cC/* | \
   2953  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2954  1.1  christos   /usr/ucb/* ) ;;
   2955  1.1  christos   *)
   2956  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   2957  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   2958  1.1  christos     # by default.
   2959  1.1  christos     for ac_prog in ginstall scoinst install; do
   2960  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   2961  1.1  christos         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2962  1.1  christos           if test $ac_prog = install &&
   2963  1.1  christos             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2964  1.1  christos             # AIX install.  It has an incompatible calling convention.
   2965  1.1  christos             :
   2966  1.1  christos           elif test $ac_prog = install &&
   2967  1.1  christos             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2968  1.1  christos             # program-specific install script used by HP pwplus--don't use.
   2969  1.1  christos             :
   2970  1.1  christos           else
   2971  1.1  christos             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2972  1.1  christos             break 3
   2973  1.1  christos           fi
   2974  1.1  christos         fi
   2975  1.1  christos       done
   2976  1.1  christos     done
   2977  1.1  christos     ;;
   2978  1.1  christos esac
   2979  1.1  christos done
   2980  1.1  christos 
   2981  1.1  christos 
   2982  1.1  christos fi
   2983  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   2984  1.1  christos     INSTALL=$ac_cv_path_install
   2985  1.1  christos   else
   2986  1.1  christos     # As a last resort, use the slow shell script.  We don't cache a
   2987  1.1  christos     # path for INSTALL within a source directory, because that will
   2988  1.1  christos     # break other packages using the cache if that directory is
   2989  1.1  christos     # removed, or if the path is relative.
   2990  1.1  christos     INSTALL=$ac_install_sh
   2991  1.1  christos   fi
   2992  1.1  christos fi
   2993  1.1  christos echo "$as_me:$LINENO: result: $INSTALL" >&5
   2994  1.1  christos echo "${ECHO_T}$INSTALL" >&6
   2995  1.1  christos 
   2996  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2997  1.1  christos # It thinks the first close brace ends the variable substitution.
   2998  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2999  1.1  christos 
   3000  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3001  1.1  christos 
   3002  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3003  1.1  christos 
   3004  1.1  christos if test -n "$ac_tool_prefix"; then
   3005  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   3006  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   3007  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   3008  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   3009  1.1  christos if test "${ac_cv_prog_RANLIB+set}" = set; then
   3010  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3011  1.1  christos else
   3012  1.1  christos   if test -n "$RANLIB"; then
   3013  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   3014  1.1  christos else
   3015  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3016  1.1  christos for as_dir in $PATH
   3017  1.1  christos do
   3018  1.1  christos   IFS=$as_save_IFS
   3019  1.1  christos   test -z "$as_dir" && as_dir=.
   3020  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   3021  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3022  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   3023  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3024  1.1  christos     break 2
   3025  1.1  christos   fi
   3026  1.1  christos done
   3027  1.1  christos done
   3028  1.1  christos 
   3029  1.1  christos fi
   3030  1.1  christos fi
   3031  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   3032  1.1  christos if test -n "$RANLIB"; then
   3033  1.1  christos   echo "$as_me:$LINENO: result: $RANLIB" >&5
   3034  1.1  christos echo "${ECHO_T}$RANLIB" >&6
   3035  1.1  christos else
   3036  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   3037  1.1  christos echo "${ECHO_T}no" >&6
   3038  1.1  christos fi
   3039  1.1  christos 
   3040  1.1  christos fi
   3041  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   3042  1.1  christos   ac_ct_RANLIB=$RANLIB
   3043  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   3044  1.1  christos set dummy ranlib; ac_word=$2
   3045  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   3046  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   3047  1.1  christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   3048  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3049  1.1  christos else
   3050  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   3051  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   3052  1.1  christos else
   3053  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3054  1.1  christos for as_dir in $PATH
   3055  1.1  christos do
   3056  1.1  christos   IFS=$as_save_IFS
   3057  1.1  christos   test -z "$as_dir" && as_dir=.
   3058  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   3059  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3060  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   3061  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3062  1.1  christos     break 2
   3063  1.1  christos   fi
   3064  1.1  christos done
   3065  1.1  christos done
   3066  1.1  christos 
   3067  1.1  christos   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
   3068  1.1  christos fi
   3069  1.1  christos fi
   3070  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   3071  1.1  christos if test -n "$ac_ct_RANLIB"; then
   3072  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   3073  1.1  christos echo "${ECHO_T}$ac_ct_RANLIB" >&6
   3074  1.1  christos else
   3075  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   3076  1.1  christos echo "${ECHO_T}no" >&6
   3077  1.1  christos fi
   3078  1.1  christos 
   3079  1.1  christos   RANLIB=$ac_ct_RANLIB
   3080  1.1  christos else
   3081  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   3082  1.1  christos fi
   3083  1.1  christos 
   3084  1.1  christos 
   3085  1.1  christos 
   3086  1.1  christos   # Make sure that _GNU_SOURCE is defined for all subsequent
   3087  1.1  christos   # configure-time compile tests.
   3088  1.1  christos   # This definition must be emitted (into confdefs.h) before any
   3089  1.1  christos   # test that involves compilation.
   3090  1.1  christos   cat >>confdefs.h <<\EOF
   3091  1.1  christos #ifndef _GNU_SOURCE
   3092  1.1  christos # define _GNU_SOURCE
   3093  1.1  christos #endif
   3094  1.1  christos EOF
   3095  1.1  christos 
   3096  1.1  christos   # Emit this code into config.h.in.
   3097  1.1  christos   # The ifndef is to avoid redefinition warnings.
   3098  1.1  christos 
   3099  1.1  christos 
   3100  1.1  christos 
   3101  1.1  christos 
   3102  1.1  christos cat >>confdefs.h <<\_ACEOF
   3103  1.1  christos #define __EXTENSIONS__ 1
   3104  1.1  christos _ACEOF
   3105  1.1  christos 
   3106  1.1  christos # Check whether --enable-largefile or --disable-largefile was given.
   3107  1.1  christos if test "${enable_largefile+set}" = set; then
   3108  1.1  christos   enableval="$enable_largefile"
   3109  1.1  christos 
   3110  1.1  christos fi;
   3111  1.1  christos if test "$enable_largefile" != no; then
   3112  1.1  christos 
   3113  1.1  christos   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
   3114  1.1  christos echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
   3115  1.1  christos if test "${ac_cv_sys_largefile_CC+set}" = set; then
   3116  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3117  1.1  christos else
   3118  1.1  christos   ac_cv_sys_largefile_CC=no
   3119  1.1  christos      if test "$GCC" != yes; then
   3120  1.1  christos        ac_save_CC=$CC
   3121  1.1  christos        while :; do
   3122  1.1  christos      	 # IRIX 6.2 and later do not support large files by default,
   3123  1.1  christos      	 # so use the C compiler's -n32 option if that helps.
   3124  1.1  christos          cat >conftest.$ac_ext <<_ACEOF
   3125  1.1  christos #line $LINENO "configure"
   3126  1.1  christos #include "confdefs.h"
   3127  1.1  christos #include <sys/types.h>
   3128  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   3129  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   3130  1.1  christos     since some C++ compilers masquerading as C compilers
   3131  1.1  christos     incorrectly reject 9223372036854775807.  */
   3132  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   3133  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   3134  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   3135  1.1  christos 		      ? 1 : -1];
   3136  1.1  christos #ifdef F77_DUMMY_MAIN
   3137  1.1  christos #  ifdef __cplusplus
   3138  1.1  christos      extern "C"
   3139  1.1  christos #  endif
   3140  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3141  1.1  christos #endif
   3142  1.1  christos int
   3143  1.1  christos main ()
   3144  1.1  christos {
   3145  1.1  christos 
   3146  1.1  christos   ;
   3147  1.1  christos   return 0;
   3148  1.1  christos }
   3149  1.1  christos _ACEOF
   3150  1.1  christos      	 rm -f conftest.$ac_objext
   3151  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3152  1.1  christos   (eval $ac_compile) 2>&5
   3153  1.1  christos   ac_status=$?
   3154  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3155  1.1  christos   (exit $ac_status); } &&
   3156  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3157  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3158  1.1  christos   (eval $ac_try) 2>&5
   3159  1.1  christos   ac_status=$?
   3160  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3161  1.1  christos   (exit $ac_status); }; }; then
   3162  1.1  christos   break
   3163  1.1  christos else
   3164  1.1  christos   echo "$as_me: failed program was:" >&5
   3165  1.1  christos cat conftest.$ac_ext >&5
   3166  1.1  christos fi
   3167  1.1  christos rm -f conftest.$ac_objext
   3168  1.1  christos      	 CC="$CC -n32"
   3169  1.1  christos      	 rm -f conftest.$ac_objext
   3170  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3171  1.1  christos   (eval $ac_compile) 2>&5
   3172  1.1  christos   ac_status=$?
   3173  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3174  1.1  christos   (exit $ac_status); } &&
   3175  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3176  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3177  1.1  christos   (eval $ac_try) 2>&5
   3178  1.1  christos   ac_status=$?
   3179  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3180  1.1  christos   (exit $ac_status); }; }; then
   3181  1.1  christos   ac_cv_sys_largefile_CC=' -n32'; break
   3182  1.1  christos else
   3183  1.1  christos   echo "$as_me: failed program was:" >&5
   3184  1.1  christos cat conftest.$ac_ext >&5
   3185  1.1  christos fi
   3186  1.1  christos rm -f conftest.$ac_objext
   3187  1.1  christos          break
   3188  1.1  christos        done
   3189  1.1  christos        CC=$ac_save_CC
   3190  1.1  christos        rm -f conftest.$ac_ext
   3191  1.1  christos     fi
   3192  1.1  christos fi
   3193  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
   3194  1.1  christos echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
   3195  1.1  christos   if test "$ac_cv_sys_largefile_CC" != no; then
   3196  1.1  christos     CC=$CC$ac_cv_sys_largefile_CC
   3197  1.1  christos   fi
   3198  1.1  christos 
   3199  1.1  christos   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   3200  1.1  christos echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
   3201  1.1  christos if test "${ac_cv_sys_file_offset_bits+set}" = set; then
   3202  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3203  1.1  christos else
   3204  1.1  christos   while :; do
   3205  1.1  christos   ac_cv_sys_file_offset_bits=no
   3206  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3207  1.1  christos #line $LINENO "configure"
   3208  1.1  christos #include "confdefs.h"
   3209  1.1  christos #include <sys/types.h>
   3210  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   3211  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   3212  1.1  christos     since some C++ compilers masquerading as C compilers
   3213  1.1  christos     incorrectly reject 9223372036854775807.  */
   3214  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   3215  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   3216  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   3217  1.1  christos 		      ? 1 : -1];
   3218  1.1  christos #ifdef F77_DUMMY_MAIN
   3219  1.1  christos #  ifdef __cplusplus
   3220  1.1  christos      extern "C"
   3221  1.1  christos #  endif
   3222  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3223  1.1  christos #endif
   3224  1.1  christos int
   3225  1.1  christos main ()
   3226  1.1  christos {
   3227  1.1  christos 
   3228  1.1  christos   ;
   3229  1.1  christos   return 0;
   3230  1.1  christos }
   3231  1.1  christos _ACEOF
   3232  1.1  christos rm -f conftest.$ac_objext
   3233  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3234  1.1  christos   (eval $ac_compile) 2>&5
   3235  1.1  christos   ac_status=$?
   3236  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3237  1.1  christos   (exit $ac_status); } &&
   3238  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3239  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3240  1.1  christos   (eval $ac_try) 2>&5
   3241  1.1  christos   ac_status=$?
   3242  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3243  1.1  christos   (exit $ac_status); }; }; then
   3244  1.1  christos   break
   3245  1.1  christos else
   3246  1.1  christos   echo "$as_me: failed program was:" >&5
   3247  1.1  christos cat conftest.$ac_ext >&5
   3248  1.1  christos fi
   3249  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3250  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3251  1.1  christos #line $LINENO "configure"
   3252  1.1  christos #include "confdefs.h"
   3253  1.1  christos #define _FILE_OFFSET_BITS 64
   3254  1.1  christos #include <sys/types.h>
   3255  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   3256  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   3257  1.1  christos     since some C++ compilers masquerading as C compilers
   3258  1.1  christos     incorrectly reject 9223372036854775807.  */
   3259  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   3260  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   3261  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   3262  1.1  christos 		      ? 1 : -1];
   3263  1.1  christos #ifdef F77_DUMMY_MAIN
   3264  1.1  christos #  ifdef __cplusplus
   3265  1.1  christos      extern "C"
   3266  1.1  christos #  endif
   3267  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3268  1.1  christos #endif
   3269  1.1  christos int
   3270  1.1  christos main ()
   3271  1.1  christos {
   3272  1.1  christos 
   3273  1.1  christos   ;
   3274  1.1  christos   return 0;
   3275  1.1  christos }
   3276  1.1  christos _ACEOF
   3277  1.1  christos rm -f conftest.$ac_objext
   3278  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3279  1.1  christos   (eval $ac_compile) 2>&5
   3280  1.1  christos   ac_status=$?
   3281  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3282  1.1  christos   (exit $ac_status); } &&
   3283  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3284  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3285  1.1  christos   (eval $ac_try) 2>&5
   3286  1.1  christos   ac_status=$?
   3287  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3288  1.1  christos   (exit $ac_status); }; }; then
   3289  1.1  christos   ac_cv_sys_file_offset_bits=64; break
   3290  1.1  christos else
   3291  1.1  christos   echo "$as_me: failed program was:" >&5
   3292  1.1  christos cat conftest.$ac_ext >&5
   3293  1.1  christos fi
   3294  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3295  1.1  christos   break
   3296  1.1  christos done
   3297  1.1  christos fi
   3298  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
   3299  1.1  christos echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
   3300  1.1  christos if test "$ac_cv_sys_file_offset_bits" != no; then
   3301  1.1  christos 
   3302  1.1  christos cat >>confdefs.h <<_ACEOF
   3303  1.1  christos #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   3304  1.1  christos _ACEOF
   3305  1.1  christos 
   3306  1.1  christos fi
   3307  1.1  christos rm -f conftest*
   3308  1.1  christos   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
   3309  1.1  christos echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
   3310  1.1  christos if test "${ac_cv_sys_large_files+set}" = set; then
   3311  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3312  1.1  christos else
   3313  1.1  christos   while :; do
   3314  1.1  christos   ac_cv_sys_large_files=no
   3315  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3316  1.1  christos #line $LINENO "configure"
   3317  1.1  christos #include "confdefs.h"
   3318  1.1  christos #include <sys/types.h>
   3319  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   3320  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   3321  1.1  christos     since some C++ compilers masquerading as C compilers
   3322  1.1  christos     incorrectly reject 9223372036854775807.  */
   3323  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   3324  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   3325  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   3326  1.1  christos 		      ? 1 : -1];
   3327  1.1  christos #ifdef F77_DUMMY_MAIN
   3328  1.1  christos #  ifdef __cplusplus
   3329  1.1  christos      extern "C"
   3330  1.1  christos #  endif
   3331  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3332  1.1  christos #endif
   3333  1.1  christos int
   3334  1.1  christos main ()
   3335  1.1  christos {
   3336  1.1  christos 
   3337  1.1  christos   ;
   3338  1.1  christos   return 0;
   3339  1.1  christos }
   3340  1.1  christos _ACEOF
   3341  1.1  christos rm -f conftest.$ac_objext
   3342  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3343  1.1  christos   (eval $ac_compile) 2>&5
   3344  1.1  christos   ac_status=$?
   3345  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3346  1.1  christos   (exit $ac_status); } &&
   3347  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3348  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3349  1.1  christos   (eval $ac_try) 2>&5
   3350  1.1  christos   ac_status=$?
   3351  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3352  1.1  christos   (exit $ac_status); }; }; then
   3353  1.1  christos   break
   3354  1.1  christos else
   3355  1.1  christos   echo "$as_me: failed program was:" >&5
   3356  1.1  christos cat conftest.$ac_ext >&5
   3357  1.1  christos fi
   3358  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3359  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3360  1.1  christos #line $LINENO "configure"
   3361  1.1  christos #include "confdefs.h"
   3362  1.1  christos #define _LARGE_FILES 1
   3363  1.1  christos #include <sys/types.h>
   3364  1.1  christos  /* Check that off_t can represent 2**63 - 1 correctly.
   3365  1.1  christos     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   3366  1.1  christos     since some C++ compilers masquerading as C compilers
   3367  1.1  christos     incorrectly reject 9223372036854775807.  */
   3368  1.1  christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   3369  1.1  christos   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   3370  1.1  christos 		       && LARGE_OFF_T % 2147483647 == 1)
   3371  1.1  christos 		      ? 1 : -1];
   3372  1.1  christos #ifdef F77_DUMMY_MAIN
   3373  1.1  christos #  ifdef __cplusplus
   3374  1.1  christos      extern "C"
   3375  1.1  christos #  endif
   3376  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3377  1.1  christos #endif
   3378  1.1  christos int
   3379  1.1  christos main ()
   3380  1.1  christos {
   3381  1.1  christos 
   3382  1.1  christos   ;
   3383  1.1  christos   return 0;
   3384  1.1  christos }
   3385  1.1  christos _ACEOF
   3386  1.1  christos rm -f conftest.$ac_objext
   3387  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3388  1.1  christos   (eval $ac_compile) 2>&5
   3389  1.1  christos   ac_status=$?
   3390  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3391  1.1  christos   (exit $ac_status); } &&
   3392  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3393  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3394  1.1  christos   (eval $ac_try) 2>&5
   3395  1.1  christos   ac_status=$?
   3396  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3397  1.1  christos   (exit $ac_status); }; }; then
   3398  1.1  christos   ac_cv_sys_large_files=1; break
   3399  1.1  christos else
   3400  1.1  christos   echo "$as_me: failed program was:" >&5
   3401  1.1  christos cat conftest.$ac_ext >&5
   3402  1.1  christos fi
   3403  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3404  1.1  christos   break
   3405  1.1  christos done
   3406  1.1  christos fi
   3407  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
   3408  1.1  christos echo "${ECHO_T}$ac_cv_sys_large_files" >&6
   3409  1.1  christos if test "$ac_cv_sys_large_files" != no; then
   3410  1.1  christos 
   3411  1.1  christos cat >>confdefs.h <<_ACEOF
   3412  1.1  christos #define _LARGE_FILES $ac_cv_sys_large_files
   3413  1.1  christos _ACEOF
   3414  1.1  christos 
   3415  1.1  christos fi
   3416  1.1  christos rm -f conftest*
   3417  1.1  christos fi
   3418  1.1  christos 
   3419  1.1  christos 
   3420  1.1  christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
   3421  1.1  christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   3422  1.1  christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
   3423  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3424  1.1  christos else
   3425  1.1  christos   ac_cv_prog_cc_stdc=no
   3426  1.1  christos ac_save_CC=$CC
   3427  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   3428  1.1  christos #line $LINENO "configure"
   3429  1.1  christos #include "confdefs.h"
   3430  1.1  christos #include <stdarg.h>
   3431  1.1  christos #include <stdio.h>
   3432  1.1  christos #include <sys/types.h>
   3433  1.1  christos #include <sys/stat.h>
   3434  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3435  1.1  christos struct buf { int x; };
   3436  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3437  1.1  christos static char *e (p, i)
   3438  1.1  christos      char **p;
   3439  1.1  christos      int i;
   3440  1.1  christos {
   3441  1.1  christos   return p[i];
   3442  1.1  christos }
   3443  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   3444  1.1  christos {
   3445  1.1  christos   char *s;
   3446  1.1  christos   va_list v;
   3447  1.1  christos   va_start (v,p);
   3448  1.1  christos   s = g (p, va_arg (v,int));
   3449  1.1  christos   va_end (v);
   3450  1.1  christos   return s;
   3451  1.1  christos }
   3452  1.1  christos int test (int i, double x);
   3453  1.1  christos struct s1 {int (*f) (int a);};
   3454  1.1  christos struct s2 {int (*f) (double a);};
   3455  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3456  1.1  christos int argc;
   3457  1.1  christos char **argv;
   3458  1.1  christos #ifdef F77_DUMMY_MAIN
   3459  1.1  christos #  ifdef __cplusplus
   3460  1.1  christos      extern "C"
   3461  1.1  christos #  endif
   3462  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3463  1.1  christos #endif
   3464  1.1  christos int
   3465  1.1  christos main ()
   3466  1.1  christos {
   3467  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3468  1.1  christos   ;
   3469  1.1  christos   return 0;
   3470  1.1  christos }
   3471  1.1  christos _ACEOF
   3472  1.1  christos # Don't try gcc -ansi; that turns off useful extensions and
   3473  1.1  christos # breaks some systems' header files.
   3474  1.1  christos # AIX			-qlanglvl=ansi
   3475  1.1  christos # Ultrix and OSF/1	-std1
   3476  1.1  christos # HP-UX 10.20 and later	-Ae
   3477  1.1  christos # HP-UX older versions	-Aa -D_HPUX_SOURCE
   3478  1.1  christos # SVR4			-Xc -D__EXTENSIONS__
   3479  1.1  christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3480  1.1  christos do
   3481  1.1  christos   CC="$ac_save_CC $ac_arg"
   3482  1.1  christos   rm -f conftest.$ac_objext
   3483  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3484  1.1  christos   (eval $ac_compile) 2>&5
   3485  1.1  christos   ac_status=$?
   3486  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3487  1.1  christos   (exit $ac_status); } &&
   3488  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3489  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3490  1.1  christos   (eval $ac_try) 2>&5
   3491  1.1  christos   ac_status=$?
   3492  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3493  1.1  christos   (exit $ac_status); }; }; then
   3494  1.1  christos   ac_cv_prog_cc_stdc=$ac_arg
   3495  1.1  christos break
   3496  1.1  christos else
   3497  1.1  christos   echo "$as_me: failed program was:" >&5
   3498  1.1  christos cat conftest.$ac_ext >&5
   3499  1.1  christos fi
   3500  1.1  christos rm -f conftest.$ac_objext
   3501  1.1  christos done
   3502  1.1  christos rm -f conftest.$ac_ext conftest.$ac_objext
   3503  1.1  christos CC=$ac_save_CC
   3504  1.1  christos 
   3505  1.1  christos fi
   3506  1.1  christos 
   3507  1.1  christos case "x$ac_cv_prog_cc_stdc" in
   3508  1.1  christos   x|xno)
   3509  1.1  christos     echo "$as_me:$LINENO: result: none needed" >&5
   3510  1.1  christos echo "${ECHO_T}none needed" >&6 ;;
   3511  1.1  christos   *)
   3512  1.1  christos     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
   3513  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   3514  1.1  christos     CC="$CC $ac_cv_prog_cc_stdc" ;;
   3515  1.1  christos esac
   3516  1.1  christos 
   3517  1.1  christos echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   3518  1.1  christos echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
   3519  1.1  christos if test "${ac_cv_c_const+set}" = set; then
   3520  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3521  1.1  christos else
   3522  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3523  1.1  christos #line $LINENO "configure"
   3524  1.1  christos #include "confdefs.h"
   3525  1.1  christos 
   3526  1.1  christos #ifdef F77_DUMMY_MAIN
   3527  1.1  christos #  ifdef __cplusplus
   3528  1.1  christos      extern "C"
   3529  1.1  christos #  endif
   3530  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3531  1.1  christos #endif
   3532  1.1  christos int
   3533  1.1  christos main ()
   3534  1.1  christos {
   3535  1.1  christos /* FIXME: Include the comments suggested by Paul. */
   3536  1.1  christos #ifndef __cplusplus
   3537  1.1  christos   /* Ultrix mips cc rejects this.  */
   3538  1.1  christos   typedef int charset[2];
   3539  1.1  christos   const charset x;
   3540  1.1  christos   /* SunOS 4.1.1 cc rejects this.  */
   3541  1.1  christos   char const *const *ccp;
   3542  1.1  christos   char **p;
   3543  1.1  christos   /* NEC SVR4.0.2 mips cc rejects this.  */
   3544  1.1  christos   struct point {int x, y;};
   3545  1.1  christos   static struct point const zero = {0,0};
   3546  1.1  christos   /* AIX XL C 1.02.0.0 rejects this.
   3547  1.1  christos      It does not let you subtract one const X* pointer from another in
   3548  1.1  christos      an arm of an if-expression whose if-part is not a constant
   3549  1.1  christos      expression */
   3550  1.1  christos   const char *g = "string";
   3551  1.1  christos   ccp = &g + (g ? g-g : 0);
   3552  1.1  christos   /* HPUX 7.0 cc rejects these. */
   3553  1.1  christos   ++ccp;
   3554  1.1  christos   p = (char**) ccp;
   3555  1.1  christos   ccp = (char const *const *) p;
   3556  1.1  christos   { /* SCO 3.2v4 cc rejects this.  */
   3557  1.1  christos     char *t;
   3558  1.1  christos     char const *s = 0 ? (char *) 0 : (char const *) 0;
   3559  1.1  christos 
   3560  1.1  christos     *t++ = 0;
   3561  1.1  christos   }
   3562  1.1  christos   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   3563  1.1  christos     int x[] = {25, 17};
   3564  1.1  christos     const int *foo = &x[0];
   3565  1.1  christos     ++foo;
   3566  1.1  christos   }
   3567  1.1  christos   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   3568  1.1  christos     typedef const int *iptr;
   3569  1.1  christos     iptr p = 0;
   3570  1.1  christos     ++p;
   3571  1.1  christos   }
   3572  1.1  christos   { /* AIX XL C 1.02.0.0 rejects this saying
   3573  1.1  christos        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   3574  1.1  christos     struct s { int j; const int *ap[3]; };
   3575  1.1  christos     struct s *b; b->j = 5;
   3576  1.1  christos   }
   3577  1.1  christos   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   3578  1.1  christos     const int foo = 10;
   3579  1.1  christos   }
   3580  1.1  christos #endif
   3581  1.1  christos 
   3582  1.1  christos   ;
   3583  1.1  christos   return 0;
   3584  1.1  christos }
   3585  1.1  christos _ACEOF
   3586  1.1  christos rm -f conftest.$ac_objext
   3587  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3588  1.1  christos   (eval $ac_compile) 2>&5
   3589  1.1  christos   ac_status=$?
   3590  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3591  1.1  christos   (exit $ac_status); } &&
   3592  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3593  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3594  1.1  christos   (eval $ac_try) 2>&5
   3595  1.1  christos   ac_status=$?
   3596  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3597  1.1  christos   (exit $ac_status); }; }; then
   3598  1.1  christos   ac_cv_c_const=yes
   3599  1.1  christos else
   3600  1.1  christos   echo "$as_me: failed program was:" >&5
   3601  1.1  christos cat conftest.$ac_ext >&5
   3602  1.1  christos ac_cv_c_const=no
   3603  1.1  christos fi
   3604  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3605  1.1  christos fi
   3606  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   3607  1.1  christos echo "${ECHO_T}$ac_cv_c_const" >&6
   3608  1.1  christos if test $ac_cv_c_const = no; then
   3609  1.1  christos 
   3610  1.1  christos cat >>confdefs.h <<\_ACEOF
   3611  1.1  christos #define const
   3612  1.1  christos _ACEOF
   3613  1.1  christos 
   3614  1.1  christos fi
   3615  1.1  christos 
   3616  1.1  christos echo "$as_me:$LINENO: checking for inline" >&5
   3617  1.1  christos echo $ECHO_N "checking for inline... $ECHO_C" >&6
   3618  1.1  christos if test "${ac_cv_c_inline+set}" = set; then
   3619  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3620  1.1  christos else
   3621  1.1  christos   ac_cv_c_inline=no
   3622  1.1  christos for ac_kw in inline __inline__ __inline; do
   3623  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3624  1.1  christos #line $LINENO "configure"
   3625  1.1  christos #include "confdefs.h"
   3626  1.1  christos #ifndef __cplusplus
   3627  1.1  christos static $ac_kw int static_foo () {return 0; }
   3628  1.1  christos $ac_kw int foo () {return 0; }
   3629  1.1  christos #endif
   3630  1.1  christos 
   3631  1.1  christos _ACEOF
   3632  1.1  christos rm -f conftest.$ac_objext
   3633  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3634  1.1  christos   (eval $ac_compile) 2>&5
   3635  1.1  christos   ac_status=$?
   3636  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3637  1.1  christos   (exit $ac_status); } &&
   3638  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3639  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3640  1.1  christos   (eval $ac_try) 2>&5
   3641  1.1  christos   ac_status=$?
   3642  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3643  1.1  christos   (exit $ac_status); }; }; then
   3644  1.1  christos   ac_cv_c_inline=$ac_kw; break
   3645  1.1  christos else
   3646  1.1  christos   echo "$as_me: failed program was:" >&5
   3647  1.1  christos cat conftest.$ac_ext >&5
   3648  1.1  christos fi
   3649  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3650  1.1  christos done
   3651  1.1  christos 
   3652  1.1  christos fi
   3653  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   3654  1.1  christos echo "${ECHO_T}$ac_cv_c_inline" >&6
   3655  1.1  christos case $ac_cv_c_inline in
   3656  1.1  christos   inline | yes) ;;
   3657  1.1  christos   no)
   3658  1.1  christos cat >>confdefs.h <<\_ACEOF
   3659  1.1  christos #define inline
   3660  1.1  christos _ACEOF
   3661  1.1  christos  ;;
   3662  1.1  christos   *)  cat >>confdefs.h <<_ACEOF
   3663  1.1  christos #define inline $ac_cv_c_inline
   3664  1.1  christos _ACEOF
   3665  1.1  christos  ;;
   3666  1.1  christos esac
   3667  1.1  christos 
   3668  1.1  christos 
   3669  1.1  christos   echo "$as_me:$LINENO: checking for variable-length arrays" >&5
   3670  1.1  christos echo $ECHO_N "checking for variable-length arrays... $ECHO_C" >&6
   3671  1.1  christos if test "${ac_cv_c_vararrays+set}" = set; then
   3672  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3673  1.1  christos else
   3674  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3675  1.1  christos #line $LINENO "configure"
   3676  1.1  christos #include "confdefs.h"
   3677  1.1  christos 
   3678  1.1  christos #ifdef F77_DUMMY_MAIN
   3679  1.1  christos #  ifdef __cplusplus
   3680  1.1  christos      extern "C"
   3681  1.1  christos #  endif
   3682  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3683  1.1  christos #endif
   3684  1.1  christos int
   3685  1.1  christos main ()
   3686  1.1  christos {
   3687  1.1  christos static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
   3688  1.1  christos   ;
   3689  1.1  christos   return 0;
   3690  1.1  christos }
   3691  1.1  christos _ACEOF
   3692  1.1  christos rm -f conftest.$ac_objext
   3693  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3694  1.1  christos   (eval $ac_compile) 2>&5
   3695  1.1  christos   ac_status=$?
   3696  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3697  1.1  christos   (exit $ac_status); } &&
   3698  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3699  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3700  1.1  christos   (eval $ac_try) 2>&5
   3701  1.1  christos   ac_status=$?
   3702  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3703  1.1  christos   (exit $ac_status); }; }; then
   3704  1.1  christos   ac_cv_c_vararrays=yes
   3705  1.1  christos else
   3706  1.1  christos   echo "$as_me: failed program was:" >&5
   3707  1.1  christos cat conftest.$ac_ext >&5
   3708  1.1  christos ac_cv_c_vararrays=no
   3709  1.1  christos fi
   3710  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3711  1.1  christos fi
   3712  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_vararrays" >&5
   3713  1.1  christos echo "${ECHO_T}$ac_cv_c_vararrays" >&6
   3714  1.1  christos   if test $ac_cv_c_vararrays = yes; then
   3715  1.1  christos 
   3716  1.1  christos cat >>confdefs.h <<\_ACEOF
   3717  1.1  christos #define HAVE_C_VARARRAYS 1
   3718  1.1  christos _ACEOF
   3719  1.1  christos 
   3720  1.1  christos   fi
   3721  1.1  christos 
   3722  1.1  christos 
   3723  1.1  christos 
   3724  1.1  christos cat >>confdefs.h <<\_ACEOF
   3725  1.1  christos #define DEFAULT_DIFF_PROGRAM "diff"
   3726  1.1  christos _ACEOF
   3727  1.1  christos 
   3728  1.1  christos 
   3729  1.1  christos 
   3730  1.1  christos cat >>confdefs.h <<\_ACEOF
   3731  1.1  christos #define DEFAULT_EDITOR_PROGRAM "ed"
   3732  1.1  christos _ACEOF
   3733  1.1  christos 
   3734  1.1  christos 
   3735  1.1  christos # Extract the first word of "pr", so it can be a program name with args.
   3736  1.1  christos set dummy pr; ac_word=$2
   3737  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   3738  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   3739  1.1  christos if test "${ac_cv_path_PR_PROGRAM+set}" = set; then
   3740  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3741  1.1  christos else
   3742  1.1  christos   case $PR_PROGRAM in
   3743  1.1  christos   [\\/]* | ?:[\\/]*)
   3744  1.1  christos   ac_cv_path_PR_PROGRAM="$PR_PROGRAM" # Let the user override the test with a path.
   3745  1.1  christos   ;;
   3746  1.1  christos   *)
   3747  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3748  1.1  christos for as_dir in $PATH
   3749  1.1  christos do
   3750  1.1  christos   IFS=$as_save_IFS
   3751  1.1  christos   test -z "$as_dir" && as_dir=.
   3752  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   3753  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3754  1.1  christos     ac_cv_path_PR_PROGRAM="$as_dir/$ac_word$ac_exec_ext"
   3755  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3756  1.1  christos     break 2
   3757  1.1  christos   fi
   3758  1.1  christos done
   3759  1.1  christos done
   3760  1.1  christos 
   3761  1.1  christos   test -z "$ac_cv_path_PR_PROGRAM" && ac_cv_path_PR_PROGRAM=""""
   3762  1.1  christos   ;;
   3763  1.1  christos esac
   3764  1.1  christos fi
   3765  1.1  christos PR_PROGRAM=$ac_cv_path_PR_PROGRAM
   3766  1.1  christos 
   3767  1.1  christos if test -n "$PR_PROGRAM"; then
   3768  1.1  christos   echo "$as_me:$LINENO: result: $PR_PROGRAM" >&5
   3769  1.1  christos echo "${ECHO_T}$PR_PROGRAM" >&6
   3770  1.1  christos else
   3771  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   3772  1.1  christos echo "${ECHO_T}no" >&6
   3773  1.1  christos fi
   3774  1.1  christos 
   3775  1.1  christos 
   3776  1.1  christos cat >>confdefs.h <<_ACEOF
   3777  1.1  christos #define PR_PROGRAM "$PR_PROGRAM"
   3778  1.1  christos _ACEOF
   3779  1.1  christos 
   3780  1.1  christos 
   3781  1.1  christos echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
   3782  1.1  christos echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
   3783  1.1  christos if test "${ac_cv_header_stdbool_h+set}" = set; then
   3784  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3785  1.1  christos else
   3786  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3787  1.1  christos #line $LINENO "configure"
   3788  1.1  christos #include "confdefs.h"
   3789  1.1  christos 
   3790  1.1  christos 	  #include <stdbool.h>
   3791  1.1  christos 	  #ifndef bool
   3792  1.1  christos 	   "error: bool is not defined"
   3793  1.1  christos 	  #endif
   3794  1.1  christos 	  #ifndef false
   3795  1.1  christos 	   "error: false is not defined"
   3796  1.1  christos 	  #endif
   3797  1.1  christos 	  #ifndef true
   3798  1.1  christos 	   "error: false is not defined"
   3799  1.1  christos 	  #endif
   3800  1.1  christos 	  #ifndef __bool_true_false_are_defined
   3801  1.1  christos 	   "error: __bool_true_false_are_defined is not defined"
   3802  1.1  christos 	  #endif
   3803  1.1  christos 
   3804  1.1  christos 	  struct s { _Bool s: 1; _Bool t; } s;
   3805  1.1  christos 
   3806  1.1  christos 	  char a[true == 1 ? 1 : -1];
   3807  1.1  christos 	  char b[false == 0 ? 1 : -1];
   3808  1.1  christos 	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   3809  1.1  christos 	  char d[(bool) -0.5 == true ? 1 : -1];
   3810  1.1  christos 	  char e[(bool) &s == true ? 1 : -1];
   3811  1.1  christos 	  char f[(_Bool) -0.0 == false ? 1 : -1];
   3812  1.1  christos 	  char g[true];
   3813  1.1  christos 	  char h[sizeof (_Bool)];
   3814  1.1  christos 	  char i[sizeof s.t];
   3815  1.1  christos 
   3816  1.1  christos #ifdef F77_DUMMY_MAIN
   3817  1.1  christos #  ifdef __cplusplus
   3818  1.1  christos      extern "C"
   3819  1.1  christos #  endif
   3820  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   3821  1.1  christos #endif
   3822  1.1  christos int
   3823  1.1  christos main ()
   3824  1.1  christos {
   3825  1.1  christos  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
   3826  1.1  christos   ;
   3827  1.1  christos   return 0;
   3828  1.1  christos }
   3829  1.1  christos _ACEOF
   3830  1.1  christos rm -f conftest.$ac_objext
   3831  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3832  1.1  christos   (eval $ac_compile) 2>&5
   3833  1.1  christos   ac_status=$?
   3834  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3835  1.1  christos   (exit $ac_status); } &&
   3836  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3837  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3838  1.1  christos   (eval $ac_try) 2>&5
   3839  1.1  christos   ac_status=$?
   3840  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3841  1.1  christos   (exit $ac_status); }; }; then
   3842  1.1  christos   ac_cv_header_stdbool_h=yes
   3843  1.1  christos else
   3844  1.1  christos   echo "$as_me: failed program was:" >&5
   3845  1.1  christos cat conftest.$ac_ext >&5
   3846  1.1  christos ac_cv_header_stdbool_h=no
   3847  1.1  christos fi
   3848  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3849  1.1  christos fi
   3850  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
   3851  1.1  christos echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
   3852  1.1  christos    if test $ac_cv_header_stdbool_h = yes; then
   3853  1.1  christos 
   3854  1.1  christos cat >>confdefs.h <<\_ACEOF
   3855  1.1  christos #define HAVE_STDBOOL_H 1
   3856  1.1  christos _ACEOF
   3857  1.1  christos 
   3858  1.1  christos    fi
   3859  1.1  christos 
   3860  1.1  christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   3861  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   3862  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   3863  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3864  1.1  christos else
   3865  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3866  1.1  christos #line $LINENO "configure"
   3867  1.1  christos #include "confdefs.h"
   3868  1.1  christos #include <stdlib.h>
   3869  1.1  christos #include <stdarg.h>
   3870  1.1  christos #include <string.h>
   3871  1.1  christos #include <float.h>
   3872  1.1  christos 
   3873  1.1  christos _ACEOF
   3874  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3875  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3876  1.1  christos   ac_status=$?
   3877  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   3878  1.1  christos   rm -f conftest.er1
   3879  1.1  christos   cat conftest.err >&5
   3880  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3881  1.1  christos   (exit $ac_status); } >/dev/null; then
   3882  1.1  christos   if test -s conftest.err; then
   3883  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3884  1.1  christos   else
   3885  1.1  christos     ac_cpp_err=
   3886  1.1  christos   fi
   3887  1.1  christos else
   3888  1.1  christos   ac_cpp_err=yes
   3889  1.1  christos fi
   3890  1.1  christos if test -z "$ac_cpp_err"; then
   3891  1.1  christos   ac_cv_header_stdc=yes
   3892  1.1  christos else
   3893  1.1  christos   echo "$as_me: failed program was:" >&5
   3894  1.1  christos   cat conftest.$ac_ext >&5
   3895  1.1  christos   ac_cv_header_stdc=no
   3896  1.1  christos fi
   3897  1.1  christos rm -f conftest.err conftest.$ac_ext
   3898  1.1  christos 
   3899  1.1  christos if test $ac_cv_header_stdc = yes; then
   3900  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3901  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3902  1.1  christos #line $LINENO "configure"
   3903  1.1  christos #include "confdefs.h"
   3904  1.1  christos #include <string.h>
   3905  1.1  christos 
   3906  1.1  christos _ACEOF
   3907  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3908  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   3909  1.1  christos   :
   3910  1.1  christos else
   3911  1.1  christos   ac_cv_header_stdc=no
   3912  1.1  christos fi
   3913  1.1  christos rm -f conftest*
   3914  1.1  christos 
   3915  1.1  christos fi
   3916  1.1  christos 
   3917  1.1  christos if test $ac_cv_header_stdc = yes; then
   3918  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3919  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3920  1.1  christos #line $LINENO "configure"
   3921  1.1  christos #include "confdefs.h"
   3922  1.1  christos #include <stdlib.h>
   3923  1.1  christos 
   3924  1.1  christos _ACEOF
   3925  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3926  1.1  christos   egrep "free" >/dev/null 2>&1; then
   3927  1.1  christos   :
   3928  1.1  christos else
   3929  1.1  christos   ac_cv_header_stdc=no
   3930  1.1  christos fi
   3931  1.1  christos rm -f conftest*
   3932  1.1  christos 
   3933  1.1  christos fi
   3934  1.1  christos 
   3935  1.1  christos if test $ac_cv_header_stdc = yes; then
   3936  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3937  1.1  christos   if test "$cross_compiling" = yes; then
   3938  1.1  christos   :
   3939  1.1  christos else
   3940  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3941  1.1  christos #line $LINENO "configure"
   3942  1.1  christos #include "confdefs.h"
   3943  1.1  christos #include <ctype.h>
   3944  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   3945  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3946  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3947  1.1  christos #else
   3948  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   3949  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   3950  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   3951  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3952  1.1  christos #endif
   3953  1.1  christos 
   3954  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3955  1.1  christos int
   3956  1.1  christos main ()
   3957  1.1  christos {
   3958  1.1  christos   int i;
   3959  1.1  christos   for (i = 0; i < 256; i++)
   3960  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   3961  1.1  christos         || toupper (i) != TOUPPER (i))
   3962  1.1  christos       exit(2);
   3963  1.1  christos   exit (0);
   3964  1.1  christos }
   3965  1.1  christos _ACEOF
   3966  1.1  christos rm -f conftest$ac_exeext
   3967  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3968  1.1  christos   (eval $ac_link) 2>&5
   3969  1.1  christos   ac_status=$?
   3970  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3971  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3972  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3973  1.1  christos   (eval $ac_try) 2>&5
   3974  1.1  christos   ac_status=$?
   3975  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3976  1.1  christos   (exit $ac_status); }; }; then
   3977  1.1  christos   :
   3978  1.1  christos else
   3979  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   3980  1.1  christos echo "$as_me: failed program was:" >&5
   3981  1.1  christos cat conftest.$ac_ext >&5
   3982  1.1  christos ( exit $ac_status )
   3983  1.1  christos ac_cv_header_stdc=no
   3984  1.1  christos fi
   3985  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3986  1.1  christos fi
   3987  1.1  christos fi
   3988  1.1  christos fi
   3989  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   3990  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   3991  1.1  christos if test $ac_cv_header_stdc = yes; then
   3992  1.1  christos 
   3993  1.1  christos cat >>confdefs.h <<\_ACEOF
   3994  1.1  christos #define STDC_HEADERS 1
   3995  1.1  christos _ACEOF
   3996  1.1  christos 
   3997  1.1  christos fi
   3998  1.1  christos 
   3999  1.1  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4000  1.1  christos 
   4001  1.1  christos 
   4002  1.1  christos 
   4003  1.1  christos 
   4004  1.1  christos 
   4005  1.1  christos 
   4006  1.1  christos 
   4007  1.1  christos 
   4008  1.1  christos 
   4009  1.1  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4010  1.1  christos                   inttypes.h stdint.h unistd.h
   4011  1.1  christos do
   4012  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4013  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   4014  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4015  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4016  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4017  1.1  christos else
   4018  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4019  1.1  christos #line $LINENO "configure"
   4020  1.1  christos #include "confdefs.h"
   4021  1.1  christos $ac_includes_default
   4022  1.1  christos 
   4023  1.1  christos #include <$ac_header>
   4024  1.1  christos _ACEOF
   4025  1.1  christos rm -f conftest.$ac_objext
   4026  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4027  1.1  christos   (eval $ac_compile) 2>&5
   4028  1.1  christos   ac_status=$?
   4029  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4030  1.1  christos   (exit $ac_status); } &&
   4031  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4032  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4033  1.1  christos   (eval $ac_try) 2>&5
   4034  1.1  christos   ac_status=$?
   4035  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4036  1.1  christos   (exit $ac_status); }; }; then
   4037  1.1  christos   eval "$as_ac_Header=yes"
   4038  1.1  christos else
   4039  1.1  christos   echo "$as_me: failed program was:" >&5
   4040  1.1  christos cat conftest.$ac_ext >&5
   4041  1.1  christos eval "$as_ac_Header=no"
   4042  1.1  christos fi
   4043  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4044  1.1  christos fi
   4045  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4046  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4047  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4048  1.1  christos   cat >>confdefs.h <<_ACEOF
   4049  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4050  1.1  christos _ACEOF
   4051  1.1  christos 
   4052  1.1  christos fi
   4053  1.1  christos 
   4054  1.1  christos done
   4055  1.1  christos 
   4056  1.1  christos 
   4057  1.1  christos 
   4058  1.1  christos 
   4059  1.1  christos 
   4060  1.1  christos 
   4061  1.1  christos 
   4062  1.1  christos 
   4063  1.1  christos 
   4064  1.1  christos 
   4065  1.1  christos 
   4066  1.1  christos for ac_header in fcntl.h libintl.h limits.h locale.h \
   4067  1.1  christos   stdlib.h string.h sys/file.h time.h unistd.h
   4068  1.1  christos do
   4069  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4070  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4071  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   4072  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4073  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4074  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4075  1.1  christos fi
   4076  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4077  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4078  1.1  christos else
   4079  1.1  christos   # Is the header compilable?
   4080  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   4081  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   4082  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4083  1.1  christos #line $LINENO "configure"
   4084  1.1  christos #include "confdefs.h"
   4085  1.1  christos $ac_includes_default
   4086  1.1  christos #include <$ac_header>
   4087  1.1  christos _ACEOF
   4088  1.1  christos rm -f conftest.$ac_objext
   4089  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4090  1.1  christos   (eval $ac_compile) 2>&5
   4091  1.1  christos   ac_status=$?
   4092  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4093  1.1  christos   (exit $ac_status); } &&
   4094  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4095  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4096  1.1  christos   (eval $ac_try) 2>&5
   4097  1.1  christos   ac_status=$?
   4098  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4099  1.1  christos   (exit $ac_status); }; }; then
   4100  1.1  christos   ac_header_compiler=yes
   4101  1.1  christos else
   4102  1.1  christos   echo "$as_me: failed program was:" >&5
   4103  1.1  christos cat conftest.$ac_ext >&5
   4104  1.1  christos ac_header_compiler=no
   4105  1.1  christos fi
   4106  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4107  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   4108  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   4109  1.1  christos 
   4110  1.1  christos # Is the header present?
   4111  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   4112  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   4113  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4114  1.1  christos #line $LINENO "configure"
   4115  1.1  christos #include "confdefs.h"
   4116  1.1  christos #include <$ac_header>
   4117  1.1  christos _ACEOF
   4118  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   4119  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4120  1.1  christos   ac_status=$?
   4121  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4122  1.1  christos   rm -f conftest.er1
   4123  1.1  christos   cat conftest.err >&5
   4124  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4125  1.1  christos   (exit $ac_status); } >/dev/null; then
   4126  1.1  christos   if test -s conftest.err; then
   4127  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4128  1.1  christos   else
   4129  1.1  christos     ac_cpp_err=
   4130  1.1  christos   fi
   4131  1.1  christos else
   4132  1.1  christos   ac_cpp_err=yes
   4133  1.1  christos fi
   4134  1.1  christos if test -z "$ac_cpp_err"; then
   4135  1.1  christos   ac_header_preproc=yes
   4136  1.1  christos else
   4137  1.1  christos   echo "$as_me: failed program was:" >&5
   4138  1.1  christos   cat conftest.$ac_ext >&5
   4139  1.1  christos   ac_header_preproc=no
   4140  1.1  christos fi
   4141  1.1  christos rm -f conftest.err conftest.$ac_ext
   4142  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   4143  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   4144  1.1  christos 
   4145  1.1  christos # So?  What about this header?
   4146  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   4147  1.1  christos   yes:no )
   4148  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   4149  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   4150  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   4151  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   4152  1.1  christos   no:yes )
   4153  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   4154  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   4155  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   4156  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   4157  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   4158  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   4159  1.1  christos esac
   4160  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   4161  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4162  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4163  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4164  1.1  christos else
   4165  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   4166  1.1  christos fi
   4167  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4168  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4169  1.1  christos 
   4170  1.1  christos fi
   4171  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4172  1.1  christos   cat >>confdefs.h <<_ACEOF
   4173  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4174  1.1  christos _ACEOF
   4175  1.1  christos 
   4176  1.1  christos fi
   4177  1.1  christos 
   4178  1.1  christos done
   4179  1.1  christos 
   4180  1.1  christos echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
   4181  1.1  christos echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
   4182  1.1  christos if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
   4183  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4184  1.1  christos else
   4185  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4186  1.1  christos #line $LINENO "configure"
   4187  1.1  christos #include "confdefs.h"
   4188  1.1  christos $ac_includes_default
   4189  1.1  christos #ifdef F77_DUMMY_MAIN
   4190  1.1  christos #  ifdef __cplusplus
   4191  1.1  christos      extern "C"
   4192  1.1  christos #  endif
   4193  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4194  1.1  christos #endif
   4195  1.1  christos int
   4196  1.1  christos main ()
   4197  1.1  christos {
   4198  1.1  christos static struct stat ac_aggr;
   4199  1.1  christos if (ac_aggr.st_blksize)
   4200  1.1  christos return 0;
   4201  1.1  christos   ;
   4202  1.1  christos   return 0;
   4203  1.1  christos }
   4204  1.1  christos _ACEOF
   4205  1.1  christos rm -f conftest.$ac_objext
   4206  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4207  1.1  christos   (eval $ac_compile) 2>&5
   4208  1.1  christos   ac_status=$?
   4209  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4210  1.1  christos   (exit $ac_status); } &&
   4211  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4212  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4213  1.1  christos   (eval $ac_try) 2>&5
   4214  1.1  christos   ac_status=$?
   4215  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4216  1.1  christos   (exit $ac_status); }; }; then
   4217  1.1  christos   ac_cv_member_struct_stat_st_blksize=yes
   4218  1.1  christos else
   4219  1.1  christos   echo "$as_me: failed program was:" >&5
   4220  1.1  christos cat conftest.$ac_ext >&5
   4221  1.1  christos ac_cv_member_struct_stat_st_blksize=no
   4222  1.1  christos fi
   4223  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4224  1.1  christos fi
   4225  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
   4226  1.1  christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
   4227  1.1  christos if test $ac_cv_member_struct_stat_st_blksize = yes; then
   4228  1.1  christos 
   4229  1.1  christos cat >>confdefs.h <<_ACEOF
   4230  1.1  christos #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   4231  1.1  christos _ACEOF
   4232  1.1  christos 
   4233  1.1  christos 
   4234  1.1  christos fi
   4235  1.1  christos 
   4236  1.1  christos echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
   4237  1.1  christos echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
   4238  1.1  christos if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
   4239  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4240  1.1  christos else
   4241  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4242  1.1  christos #line $LINENO "configure"
   4243  1.1  christos #include "confdefs.h"
   4244  1.1  christos $ac_includes_default
   4245  1.1  christos #ifdef F77_DUMMY_MAIN
   4246  1.1  christos #  ifdef __cplusplus
   4247  1.1  christos      extern "C"
   4248  1.1  christos #  endif
   4249  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4250  1.1  christos #endif
   4251  1.1  christos int
   4252  1.1  christos main ()
   4253  1.1  christos {
   4254  1.1  christos static struct stat ac_aggr;
   4255  1.1  christos if (ac_aggr.st_rdev)
   4256  1.1  christos return 0;
   4257  1.1  christos   ;
   4258  1.1  christos   return 0;
   4259  1.1  christos }
   4260  1.1  christos _ACEOF
   4261  1.1  christos rm -f conftest.$ac_objext
   4262  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4263  1.1  christos   (eval $ac_compile) 2>&5
   4264  1.1  christos   ac_status=$?
   4265  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4266  1.1  christos   (exit $ac_status); } &&
   4267  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4268  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4269  1.1  christos   (eval $ac_try) 2>&5
   4270  1.1  christos   ac_status=$?
   4271  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4272  1.1  christos   (exit $ac_status); }; }; then
   4273  1.1  christos   ac_cv_member_struct_stat_st_rdev=yes
   4274  1.1  christos else
   4275  1.1  christos   echo "$as_me: failed program was:" >&5
   4276  1.1  christos cat conftest.$ac_ext >&5
   4277  1.1  christos ac_cv_member_struct_stat_st_rdev=no
   4278  1.1  christos fi
   4279  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4280  1.1  christos fi
   4281  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
   4282  1.1  christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
   4283  1.1  christos if test $ac_cv_member_struct_stat_st_rdev = yes; then
   4284  1.1  christos 
   4285  1.1  christos cat >>confdefs.h <<_ACEOF
   4286  1.1  christos #define HAVE_STRUCT_STAT_ST_RDEV 1
   4287  1.1  christos _ACEOF
   4288  1.1  christos 
   4289  1.1  christos 
   4290  1.1  christos fi
   4291  1.1  christos 
   4292  1.1  christos echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
   4293  1.1  christos echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
   4294  1.1  christos if test "${ac_cv_type_ptrdiff_t+set}" = set; then
   4295  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4296  1.1  christos else
   4297  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4298  1.1  christos #line $LINENO "configure"
   4299  1.1  christos #include "confdefs.h"
   4300  1.1  christos $ac_includes_default
   4301  1.1  christos #ifdef F77_DUMMY_MAIN
   4302  1.1  christos #  ifdef __cplusplus
   4303  1.1  christos      extern "C"
   4304  1.1  christos #  endif
   4305  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4306  1.1  christos #endif
   4307  1.1  christos int
   4308  1.1  christos main ()
   4309  1.1  christos {
   4310  1.1  christos if ((ptrdiff_t *) 0)
   4311  1.1  christos   return 0;
   4312  1.1  christos if (sizeof (ptrdiff_t))
   4313  1.1  christos   return 0;
   4314  1.1  christos   ;
   4315  1.1  christos   return 0;
   4316  1.1  christos }
   4317  1.1  christos _ACEOF
   4318  1.1  christos rm -f conftest.$ac_objext
   4319  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4320  1.1  christos   (eval $ac_compile) 2>&5
   4321  1.1  christos   ac_status=$?
   4322  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4323  1.1  christos   (exit $ac_status); } &&
   4324  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4325  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4326  1.1  christos   (eval $ac_try) 2>&5
   4327  1.1  christos   ac_status=$?
   4328  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4329  1.1  christos   (exit $ac_status); }; }; then
   4330  1.1  christos   ac_cv_type_ptrdiff_t=yes
   4331  1.1  christos else
   4332  1.1  christos   echo "$as_me: failed program was:" >&5
   4333  1.1  christos cat conftest.$ac_ext >&5
   4334  1.1  christos ac_cv_type_ptrdiff_t=no
   4335  1.1  christos fi
   4336  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4337  1.1  christos fi
   4338  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
   4339  1.1  christos echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
   4340  1.1  christos if test $ac_cv_type_ptrdiff_t = yes; then
   4341  1.1  christos   :
   4342  1.1  christos else
   4343  1.1  christos 
   4344  1.1  christos cat >>confdefs.h <<_ACEOF
   4345  1.1  christos #define ptrdiff_t int
   4346  1.1  christos _ACEOF
   4347  1.1  christos 
   4348  1.1  christos fi
   4349  1.1  christos 
   4350  1.1  christos echo "$as_me:$LINENO: checking for ssize_t" >&5
   4351  1.1  christos echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
   4352  1.1  christos if test "${ac_cv_type_ssize_t+set}" = set; then
   4353  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4354  1.1  christos else
   4355  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4356  1.1  christos #line $LINENO "configure"
   4357  1.1  christos #include "confdefs.h"
   4358  1.1  christos $ac_includes_default
   4359  1.1  christos #ifdef F77_DUMMY_MAIN
   4360  1.1  christos #  ifdef __cplusplus
   4361  1.1  christos      extern "C"
   4362  1.1  christos #  endif
   4363  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4364  1.1  christos #endif
   4365  1.1  christos int
   4366  1.1  christos main ()
   4367  1.1  christos {
   4368  1.1  christos if ((ssize_t *) 0)
   4369  1.1  christos   return 0;
   4370  1.1  christos if (sizeof (ssize_t))
   4371  1.1  christos   return 0;
   4372  1.1  christos   ;
   4373  1.1  christos   return 0;
   4374  1.1  christos }
   4375  1.1  christos _ACEOF
   4376  1.1  christos rm -f conftest.$ac_objext
   4377  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4378  1.1  christos   (eval $ac_compile) 2>&5
   4379  1.1  christos   ac_status=$?
   4380  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4381  1.1  christos   (exit $ac_status); } &&
   4382  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4383  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4384  1.1  christos   (eval $ac_try) 2>&5
   4385  1.1  christos   ac_status=$?
   4386  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4387  1.1  christos   (exit $ac_status); }; }; then
   4388  1.1  christos   ac_cv_type_ssize_t=yes
   4389  1.1  christos else
   4390  1.1  christos   echo "$as_me: failed program was:" >&5
   4391  1.1  christos cat conftest.$ac_ext >&5
   4392  1.1  christos ac_cv_type_ssize_t=no
   4393  1.1  christos fi
   4394  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4395  1.1  christos fi
   4396  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
   4397  1.1  christos echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
   4398  1.1  christos if test $ac_cv_type_ssize_t = yes; then
   4399  1.1  christos   :
   4400  1.1  christos else
   4401  1.1  christos 
   4402  1.1  christos cat >>confdefs.h <<_ACEOF
   4403  1.1  christos #define ssize_t int
   4404  1.1  christos _ACEOF
   4405  1.1  christos 
   4406  1.1  christos fi
   4407  1.1  christos 
   4408  1.1  christos 
   4409  1.1  christos   echo "$as_me:$LINENO: checking for unsigned long long" >&5
   4410  1.1  christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
   4411  1.1  christos if test "${ac_cv_type_unsigned_long_long+set}" = set; then
   4412  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4413  1.1  christos else
   4414  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4415  1.1  christos #line $LINENO "configure"
   4416  1.1  christos #include "confdefs.h"
   4417  1.1  christos unsigned long long ull = 1; int i = 63;
   4418  1.1  christos #ifdef F77_DUMMY_MAIN
   4419  1.1  christos #  ifdef __cplusplus
   4420  1.1  christos      extern "C"
   4421  1.1  christos #  endif
   4422  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4423  1.1  christos #endif
   4424  1.1  christos int
   4425  1.1  christos main ()
   4426  1.1  christos {
   4427  1.1  christos unsigned long long ullmax = (unsigned long long) -1;
   4428  1.1  christos      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
   4429  1.1  christos   ;
   4430  1.1  christos   return 0;
   4431  1.1  christos }
   4432  1.1  christos _ACEOF
   4433  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4434  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4435  1.1  christos   (eval $ac_link) 2>&5
   4436  1.1  christos   ac_status=$?
   4437  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4438  1.1  christos   (exit $ac_status); } &&
   4439  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   4440  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4441  1.1  christos   (eval $ac_try) 2>&5
   4442  1.1  christos   ac_status=$?
   4443  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4444  1.1  christos   (exit $ac_status); }; }; then
   4445  1.1  christos   ac_cv_type_unsigned_long_long=yes
   4446  1.1  christos else
   4447  1.1  christos   echo "$as_me: failed program was:" >&5
   4448  1.1  christos cat conftest.$ac_ext >&5
   4449  1.1  christos ac_cv_type_unsigned_long_long=no
   4450  1.1  christos fi
   4451  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4452  1.1  christos fi
   4453  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
   4454  1.1  christos echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
   4455  1.1  christos   if test $ac_cv_type_unsigned_long_long = yes; then
   4456  1.1  christos 
   4457  1.1  christos cat >>confdefs.h <<\_ACEOF
   4458  1.1  christos #define HAVE_UNSIGNED_LONG_LONG 1
   4459  1.1  christos _ACEOF
   4460  1.1  christos 
   4461  1.1  christos   fi
   4462  1.1  christos 
   4463  1.1  christos 
   4464  1.1  christos 
   4465  1.1  christos   echo "$as_me:$LINENO: checking for uintmax_t" >&5
   4466  1.1  christos echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
   4467  1.1  christos if test "${ac_cv_type_uintmax_t+set}" = set; then
   4468  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4469  1.1  christos else
   4470  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4471  1.1  christos #line $LINENO "configure"
   4472  1.1  christos #include "confdefs.h"
   4473  1.1  christos $ac_includes_default
   4474  1.1  christos #ifdef F77_DUMMY_MAIN
   4475  1.1  christos #  ifdef __cplusplus
   4476  1.1  christos      extern "C"
   4477  1.1  christos #  endif
   4478  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4479  1.1  christos #endif
   4480  1.1  christos int
   4481  1.1  christos main ()
   4482  1.1  christos {
   4483  1.1  christos if ((uintmax_t *) 0)
   4484  1.1  christos   return 0;
   4485  1.1  christos if (sizeof (uintmax_t))
   4486  1.1  christos   return 0;
   4487  1.1  christos   ;
   4488  1.1  christos   return 0;
   4489  1.1  christos }
   4490  1.1  christos _ACEOF
   4491  1.1  christos rm -f conftest.$ac_objext
   4492  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4493  1.1  christos   (eval $ac_compile) 2>&5
   4494  1.1  christos   ac_status=$?
   4495  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4496  1.1  christos   (exit $ac_status); } &&
   4497  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   4498  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4499  1.1  christos   (eval $ac_try) 2>&5
   4500  1.1  christos   ac_status=$?
   4501  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4502  1.1  christos   (exit $ac_status); }; }; then
   4503  1.1  christos   ac_cv_type_uintmax_t=yes
   4504  1.1  christos else
   4505  1.1  christos   echo "$as_me: failed program was:" >&5
   4506  1.1  christos cat conftest.$ac_ext >&5
   4507  1.1  christos ac_cv_type_uintmax_t=no
   4508  1.1  christos fi
   4509  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4510  1.1  christos fi
   4511  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
   4512  1.1  christos echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
   4513  1.1  christos if test $ac_cv_type_uintmax_t = yes; then
   4514  1.1  christos   :
   4515  1.1  christos else
   4516  1.1  christos   test $ac_cv_type_unsigned_long_long = yes \
   4517  1.1  christos        && ac_type='unsigned long long' \
   4518  1.1  christos        || ac_type='unsigned long'
   4519  1.1  christos 
   4520  1.1  christos cat >>confdefs.h <<_ACEOF
   4521  1.1  christos #define uintmax_t $ac_type
   4522  1.1  christos _ACEOF
   4523  1.1  christos 
   4524  1.1  christos fi
   4525  1.1  christos 
   4526  1.1  christos 
   4527  1.1  christos 
   4528  1.1  christos         MKINSTALLDIRS=
   4529  1.1  christos   if test -n "$ac_aux_dir"; then
   4530  1.1  christos     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
   4531  1.1  christos   fi
   4532  1.1  christos   if test -z "$MKINSTALLDIRS"; then
   4533  1.1  christos     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
   4534  1.1  christos   fi
   4535  1.1  christos 
   4536  1.1  christos 
   4537  1.1  christos 
   4538  1.1  christos 
   4539  1.1  christos 
   4540  1.1  christos         # Extract the first word of "msgfmt", so it can be a program name with args.
   4541  1.1  christos set dummy msgfmt; ac_word=$2
   4542  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   4543  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   4544  1.1  christos if test "${ac_cv_path_MSGFMT+set}" = set; then
   4545  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4546  1.1  christos else
   4547  1.1  christos   case "$MSGFMT" in
   4548  1.1  christos   /*)
   4549  1.1  christos   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
   4550  1.1  christos   ;;
   4551  1.1  christos   *)
   4552  1.1  christos   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   4553  1.1  christos   for ac_dir in $PATH; do
   4554  1.1  christos     test -z "$ac_dir" && ac_dir=.
   4555  1.1  christos     if test -f $ac_dir/$ac_word; then
   4556  1.1  christos       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
   4557  1.1  christos      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   4558  1.1  christos 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
   4559  1.1  christos 	break
   4560  1.1  christos       fi
   4561  1.1  christos     fi
   4562  1.1  christos   done
   4563  1.1  christos   IFS="$ac_save_ifs"
   4564  1.1  christos   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
   4565  1.1  christos   ;;
   4566  1.1  christos esac
   4567  1.1  christos fi
   4568  1.1  christos MSGFMT="$ac_cv_path_MSGFMT"
   4569  1.1  christos if test "$MSGFMT" != ":"; then
   4570  1.1  christos   echo "$as_me:$LINENO: result: $MSGFMT" >&5
   4571  1.1  christos echo "${ECHO_T}$MSGFMT" >&6
   4572  1.1  christos else
   4573  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   4574  1.1  christos echo "${ECHO_T}no" >&6
   4575  1.1  christos fi
   4576  1.1  christos 
   4577  1.1  christos   # Extract the first word of "gmsgfmt", so it can be a program name with args.
   4578  1.1  christos set dummy gmsgfmt; ac_word=$2
   4579  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   4580  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   4581  1.1  christos if test "${ac_cv_path_GMSGFMT+set}" = set; then
   4582  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4583  1.1  christos else
   4584  1.1  christos   case $GMSGFMT in
   4585  1.1  christos   [\\/]* | ?:[\\/]*)
   4586  1.1  christos   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
   4587  1.1  christos   ;;
   4588  1.1  christos   *)
   4589  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4590  1.1  christos for as_dir in $PATH
   4591  1.1  christos do
   4592  1.1  christos   IFS=$as_save_IFS
   4593  1.1  christos   test -z "$as_dir" && as_dir=.
   4594  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   4595  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4596  1.1  christos     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
   4597  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4598  1.1  christos     break 2
   4599  1.1  christos   fi
   4600  1.1  christos done
   4601  1.1  christos done
   4602  1.1  christos 
   4603  1.1  christos   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
   4604  1.1  christos   ;;
   4605  1.1  christos esac
   4606  1.1  christos fi
   4607  1.1  christos GMSGFMT=$ac_cv_path_GMSGFMT
   4608  1.1  christos 
   4609  1.1  christos if test -n "$GMSGFMT"; then
   4610  1.1  christos   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
   4611  1.1  christos echo "${ECHO_T}$GMSGFMT" >&6
   4612  1.1  christos else
   4613  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   4614  1.1  christos echo "${ECHO_T}no" >&6
   4615  1.1  christos fi
   4616  1.1  christos 
   4617  1.1  christos 
   4618  1.1  christos         # Extract the first word of "xgettext", so it can be a program name with args.
   4619  1.1  christos set dummy xgettext; ac_word=$2
   4620  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   4621  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   4622  1.1  christos if test "${ac_cv_path_XGETTEXT+set}" = set; then
   4623  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4624  1.1  christos else
   4625  1.1  christos   case "$XGETTEXT" in
   4626  1.1  christos   /*)
   4627  1.1  christos   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
   4628  1.1  christos   ;;
   4629  1.1  christos   *)
   4630  1.1  christos   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   4631  1.1  christos   for ac_dir in $PATH; do
   4632  1.1  christos     test -z "$ac_dir" && ac_dir=.
   4633  1.1  christos     if test -f $ac_dir/$ac_word; then
   4634  1.1  christos       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
   4635  1.1  christos      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   4636  1.1  christos 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
   4637  1.1  christos 	break
   4638  1.1  christos       fi
   4639  1.1  christos     fi
   4640  1.1  christos   done
   4641  1.1  christos   IFS="$ac_save_ifs"
   4642  1.1  christos   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
   4643  1.1  christos   ;;
   4644  1.1  christos esac
   4645  1.1  christos fi
   4646  1.1  christos XGETTEXT="$ac_cv_path_XGETTEXT"
   4647  1.1  christos if test "$XGETTEXT" != ":"; then
   4648  1.1  christos   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
   4649  1.1  christos echo "${ECHO_T}$XGETTEXT" >&6
   4650  1.1  christos else
   4651  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   4652  1.1  christos echo "${ECHO_T}no" >&6
   4653  1.1  christos fi
   4654  1.1  christos 
   4655  1.1  christos     rm -f messages.po
   4656  1.1  christos 
   4657  1.1  christos     # Extract the first word of "msgmerge", so it can be a program name with args.
   4658  1.1  christos set dummy msgmerge; ac_word=$2
   4659  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   4660  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   4661  1.1  christos if test "${ac_cv_path_MSGMERGE+set}" = set; then
   4662  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4663  1.1  christos else
   4664  1.1  christos   case "$MSGMERGE" in
   4665  1.1  christos   /*)
   4666  1.1  christos   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
   4667  1.1  christos   ;;
   4668  1.1  christos   *)
   4669  1.1  christos   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   4670  1.1  christos   for ac_dir in $PATH; do
   4671  1.1  christos     test -z "$ac_dir" && ac_dir=.
   4672  1.1  christos     if test -f $ac_dir/$ac_word; then
   4673  1.1  christos       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
   4674  1.1  christos 	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
   4675  1.1  christos 	break
   4676  1.1  christos       fi
   4677  1.1  christos     fi
   4678  1.1  christos   done
   4679  1.1  christos   IFS="$ac_save_ifs"
   4680  1.1  christos   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
   4681  1.1  christos   ;;
   4682  1.1  christos esac
   4683  1.1  christos fi
   4684  1.1  christos MSGMERGE="$ac_cv_path_MSGMERGE"
   4685  1.1  christos if test "$MSGMERGE" != ":"; then
   4686  1.1  christos   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
   4687  1.1  christos echo "${ECHO_T}$MSGMERGE" >&6
   4688  1.1  christos else
   4689  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   4690  1.1  christos echo "${ECHO_T}no" >&6
   4691  1.1  christos fi
   4692  1.1  christos 
   4693  1.1  christos 
   4694  1.1  christos       if test "$GMSGFMT" != ":"; then
   4695  1.1  christos             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
   4696  1.1  christos        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   4697  1.1  christos       : ;
   4698  1.1  christos     else
   4699  1.1  christos       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
   4700  1.1  christos       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
   4701  1.1  christos echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
   4702  1.1  christos       GMSGFMT=":"
   4703  1.1  christos     fi
   4704  1.1  christos   fi
   4705  1.1  christos 
   4706  1.1  christos       if test "$XGETTEXT" != ":"; then
   4707  1.1  christos             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
   4708  1.1  christos        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   4709  1.1  christos       : ;
   4710  1.1  christos     else
   4711  1.1  christos       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
   4712  1.1  christos echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
   4713  1.1  christos       XGETTEXT=":"
   4714  1.1  christos     fi
   4715  1.1  christos         rm -f messages.po
   4716  1.1  christos   fi
   4717  1.1  christos 
   4718  1.1  christos   ac_config_commands="$ac_config_commands default-1"
   4719  1.1  christos 
   4720  1.1  christos 
   4721  1.1  christos 
   4722  1.1  christos       if test "X$prefix" = "XNONE"; then
   4723  1.1  christos     acl_final_prefix="$ac_default_prefix"
   4724  1.1  christos   else
   4725  1.1  christos     acl_final_prefix="$prefix"
   4726  1.1  christos   fi
   4727  1.1  christos   if test "X$exec_prefix" = "XNONE"; then
   4728  1.1  christos     acl_final_exec_prefix='${prefix}'
   4729  1.1  christos   else
   4730  1.1  christos     acl_final_exec_prefix="$exec_prefix"
   4731  1.1  christos   fi
   4732  1.1  christos   acl_save_prefix="$prefix"
   4733  1.1  christos   prefix="$acl_final_prefix"
   4734  1.1  christos   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   4735  1.1  christos   prefix="$acl_save_prefix"
   4736  1.1  christos 
   4737  1.1  christos # Make sure we can run config.sub.
   4738  1.1  christos $ac_config_sub sun4 >/dev/null 2>&1 ||
   4739  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
   4740  1.1  christos echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   4741  1.1  christos    { (exit 1); exit 1; }; }
   4742  1.1  christos 
   4743  1.1  christos echo "$as_me:$LINENO: checking build system type" >&5
   4744  1.1  christos echo $ECHO_N "checking build system type... $ECHO_C" >&6
   4745  1.1  christos if test "${ac_cv_build+set}" = set; then
   4746  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4747  1.1  christos else
   4748  1.1  christos   ac_cv_build_alias=$build_alias
   4749  1.1  christos test -z "$ac_cv_build_alias" &&
   4750  1.1  christos   ac_cv_build_alias=`$ac_config_guess`
   4751  1.1  christos test -z "$ac_cv_build_alias" &&
   4752  1.1  christos   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   4753  1.1  christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   4754  1.1  christos    { (exit 1); exit 1; }; }
   4755  1.1  christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   4756  1.1  christos   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
   4757  1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
   4758  1.1  christos    { (exit 1); exit 1; }; }
   4759  1.1  christos 
   4760  1.1  christos fi
   4761  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   4762  1.1  christos echo "${ECHO_T}$ac_cv_build" >&6
   4763  1.1  christos build=$ac_cv_build
   4764  1.1  christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   4765  1.1  christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   4766  1.1  christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   4767  1.1  christos 
   4768  1.1  christos 
   4769  1.1  christos echo "$as_me:$LINENO: checking host system type" >&5
   4770  1.1  christos echo $ECHO_N "checking host system type... $ECHO_C" >&6
   4771  1.1  christos if test "${ac_cv_host+set}" = set; then
   4772  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4773  1.1  christos else
   4774  1.1  christos   ac_cv_host_alias=$host_alias
   4775  1.1  christos test -z "$ac_cv_host_alias" &&
   4776  1.1  christos   ac_cv_host_alias=$ac_cv_build_alias
   4777  1.1  christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   4778  1.1  christos   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   4779  1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   4780  1.1  christos    { (exit 1); exit 1; }; }
   4781  1.1  christos 
   4782  1.1  christos fi
   4783  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   4784  1.1  christos echo "${ECHO_T}$ac_cv_host" >&6
   4785  1.1  christos host=$ac_cv_host
   4786  1.1  christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   4787  1.1  christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   4788  1.1  christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   4789  1.1  christos 
   4790  1.1  christos 
   4791  1.1  christos 
   4792  1.1  christos # Check whether --with-gnu-ld or --without-gnu-ld was given.
   4793  1.1  christos if test "${with_gnu_ld+set}" = set; then
   4794  1.1  christos   withval="$with_gnu_ld"
   4795  1.1  christos   test "$withval" = no || with_gnu_ld=yes
   4796  1.1  christos else
   4797  1.1  christos   with_gnu_ld=no
   4798  1.1  christos fi;
   4799  1.1  christos ac_prog=ld
   4800  1.1  christos if test "$GCC" = yes; then
   4801  1.1  christos   # Check if gcc -print-prog-name=ld gives a path.
   4802  1.1  christos   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
   4803  1.1  christos echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
   4804  1.1  christos   case $host in
   4805  1.1  christos   *-*-mingw*)
   4806  1.1  christos     # gcc leaves a trailing carriage return which upsets mingw
   4807  1.1  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4808  1.1  christos   *)
   4809  1.1  christos     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4810  1.1  christos   esac
   4811  1.1  christos   case $ac_prog in
   4812  1.1  christos     # Accept absolute paths.
   4813  1.1  christos     [\\/]* | [A-Za-z]:[\\/]*)
   4814  1.1  christos       re_direlt='/[^/][^/]*/\.\./'
   4815  1.1  christos       # Canonicalize the path of ld
   4816  1.1  christos       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   4817  1.1  christos       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   4818  1.1  christos 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   4819  1.1  christos       done
   4820  1.1  christos       test -z "$LD" && LD="$ac_prog"
   4821  1.1  christos       ;;
   4822  1.1  christos   "")
   4823  1.1  christos     # If it fails, then pretend we aren't using GCC.
   4824  1.1  christos     ac_prog=ld
   4825  1.1  christos     ;;
   4826  1.1  christos   *)
   4827  1.1  christos     # If it is relative, then search for the first ld in PATH.
   4828  1.1  christos     with_gnu_ld=unknown
   4829  1.1  christos     ;;
   4830  1.1  christos   esac
   4831  1.1  christos elif test "$with_gnu_ld" = yes; then
   4832  1.1  christos   echo "$as_me:$LINENO: checking for GNU ld" >&5
   4833  1.1  christos echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
   4834  1.1  christos else
   4835  1.1  christos   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   4836  1.1  christos echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
   4837  1.1  christos fi
   4838  1.1  christos if test "${acl_cv_path_LD+set}" = set; then
   4839  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4840  1.1  christos else
   4841  1.1  christos   if test -z "$LD"; then
   4842  1.1  christos   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   4843  1.1  christos   for ac_dir in $PATH; do
   4844  1.1  christos     test -z "$ac_dir" && ac_dir=.
   4845  1.1  christos     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4846  1.1  christos       acl_cv_path_LD="$ac_dir/$ac_prog"
   4847  1.1  christos       # Check to see if the program is GNU ld.  I'd rather use --version,
   4848  1.1  christos       # but apparently some GNU ld's only accept -v.
   4849  1.1  christos       # Break only if it was the GNU/non-GNU ld that we prefer.
   4850  1.1  christos       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   4851  1.1  christos 	test "$with_gnu_ld" != no && break
   4852  1.1  christos       else
   4853  1.1  christos 	test "$with_gnu_ld" != yes && break
   4854  1.1  christos       fi
   4855  1.1  christos     fi
   4856  1.1  christos   done
   4857  1.1  christos   IFS="$ac_save_ifs"
   4858  1.1  christos else
   4859  1.1  christos   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   4860  1.1  christos fi
   4861  1.1  christos fi
   4862  1.1  christos 
   4863  1.1  christos LD="$acl_cv_path_LD"
   4864  1.1  christos if test -n "$LD"; then
   4865  1.1  christos   echo "$as_me:$LINENO: result: $LD" >&5
   4866  1.1  christos echo "${ECHO_T}$LD" >&6
   4867  1.1  christos else
   4868  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   4869  1.1  christos echo "${ECHO_T}no" >&6
   4870  1.1  christos fi
   4871  1.1  christos test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   4872  1.1  christos echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   4873  1.1  christos    { (exit 1); exit 1; }; }
   4874  1.1  christos echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   4875  1.1  christos echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
   4876  1.1  christos if test "${acl_cv_prog_gnu_ld+set}" = set; then
   4877  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4878  1.1  christos else
   4879  1.1  christos   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   4880  1.1  christos if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   4881  1.1  christos   acl_cv_prog_gnu_ld=yes
   4882  1.1  christos else
   4883  1.1  christos   acl_cv_prog_gnu_ld=no
   4884  1.1  christos fi
   4885  1.1  christos fi
   4886  1.1  christos echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
   4887  1.1  christos echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
   4888  1.1  christos with_gnu_ld=$acl_cv_prog_gnu_ld
   4889  1.1  christos 
   4890  1.1  christos 
   4891  1.1  christos 
   4892  1.1  christos                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
   4893  1.1  christos echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
   4894  1.1  christos if test "${acl_cv_rpath+set}" = set; then
   4895  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4896  1.1  christos else
   4897  1.1  christos 
   4898  1.1  christos     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   4899  1.1  christos     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   4900  1.1  christos     . ./conftest.sh
   4901  1.1  christos     rm -f ./conftest.sh
   4902  1.1  christos     acl_cv_rpath=done
   4903  1.1  christos 
   4904  1.1  christos fi
   4905  1.1  christos echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
   4906  1.1  christos echo "${ECHO_T}$acl_cv_rpath" >&6
   4907  1.1  christos   wl="$acl_cv_wl"
   4908  1.1  christos   libext="$acl_cv_libext"
   4909  1.1  christos   shlibext="$acl_cv_shlibext"
   4910  1.1  christos   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   4911  1.1  christos   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   4912  1.1  christos   hardcode_direct="$acl_cv_hardcode_direct"
   4913  1.1  christos   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   4914  1.1  christos   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
   4915  1.1  christos   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
   4916  1.1  christos 
   4917  1.1  christos 
   4918  1.1  christos 
   4919  1.1  christos 
   4920  1.1  christos 
   4921  1.1  christos 
   4922  1.1  christos 
   4923  1.1  christos 
   4924  1.1  christos 
   4925  1.1  christos 
   4926  1.1  christos 
   4927  1.1  christos 
   4928  1.1  christos   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
   4929  1.1  christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
   4930  1.1  christos     # Check whether --enable-nls or --disable-nls was given.
   4931  1.1  christos if test "${enable_nls+set}" = set; then
   4932  1.1  christos   enableval="$enable_nls"
   4933  1.1  christos   USE_NLS=$enableval
   4934  1.1  christos else
   4935  1.1  christos   USE_NLS=yes
   4936  1.1  christos fi;
   4937  1.1  christos   echo "$as_me:$LINENO: result: $USE_NLS" >&5
   4938  1.1  christos echo "${ECHO_T}$USE_NLS" >&6
   4939  1.1  christos 
   4940  1.1  christos 
   4941  1.1  christos 
   4942  1.1  christos   LIBINTL=
   4943  1.1  christos   LTLIBINTL=
   4944  1.1  christos   POSUB=
   4945  1.1  christos 
   4946  1.1  christos     if test "$USE_NLS" = "yes"; then
   4947  1.1  christos     gt_use_preinstalled_gnugettext=no
   4948  1.1  christos 
   4949  1.1  christos 
   4950  1.1  christos 
   4951  1.1  christos 
   4952  1.1  christos 
   4953  1.1  christos 
   4954  1.1  christos         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
   4955  1.1  christos echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
   4956  1.1  christos if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
   4957  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4958  1.1  christos else
   4959  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4960  1.1  christos #line $LINENO "configure"
   4961  1.1  christos #include "confdefs.h"
   4962  1.1  christos #include <libintl.h>
   4963  1.1  christos extern int _nl_msg_cat_cntr;
   4964  1.1  christos extern int *_nl_domain_bindings;
   4965  1.1  christos #ifdef F77_DUMMY_MAIN
   4966  1.1  christos #  ifdef __cplusplus
   4967  1.1  christos      extern "C"
   4968  1.1  christos #  endif
   4969  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   4970  1.1  christos #endif
   4971  1.1  christos int
   4972  1.1  christos main ()
   4973  1.1  christos {
   4974  1.1  christos bindtextdomain ("", "");
   4975  1.1  christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
   4976  1.1  christos   ;
   4977  1.1  christos   return 0;
   4978  1.1  christos }
   4979  1.1  christos _ACEOF
   4980  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4981  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4982  1.1  christos   (eval $ac_link) 2>&5
   4983  1.1  christos   ac_status=$?
   4984  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4985  1.1  christos   (exit $ac_status); } &&
   4986  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   4987  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4988  1.1  christos   (eval $ac_try) 2>&5
   4989  1.1  christos   ac_status=$?
   4990  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4991  1.1  christos   (exit $ac_status); }; }; then
   4992  1.1  christos   gt_cv_func_gnugettext1_libc=yes
   4993  1.1  christos else
   4994  1.1  christos   echo "$as_me: failed program was:" >&5
   4995  1.1  christos cat conftest.$ac_ext >&5
   4996  1.1  christos gt_cv_func_gnugettext1_libc=no
   4997  1.1  christos fi
   4998  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4999  1.1  christos fi
   5000  1.1  christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
   5001  1.1  christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
   5002  1.1  christos 
   5003  1.1  christos         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
   5004  1.1  christos 
   5005  1.1  christos 
   5006  1.1  christos 
   5007  1.1  christos 
   5008  1.1  christos 
   5009  1.1  christos 
   5010  1.1  christos 
   5011  1.1  christos 
   5012  1.1  christos     use_additional=yes
   5013  1.1  christos 
   5014  1.1  christos   acl_save_prefix="$prefix"
   5015  1.1  christos   prefix="$acl_final_prefix"
   5016  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5017  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5018  1.1  christos 
   5019  1.1  christos     eval additional_includedir=\"$includedir\"
   5020  1.1  christos     eval additional_libdir=\"$libdir\"
   5021  1.1  christos 
   5022  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5023  1.1  christos   prefix="$acl_save_prefix"
   5024  1.1  christos 
   5025  1.1  christos 
   5026  1.1  christos # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
   5027  1.1  christos if test "${with_libiconv_prefix+set}" = set; then
   5028  1.1  christos   withval="$with_libiconv_prefix"
   5029  1.1  christos 
   5030  1.1  christos     if test "X$withval" = "Xno"; then
   5031  1.1  christos       use_additional=no
   5032  1.1  christos     else
   5033  1.1  christos       if test "X$withval" = "X"; then
   5034  1.1  christos 
   5035  1.1  christos   acl_save_prefix="$prefix"
   5036  1.1  christos   prefix="$acl_final_prefix"
   5037  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5038  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5039  1.1  christos 
   5040  1.1  christos           eval additional_includedir=\"$includedir\"
   5041  1.1  christos           eval additional_libdir=\"$libdir\"
   5042  1.1  christos 
   5043  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5044  1.1  christos   prefix="$acl_save_prefix"
   5045  1.1  christos 
   5046  1.1  christos       else
   5047  1.1  christos         additional_includedir="$withval/include"
   5048  1.1  christos         additional_libdir="$withval/lib"
   5049  1.1  christos       fi
   5050  1.1  christos     fi
   5051  1.1  christos 
   5052  1.1  christos fi;
   5053  1.1  christos       LIBICONV=
   5054  1.1  christos   LTLIBICONV=
   5055  1.1  christos   INCICONV=
   5056  1.1  christos   rpathdirs=
   5057  1.1  christos   ltrpathdirs=
   5058  1.1  christos   names_already_handled=
   5059  1.1  christos   names_next_round='iconv '
   5060  1.1  christos   while test -n "$names_next_round"; do
   5061  1.1  christos     names_this_round="$names_next_round"
   5062  1.1  christos     names_next_round=
   5063  1.1  christos     for name in $names_this_round; do
   5064  1.1  christos       already_handled=
   5065  1.1  christos       for n in $names_already_handled; do
   5066  1.1  christos         if test "$n" = "$name"; then
   5067  1.1  christos           already_handled=yes
   5068  1.1  christos           break
   5069  1.1  christos         fi
   5070  1.1  christos       done
   5071  1.1  christos       if test -z "$already_handled"; then
   5072  1.1  christos         names_already_handled="$names_already_handled $name"
   5073  1.1  christos                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   5074  1.1  christos         eval value=\"\$HAVE_LIB$uppername\"
   5075  1.1  christos         if test -n "$value"; then
   5076  1.1  christos           if test "$value" = yes; then
   5077  1.1  christos             eval value=\"\$LIB$uppername\"
   5078  1.1  christos             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   5079  1.1  christos             eval value=\"\$LTLIB$uppername\"
   5080  1.1  christos             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   5081  1.1  christos           else
   5082  1.1  christos                                     :
   5083  1.1  christos           fi
   5084  1.1  christos         else
   5085  1.1  christos                               found_dir=
   5086  1.1  christos           found_la=
   5087  1.1  christos           found_so=
   5088  1.1  christos           found_a=
   5089  1.1  christos           if test $use_additional = yes; then
   5090  1.1  christos             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   5091  1.1  christos               found_dir="$additional_libdir"
   5092  1.1  christos               found_so="$additional_libdir/lib$name.$shlibext"
   5093  1.1  christos               if test -f "$additional_libdir/lib$name.la"; then
   5094  1.1  christos                 found_la="$additional_libdir/lib$name.la"
   5095  1.1  christos               fi
   5096  1.1  christos             else
   5097  1.1  christos               if test -f "$additional_libdir/lib$name.$libext"; then
   5098  1.1  christos                 found_dir="$additional_libdir"
   5099  1.1  christos                 found_a="$additional_libdir/lib$name.$libext"
   5100  1.1  christos                 if test -f "$additional_libdir/lib$name.la"; then
   5101  1.1  christos                   found_la="$additional_libdir/lib$name.la"
   5102  1.1  christos                 fi
   5103  1.1  christos               fi
   5104  1.1  christos             fi
   5105  1.1  christos           fi
   5106  1.1  christos           if test "X$found_dir" = "X"; then
   5107  1.1  christos             for x in $LDFLAGS $LTLIBICONV; do
   5108  1.1  christos 
   5109  1.1  christos   acl_save_prefix="$prefix"
   5110  1.1  christos   prefix="$acl_final_prefix"
   5111  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5112  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5113  1.1  christos   eval x=\"$x\"
   5114  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5115  1.1  christos   prefix="$acl_save_prefix"
   5116  1.1  christos 
   5117  1.1  christos               case "$x" in
   5118  1.1  christos                 -L*)
   5119  1.1  christos                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   5120  1.1  christos                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   5121  1.1  christos                     found_dir="$dir"
   5122  1.1  christos                     found_so="$dir/lib$name.$shlibext"
   5123  1.1  christos                     if test -f "$dir/lib$name.la"; then
   5124  1.1  christos                       found_la="$dir/lib$name.la"
   5125  1.1  christos                     fi
   5126  1.1  christos                   else
   5127  1.1  christos                     if test -f "$dir/lib$name.$libext"; then
   5128  1.1  christos                       found_dir="$dir"
   5129  1.1  christos                       found_a="$dir/lib$name.$libext"
   5130  1.1  christos                       if test -f "$dir/lib$name.la"; then
   5131  1.1  christos                         found_la="$dir/lib$name.la"
   5132  1.1  christos                       fi
   5133  1.1  christos                     fi
   5134  1.1  christos                   fi
   5135  1.1  christos                   ;;
   5136  1.1  christos               esac
   5137  1.1  christos               if test "X$found_dir" != "X"; then
   5138  1.1  christos                 break
   5139  1.1  christos               fi
   5140  1.1  christos             done
   5141  1.1  christos           fi
   5142  1.1  christos           if test "X$found_dir" != "X"; then
   5143  1.1  christos                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   5144  1.1  christos             if test "X$found_so" != "X"; then
   5145  1.1  christos                                                         if test "X$found_dir" = "X/usr/lib"; then
   5146  1.1  christos                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   5147  1.1  christos               else
   5148  1.1  christos                                                                                 haveit=
   5149  1.1  christos                 for x in $ltrpathdirs; do
   5150  1.1  christos                   if test "X$x" = "X$found_dir"; then
   5151  1.1  christos                     haveit=yes
   5152  1.1  christos                     break
   5153  1.1  christos                   fi
   5154  1.1  christos                 done
   5155  1.1  christos                 if test -z "$haveit"; then
   5156  1.1  christos                   ltrpathdirs="$ltrpathdirs $found_dir"
   5157  1.1  christos                 fi
   5158  1.1  christos                                 if test "$hardcode_direct" = yes; then
   5159  1.1  christos                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   5160  1.1  christos                 else
   5161  1.1  christos                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   5162  1.1  christos                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   5163  1.1  christos                                                             haveit=
   5164  1.1  christos                     for x in $rpathdirs; do
   5165  1.1  christos                       if test "X$x" = "X$found_dir"; then
   5166  1.1  christos                         haveit=yes
   5167  1.1  christos                         break
   5168  1.1  christos                       fi
   5169  1.1  christos                     done
   5170  1.1  christos                     if test -z "$haveit"; then
   5171  1.1  christos                       rpathdirs="$rpathdirs $found_dir"
   5172  1.1  christos                     fi
   5173  1.1  christos                   else
   5174  1.1  christos                                                                                 haveit=
   5175  1.1  christos                     for x in $LDFLAGS $LIBICONV; do
   5176  1.1  christos 
   5177  1.1  christos   acl_save_prefix="$prefix"
   5178  1.1  christos   prefix="$acl_final_prefix"
   5179  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5180  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5181  1.1  christos   eval x=\"$x\"
   5182  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5183  1.1  christos   prefix="$acl_save_prefix"
   5184  1.1  christos 
   5185  1.1  christos                       if test "X$x" = "X-L$found_dir"; then
   5186  1.1  christos                         haveit=yes
   5187  1.1  christos                         break
   5188  1.1  christos                       fi
   5189  1.1  christos                     done
   5190  1.1  christos                     if test -z "$haveit"; then
   5191  1.1  christos                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   5192  1.1  christos                     fi
   5193  1.1  christos                     if test "$hardcode_minus_L" != no; then
   5194  1.1  christos                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   5195  1.1  christos                     else
   5196  1.1  christos                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   5197  1.1  christos                     fi
   5198  1.1  christos                   fi
   5199  1.1  christos                 fi
   5200  1.1  christos               fi
   5201  1.1  christos             else
   5202  1.1  christos               if test "X$found_a" != "X"; then
   5203  1.1  christos                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   5204  1.1  christos               else
   5205  1.1  christos                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   5206  1.1  christos               fi
   5207  1.1  christos             fi
   5208  1.1  christos                         additional_includedir=
   5209  1.1  christos             case "$found_dir" in
   5210  1.1  christos               */lib | */lib/)
   5211  1.1  christos                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   5212  1.1  christos                 additional_includedir="$basedir/include"
   5213  1.1  christos                 ;;
   5214  1.1  christos             esac
   5215  1.1  christos             if test "X$additional_includedir" != "X"; then
   5216  1.1  christos                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   5217  1.1  christos                 haveit=
   5218  1.1  christos                 if test "X$additional_includedir" = "X/usr/local/include"; then
   5219  1.1  christos                   if test -n "$GCC"; then
   5220  1.1  christos                     case $host_os in
   5221  1.1  christos                       linux*) haveit=yes;;
   5222  1.1  christos                     esac
   5223  1.1  christos                   fi
   5224  1.1  christos                 fi
   5225  1.1  christos                 if test -z "$haveit"; then
   5226  1.1  christos                   for x in $CPPFLAGS $INCICONV; do
   5227  1.1  christos 
   5228  1.1  christos   acl_save_prefix="$prefix"
   5229  1.1  christos   prefix="$acl_final_prefix"
   5230  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5231  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5232  1.1  christos   eval x=\"$x\"
   5233  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5234  1.1  christos   prefix="$acl_save_prefix"
   5235  1.1  christos 
   5236  1.1  christos                     if test "X$x" = "X-I$additional_includedir"; then
   5237  1.1  christos                       haveit=yes
   5238  1.1  christos                       break
   5239  1.1  christos                     fi
   5240  1.1  christos                   done
   5241  1.1  christos                   if test -z "$haveit"; then
   5242  1.1  christos                     if test -d "$additional_includedir"; then
   5243  1.1  christos                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   5244  1.1  christos                     fi
   5245  1.1  christos                   fi
   5246  1.1  christos                 fi
   5247  1.1  christos               fi
   5248  1.1  christos             fi
   5249  1.1  christos                         if test -n "$found_la"; then
   5250  1.1  christos                                                         save_libdir="$libdir"
   5251  1.1  christos               case "$found_la" in
   5252  1.1  christos                 */* | *\\*) . "$found_la" ;;
   5253  1.1  christos                 *) . "./$found_la" ;;
   5254  1.1  christos               esac
   5255  1.1  christos               libdir="$save_libdir"
   5256  1.1  christos                             for dep in $dependency_libs; do
   5257  1.1  christos                 case "$dep" in
   5258  1.1  christos                   -L*)
   5259  1.1  christos                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   5260  1.1  christos                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   5261  1.1  christos                       haveit=
   5262  1.1  christos                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   5263  1.1  christos                         if test -n "$GCC"; then
   5264  1.1  christos                           case $host_os in
   5265  1.1  christos                             linux*) haveit=yes;;
   5266  1.1  christos                           esac
   5267  1.1  christos                         fi
   5268  1.1  christos                       fi
   5269  1.1  christos                       if test -z "$haveit"; then
   5270  1.1  christos                         haveit=
   5271  1.1  christos                         for x in $LDFLAGS $LIBICONV; do
   5272  1.1  christos 
   5273  1.1  christos   acl_save_prefix="$prefix"
   5274  1.1  christos   prefix="$acl_final_prefix"
   5275  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5276  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5277  1.1  christos   eval x=\"$x\"
   5278  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5279  1.1  christos   prefix="$acl_save_prefix"
   5280  1.1  christos 
   5281  1.1  christos                           if test "X$x" = "X-L$additional_libdir"; then
   5282  1.1  christos                             haveit=yes
   5283  1.1  christos                             break
   5284  1.1  christos                           fi
   5285  1.1  christos                         done
   5286  1.1  christos                         if test -z "$haveit"; then
   5287  1.1  christos                           if test -d "$additional_libdir"; then
   5288  1.1  christos                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   5289  1.1  christos                           fi
   5290  1.1  christos                         fi
   5291  1.1  christos                         haveit=
   5292  1.1  christos                         for x in $LDFLAGS $LTLIBICONV; do
   5293  1.1  christos 
   5294  1.1  christos   acl_save_prefix="$prefix"
   5295  1.1  christos   prefix="$acl_final_prefix"
   5296  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5297  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5298  1.1  christos   eval x=\"$x\"
   5299  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5300  1.1  christos   prefix="$acl_save_prefix"
   5301  1.1  christos 
   5302  1.1  christos                           if test "X$x" = "X-L$additional_libdir"; then
   5303  1.1  christos                             haveit=yes
   5304  1.1  christos                             break
   5305  1.1  christos                           fi
   5306  1.1  christos                         done
   5307  1.1  christos                         if test -z "$haveit"; then
   5308  1.1  christos                           if test -d "$additional_libdir"; then
   5309  1.1  christos                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   5310  1.1  christos                           fi
   5311  1.1  christos                         fi
   5312  1.1  christos                       fi
   5313  1.1  christos                     fi
   5314  1.1  christos                     ;;
   5315  1.1  christos                   -l*)
   5316  1.1  christos                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   5317  1.1  christos                     ;;
   5318  1.1  christos                   *.la)
   5319  1.1  christos                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   5320  1.1  christos                     ;;
   5321  1.1  christos                   *)
   5322  1.1  christos                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   5323  1.1  christos                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   5324  1.1  christos                     ;;
   5325  1.1  christos                 esac
   5326  1.1  christos               done
   5327  1.1  christos             fi
   5328  1.1  christos           else
   5329  1.1  christos                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   5330  1.1  christos             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   5331  1.1  christos           fi
   5332  1.1  christos         fi
   5333  1.1  christos       fi
   5334  1.1  christos     done
   5335  1.1  christos   done
   5336  1.1  christos   if test "X$rpathdirs" != "X"; then
   5337  1.1  christos     if test -n "$hardcode_libdir_separator"; then
   5338  1.1  christos                         alldirs=
   5339  1.1  christos       for found_dir in $rpathdirs; do
   5340  1.1  christos         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   5341  1.1  christos       done
   5342  1.1  christos             acl_save_libdir="$libdir"
   5343  1.1  christos       libdir="$alldirs"
   5344  1.1  christos       eval flag=\"$hardcode_libdir_flag_spec\"
   5345  1.1  christos       libdir="$acl_save_libdir"
   5346  1.1  christos       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   5347  1.1  christos     else
   5348  1.1  christos             for found_dir in $rpathdirs; do
   5349  1.1  christos         acl_save_libdir="$libdir"
   5350  1.1  christos         libdir="$found_dir"
   5351  1.1  christos         eval flag=\"$hardcode_libdir_flag_spec\"
   5352  1.1  christos         libdir="$acl_save_libdir"
   5353  1.1  christos         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   5354  1.1  christos       done
   5355  1.1  christos     fi
   5356  1.1  christos   fi
   5357  1.1  christos   if test "X$ltrpathdirs" != "X"; then
   5358  1.1  christos             for found_dir in $ltrpathdirs; do
   5359  1.1  christos       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   5360  1.1  christos     done
   5361  1.1  christos   fi
   5362  1.1  christos 
   5363  1.1  christos 
   5364  1.1  christos           am_save_CPPFLAGS="$CPPFLAGS"
   5365  1.1  christos 
   5366  1.1  christos   for element in $INCICONV; do
   5367  1.1  christos     haveit=
   5368  1.1  christos     for x in $CPPFLAGS; do
   5369  1.1  christos 
   5370  1.1  christos   acl_save_prefix="$prefix"
   5371  1.1  christos   prefix="$acl_final_prefix"
   5372  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5373  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5374  1.1  christos   eval x=\"$x\"
   5375  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5376  1.1  christos   prefix="$acl_save_prefix"
   5377  1.1  christos 
   5378  1.1  christos       if test "X$x" = "X$element"; then
   5379  1.1  christos         haveit=yes
   5380  1.1  christos         break
   5381  1.1  christos       fi
   5382  1.1  christos     done
   5383  1.1  christos     if test -z "$haveit"; then
   5384  1.1  christos       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   5385  1.1  christos     fi
   5386  1.1  christos   done
   5387  1.1  christos 
   5388  1.1  christos 
   5389  1.1  christos   echo "$as_me:$LINENO: checking for iconv" >&5
   5390  1.1  christos echo $ECHO_N "checking for iconv... $ECHO_C" >&6
   5391  1.1  christos if test "${am_cv_func_iconv+set}" = set; then
   5392  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5393  1.1  christos else
   5394  1.1  christos 
   5395  1.1  christos     am_cv_func_iconv="no, consider installing GNU libiconv"
   5396  1.1  christos     am_cv_lib_iconv=no
   5397  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   5398  1.1  christos #line $LINENO "configure"
   5399  1.1  christos #include "confdefs.h"
   5400  1.1  christos #include <stdlib.h>
   5401  1.1  christos #include <iconv.h>
   5402  1.1  christos #ifdef F77_DUMMY_MAIN
   5403  1.1  christos #  ifdef __cplusplus
   5404  1.1  christos      extern "C"
   5405  1.1  christos #  endif
   5406  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   5407  1.1  christos #endif
   5408  1.1  christos int
   5409  1.1  christos main ()
   5410  1.1  christos {
   5411  1.1  christos iconv_t cd = iconv_open("","");
   5412  1.1  christos        iconv(cd,NULL,NULL,NULL,NULL);
   5413  1.1  christos        iconv_close(cd);
   5414  1.1  christos   ;
   5415  1.1  christos   return 0;
   5416  1.1  christos }
   5417  1.1  christos _ACEOF
   5418  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5419  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5420  1.1  christos   (eval $ac_link) 2>&5
   5421  1.1  christos   ac_status=$?
   5422  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5423  1.1  christos   (exit $ac_status); } &&
   5424  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5425  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5426  1.1  christos   (eval $ac_try) 2>&5
   5427  1.1  christos   ac_status=$?
   5428  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5429  1.1  christos   (exit $ac_status); }; }; then
   5430  1.1  christos   am_cv_func_iconv=yes
   5431  1.1  christos else
   5432  1.1  christos   echo "$as_me: failed program was:" >&5
   5433  1.1  christos cat conftest.$ac_ext >&5
   5434  1.1  christos fi
   5435  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5436  1.1  christos     if test "$am_cv_func_iconv" != yes; then
   5437  1.1  christos       am_save_LIBS="$LIBS"
   5438  1.1  christos       LIBS="$LIBS $LIBICONV"
   5439  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   5440  1.1  christos #line $LINENO "configure"
   5441  1.1  christos #include "confdefs.h"
   5442  1.1  christos #include <stdlib.h>
   5443  1.1  christos #include <iconv.h>
   5444  1.1  christos #ifdef F77_DUMMY_MAIN
   5445  1.1  christos #  ifdef __cplusplus
   5446  1.1  christos      extern "C"
   5447  1.1  christos #  endif
   5448  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   5449  1.1  christos #endif
   5450  1.1  christos int
   5451  1.1  christos main ()
   5452  1.1  christos {
   5453  1.1  christos iconv_t cd = iconv_open("","");
   5454  1.1  christos          iconv(cd,NULL,NULL,NULL,NULL);
   5455  1.1  christos          iconv_close(cd);
   5456  1.1  christos   ;
   5457  1.1  christos   return 0;
   5458  1.1  christos }
   5459  1.1  christos _ACEOF
   5460  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5461  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5462  1.1  christos   (eval $ac_link) 2>&5
   5463  1.1  christos   ac_status=$?
   5464  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5465  1.1  christos   (exit $ac_status); } &&
   5466  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5467  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5468  1.1  christos   (eval $ac_try) 2>&5
   5469  1.1  christos   ac_status=$?
   5470  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5471  1.1  christos   (exit $ac_status); }; }; then
   5472  1.1  christos   am_cv_lib_iconv=yes
   5473  1.1  christos         am_cv_func_iconv=yes
   5474  1.1  christos else
   5475  1.1  christos   echo "$as_me: failed program was:" >&5
   5476  1.1  christos cat conftest.$ac_ext >&5
   5477  1.1  christos fi
   5478  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5479  1.1  christos       LIBS="$am_save_LIBS"
   5480  1.1  christos     fi
   5481  1.1  christos 
   5482  1.1  christos fi
   5483  1.1  christos echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
   5484  1.1  christos echo "${ECHO_T}$am_cv_func_iconv" >&6
   5485  1.1  christos   if test "$am_cv_func_iconv" = yes; then
   5486  1.1  christos 
   5487  1.1  christos cat >>confdefs.h <<\_ACEOF
   5488  1.1  christos #define HAVE_ICONV 1
   5489  1.1  christos _ACEOF
   5490  1.1  christos 
   5491  1.1  christos   fi
   5492  1.1  christos   if test "$am_cv_lib_iconv" = yes; then
   5493  1.1  christos     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
   5494  1.1  christos echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
   5495  1.1  christos     echo "$as_me:$LINENO: result: $LIBICONV" >&5
   5496  1.1  christos echo "${ECHO_T}$LIBICONV" >&6
   5497  1.1  christos   else
   5498  1.1  christos             CPPFLAGS="$am_save_CPPFLAGS"
   5499  1.1  christos     LIBICONV=
   5500  1.1  christos     LTLIBICONV=
   5501  1.1  christos   fi
   5502  1.1  christos 
   5503  1.1  christos 
   5504  1.1  christos 
   5505  1.1  christos 
   5506  1.1  christos 
   5507  1.1  christos 
   5508  1.1  christos     use_additional=yes
   5509  1.1  christos 
   5510  1.1  christos   acl_save_prefix="$prefix"
   5511  1.1  christos   prefix="$acl_final_prefix"
   5512  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5513  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5514  1.1  christos 
   5515  1.1  christos     eval additional_includedir=\"$includedir\"
   5516  1.1  christos     eval additional_libdir=\"$libdir\"
   5517  1.1  christos 
   5518  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5519  1.1  christos   prefix="$acl_save_prefix"
   5520  1.1  christos 
   5521  1.1  christos 
   5522  1.1  christos # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
   5523  1.1  christos if test "${with_libintl_prefix+set}" = set; then
   5524  1.1  christos   withval="$with_libintl_prefix"
   5525  1.1  christos 
   5526  1.1  christos     if test "X$withval" = "Xno"; then
   5527  1.1  christos       use_additional=no
   5528  1.1  christos     else
   5529  1.1  christos       if test "X$withval" = "X"; then
   5530  1.1  christos 
   5531  1.1  christos   acl_save_prefix="$prefix"
   5532  1.1  christos   prefix="$acl_final_prefix"
   5533  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5534  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5535  1.1  christos 
   5536  1.1  christos           eval additional_includedir=\"$includedir\"
   5537  1.1  christos           eval additional_libdir=\"$libdir\"
   5538  1.1  christos 
   5539  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5540  1.1  christos   prefix="$acl_save_prefix"
   5541  1.1  christos 
   5542  1.1  christos       else
   5543  1.1  christos         additional_includedir="$withval/include"
   5544  1.1  christos         additional_libdir="$withval/lib"
   5545  1.1  christos       fi
   5546  1.1  christos     fi
   5547  1.1  christos 
   5548  1.1  christos fi;
   5549  1.1  christos       LIBINTL=
   5550  1.1  christos   LTLIBINTL=
   5551  1.1  christos   INCINTL=
   5552  1.1  christos   rpathdirs=
   5553  1.1  christos   ltrpathdirs=
   5554  1.1  christos   names_already_handled=
   5555  1.1  christos   names_next_round='intl '
   5556  1.1  christos   while test -n "$names_next_round"; do
   5557  1.1  christos     names_this_round="$names_next_round"
   5558  1.1  christos     names_next_round=
   5559  1.1  christos     for name in $names_this_round; do
   5560  1.1  christos       already_handled=
   5561  1.1  christos       for n in $names_already_handled; do
   5562  1.1  christos         if test "$n" = "$name"; then
   5563  1.1  christos           already_handled=yes
   5564  1.1  christos           break
   5565  1.1  christos         fi
   5566  1.1  christos       done
   5567  1.1  christos       if test -z "$already_handled"; then
   5568  1.1  christos         names_already_handled="$names_already_handled $name"
   5569  1.1  christos                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   5570  1.1  christos         eval value=\"\$HAVE_LIB$uppername\"
   5571  1.1  christos         if test -n "$value"; then
   5572  1.1  christos           if test "$value" = yes; then
   5573  1.1  christos             eval value=\"\$LIB$uppername\"
   5574  1.1  christos             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
   5575  1.1  christos             eval value=\"\$LTLIB$uppername\"
   5576  1.1  christos             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
   5577  1.1  christos           else
   5578  1.1  christos                                     :
   5579  1.1  christos           fi
   5580  1.1  christos         else
   5581  1.1  christos                               found_dir=
   5582  1.1  christos           found_la=
   5583  1.1  christos           found_so=
   5584  1.1  christos           found_a=
   5585  1.1  christos           if test $use_additional = yes; then
   5586  1.1  christos             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   5587  1.1  christos               found_dir="$additional_libdir"
   5588  1.1  christos               found_so="$additional_libdir/lib$name.$shlibext"
   5589  1.1  christos               if test -f "$additional_libdir/lib$name.la"; then
   5590  1.1  christos                 found_la="$additional_libdir/lib$name.la"
   5591  1.1  christos               fi
   5592  1.1  christos             else
   5593  1.1  christos               if test -f "$additional_libdir/lib$name.$libext"; then
   5594  1.1  christos                 found_dir="$additional_libdir"
   5595  1.1  christos                 found_a="$additional_libdir/lib$name.$libext"
   5596  1.1  christos                 if test -f "$additional_libdir/lib$name.la"; then
   5597  1.1  christos                   found_la="$additional_libdir/lib$name.la"
   5598  1.1  christos                 fi
   5599  1.1  christos               fi
   5600  1.1  christos             fi
   5601  1.1  christos           fi
   5602  1.1  christos           if test "X$found_dir" = "X"; then
   5603  1.1  christos             for x in $LDFLAGS $LTLIBINTL; do
   5604  1.1  christos 
   5605  1.1  christos   acl_save_prefix="$prefix"
   5606  1.1  christos   prefix="$acl_final_prefix"
   5607  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5608  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5609  1.1  christos   eval x=\"$x\"
   5610  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5611  1.1  christos   prefix="$acl_save_prefix"
   5612  1.1  christos 
   5613  1.1  christos               case "$x" in
   5614  1.1  christos                 -L*)
   5615  1.1  christos                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   5616  1.1  christos                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   5617  1.1  christos                     found_dir="$dir"
   5618  1.1  christos                     found_so="$dir/lib$name.$shlibext"
   5619  1.1  christos                     if test -f "$dir/lib$name.la"; then
   5620  1.1  christos                       found_la="$dir/lib$name.la"
   5621  1.1  christos                     fi
   5622  1.1  christos                   else
   5623  1.1  christos                     if test -f "$dir/lib$name.$libext"; then
   5624  1.1  christos                       found_dir="$dir"
   5625  1.1  christos                       found_a="$dir/lib$name.$libext"
   5626  1.1  christos                       if test -f "$dir/lib$name.la"; then
   5627  1.1  christos                         found_la="$dir/lib$name.la"
   5628  1.1  christos                       fi
   5629  1.1  christos                     fi
   5630  1.1  christos                   fi
   5631  1.1  christos                   ;;
   5632  1.1  christos               esac
   5633  1.1  christos               if test "X$found_dir" != "X"; then
   5634  1.1  christos                 break
   5635  1.1  christos               fi
   5636  1.1  christos             done
   5637  1.1  christos           fi
   5638  1.1  christos           if test "X$found_dir" != "X"; then
   5639  1.1  christos                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
   5640  1.1  christos             if test "X$found_so" != "X"; then
   5641  1.1  christos                                                         if test "X$found_dir" = "X/usr/lib"; then
   5642  1.1  christos                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   5643  1.1  christos               else
   5644  1.1  christos                                                                                 haveit=
   5645  1.1  christos                 for x in $ltrpathdirs; do
   5646  1.1  christos                   if test "X$x" = "X$found_dir"; then
   5647  1.1  christos                     haveit=yes
   5648  1.1  christos                     break
   5649  1.1  christos                   fi
   5650  1.1  christos                 done
   5651  1.1  christos                 if test -z "$haveit"; then
   5652  1.1  christos                   ltrpathdirs="$ltrpathdirs $found_dir"
   5653  1.1  christos                 fi
   5654  1.1  christos                                 if test "$hardcode_direct" = yes; then
   5655  1.1  christos                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   5656  1.1  christos                 else
   5657  1.1  christos                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   5658  1.1  christos                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   5659  1.1  christos                                                             haveit=
   5660  1.1  christos                     for x in $rpathdirs; do
   5661  1.1  christos                       if test "X$x" = "X$found_dir"; then
   5662  1.1  christos                         haveit=yes
   5663  1.1  christos                         break
   5664  1.1  christos                       fi
   5665  1.1  christos                     done
   5666  1.1  christos                     if test -z "$haveit"; then
   5667  1.1  christos                       rpathdirs="$rpathdirs $found_dir"
   5668  1.1  christos                     fi
   5669  1.1  christos                   else
   5670  1.1  christos                                                                                 haveit=
   5671  1.1  christos                     for x in $LDFLAGS $LIBINTL; do
   5672  1.1  christos 
   5673  1.1  christos   acl_save_prefix="$prefix"
   5674  1.1  christos   prefix="$acl_final_prefix"
   5675  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5676  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5677  1.1  christos   eval x=\"$x\"
   5678  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5679  1.1  christos   prefix="$acl_save_prefix"
   5680  1.1  christos 
   5681  1.1  christos                       if test "X$x" = "X-L$found_dir"; then
   5682  1.1  christos                         haveit=yes
   5683  1.1  christos                         break
   5684  1.1  christos                       fi
   5685  1.1  christos                     done
   5686  1.1  christos                     if test -z "$haveit"; then
   5687  1.1  christos                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
   5688  1.1  christos                     fi
   5689  1.1  christos                     if test "$hardcode_minus_L" != no; then
   5690  1.1  christos                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   5691  1.1  christos                     else
   5692  1.1  christos                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   5693  1.1  christos                     fi
   5694  1.1  christos                   fi
   5695  1.1  christos                 fi
   5696  1.1  christos               fi
   5697  1.1  christos             else
   5698  1.1  christos               if test "X$found_a" != "X"; then
   5699  1.1  christos                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
   5700  1.1  christos               else
   5701  1.1  christos                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
   5702  1.1  christos               fi
   5703  1.1  christos             fi
   5704  1.1  christos                         additional_includedir=
   5705  1.1  christos             case "$found_dir" in
   5706  1.1  christos               */lib | */lib/)
   5707  1.1  christos                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   5708  1.1  christos                 additional_includedir="$basedir/include"
   5709  1.1  christos                 ;;
   5710  1.1  christos             esac
   5711  1.1  christos             if test "X$additional_includedir" != "X"; then
   5712  1.1  christos                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   5713  1.1  christos                 haveit=
   5714  1.1  christos                 if test "X$additional_includedir" = "X/usr/local/include"; then
   5715  1.1  christos                   if test -n "$GCC"; then
   5716  1.1  christos                     case $host_os in
   5717  1.1  christos                       linux*) haveit=yes;;
   5718  1.1  christos                     esac
   5719  1.1  christos                   fi
   5720  1.1  christos                 fi
   5721  1.1  christos                 if test -z "$haveit"; then
   5722  1.1  christos                   for x in $CPPFLAGS $INCINTL; do
   5723  1.1  christos 
   5724  1.1  christos   acl_save_prefix="$prefix"
   5725  1.1  christos   prefix="$acl_final_prefix"
   5726  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5727  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5728  1.1  christos   eval x=\"$x\"
   5729  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5730  1.1  christos   prefix="$acl_save_prefix"
   5731  1.1  christos 
   5732  1.1  christos                     if test "X$x" = "X-I$additional_includedir"; then
   5733  1.1  christos                       haveit=yes
   5734  1.1  christos                       break
   5735  1.1  christos                     fi
   5736  1.1  christos                   done
   5737  1.1  christos                   if test -z "$haveit"; then
   5738  1.1  christos                     if test -d "$additional_includedir"; then
   5739  1.1  christos                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
   5740  1.1  christos                     fi
   5741  1.1  christos                   fi
   5742  1.1  christos                 fi
   5743  1.1  christos               fi
   5744  1.1  christos             fi
   5745  1.1  christos                         if test -n "$found_la"; then
   5746  1.1  christos                                                         save_libdir="$libdir"
   5747  1.1  christos               case "$found_la" in
   5748  1.1  christos                 */* | *\\*) . "$found_la" ;;
   5749  1.1  christos                 *) . "./$found_la" ;;
   5750  1.1  christos               esac
   5751  1.1  christos               libdir="$save_libdir"
   5752  1.1  christos                             for dep in $dependency_libs; do
   5753  1.1  christos                 case "$dep" in
   5754  1.1  christos                   -L*)
   5755  1.1  christos                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   5756  1.1  christos                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   5757  1.1  christos                       haveit=
   5758  1.1  christos                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   5759  1.1  christos                         if test -n "$GCC"; then
   5760  1.1  christos                           case $host_os in
   5761  1.1  christos                             linux*) haveit=yes;;
   5762  1.1  christos                           esac
   5763  1.1  christos                         fi
   5764  1.1  christos                       fi
   5765  1.1  christos                       if test -z "$haveit"; then
   5766  1.1  christos                         haveit=
   5767  1.1  christos                         for x in $LDFLAGS $LIBINTL; do
   5768  1.1  christos 
   5769  1.1  christos   acl_save_prefix="$prefix"
   5770  1.1  christos   prefix="$acl_final_prefix"
   5771  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5772  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5773  1.1  christos   eval x=\"$x\"
   5774  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5775  1.1  christos   prefix="$acl_save_prefix"
   5776  1.1  christos 
   5777  1.1  christos                           if test "X$x" = "X-L$additional_libdir"; then
   5778  1.1  christos                             haveit=yes
   5779  1.1  christos                             break
   5780  1.1  christos                           fi
   5781  1.1  christos                         done
   5782  1.1  christos                         if test -z "$haveit"; then
   5783  1.1  christos                           if test -d "$additional_libdir"; then
   5784  1.1  christos                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
   5785  1.1  christos                           fi
   5786  1.1  christos                         fi
   5787  1.1  christos                         haveit=
   5788  1.1  christos                         for x in $LDFLAGS $LTLIBINTL; do
   5789  1.1  christos 
   5790  1.1  christos   acl_save_prefix="$prefix"
   5791  1.1  christos   prefix="$acl_final_prefix"
   5792  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   5793  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   5794  1.1  christos   eval x=\"$x\"
   5795  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   5796  1.1  christos   prefix="$acl_save_prefix"
   5797  1.1  christos 
   5798  1.1  christos                           if test "X$x" = "X-L$additional_libdir"; then
   5799  1.1  christos                             haveit=yes
   5800  1.1  christos                             break
   5801  1.1  christos                           fi
   5802  1.1  christos                         done
   5803  1.1  christos                         if test -z "$haveit"; then
   5804  1.1  christos                           if test -d "$additional_libdir"; then
   5805  1.1  christos                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
   5806  1.1  christos                           fi
   5807  1.1  christos                         fi
   5808  1.1  christos                       fi
   5809  1.1  christos                     fi
   5810  1.1  christos                     ;;
   5811  1.1  christos                   -l*)
   5812  1.1  christos                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   5813  1.1  christos                     ;;
   5814  1.1  christos                   *.la)
   5815  1.1  christos                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   5816  1.1  christos                     ;;
   5817  1.1  christos                   *)
   5818  1.1  christos                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
   5819  1.1  christos                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
   5820  1.1  christos                     ;;
   5821  1.1  christos                 esac
   5822  1.1  christos               done
   5823  1.1  christos             fi
   5824  1.1  christos           else
   5825  1.1  christos                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   5826  1.1  christos             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
   5827  1.1  christos           fi
   5828  1.1  christos         fi
   5829  1.1  christos       fi
   5830  1.1  christos     done
   5831  1.1  christos   done
   5832  1.1  christos   if test "X$rpathdirs" != "X"; then
   5833  1.1  christos     if test -n "$hardcode_libdir_separator"; then
   5834  1.1  christos                         alldirs=
   5835  1.1  christos       for found_dir in $rpathdirs; do
   5836  1.1  christos         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   5837  1.1  christos       done
   5838  1.1  christos             acl_save_libdir="$libdir"
   5839  1.1  christos       libdir="$alldirs"
   5840  1.1  christos       eval flag=\"$hardcode_libdir_flag_spec\"
   5841  1.1  christos       libdir="$acl_save_libdir"
   5842  1.1  christos       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   5843  1.1  christos     else
   5844  1.1  christos             for found_dir in $rpathdirs; do
   5845  1.1  christos         acl_save_libdir="$libdir"
   5846  1.1  christos         libdir="$found_dir"
   5847  1.1  christos         eval flag=\"$hardcode_libdir_flag_spec\"
   5848  1.1  christos         libdir="$acl_save_libdir"
   5849  1.1  christos         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   5850  1.1  christos       done
   5851  1.1  christos     fi
   5852  1.1  christos   fi
   5853  1.1  christos   if test "X$ltrpathdirs" != "X"; then
   5854  1.1  christos             for found_dir in $ltrpathdirs; do
   5855  1.1  christos       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
   5856  1.1  christos     done
   5857  1.1  christos   fi
   5858  1.1  christos 
   5859  1.1  christos           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
   5860  1.1  christos echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
   5861  1.1  christos if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
   5862  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5863  1.1  christos else
   5864  1.1  christos   gt_save_CPPFLAGS="$CPPFLAGS"
   5865  1.1  christos             CPPFLAGS="$CPPFLAGS $INCINTL"
   5866  1.1  christos             gt_save_LIBS="$LIBS"
   5867  1.1  christos             LIBS="$LIBS $LIBINTL"
   5868  1.1  christos                         cat >conftest.$ac_ext <<_ACEOF
   5869  1.1  christos #line $LINENO "configure"
   5870  1.1  christos #include "confdefs.h"
   5871  1.1  christos #include <libintl.h>
   5872  1.1  christos extern int _nl_msg_cat_cntr;
   5873  1.1  christos extern int *_nl_domain_bindings;
   5874  1.1  christos extern
   5875  1.1  christos #ifdef __cplusplus
   5876  1.1  christos "C"
   5877  1.1  christos #endif
   5878  1.1  christos const char *_nl_expand_alias ();
   5879  1.1  christos #ifdef F77_DUMMY_MAIN
   5880  1.1  christos #  ifdef __cplusplus
   5881  1.1  christos      extern "C"
   5882  1.1  christos #  endif
   5883  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   5884  1.1  christos #endif
   5885  1.1  christos int
   5886  1.1  christos main ()
   5887  1.1  christos {
   5888  1.1  christos bindtextdomain ("", "");
   5889  1.1  christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
   5890  1.1  christos   ;
   5891  1.1  christos   return 0;
   5892  1.1  christos }
   5893  1.1  christos _ACEOF
   5894  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5895  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5896  1.1  christos   (eval $ac_link) 2>&5
   5897  1.1  christos   ac_status=$?
   5898  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5899  1.1  christos   (exit $ac_status); } &&
   5900  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5901  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5902  1.1  christos   (eval $ac_try) 2>&5
   5903  1.1  christos   ac_status=$?
   5904  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5905  1.1  christos   (exit $ac_status); }; }; then
   5906  1.1  christos   gt_cv_func_gnugettext1_libintl=yes
   5907  1.1  christos else
   5908  1.1  christos   echo "$as_me: failed program was:" >&5
   5909  1.1  christos cat conftest.$ac_ext >&5
   5910  1.1  christos gt_cv_func_gnugettext1_libintl=no
   5911  1.1  christos fi
   5912  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5913  1.1  christos                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
   5914  1.1  christos               LIBS="$LIBS $LIBICONV"
   5915  1.1  christos               cat >conftest.$ac_ext <<_ACEOF
   5916  1.1  christos #line $LINENO "configure"
   5917  1.1  christos #include "confdefs.h"
   5918  1.1  christos #include <libintl.h>
   5919  1.1  christos extern int _nl_msg_cat_cntr;
   5920  1.1  christos extern int *_nl_domain_bindings;
   5921  1.1  christos extern
   5922  1.1  christos #ifdef __cplusplus
   5923  1.1  christos "C"
   5924  1.1  christos #endif
   5925  1.1  christos const char *_nl_expand_alias ();
   5926  1.1  christos #ifdef F77_DUMMY_MAIN
   5927  1.1  christos #  ifdef __cplusplus
   5928  1.1  christos      extern "C"
   5929  1.1  christos #  endif
   5930  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   5931  1.1  christos #endif
   5932  1.1  christos int
   5933  1.1  christos main ()
   5934  1.1  christos {
   5935  1.1  christos bindtextdomain ("", "");
   5936  1.1  christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
   5937  1.1  christos   ;
   5938  1.1  christos   return 0;
   5939  1.1  christos }
   5940  1.1  christos _ACEOF
   5941  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5942  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5943  1.1  christos   (eval $ac_link) 2>&5
   5944  1.1  christos   ac_status=$?
   5945  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5946  1.1  christos   (exit $ac_status); } &&
   5947  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5948  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5949  1.1  christos   (eval $ac_try) 2>&5
   5950  1.1  christos   ac_status=$?
   5951  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5952  1.1  christos   (exit $ac_status); }; }; then
   5953  1.1  christos   LIBINTL="$LIBINTL $LIBICONV"
   5954  1.1  christos                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
   5955  1.1  christos                 gt_cv_func_gnugettext1_libintl=yes
   5956  1.1  christos 
   5957  1.1  christos else
   5958  1.1  christos   echo "$as_me: failed program was:" >&5
   5959  1.1  christos cat conftest.$ac_ext >&5
   5960  1.1  christos fi
   5961  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5962  1.1  christos             fi
   5963  1.1  christos             CPPFLAGS="$gt_save_CPPFLAGS"
   5964  1.1  christos             LIBS="$gt_save_LIBS"
   5965  1.1  christos fi
   5966  1.1  christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
   5967  1.1  christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
   5968  1.1  christos         fi
   5969  1.1  christos 
   5970  1.1  christos                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
   5971  1.1  christos            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
   5972  1.1  christos                 && test "$PACKAGE" != gettext; }; then
   5973  1.1  christos           gt_use_preinstalled_gnugettext=yes
   5974  1.1  christos         else
   5975  1.1  christos                     LIBINTL=
   5976  1.1  christos           LTLIBINTL=
   5977  1.1  christos           INCINTL=
   5978  1.1  christos         fi
   5979  1.1  christos 
   5980  1.1  christos 
   5981  1.1  christos 
   5982  1.1  christos     if test "$gt_use_preinstalled_gnugettext" = "yes" \
   5983  1.1  christos        || test "$nls_cv_use_gnu_gettext" = "yes"; then
   5984  1.1  christos 
   5985  1.1  christos cat >>confdefs.h <<\_ACEOF
   5986  1.1  christos #define ENABLE_NLS 1
   5987  1.1  christos _ACEOF
   5988  1.1  christos 
   5989  1.1  christos     else
   5990  1.1  christos       USE_NLS=no
   5991  1.1  christos     fi
   5992  1.1  christos   fi
   5993  1.1  christos 
   5994  1.1  christos   if test "$USE_NLS" = "yes"; then
   5995  1.1  christos 
   5996  1.1  christos     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   5997  1.1  christos       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
   5998  1.1  christos         echo "$as_me:$LINENO: checking how to link with libintl" >&5
   5999  1.1  christos echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
   6000  1.1  christos         echo "$as_me:$LINENO: result: $LIBINTL" >&5
   6001  1.1  christos echo "${ECHO_T}$LIBINTL" >&6
   6002  1.1  christos 
   6003  1.1  christos   for element in $INCINTL; do
   6004  1.1  christos     haveit=
   6005  1.1  christos     for x in $CPPFLAGS; do
   6006  1.1  christos 
   6007  1.1  christos   acl_save_prefix="$prefix"
   6008  1.1  christos   prefix="$acl_final_prefix"
   6009  1.1  christos   acl_save_exec_prefix="$exec_prefix"
   6010  1.1  christos   exec_prefix="$acl_final_exec_prefix"
   6011  1.1  christos   eval x=\"$x\"
   6012  1.1  christos   exec_prefix="$acl_save_exec_prefix"
   6013  1.1  christos   prefix="$acl_save_prefix"
   6014  1.1  christos 
   6015  1.1  christos       if test "X$x" = "X$element"; then
   6016  1.1  christos         haveit=yes
   6017  1.1  christos         break
   6018  1.1  christos       fi
   6019  1.1  christos     done
   6020  1.1  christos     if test -z "$haveit"; then
   6021  1.1  christos       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   6022  1.1  christos     fi
   6023  1.1  christos   done
   6024  1.1  christos 
   6025  1.1  christos       fi
   6026  1.1  christos 
   6027  1.1  christos 
   6028  1.1  christos cat >>confdefs.h <<\_ACEOF
   6029  1.1  christos #define HAVE_GETTEXT 1
   6030  1.1  christos _ACEOF
   6031  1.1  christos 
   6032  1.1  christos 
   6033  1.1  christos cat >>confdefs.h <<\_ACEOF
   6034  1.1  christos #define HAVE_DCGETTEXT 1
   6035  1.1  christos _ACEOF
   6036  1.1  christos 
   6037  1.1  christos     fi
   6038  1.1  christos 
   6039  1.1  christos         POSUB=po
   6040  1.1  christos   fi
   6041  1.1  christos 
   6042  1.1  christos 
   6043  1.1  christos 
   6044  1.1  christos     INTLLIBS="$LIBINTL"
   6045  1.1  christos 
   6046  1.1  christos 
   6047  1.1  christos 
   6048  1.1  christos 
   6049  1.1  christos 
   6050  1.1  christos 
   6051  1.1  christos XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
   6052  1.1  christos 
   6053  1.1  christos 
   6054  1.1  christos 
   6055  1.1  christos 
   6056  1.1  christos 
   6057  1.1  christos ac_header_dirent=no
   6058  1.1  christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   6059  1.1  christos   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   6060  1.1  christos echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   6061  1.1  christos echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
   6062  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6063  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6064  1.1  christos else
   6065  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6066  1.1  christos #line $LINENO "configure"
   6067  1.1  christos #include "confdefs.h"
   6068  1.1  christos #include <sys/types.h>
   6069  1.1  christos #include <$ac_hdr>
   6070  1.1  christos 
   6071  1.1  christos #ifdef F77_DUMMY_MAIN
   6072  1.1  christos #  ifdef __cplusplus
   6073  1.1  christos      extern "C"
   6074  1.1  christos #  endif
   6075  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6076  1.1  christos #endif
   6077  1.1  christos int
   6078  1.1  christos main ()
   6079  1.1  christos {
   6080  1.1  christos if ((DIR *) 0)
   6081  1.1  christos return 0;
   6082  1.1  christos   ;
   6083  1.1  christos   return 0;
   6084  1.1  christos }
   6085  1.1  christos _ACEOF
   6086  1.1  christos rm -f conftest.$ac_objext
   6087  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6088  1.1  christos   (eval $ac_compile) 2>&5
   6089  1.1  christos   ac_status=$?
   6090  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6091  1.1  christos   (exit $ac_status); } &&
   6092  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6093  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6094  1.1  christos   (eval $ac_try) 2>&5
   6095  1.1  christos   ac_status=$?
   6096  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6097  1.1  christos   (exit $ac_status); }; }; then
   6098  1.1  christos   eval "$as_ac_Header=yes"
   6099  1.1  christos else
   6100  1.1  christos   echo "$as_me: failed program was:" >&5
   6101  1.1  christos cat conftest.$ac_ext >&5
   6102  1.1  christos eval "$as_ac_Header=no"
   6103  1.1  christos fi
   6104  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6105  1.1  christos fi
   6106  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6107  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6108  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6109  1.1  christos   cat >>confdefs.h <<_ACEOF
   6110  1.1  christos #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   6111  1.1  christos _ACEOF
   6112  1.1  christos 
   6113  1.1  christos ac_header_dirent=$ac_hdr; break
   6114  1.1  christos fi
   6115  1.1  christos 
   6116  1.1  christos done
   6117  1.1  christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   6118  1.1  christos if test $ac_header_dirent = dirent.h; then
   6119  1.1  christos   echo "$as_me:$LINENO: checking for library containing opendir" >&5
   6120  1.1  christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
   6121  1.1  christos if test "${ac_cv_search_opendir+set}" = set; then
   6122  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6123  1.1  christos else
   6124  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6125  1.1  christos ac_cv_search_opendir=no
   6126  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6127  1.1  christos #line $LINENO "configure"
   6128  1.1  christos #include "confdefs.h"
   6129  1.1  christos 
   6130  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6131  1.1  christos #ifdef __cplusplus
   6132  1.1  christos extern "C"
   6133  1.1  christos #endif
   6134  1.1  christos /* We use char because int might match the return type of a gcc2
   6135  1.1  christos    builtin and then its argument prototype would still apply.  */
   6136  1.1  christos char opendir ();
   6137  1.1  christos #ifdef F77_DUMMY_MAIN
   6138  1.1  christos #  ifdef __cplusplus
   6139  1.1  christos      extern "C"
   6140  1.1  christos #  endif
   6141  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6142  1.1  christos #endif
   6143  1.1  christos int
   6144  1.1  christos main ()
   6145  1.1  christos {
   6146  1.1  christos opendir ();
   6147  1.1  christos   ;
   6148  1.1  christos   return 0;
   6149  1.1  christos }
   6150  1.1  christos _ACEOF
   6151  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6152  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6153  1.1  christos   (eval $ac_link) 2>&5
   6154  1.1  christos   ac_status=$?
   6155  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6156  1.1  christos   (exit $ac_status); } &&
   6157  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6158  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6159  1.1  christos   (eval $ac_try) 2>&5
   6160  1.1  christos   ac_status=$?
   6161  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6162  1.1  christos   (exit $ac_status); }; }; then
   6163  1.1  christos   ac_cv_search_opendir="none required"
   6164  1.1  christos else
   6165  1.1  christos   echo "$as_me: failed program was:" >&5
   6166  1.1  christos cat conftest.$ac_ext >&5
   6167  1.1  christos fi
   6168  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6169  1.1  christos if test "$ac_cv_search_opendir" = no; then
   6170  1.1  christos   for ac_lib in dir; do
   6171  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6172  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   6173  1.1  christos #line $LINENO "configure"
   6174  1.1  christos #include "confdefs.h"
   6175  1.1  christos 
   6176  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6177  1.1  christos #ifdef __cplusplus
   6178  1.1  christos extern "C"
   6179  1.1  christos #endif
   6180  1.1  christos /* We use char because int might match the return type of a gcc2
   6181  1.1  christos    builtin and then its argument prototype would still apply.  */
   6182  1.1  christos char opendir ();
   6183  1.1  christos #ifdef F77_DUMMY_MAIN
   6184  1.1  christos #  ifdef __cplusplus
   6185  1.1  christos      extern "C"
   6186  1.1  christos #  endif
   6187  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6188  1.1  christos #endif
   6189  1.1  christos int
   6190  1.1  christos main ()
   6191  1.1  christos {
   6192  1.1  christos opendir ();
   6193  1.1  christos   ;
   6194  1.1  christos   return 0;
   6195  1.1  christos }
   6196  1.1  christos _ACEOF
   6197  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6198  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6199  1.1  christos   (eval $ac_link) 2>&5
   6200  1.1  christos   ac_status=$?
   6201  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6202  1.1  christos   (exit $ac_status); } &&
   6203  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6204  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6205  1.1  christos   (eval $ac_try) 2>&5
   6206  1.1  christos   ac_status=$?
   6207  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6208  1.1  christos   (exit $ac_status); }; }; then
   6209  1.1  christos   ac_cv_search_opendir="-l$ac_lib"
   6210  1.1  christos break
   6211  1.1  christos else
   6212  1.1  christos   echo "$as_me: failed program was:" >&5
   6213  1.1  christos cat conftest.$ac_ext >&5
   6214  1.1  christos fi
   6215  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6216  1.1  christos   done
   6217  1.1  christos fi
   6218  1.1  christos LIBS=$ac_func_search_save_LIBS
   6219  1.1  christos fi
   6220  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   6221  1.1  christos echo "${ECHO_T}$ac_cv_search_opendir" >&6
   6222  1.1  christos if test "$ac_cv_search_opendir" != no; then
   6223  1.1  christos   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
   6224  1.1  christos 
   6225  1.1  christos fi
   6226  1.1  christos 
   6227  1.1  christos else
   6228  1.1  christos   echo "$as_me:$LINENO: checking for library containing opendir" >&5
   6229  1.1  christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
   6230  1.1  christos if test "${ac_cv_search_opendir+set}" = set; then
   6231  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6232  1.1  christos else
   6233  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6234  1.1  christos ac_cv_search_opendir=no
   6235  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6236  1.1  christos #line $LINENO "configure"
   6237  1.1  christos #include "confdefs.h"
   6238  1.1  christos 
   6239  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6240  1.1  christos #ifdef __cplusplus
   6241  1.1  christos extern "C"
   6242  1.1  christos #endif
   6243  1.1  christos /* We use char because int might match the return type of a gcc2
   6244  1.1  christos    builtin and then its argument prototype would still apply.  */
   6245  1.1  christos char opendir ();
   6246  1.1  christos #ifdef F77_DUMMY_MAIN
   6247  1.1  christos #  ifdef __cplusplus
   6248  1.1  christos      extern "C"
   6249  1.1  christos #  endif
   6250  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6251  1.1  christos #endif
   6252  1.1  christos int
   6253  1.1  christos main ()
   6254  1.1  christos {
   6255  1.1  christos opendir ();
   6256  1.1  christos   ;
   6257  1.1  christos   return 0;
   6258  1.1  christos }
   6259  1.1  christos _ACEOF
   6260  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6261  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6262  1.1  christos   (eval $ac_link) 2>&5
   6263  1.1  christos   ac_status=$?
   6264  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6265  1.1  christos   (exit $ac_status); } &&
   6266  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6267  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6268  1.1  christos   (eval $ac_try) 2>&5
   6269  1.1  christos   ac_status=$?
   6270  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6271  1.1  christos   (exit $ac_status); }; }; then
   6272  1.1  christos   ac_cv_search_opendir="none required"
   6273  1.1  christos else
   6274  1.1  christos   echo "$as_me: failed program was:" >&5
   6275  1.1  christos cat conftest.$ac_ext >&5
   6276  1.1  christos fi
   6277  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6278  1.1  christos if test "$ac_cv_search_opendir" = no; then
   6279  1.1  christos   for ac_lib in x; do
   6280  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6281  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   6282  1.1  christos #line $LINENO "configure"
   6283  1.1  christos #include "confdefs.h"
   6284  1.1  christos 
   6285  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6286  1.1  christos #ifdef __cplusplus
   6287  1.1  christos extern "C"
   6288  1.1  christos #endif
   6289  1.1  christos /* We use char because int might match the return type of a gcc2
   6290  1.1  christos    builtin and then its argument prototype would still apply.  */
   6291  1.1  christos char opendir ();
   6292  1.1  christos #ifdef F77_DUMMY_MAIN
   6293  1.1  christos #  ifdef __cplusplus
   6294  1.1  christos      extern "C"
   6295  1.1  christos #  endif
   6296  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6297  1.1  christos #endif
   6298  1.1  christos int
   6299  1.1  christos main ()
   6300  1.1  christos {
   6301  1.1  christos opendir ();
   6302  1.1  christos   ;
   6303  1.1  christos   return 0;
   6304  1.1  christos }
   6305  1.1  christos _ACEOF
   6306  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6307  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6308  1.1  christos   (eval $ac_link) 2>&5
   6309  1.1  christos   ac_status=$?
   6310  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6311  1.1  christos   (exit $ac_status); } &&
   6312  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6313  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6314  1.1  christos   (eval $ac_try) 2>&5
   6315  1.1  christos   ac_status=$?
   6316  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6317  1.1  christos   (exit $ac_status); }; }; then
   6318  1.1  christos   ac_cv_search_opendir="-l$ac_lib"
   6319  1.1  christos break
   6320  1.1  christos else
   6321  1.1  christos   echo "$as_me: failed program was:" >&5
   6322  1.1  christos cat conftest.$ac_ext >&5
   6323  1.1  christos fi
   6324  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6325  1.1  christos   done
   6326  1.1  christos fi
   6327  1.1  christos LIBS=$ac_func_search_save_LIBS
   6328  1.1  christos fi
   6329  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   6330  1.1  christos echo "${ECHO_T}$ac_cv_search_opendir" >&6
   6331  1.1  christos if test "$ac_cv_search_opendir" != no; then
   6332  1.1  christos   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
   6333  1.1  christos 
   6334  1.1  christos fi
   6335  1.1  christos 
   6336  1.1  christos fi
   6337  1.1  christos 
   6338  1.1  christos echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   6339  1.1  christos echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
   6340  1.1  christos if test "${ac_cv_header_stat_broken+set}" = set; then
   6341  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6342  1.1  christos else
   6343  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6344  1.1  christos #line $LINENO "configure"
   6345  1.1  christos #include "confdefs.h"
   6346  1.1  christos #include <sys/types.h>
   6347  1.1  christos #include <sys/stat.h>
   6348  1.1  christos 
   6349  1.1  christos #if defined(S_ISBLK) && defined(S_IFDIR)
   6350  1.1  christos # if S_ISBLK (S_IFDIR)
   6351  1.1  christos You lose.
   6352  1.1  christos # endif
   6353  1.1  christos #endif
   6354  1.1  christos 
   6355  1.1  christos #if defined(S_ISBLK) && defined(S_IFCHR)
   6356  1.1  christos # if S_ISBLK (S_IFCHR)
   6357  1.1  christos You lose.
   6358  1.1  christos # endif
   6359  1.1  christos #endif
   6360  1.1  christos 
   6361  1.1  christos #if defined(S_ISLNK) && defined(S_IFREG)
   6362  1.1  christos # if S_ISLNK (S_IFREG)
   6363  1.1  christos You lose.
   6364  1.1  christos # endif
   6365  1.1  christos #endif
   6366  1.1  christos 
   6367  1.1  christos #if defined(S_ISSOCK) && defined(S_IFREG)
   6368  1.1  christos # if S_ISSOCK (S_IFREG)
   6369  1.1  christos You lose.
   6370  1.1  christos # endif
   6371  1.1  christos #endif
   6372  1.1  christos 
   6373  1.1  christos _ACEOF
   6374  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6375  1.1  christos   egrep "You lose" >/dev/null 2>&1; then
   6376  1.1  christos   ac_cv_header_stat_broken=yes
   6377  1.1  christos else
   6378  1.1  christos   ac_cv_header_stat_broken=no
   6379  1.1  christos fi
   6380  1.1  christos rm -f conftest*
   6381  1.1  christos 
   6382  1.1  christos fi
   6383  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   6384  1.1  christos echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
   6385  1.1  christos if test $ac_cv_header_stat_broken = yes; then
   6386  1.1  christos 
   6387  1.1  christos cat >>confdefs.h <<\_ACEOF
   6388  1.1  christos #define STAT_MACROS_BROKEN 1
   6389  1.1  christos _ACEOF
   6390  1.1  christos 
   6391  1.1  christos fi
   6392  1.1  christos 
   6393  1.1  christos echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   6394  1.1  christos echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   6395  1.1  christos if test "${ac_cv_header_sys_wait_h+set}" = set; then
   6396  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6397  1.1  christos else
   6398  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6399  1.1  christos #line $LINENO "configure"
   6400  1.1  christos #include "confdefs.h"
   6401  1.1  christos #include <sys/types.h>
   6402  1.1  christos #include <sys/wait.h>
   6403  1.1  christos #ifndef WEXITSTATUS
   6404  1.1  christos # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   6405  1.1  christos #endif
   6406  1.1  christos #ifndef WIFEXITED
   6407  1.1  christos # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   6408  1.1  christos #endif
   6409  1.1  christos 
   6410  1.1  christos #ifdef F77_DUMMY_MAIN
   6411  1.1  christos #  ifdef __cplusplus
   6412  1.1  christos      extern "C"
   6413  1.1  christos #  endif
   6414  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6415  1.1  christos #endif
   6416  1.1  christos int
   6417  1.1  christos main ()
   6418  1.1  christos {
   6419  1.1  christos   int s;
   6420  1.1  christos   wait (&s);
   6421  1.1  christos   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   6422  1.1  christos   ;
   6423  1.1  christos   return 0;
   6424  1.1  christos }
   6425  1.1  christos _ACEOF
   6426  1.1  christos rm -f conftest.$ac_objext
   6427  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6428  1.1  christos   (eval $ac_compile) 2>&5
   6429  1.1  christos   ac_status=$?
   6430  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6431  1.1  christos   (exit $ac_status); } &&
   6432  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6433  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6434  1.1  christos   (eval $ac_try) 2>&5
   6435  1.1  christos   ac_status=$?
   6436  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6437  1.1  christos   (exit $ac_status); }; }; then
   6438  1.1  christos   ac_cv_header_sys_wait_h=yes
   6439  1.1  christos else
   6440  1.1  christos   echo "$as_me: failed program was:" >&5
   6441  1.1  christos cat conftest.$ac_ext >&5
   6442  1.1  christos ac_cv_header_sys_wait_h=no
   6443  1.1  christos fi
   6444  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6445  1.1  christos fi
   6446  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   6447  1.1  christos echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   6448  1.1  christos if test $ac_cv_header_sys_wait_h = yes; then
   6449  1.1  christos 
   6450  1.1  christos cat >>confdefs.h <<\_ACEOF
   6451  1.1  christos #define HAVE_SYS_WAIT_H 1
   6452  1.1  christos _ACEOF
   6453  1.1  christos 
   6454  1.1  christos fi
   6455  1.1  christos 
   6456  1.1  christos echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
   6457  1.1  christos echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
   6458  1.1  christos if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
   6459  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6460  1.1  christos else
   6461  1.1  christos   ac_save_CPPFLAGS="$CPPFLAGS"
   6462  1.1  christos     ac_cv_struct_st_mtim_nsec=no
   6463  1.1  christos     # tv_nsec -- the usual case
   6464  1.1  christos     # _tv_nsec -- Solaris 2.6, if
   6465  1.1  christos     #	(defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
   6466  1.1  christos     #	 && !defined __EXTENSIONS__)
   6467  1.1  christos     # st__tim.tv_nsec -- UnixWare 2.1.2
   6468  1.1  christos     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
   6469  1.1  christos       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
   6470  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   6471  1.1  christos #line $LINENO "configure"
   6472  1.1  christos #include "confdefs.h"
   6473  1.1  christos #include <sys/types.h>
   6474  1.1  christos #include <sys/stat.h>
   6475  1.1  christos #ifdef F77_DUMMY_MAIN
   6476  1.1  christos #  ifdef __cplusplus
   6477  1.1  christos      extern "C"
   6478  1.1  christos #  endif
   6479  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6480  1.1  christos #endif
   6481  1.1  christos int
   6482  1.1  christos main ()
   6483  1.1  christos {
   6484  1.1  christos struct stat s; s.st_mtim.ST_MTIM_NSEC;
   6485  1.1  christos   ;
   6486  1.1  christos   return 0;
   6487  1.1  christos }
   6488  1.1  christos _ACEOF
   6489  1.1  christos rm -f conftest.$ac_objext
   6490  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6491  1.1  christos   (eval $ac_compile) 2>&5
   6492  1.1  christos   ac_status=$?
   6493  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6494  1.1  christos   (exit $ac_status); } &&
   6495  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6496  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6497  1.1  christos   (eval $ac_try) 2>&5
   6498  1.1  christos   ac_status=$?
   6499  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6500  1.1  christos   (exit $ac_status); }; }; then
   6501  1.1  christos   ac_cv_struct_st_mtim_nsec=$ac_val; break
   6502  1.1  christos else
   6503  1.1  christos   echo "$as_me: failed program was:" >&5
   6504  1.1  christos cat conftest.$ac_ext >&5
   6505  1.1  christos fi
   6506  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6507  1.1  christos     done
   6508  1.1  christos     CPPFLAGS="$ac_save_CPPFLAGS"
   6509  1.1  christos fi
   6510  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
   6511  1.1  christos echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
   6512  1.1  christos 
   6513  1.1  christos   if test $ac_cv_struct_st_mtim_nsec != no; then
   6514  1.1  christos 
   6515  1.1  christos cat >>confdefs.h <<_ACEOF
   6516  1.1  christos #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
   6517  1.1  christos _ACEOF
   6518  1.1  christos 
   6519  1.1  christos   fi
   6520  1.1  christos 
   6521  1.1  christos 
   6522  1.1  christos echo "$as_me:$LINENO: checking for pid_t" >&5
   6523  1.1  christos echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   6524  1.1  christos if test "${ac_cv_type_pid_t+set}" = set; then
   6525  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6526  1.1  christos else
   6527  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6528  1.1  christos #line $LINENO "configure"
   6529  1.1  christos #include "confdefs.h"
   6530  1.1  christos $ac_includes_default
   6531  1.1  christos #ifdef F77_DUMMY_MAIN
   6532  1.1  christos #  ifdef __cplusplus
   6533  1.1  christos      extern "C"
   6534  1.1  christos #  endif
   6535  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6536  1.1  christos #endif
   6537  1.1  christos int
   6538  1.1  christos main ()
   6539  1.1  christos {
   6540  1.1  christos if ((pid_t *) 0)
   6541  1.1  christos   return 0;
   6542  1.1  christos if (sizeof (pid_t))
   6543  1.1  christos   return 0;
   6544  1.1  christos   ;
   6545  1.1  christos   return 0;
   6546  1.1  christos }
   6547  1.1  christos _ACEOF
   6548  1.1  christos rm -f conftest.$ac_objext
   6549  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6550  1.1  christos   (eval $ac_compile) 2>&5
   6551  1.1  christos   ac_status=$?
   6552  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6553  1.1  christos   (exit $ac_status); } &&
   6554  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6555  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6556  1.1  christos   (eval $ac_try) 2>&5
   6557  1.1  christos   ac_status=$?
   6558  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6559  1.1  christos   (exit $ac_status); }; }; then
   6560  1.1  christos   ac_cv_type_pid_t=yes
   6561  1.1  christos else
   6562  1.1  christos   echo "$as_me: failed program was:" >&5
   6563  1.1  christos cat conftest.$ac_ext >&5
   6564  1.1  christos ac_cv_type_pid_t=no
   6565  1.1  christos fi
   6566  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6567  1.1  christos fi
   6568  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   6569  1.1  christos echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   6570  1.1  christos if test $ac_cv_type_pid_t = yes; then
   6571  1.1  christos   :
   6572  1.1  christos else
   6573  1.1  christos 
   6574  1.1  christos cat >>confdefs.h <<_ACEOF
   6575  1.1  christos #define pid_t int
   6576  1.1  christos _ACEOF
   6577  1.1  christos 
   6578  1.1  christos fi
   6579  1.1  christos 
   6580  1.1  christos echo "$as_me:$LINENO: checking return type of signal handlers" >&5
   6581  1.1  christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
   6582  1.1  christos if test "${ac_cv_type_signal+set}" = set; then
   6583  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6584  1.1  christos else
   6585  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6586  1.1  christos #line $LINENO "configure"
   6587  1.1  christos #include "confdefs.h"
   6588  1.1  christos #include <sys/types.h>
   6589  1.1  christos #include <signal.h>
   6590  1.1  christos #ifdef signal
   6591  1.1  christos # undef signal
   6592  1.1  christos #endif
   6593  1.1  christos #ifdef __cplusplus
   6594  1.1  christos extern "C" void (*signal (int, void (*)(int)))(int);
   6595  1.1  christos #else
   6596  1.1  christos void (*signal ()) ();
   6597  1.1  christos #endif
   6598  1.1  christos 
   6599  1.1  christos #ifdef F77_DUMMY_MAIN
   6600  1.1  christos #  ifdef __cplusplus
   6601  1.1  christos      extern "C"
   6602  1.1  christos #  endif
   6603  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6604  1.1  christos #endif
   6605  1.1  christos int
   6606  1.1  christos main ()
   6607  1.1  christos {
   6608  1.1  christos int i;
   6609  1.1  christos   ;
   6610  1.1  christos   return 0;
   6611  1.1  christos }
   6612  1.1  christos _ACEOF
   6613  1.1  christos rm -f conftest.$ac_objext
   6614  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6615  1.1  christos   (eval $ac_compile) 2>&5
   6616  1.1  christos   ac_status=$?
   6617  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6618  1.1  christos   (exit $ac_status); } &&
   6619  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6620  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6621  1.1  christos   (eval $ac_try) 2>&5
   6622  1.1  christos   ac_status=$?
   6623  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6624  1.1  christos   (exit $ac_status); }; }; then
   6625  1.1  christos   ac_cv_type_signal=void
   6626  1.1  christos else
   6627  1.1  christos   echo "$as_me: failed program was:" >&5
   6628  1.1  christos cat conftest.$ac_ext >&5
   6629  1.1  christos ac_cv_type_signal=int
   6630  1.1  christos fi
   6631  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6632  1.1  christos fi
   6633  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
   6634  1.1  christos echo "${ECHO_T}$ac_cv_type_signal" >&6
   6635  1.1  christos 
   6636  1.1  christos cat >>confdefs.h <<_ACEOF
   6637  1.1  christos #define RETSIGTYPE $ac_cv_type_signal
   6638  1.1  christos _ACEOF
   6639  1.1  christos 
   6640  1.1  christos 
   6641  1.1  christos 
   6642  1.1  christos 
   6643  1.1  christos 
   6644  1.1  christos 
   6645  1.1  christos 
   6646  1.1  christos 
   6647  1.1  christos 
   6648  1.1  christos 
   6649  1.1  christos 
   6650  1.1  christos for ac_func in diraccess dup2 gettimeofday \
   6651  1.1  christos   sigaction sigprocmask strchr strerror tmpnam
   6652  1.1  christos do
   6653  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6654  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   6655  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6656  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   6657  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6658  1.1  christos else
   6659  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6660  1.1  christos #line $LINENO "configure"
   6661  1.1  christos #include "confdefs.h"
   6662  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   6663  1.1  christos     which can conflict with char $ac_func (); below.  */
   6664  1.1  christos #include <assert.h>
   6665  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6666  1.1  christos #ifdef __cplusplus
   6667  1.1  christos extern "C"
   6668  1.1  christos #endif
   6669  1.1  christos /* We use char because int might match the return type of a gcc2
   6670  1.1  christos    builtin and then its argument prototype would still apply.  */
   6671  1.1  christos char $ac_func ();
   6672  1.1  christos char (*f) ();
   6673  1.1  christos 
   6674  1.1  christos #ifdef F77_DUMMY_MAIN
   6675  1.1  christos #  ifdef __cplusplus
   6676  1.1  christos      extern "C"
   6677  1.1  christos #  endif
   6678  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6679  1.1  christos #endif
   6680  1.1  christos int
   6681  1.1  christos main ()
   6682  1.1  christos {
   6683  1.1  christos /* The GNU C library defines this for functions which it implements
   6684  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   6685  1.1  christos     something starting with __ and the normal name is an alias.  */
   6686  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   6687  1.1  christos choke me
   6688  1.1  christos #else
   6689  1.1  christos f = $ac_func;
   6690  1.1  christos #endif
   6691  1.1  christos 
   6692  1.1  christos   ;
   6693  1.1  christos   return 0;
   6694  1.1  christos }
   6695  1.1  christos _ACEOF
   6696  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6697  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6698  1.1  christos   (eval $ac_link) 2>&5
   6699  1.1  christos   ac_status=$?
   6700  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6701  1.1  christos   (exit $ac_status); } &&
   6702  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6703  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6704  1.1  christos   (eval $ac_try) 2>&5
   6705  1.1  christos   ac_status=$?
   6706  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6707  1.1  christos   (exit $ac_status); }; }; then
   6708  1.1  christos   eval "$as_ac_var=yes"
   6709  1.1  christos else
   6710  1.1  christos   echo "$as_me: failed program was:" >&5
   6711  1.1  christos cat conftest.$ac_ext >&5
   6712  1.1  christos eval "$as_ac_var=no"
   6713  1.1  christos fi
   6714  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6715  1.1  christos fi
   6716  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   6717  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   6718  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6719  1.1  christos   cat >>confdefs.h <<_ACEOF
   6720  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6721  1.1  christos _ACEOF
   6722  1.1  christos 
   6723  1.1  christos fi
   6724  1.1  christos done
   6725  1.1  christos 
   6726  1.1  christos 
   6727  1.1  christos 
   6728  1.1  christos 
   6729  1.1  christos 
   6730  1.1  christos for ac_func in memchr mkstemp strcasecmp waitpid
   6731  1.1  christos do
   6732  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6733  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   6734  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6735  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   6736  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6737  1.1  christos else
   6738  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6739  1.1  christos #line $LINENO "configure"
   6740  1.1  christos #include "confdefs.h"
   6741  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   6742  1.1  christos     which can conflict with char $ac_func (); below.  */
   6743  1.1  christos #include <assert.h>
   6744  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   6745  1.1  christos #ifdef __cplusplus
   6746  1.1  christos extern "C"
   6747  1.1  christos #endif
   6748  1.1  christos /* We use char because int might match the return type of a gcc2
   6749  1.1  christos    builtin and then its argument prototype would still apply.  */
   6750  1.1  christos char $ac_func ();
   6751  1.1  christos char (*f) ();
   6752  1.1  christos 
   6753  1.1  christos #ifdef F77_DUMMY_MAIN
   6754  1.1  christos #  ifdef __cplusplus
   6755  1.1  christos      extern "C"
   6756  1.1  christos #  endif
   6757  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6758  1.1  christos #endif
   6759  1.1  christos int
   6760  1.1  christos main ()
   6761  1.1  christos {
   6762  1.1  christos /* The GNU C library defines this for functions which it implements
   6763  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   6764  1.1  christos     something starting with __ and the normal name is an alias.  */
   6765  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   6766  1.1  christos choke me
   6767  1.1  christos #else
   6768  1.1  christos f = $ac_func;
   6769  1.1  christos #endif
   6770  1.1  christos 
   6771  1.1  christos   ;
   6772  1.1  christos   return 0;
   6773  1.1  christos }
   6774  1.1  christos _ACEOF
   6775  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6776  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6777  1.1  christos   (eval $ac_link) 2>&5
   6778  1.1  christos   ac_status=$?
   6779  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6780  1.1  christos   (exit $ac_status); } &&
   6781  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   6782  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6783  1.1  christos   (eval $ac_try) 2>&5
   6784  1.1  christos   ac_status=$?
   6785  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6786  1.1  christos   (exit $ac_status); }; }; then
   6787  1.1  christos   eval "$as_ac_var=yes"
   6788  1.1  christos else
   6789  1.1  christos   echo "$as_me: failed program was:" >&5
   6790  1.1  christos cat conftest.$ac_ext >&5
   6791  1.1  christos eval "$as_ac_var=no"
   6792  1.1  christos fi
   6793  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6794  1.1  christos fi
   6795  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   6796  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   6797  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6798  1.1  christos   cat >>confdefs.h <<_ACEOF
   6799  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6800  1.1  christos _ACEOF
   6801  1.1  christos 
   6802  1.1  christos else
   6803  1.1  christos   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   6804  1.1  christos fi
   6805  1.1  christos done
   6806  1.1  christos 
   6807  1.1  christos 
   6808  1.1  christos if test $ac_cv_func_mkstemp != yes; then
   6809  1.1  christos   LIBOBJS="$LIBOBJS tempname.$ac_objext"
   6810  1.1  christos fi
   6811  1.1  christos echo "$as_me:$LINENO: checking whether closedir returns void" >&5
   6812  1.1  christos echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
   6813  1.1  christos if test "${ac_cv_func_closedir_void+set}" = set; then
   6814  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6815  1.1  christos else
   6816  1.1  christos   if test "$cross_compiling" = yes; then
   6817  1.1  christos   ac_cv_func_closedir_void=yes
   6818  1.1  christos else
   6819  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6820  1.1  christos #line $LINENO "configure"
   6821  1.1  christos #include "confdefs.h"
   6822  1.1  christos $ac_includes_default
   6823  1.1  christos #include <$ac_header_dirent>
   6824  1.1  christos #ifndef __cplusplus
   6825  1.1  christos int closedir ();
   6826  1.1  christos #endif
   6827  1.1  christos 
   6828  1.1  christos #ifdef F77_DUMMY_MAIN
   6829  1.1  christos #  ifdef __cplusplus
   6830  1.1  christos      extern "C"
   6831  1.1  christos #  endif
   6832  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   6833  1.1  christos #endif
   6834  1.1  christos int
   6835  1.1  christos main ()
   6836  1.1  christos {
   6837  1.1  christos exit (closedir (opendir (".")) != 0);
   6838  1.1  christos   ;
   6839  1.1  christos   return 0;
   6840  1.1  christos }
   6841  1.1  christos _ACEOF
   6842  1.1  christos rm -f conftest$ac_exeext
   6843  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6844  1.1  christos   (eval $ac_link) 2>&5
   6845  1.1  christos   ac_status=$?
   6846  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6847  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6848  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6849  1.1  christos   (eval $ac_try) 2>&5
   6850  1.1  christos   ac_status=$?
   6851  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6852  1.1  christos   (exit $ac_status); }; }; then
   6853  1.1  christos   ac_cv_func_closedir_void=no
   6854  1.1  christos else
   6855  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   6856  1.1  christos echo "$as_me: failed program was:" >&5
   6857  1.1  christos cat conftest.$ac_ext >&5
   6858  1.1  christos ( exit $ac_status )
   6859  1.1  christos ac_cv_func_closedir_void=yes
   6860  1.1  christos fi
   6861  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6862  1.1  christos fi
   6863  1.1  christos fi
   6864  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
   6865  1.1  christos echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
   6866  1.1  christos if test $ac_cv_func_closedir_void = yes; then
   6867  1.1  christos 
   6868  1.1  christos cat >>confdefs.h <<\_ACEOF
   6869  1.1  christos #define CLOSEDIR_VOID 1
   6870  1.1  christos _ACEOF
   6871  1.1  christos 
   6872  1.1  christos fi
   6873  1.1  christos 
   6874  1.1  christos 
   6875  1.1  christos 
   6876  1.1  christos for ac_header in unistd.h vfork.h
   6877  1.1  christos do
   6878  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6879  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6880  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   6881  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6882  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6883  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6884  1.1  christos fi
   6885  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6886  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6887  1.1  christos else
   6888  1.1  christos   # Is the header compilable?
   6889  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   6890  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   6891  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6892  1.1  christos #line $LINENO "configure"
   6893  1.1  christos #include "confdefs.h"
   6894  1.1  christos $ac_includes_default
   6895  1.1  christos #include <$ac_header>
   6896  1.1  christos _ACEOF
   6897  1.1  christos rm -f conftest.$ac_objext
   6898  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6899  1.1  christos   (eval $ac_compile) 2>&5
   6900  1.1  christos   ac_status=$?
   6901  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6902  1.1  christos   (exit $ac_status); } &&
   6903  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   6904  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6905  1.1  christos   (eval $ac_try) 2>&5
   6906  1.1  christos   ac_status=$?
   6907  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6908  1.1  christos   (exit $ac_status); }; }; then
   6909  1.1  christos   ac_header_compiler=yes
   6910  1.1  christos else
   6911  1.1  christos   echo "$as_me: failed program was:" >&5
   6912  1.1  christos cat conftest.$ac_ext >&5
   6913  1.1  christos ac_header_compiler=no
   6914  1.1  christos fi
   6915  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6916  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   6917  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   6918  1.1  christos 
   6919  1.1  christos # Is the header present?
   6920  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   6921  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   6922  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6923  1.1  christos #line $LINENO "configure"
   6924  1.1  christos #include "confdefs.h"
   6925  1.1  christos #include <$ac_header>
   6926  1.1  christos _ACEOF
   6927  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   6928  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6929  1.1  christos   ac_status=$?
   6930  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   6931  1.1  christos   rm -f conftest.er1
   6932  1.1  christos   cat conftest.err >&5
   6933  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6934  1.1  christos   (exit $ac_status); } >/dev/null; then
   6935  1.1  christos   if test -s conftest.err; then
   6936  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   6937  1.1  christos   else
   6938  1.1  christos     ac_cpp_err=
   6939  1.1  christos   fi
   6940  1.1  christos else
   6941  1.1  christos   ac_cpp_err=yes
   6942  1.1  christos fi
   6943  1.1  christos if test -z "$ac_cpp_err"; then
   6944  1.1  christos   ac_header_preproc=yes
   6945  1.1  christos else
   6946  1.1  christos   echo "$as_me: failed program was:" >&5
   6947  1.1  christos   cat conftest.$ac_ext >&5
   6948  1.1  christos   ac_header_preproc=no
   6949  1.1  christos fi
   6950  1.1  christos rm -f conftest.err conftest.$ac_ext
   6951  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   6952  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   6953  1.1  christos 
   6954  1.1  christos # So?  What about this header?
   6955  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   6956  1.1  christos   yes:no )
   6957  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   6958  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   6959  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6960  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   6961  1.1  christos   no:yes )
   6962  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   6963  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   6964  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   6965  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   6966  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6967  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   6968  1.1  christos esac
   6969  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   6970  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6971  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6972  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6973  1.1  christos else
   6974  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   6975  1.1  christos fi
   6976  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6977  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6978  1.1  christos 
   6979  1.1  christos fi
   6980  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6981  1.1  christos   cat >>confdefs.h <<_ACEOF
   6982  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6983  1.1  christos _ACEOF
   6984  1.1  christos 
   6985  1.1  christos fi
   6986  1.1  christos 
   6987  1.1  christos done
   6988  1.1  christos 
   6989  1.1  christos 
   6990  1.1  christos 
   6991  1.1  christos for ac_func in fork vfork
   6992  1.1  christos do
   6993  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6994  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   6995  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6996  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   6997  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6998  1.1  christos else
   6999  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7000  1.1  christos #line $LINENO "configure"
   7001  1.1  christos #include "confdefs.h"
   7002  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7003  1.1  christos     which can conflict with char $ac_func (); below.  */
   7004  1.1  christos #include <assert.h>
   7005  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   7006  1.1  christos #ifdef __cplusplus
   7007  1.1  christos extern "C"
   7008  1.1  christos #endif
   7009  1.1  christos /* We use char because int might match the return type of a gcc2
   7010  1.1  christos    builtin and then its argument prototype would still apply.  */
   7011  1.1  christos char $ac_func ();
   7012  1.1  christos char (*f) ();
   7013  1.1  christos 
   7014  1.1  christos #ifdef F77_DUMMY_MAIN
   7015  1.1  christos #  ifdef __cplusplus
   7016  1.1  christos      extern "C"
   7017  1.1  christos #  endif
   7018  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7019  1.1  christos #endif
   7020  1.1  christos int
   7021  1.1  christos main ()
   7022  1.1  christos {
   7023  1.1  christos /* The GNU C library defines this for functions which it implements
   7024  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7025  1.1  christos     something starting with __ and the normal name is an alias.  */
   7026  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   7027  1.1  christos choke me
   7028  1.1  christos #else
   7029  1.1  christos f = $ac_func;
   7030  1.1  christos #endif
   7031  1.1  christos 
   7032  1.1  christos   ;
   7033  1.1  christos   return 0;
   7034  1.1  christos }
   7035  1.1  christos _ACEOF
   7036  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7037  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7038  1.1  christos   (eval $ac_link) 2>&5
   7039  1.1  christos   ac_status=$?
   7040  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7041  1.1  christos   (exit $ac_status); } &&
   7042  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   7043  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7044  1.1  christos   (eval $ac_try) 2>&5
   7045  1.1  christos   ac_status=$?
   7046  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7047  1.1  christos   (exit $ac_status); }; }; then
   7048  1.1  christos   eval "$as_ac_var=yes"
   7049  1.1  christos else
   7050  1.1  christos   echo "$as_me: failed program was:" >&5
   7051  1.1  christos cat conftest.$ac_ext >&5
   7052  1.1  christos eval "$as_ac_var=no"
   7053  1.1  christos fi
   7054  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7055  1.1  christos fi
   7056  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   7057  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   7058  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   7059  1.1  christos   cat >>confdefs.h <<_ACEOF
   7060  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7061  1.1  christos _ACEOF
   7062  1.1  christos 
   7063  1.1  christos fi
   7064  1.1  christos done
   7065  1.1  christos 
   7066  1.1  christos ac_cv_func_fork_works=$ac_cv_func_fork
   7067  1.1  christos if test "x$ac_cv_func_fork" = xyes; then
   7068  1.1  christos   echo "$as_me:$LINENO: checking for working fork" >&5
   7069  1.1  christos echo $ECHO_N "checking for working fork... $ECHO_C" >&6
   7070  1.1  christos if test "${ac_cv_func_fork_works+set}" = set; then
   7071  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7072  1.1  christos else
   7073  1.1  christos   if test "$cross_compiling" = yes; then
   7074  1.1  christos   ac_cv_func_fork_works=cross
   7075  1.1  christos else
   7076  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7077  1.1  christos /* By Ruediger Kuhlmann. */
   7078  1.1  christos       #include <sys/types.h>
   7079  1.1  christos       #if HAVE_UNISTD_H
   7080  1.1  christos       # include <unistd.h>
   7081  1.1  christos       #endif
   7082  1.1  christos       /* Some systems only have a dummy stub for fork() */
   7083  1.1  christos       int main ()
   7084  1.1  christos       {
   7085  1.1  christos         if (fork() < 0)
   7086  1.1  christos           exit (1);
   7087  1.1  christos         exit (0);
   7088  1.1  christos       }
   7089  1.1  christos _ACEOF
   7090  1.1  christos rm -f conftest$ac_exeext
   7091  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7092  1.1  christos   (eval $ac_link) 2>&5
   7093  1.1  christos   ac_status=$?
   7094  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7095  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7096  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7097  1.1  christos   (eval $ac_try) 2>&5
   7098  1.1  christos   ac_status=$?
   7099  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7100  1.1  christos   (exit $ac_status); }; }; then
   7101  1.1  christos   ac_cv_func_fork_works=yes
   7102  1.1  christos else
   7103  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   7104  1.1  christos echo "$as_me: failed program was:" >&5
   7105  1.1  christos cat conftest.$ac_ext >&5
   7106  1.1  christos ( exit $ac_status )
   7107  1.1  christos ac_cv_func_fork_works=no
   7108  1.1  christos fi
   7109  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7110  1.1  christos fi
   7111  1.1  christos fi
   7112  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
   7113  1.1  christos echo "${ECHO_T}$ac_cv_func_fork_works" >&6
   7114  1.1  christos 
   7115  1.1  christos fi
   7116  1.1  christos if test "x$ac_cv_func_fork_works" = xcross; then
   7117  1.1  christos   case $host in
   7118  1.1  christos     *-*-amigaos* | *-*-msdosdjgpp*)
   7119  1.1  christos       # Override, as these systems have only a dummy fork() stub
   7120  1.1  christos       ac_cv_func_fork_works=no
   7121  1.1  christos       ;;
   7122  1.1  christos     *)
   7123  1.1  christos       ac_cv_func_fork_works=yes
   7124  1.1  christos       ;;
   7125  1.1  christos   esac
   7126  1.1  christos   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   7127  1.1  christos echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   7128  1.1  christos fi
   7129  1.1  christos ac_cv_func_vfork_works=$ac_cv_func_vfork
   7130  1.1  christos if test "x$ac_cv_func_vfork" = xyes; then
   7131  1.1  christos   echo "$as_me:$LINENO: checking for working vfork" >&5
   7132  1.1  christos echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
   7133  1.1  christos if test "${ac_cv_func_vfork_works+set}" = set; then
   7134  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7135  1.1  christos else
   7136  1.1  christos   if test "$cross_compiling" = yes; then
   7137  1.1  christos   ac_cv_func_vfork_works=cross
   7138  1.1  christos else
   7139  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7140  1.1  christos #line $LINENO "configure"
   7141  1.1  christos #include "confdefs.h"
   7142  1.1  christos /* Thanks to Paul Eggert for this test.  */
   7143  1.1  christos #include <stdio.h>
   7144  1.1  christos #include <sys/types.h>
   7145  1.1  christos #include <sys/stat.h>
   7146  1.1  christos #if HAVE_UNISTD_H
   7147  1.1  christos # include <unistd.h>
   7148  1.1  christos #endif
   7149  1.1  christos #if HAVE_VFORK_H
   7150  1.1  christos # include <vfork.h>
   7151  1.1  christos #endif
   7152  1.1  christos /* On some sparc systems, changes by the child to local and incoming
   7153  1.1  christos    argument registers are propagated back to the parent.  The compiler
   7154  1.1  christos    is told about this with #include <vfork.h>, but some compilers
   7155  1.1  christos    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   7156  1.1  christos    static variable whose address is put into a register that is
   7157  1.1  christos    clobbered by the vfork.  */
   7158  1.1  christos static
   7159  1.1  christos #ifdef __cplusplus
   7160  1.1  christos sparc_address_test (int arg)
   7161  1.1  christos # else
   7162  1.1  christos sparc_address_test (arg) int arg;
   7163  1.1  christos #endif
   7164  1.1  christos {
   7165  1.1  christos   static pid_t child;
   7166  1.1  christos   if (!child) {
   7167  1.1  christos     child = vfork ();
   7168  1.1  christos     if (child < 0) {
   7169  1.1  christos       perror ("vfork");
   7170  1.1  christos       _exit(2);
   7171  1.1  christos     }
   7172  1.1  christos     if (!child) {
   7173  1.1  christos       arg = getpid();
   7174  1.1  christos       write(-1, "", 0);
   7175  1.1  christos       _exit (arg);
   7176  1.1  christos     }
   7177  1.1  christos   }
   7178  1.1  christos }
   7179  1.1  christos 
   7180  1.1  christos int
   7181  1.1  christos main ()
   7182  1.1  christos {
   7183  1.1  christos   pid_t parent = getpid ();
   7184  1.1  christos   pid_t child;
   7185  1.1  christos 
   7186  1.1  christos   sparc_address_test ();
   7187  1.1  christos 
   7188  1.1  christos   child = vfork ();
   7189  1.1  christos 
   7190  1.1  christos   if (child == 0) {
   7191  1.1  christos     /* Here is another test for sparc vfork register problems.  This
   7192  1.1  christos        test uses lots of local variables, at least as many local
   7193  1.1  christos        variables as main has allocated so far including compiler
   7194  1.1  christos        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   7195  1.1  christos        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   7196  1.1  christos        reuse the register of parent for one of the local variables,
   7197  1.1  christos        since it will think that parent can't possibly be used any more
   7198  1.1  christos        in this routine.  Assigning to the local variable will thus
   7199  1.1  christos        munge parent in the parent process.  */
   7200  1.1  christos     pid_t
   7201  1.1  christos       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   7202  1.1  christos       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   7203  1.1  christos     /* Convince the compiler that p..p7 are live; otherwise, it might
   7204  1.1  christos        use the same hardware register for all 8 local variables.  */
   7205  1.1  christos     if (p != p1 || p != p2 || p != p3 || p != p4
   7206  1.1  christos 	|| p != p5 || p != p6 || p != p7)
   7207  1.1  christos       _exit(1);
   7208  1.1  christos 
   7209  1.1  christos     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   7210  1.1  christos        from child file descriptors.  If the child closes a descriptor
   7211  1.1  christos        before it execs or exits, this munges the parent's descriptor
   7212  1.1  christos        as well.  Test for this by closing stdout in the child.  */
   7213  1.1  christos     _exit(close(fileno(stdout)) != 0);
   7214  1.1  christos   } else {
   7215  1.1  christos     int status;
   7216  1.1  christos     struct stat st;
   7217  1.1  christos 
   7218  1.1  christos     while (wait(&status) != child)
   7219  1.1  christos       ;
   7220  1.1  christos     exit(
   7221  1.1  christos 	 /* Was there some problem with vforking?  */
   7222  1.1  christos 	 child < 0
   7223  1.1  christos 
   7224  1.1  christos 	 /* Did the child fail?  (This shouldn't happen.)  */
   7225  1.1  christos 	 || status
   7226  1.1  christos 
   7227  1.1  christos 	 /* Did the vfork/compiler bug occur?  */
   7228  1.1  christos 	 || parent != getpid()
   7229  1.1  christos 
   7230  1.1  christos 	 /* Did the file descriptor bug occur?  */
   7231  1.1  christos 	 || fstat(fileno(stdout), &st) != 0
   7232  1.1  christos 	 );
   7233  1.1  christos   }
   7234  1.1  christos }
   7235  1.1  christos _ACEOF
   7236  1.1  christos rm -f conftest$ac_exeext
   7237  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7238  1.1  christos   (eval $ac_link) 2>&5
   7239  1.1  christos   ac_status=$?
   7240  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7241  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7242  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7243  1.1  christos   (eval $ac_try) 2>&5
   7244  1.1  christos   ac_status=$?
   7245  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7246  1.1  christos   (exit $ac_status); }; }; then
   7247  1.1  christos   ac_cv_func_vfork_works=yes
   7248  1.1  christos else
   7249  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   7250  1.1  christos echo "$as_me: failed program was:" >&5
   7251  1.1  christos cat conftest.$ac_ext >&5
   7252  1.1  christos ( exit $ac_status )
   7253  1.1  christos ac_cv_func_vfork_works=no
   7254  1.1  christos fi
   7255  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7256  1.1  christos fi
   7257  1.1  christos fi
   7258  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
   7259  1.1  christos echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
   7260  1.1  christos 
   7261  1.1  christos fi;
   7262  1.1  christos if test "x$ac_cv_func_fork_works" = xcross; then
   7263  1.1  christos   ac_cv_func_vfork_works=ac_cv_func_vfork
   7264  1.1  christos   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   7265  1.1  christos echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   7266  1.1  christos fi
   7267  1.1  christos 
   7268  1.1  christos if test "x$ac_cv_func_vfork_works" = xyes; then
   7269  1.1  christos 
   7270  1.1  christos cat >>confdefs.h <<\_ACEOF
   7271  1.1  christos #define HAVE_WORKING_VFORK 1
   7272  1.1  christos _ACEOF
   7273  1.1  christos 
   7274  1.1  christos else
   7275  1.1  christos 
   7276  1.1  christos cat >>confdefs.h <<\_ACEOF
   7277  1.1  christos #define vfork fork
   7278  1.1  christos _ACEOF
   7279  1.1  christos 
   7280  1.1  christos fi
   7281  1.1  christos if test "x$ac_cv_func_fork_works" = xyes; then
   7282  1.1  christos 
   7283  1.1  christos cat >>confdefs.h <<\_ACEOF
   7284  1.1  christos #define HAVE_WORKING_FORK 1
   7285  1.1  christos _ACEOF
   7286  1.1  christos 
   7287  1.1  christos fi
   7288  1.1  christos 
   7289  1.1  christos 
   7290  1.1  christos for ac_func in vprintf
   7291  1.1  christos do
   7292  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7293  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   7294  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   7295  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   7296  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7297  1.1  christos else
   7298  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7299  1.1  christos #line $LINENO "configure"
   7300  1.1  christos #include "confdefs.h"
   7301  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7302  1.1  christos     which can conflict with char $ac_func (); below.  */
   7303  1.1  christos #include <assert.h>
   7304  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   7305  1.1  christos #ifdef __cplusplus
   7306  1.1  christos extern "C"
   7307  1.1  christos #endif
   7308  1.1  christos /* We use char because int might match the return type of a gcc2
   7309  1.1  christos    builtin and then its argument prototype would still apply.  */
   7310  1.1  christos char $ac_func ();
   7311  1.1  christos char (*f) ();
   7312  1.1  christos 
   7313  1.1  christos #ifdef F77_DUMMY_MAIN
   7314  1.1  christos #  ifdef __cplusplus
   7315  1.1  christos      extern "C"
   7316  1.1  christos #  endif
   7317  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7318  1.1  christos #endif
   7319  1.1  christos int
   7320  1.1  christos main ()
   7321  1.1  christos {
   7322  1.1  christos /* The GNU C library defines this for functions which it implements
   7323  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7324  1.1  christos     something starting with __ and the normal name is an alias.  */
   7325  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   7326  1.1  christos choke me
   7327  1.1  christos #else
   7328  1.1  christos f = $ac_func;
   7329  1.1  christos #endif
   7330  1.1  christos 
   7331  1.1  christos   ;
   7332  1.1  christos   return 0;
   7333  1.1  christos }
   7334  1.1  christos _ACEOF
   7335  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7336  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7337  1.1  christos   (eval $ac_link) 2>&5
   7338  1.1  christos   ac_status=$?
   7339  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7340  1.1  christos   (exit $ac_status); } &&
   7341  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   7342  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7343  1.1  christos   (eval $ac_try) 2>&5
   7344  1.1  christos   ac_status=$?
   7345  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7346  1.1  christos   (exit $ac_status); }; }; then
   7347  1.1  christos   eval "$as_ac_var=yes"
   7348  1.1  christos else
   7349  1.1  christos   echo "$as_me: failed program was:" >&5
   7350  1.1  christos cat conftest.$ac_ext >&5
   7351  1.1  christos eval "$as_ac_var=no"
   7352  1.1  christos fi
   7353  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7354  1.1  christos fi
   7355  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   7356  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   7357  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   7358  1.1  christos   cat >>confdefs.h <<_ACEOF
   7359  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7360  1.1  christos _ACEOF
   7361  1.1  christos 
   7362  1.1  christos echo "$as_me:$LINENO: checking for _doprnt" >&5
   7363  1.1  christos echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
   7364  1.1  christos if test "${ac_cv_func__doprnt+set}" = set; then
   7365  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7366  1.1  christos else
   7367  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7368  1.1  christos #line $LINENO "configure"
   7369  1.1  christos #include "confdefs.h"
   7370  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7371  1.1  christos     which can conflict with char _doprnt (); below.  */
   7372  1.1  christos #include <assert.h>
   7373  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   7374  1.1  christos #ifdef __cplusplus
   7375  1.1  christos extern "C"
   7376  1.1  christos #endif
   7377  1.1  christos /* We use char because int might match the return type of a gcc2
   7378  1.1  christos    builtin and then its argument prototype would still apply.  */
   7379  1.1  christos char _doprnt ();
   7380  1.1  christos char (*f) ();
   7381  1.1  christos 
   7382  1.1  christos #ifdef F77_DUMMY_MAIN
   7383  1.1  christos #  ifdef __cplusplus
   7384  1.1  christos      extern "C"
   7385  1.1  christos #  endif
   7386  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7387  1.1  christos #endif
   7388  1.1  christos int
   7389  1.1  christos main ()
   7390  1.1  christos {
   7391  1.1  christos /* The GNU C library defines this for functions which it implements
   7392  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7393  1.1  christos     something starting with __ and the normal name is an alias.  */
   7394  1.1  christos #if defined (__stub__doprnt) || defined (__stub____doprnt)
   7395  1.1  christos choke me
   7396  1.1  christos #else
   7397  1.1  christos f = _doprnt;
   7398  1.1  christos #endif
   7399  1.1  christos 
   7400  1.1  christos   ;
   7401  1.1  christos   return 0;
   7402  1.1  christos }
   7403  1.1  christos _ACEOF
   7404  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7405  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7406  1.1  christos   (eval $ac_link) 2>&5
   7407  1.1  christos   ac_status=$?
   7408  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7409  1.1  christos   (exit $ac_status); } &&
   7410  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   7411  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7412  1.1  christos   (eval $ac_try) 2>&5
   7413  1.1  christos   ac_status=$?
   7414  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7415  1.1  christos   (exit $ac_status); }; }; then
   7416  1.1  christos   ac_cv_func__doprnt=yes
   7417  1.1  christos else
   7418  1.1  christos   echo "$as_me: failed program was:" >&5
   7419  1.1  christos cat conftest.$ac_ext >&5
   7420  1.1  christos ac_cv_func__doprnt=no
   7421  1.1  christos fi
   7422  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7423  1.1  christos fi
   7424  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
   7425  1.1  christos echo "${ECHO_T}$ac_cv_func__doprnt" >&6
   7426  1.1  christos if test $ac_cv_func__doprnt = yes; then
   7427  1.1  christos 
   7428  1.1  christos cat >>confdefs.h <<\_ACEOF
   7429  1.1  christos #define HAVE_DOPRNT 1
   7430  1.1  christos _ACEOF
   7431  1.1  christos 
   7432  1.1  christos fi
   7433  1.1  christos 
   7434  1.1  christos fi
   7435  1.1  christos done
   7436  1.1  christos 
   7437  1.1  christos 
   7438  1.1  christos echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
   7439  1.1  christos echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
   7440  1.1  christos if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
   7441  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7442  1.1  christos else
   7443  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7444  1.1  christos #line $LINENO "configure"
   7445  1.1  christos #include "confdefs.h"
   7446  1.1  christos $ac_includes_default
   7447  1.1  christos #ifdef F77_DUMMY_MAIN
   7448  1.1  christos #  ifdef __cplusplus
   7449  1.1  christos      extern "C"
   7450  1.1  christos #  endif
   7451  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7452  1.1  christos #endif
   7453  1.1  christos int
   7454  1.1  christos main ()
   7455  1.1  christos {
   7456  1.1  christos #ifndef clearerr_unlocked
   7457  1.1  christos   char *p = (char *) clearerr_unlocked;
   7458  1.1  christos #endif
   7459  1.1  christos 
   7460  1.1  christos   ;
   7461  1.1  christos   return 0;
   7462  1.1  christos }
   7463  1.1  christos _ACEOF
   7464  1.1  christos rm -f conftest.$ac_objext
   7465  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7466  1.1  christos   (eval $ac_compile) 2>&5
   7467  1.1  christos   ac_status=$?
   7468  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7469  1.1  christos   (exit $ac_status); } &&
   7470  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7471  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7472  1.1  christos   (eval $ac_try) 2>&5
   7473  1.1  christos   ac_status=$?
   7474  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7475  1.1  christos   (exit $ac_status); }; }; then
   7476  1.1  christos   ac_cv_have_decl_clearerr_unlocked=yes
   7477  1.1  christos else
   7478  1.1  christos   echo "$as_me: failed program was:" >&5
   7479  1.1  christos cat conftest.$ac_ext >&5
   7480  1.1  christos ac_cv_have_decl_clearerr_unlocked=no
   7481  1.1  christos fi
   7482  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7483  1.1  christos fi
   7484  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
   7485  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
   7486  1.1  christos if test $ac_cv_have_decl_clearerr_unlocked = yes; then
   7487  1.1  christos 
   7488  1.1  christos cat >>confdefs.h <<_ACEOF
   7489  1.1  christos #define HAVE_DECL_CLEARERR_UNLOCKED 1
   7490  1.1  christos _ACEOF
   7491  1.1  christos 
   7492  1.1  christos 
   7493  1.1  christos else
   7494  1.1  christos   cat >>confdefs.h <<_ACEOF
   7495  1.1  christos #define HAVE_DECL_CLEARERR_UNLOCKED 0
   7496  1.1  christos _ACEOF
   7497  1.1  christos 
   7498  1.1  christos 
   7499  1.1  christos fi
   7500  1.1  christos echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
   7501  1.1  christos echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
   7502  1.1  christos if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
   7503  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7504  1.1  christos else
   7505  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7506  1.1  christos #line $LINENO "configure"
   7507  1.1  christos #include "confdefs.h"
   7508  1.1  christos $ac_includes_default
   7509  1.1  christos #ifdef F77_DUMMY_MAIN
   7510  1.1  christos #  ifdef __cplusplus
   7511  1.1  christos      extern "C"
   7512  1.1  christos #  endif
   7513  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7514  1.1  christos #endif
   7515  1.1  christos int
   7516  1.1  christos main ()
   7517  1.1  christos {
   7518  1.1  christos #ifndef feof_unlocked
   7519  1.1  christos   char *p = (char *) feof_unlocked;
   7520  1.1  christos #endif
   7521  1.1  christos 
   7522  1.1  christos   ;
   7523  1.1  christos   return 0;
   7524  1.1  christos }
   7525  1.1  christos _ACEOF
   7526  1.1  christos rm -f conftest.$ac_objext
   7527  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7528  1.1  christos   (eval $ac_compile) 2>&5
   7529  1.1  christos   ac_status=$?
   7530  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7531  1.1  christos   (exit $ac_status); } &&
   7532  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7533  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7534  1.1  christos   (eval $ac_try) 2>&5
   7535  1.1  christos   ac_status=$?
   7536  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7537  1.1  christos   (exit $ac_status); }; }; then
   7538  1.1  christos   ac_cv_have_decl_feof_unlocked=yes
   7539  1.1  christos else
   7540  1.1  christos   echo "$as_me: failed program was:" >&5
   7541  1.1  christos cat conftest.$ac_ext >&5
   7542  1.1  christos ac_cv_have_decl_feof_unlocked=no
   7543  1.1  christos fi
   7544  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7545  1.1  christos fi
   7546  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
   7547  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
   7548  1.1  christos if test $ac_cv_have_decl_feof_unlocked = yes; then
   7549  1.1  christos 
   7550  1.1  christos cat >>confdefs.h <<_ACEOF
   7551  1.1  christos #define HAVE_DECL_FEOF_UNLOCKED 1
   7552  1.1  christos _ACEOF
   7553  1.1  christos 
   7554  1.1  christos 
   7555  1.1  christos else
   7556  1.1  christos   cat >>confdefs.h <<_ACEOF
   7557  1.1  christos #define HAVE_DECL_FEOF_UNLOCKED 0
   7558  1.1  christos _ACEOF
   7559  1.1  christos 
   7560  1.1  christos 
   7561  1.1  christos fi
   7562  1.1  christos echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
   7563  1.1  christos echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
   7564  1.1  christos if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
   7565  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7566  1.1  christos else
   7567  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7568  1.1  christos #line $LINENO "configure"
   7569  1.1  christos #include "confdefs.h"
   7570  1.1  christos $ac_includes_default
   7571  1.1  christos #ifdef F77_DUMMY_MAIN
   7572  1.1  christos #  ifdef __cplusplus
   7573  1.1  christos      extern "C"
   7574  1.1  christos #  endif
   7575  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7576  1.1  christos #endif
   7577  1.1  christos int
   7578  1.1  christos main ()
   7579  1.1  christos {
   7580  1.1  christos #ifndef ferror_unlocked
   7581  1.1  christos   char *p = (char *) ferror_unlocked;
   7582  1.1  christos #endif
   7583  1.1  christos 
   7584  1.1  christos   ;
   7585  1.1  christos   return 0;
   7586  1.1  christos }
   7587  1.1  christos _ACEOF
   7588  1.1  christos rm -f conftest.$ac_objext
   7589  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7590  1.1  christos   (eval $ac_compile) 2>&5
   7591  1.1  christos   ac_status=$?
   7592  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7593  1.1  christos   (exit $ac_status); } &&
   7594  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7595  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7596  1.1  christos   (eval $ac_try) 2>&5
   7597  1.1  christos   ac_status=$?
   7598  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7599  1.1  christos   (exit $ac_status); }; }; then
   7600  1.1  christos   ac_cv_have_decl_ferror_unlocked=yes
   7601  1.1  christos else
   7602  1.1  christos   echo "$as_me: failed program was:" >&5
   7603  1.1  christos cat conftest.$ac_ext >&5
   7604  1.1  christos ac_cv_have_decl_ferror_unlocked=no
   7605  1.1  christos fi
   7606  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7607  1.1  christos fi
   7608  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
   7609  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
   7610  1.1  christos if test $ac_cv_have_decl_ferror_unlocked = yes; then
   7611  1.1  christos 
   7612  1.1  christos cat >>confdefs.h <<_ACEOF
   7613  1.1  christos #define HAVE_DECL_FERROR_UNLOCKED 1
   7614  1.1  christos _ACEOF
   7615  1.1  christos 
   7616  1.1  christos 
   7617  1.1  christos else
   7618  1.1  christos   cat >>confdefs.h <<_ACEOF
   7619  1.1  christos #define HAVE_DECL_FERROR_UNLOCKED 0
   7620  1.1  christos _ACEOF
   7621  1.1  christos 
   7622  1.1  christos 
   7623  1.1  christos fi
   7624  1.1  christos echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
   7625  1.1  christos echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
   7626  1.1  christos if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
   7627  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7628  1.1  christos else
   7629  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7630  1.1  christos #line $LINENO "configure"
   7631  1.1  christos #include "confdefs.h"
   7632  1.1  christos $ac_includes_default
   7633  1.1  christos #ifdef F77_DUMMY_MAIN
   7634  1.1  christos #  ifdef __cplusplus
   7635  1.1  christos      extern "C"
   7636  1.1  christos #  endif
   7637  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7638  1.1  christos #endif
   7639  1.1  christos int
   7640  1.1  christos main ()
   7641  1.1  christos {
   7642  1.1  christos #ifndef fflush_unlocked
   7643  1.1  christos   char *p = (char *) fflush_unlocked;
   7644  1.1  christos #endif
   7645  1.1  christos 
   7646  1.1  christos   ;
   7647  1.1  christos   return 0;
   7648  1.1  christos }
   7649  1.1  christos _ACEOF
   7650  1.1  christos rm -f conftest.$ac_objext
   7651  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7652  1.1  christos   (eval $ac_compile) 2>&5
   7653  1.1  christos   ac_status=$?
   7654  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7655  1.1  christos   (exit $ac_status); } &&
   7656  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7657  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7658  1.1  christos   (eval $ac_try) 2>&5
   7659  1.1  christos   ac_status=$?
   7660  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7661  1.1  christos   (exit $ac_status); }; }; then
   7662  1.1  christos   ac_cv_have_decl_fflush_unlocked=yes
   7663  1.1  christos else
   7664  1.1  christos   echo "$as_me: failed program was:" >&5
   7665  1.1  christos cat conftest.$ac_ext >&5
   7666  1.1  christos ac_cv_have_decl_fflush_unlocked=no
   7667  1.1  christos fi
   7668  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7669  1.1  christos fi
   7670  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
   7671  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
   7672  1.1  christos if test $ac_cv_have_decl_fflush_unlocked = yes; then
   7673  1.1  christos 
   7674  1.1  christos cat >>confdefs.h <<_ACEOF
   7675  1.1  christos #define HAVE_DECL_FFLUSH_UNLOCKED 1
   7676  1.1  christos _ACEOF
   7677  1.1  christos 
   7678  1.1  christos 
   7679  1.1  christos else
   7680  1.1  christos   cat >>confdefs.h <<_ACEOF
   7681  1.1  christos #define HAVE_DECL_FFLUSH_UNLOCKED 0
   7682  1.1  christos _ACEOF
   7683  1.1  christos 
   7684  1.1  christos 
   7685  1.1  christos fi
   7686  1.1  christos echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
   7687  1.1  christos echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
   7688  1.1  christos if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
   7689  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7690  1.1  christos else
   7691  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7692  1.1  christos #line $LINENO "configure"
   7693  1.1  christos #include "confdefs.h"
   7694  1.1  christos $ac_includes_default
   7695  1.1  christos #ifdef F77_DUMMY_MAIN
   7696  1.1  christos #  ifdef __cplusplus
   7697  1.1  christos      extern "C"
   7698  1.1  christos #  endif
   7699  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7700  1.1  christos #endif
   7701  1.1  christos int
   7702  1.1  christos main ()
   7703  1.1  christos {
   7704  1.1  christos #ifndef fgets_unlocked
   7705  1.1  christos   char *p = (char *) fgets_unlocked;
   7706  1.1  christos #endif
   7707  1.1  christos 
   7708  1.1  christos   ;
   7709  1.1  christos   return 0;
   7710  1.1  christos }
   7711  1.1  christos _ACEOF
   7712  1.1  christos rm -f conftest.$ac_objext
   7713  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7714  1.1  christos   (eval $ac_compile) 2>&5
   7715  1.1  christos   ac_status=$?
   7716  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7717  1.1  christos   (exit $ac_status); } &&
   7718  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7719  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7720  1.1  christos   (eval $ac_try) 2>&5
   7721  1.1  christos   ac_status=$?
   7722  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7723  1.1  christos   (exit $ac_status); }; }; then
   7724  1.1  christos   ac_cv_have_decl_fgets_unlocked=yes
   7725  1.1  christos else
   7726  1.1  christos   echo "$as_me: failed program was:" >&5
   7727  1.1  christos cat conftest.$ac_ext >&5
   7728  1.1  christos ac_cv_have_decl_fgets_unlocked=no
   7729  1.1  christos fi
   7730  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7731  1.1  christos fi
   7732  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
   7733  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
   7734  1.1  christos if test $ac_cv_have_decl_fgets_unlocked = yes; then
   7735  1.1  christos 
   7736  1.1  christos cat >>confdefs.h <<_ACEOF
   7737  1.1  christos #define HAVE_DECL_FGETS_UNLOCKED 1
   7738  1.1  christos _ACEOF
   7739  1.1  christos 
   7740  1.1  christos 
   7741  1.1  christos else
   7742  1.1  christos   cat >>confdefs.h <<_ACEOF
   7743  1.1  christos #define HAVE_DECL_FGETS_UNLOCKED 0
   7744  1.1  christos _ACEOF
   7745  1.1  christos 
   7746  1.1  christos 
   7747  1.1  christos fi
   7748  1.1  christos echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
   7749  1.1  christos echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
   7750  1.1  christos if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
   7751  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7752  1.1  christos else
   7753  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7754  1.1  christos #line $LINENO "configure"
   7755  1.1  christos #include "confdefs.h"
   7756  1.1  christos $ac_includes_default
   7757  1.1  christos #ifdef F77_DUMMY_MAIN
   7758  1.1  christos #  ifdef __cplusplus
   7759  1.1  christos      extern "C"
   7760  1.1  christos #  endif
   7761  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7762  1.1  christos #endif
   7763  1.1  christos int
   7764  1.1  christos main ()
   7765  1.1  christos {
   7766  1.1  christos #ifndef fputc_unlocked
   7767  1.1  christos   char *p = (char *) fputc_unlocked;
   7768  1.1  christos #endif
   7769  1.1  christos 
   7770  1.1  christos   ;
   7771  1.1  christos   return 0;
   7772  1.1  christos }
   7773  1.1  christos _ACEOF
   7774  1.1  christos rm -f conftest.$ac_objext
   7775  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7776  1.1  christos   (eval $ac_compile) 2>&5
   7777  1.1  christos   ac_status=$?
   7778  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7779  1.1  christos   (exit $ac_status); } &&
   7780  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7781  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7782  1.1  christos   (eval $ac_try) 2>&5
   7783  1.1  christos   ac_status=$?
   7784  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7785  1.1  christos   (exit $ac_status); }; }; then
   7786  1.1  christos   ac_cv_have_decl_fputc_unlocked=yes
   7787  1.1  christos else
   7788  1.1  christos   echo "$as_me: failed program was:" >&5
   7789  1.1  christos cat conftest.$ac_ext >&5
   7790  1.1  christos ac_cv_have_decl_fputc_unlocked=no
   7791  1.1  christos fi
   7792  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7793  1.1  christos fi
   7794  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
   7795  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
   7796  1.1  christos if test $ac_cv_have_decl_fputc_unlocked = yes; then
   7797  1.1  christos 
   7798  1.1  christos cat >>confdefs.h <<_ACEOF
   7799  1.1  christos #define HAVE_DECL_FPUTC_UNLOCKED 1
   7800  1.1  christos _ACEOF
   7801  1.1  christos 
   7802  1.1  christos 
   7803  1.1  christos else
   7804  1.1  christos   cat >>confdefs.h <<_ACEOF
   7805  1.1  christos #define HAVE_DECL_FPUTC_UNLOCKED 0
   7806  1.1  christos _ACEOF
   7807  1.1  christos 
   7808  1.1  christos 
   7809  1.1  christos fi
   7810  1.1  christos echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
   7811  1.1  christos echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
   7812  1.1  christos if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
   7813  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7814  1.1  christos else
   7815  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7816  1.1  christos #line $LINENO "configure"
   7817  1.1  christos #include "confdefs.h"
   7818  1.1  christos $ac_includes_default
   7819  1.1  christos #ifdef F77_DUMMY_MAIN
   7820  1.1  christos #  ifdef __cplusplus
   7821  1.1  christos      extern "C"
   7822  1.1  christos #  endif
   7823  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7824  1.1  christos #endif
   7825  1.1  christos int
   7826  1.1  christos main ()
   7827  1.1  christos {
   7828  1.1  christos #ifndef fputs_unlocked
   7829  1.1  christos   char *p = (char *) fputs_unlocked;
   7830  1.1  christos #endif
   7831  1.1  christos 
   7832  1.1  christos   ;
   7833  1.1  christos   return 0;
   7834  1.1  christos }
   7835  1.1  christos _ACEOF
   7836  1.1  christos rm -f conftest.$ac_objext
   7837  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7838  1.1  christos   (eval $ac_compile) 2>&5
   7839  1.1  christos   ac_status=$?
   7840  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7841  1.1  christos   (exit $ac_status); } &&
   7842  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7843  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7844  1.1  christos   (eval $ac_try) 2>&5
   7845  1.1  christos   ac_status=$?
   7846  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7847  1.1  christos   (exit $ac_status); }; }; then
   7848  1.1  christos   ac_cv_have_decl_fputs_unlocked=yes
   7849  1.1  christos else
   7850  1.1  christos   echo "$as_me: failed program was:" >&5
   7851  1.1  christos cat conftest.$ac_ext >&5
   7852  1.1  christos ac_cv_have_decl_fputs_unlocked=no
   7853  1.1  christos fi
   7854  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7855  1.1  christos fi
   7856  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
   7857  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
   7858  1.1  christos if test $ac_cv_have_decl_fputs_unlocked = yes; then
   7859  1.1  christos 
   7860  1.1  christos cat >>confdefs.h <<_ACEOF
   7861  1.1  christos #define HAVE_DECL_FPUTS_UNLOCKED 1
   7862  1.1  christos _ACEOF
   7863  1.1  christos 
   7864  1.1  christos 
   7865  1.1  christos else
   7866  1.1  christos   cat >>confdefs.h <<_ACEOF
   7867  1.1  christos #define HAVE_DECL_FPUTS_UNLOCKED 0
   7868  1.1  christos _ACEOF
   7869  1.1  christos 
   7870  1.1  christos 
   7871  1.1  christos fi
   7872  1.1  christos echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
   7873  1.1  christos echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
   7874  1.1  christos if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
   7875  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7876  1.1  christos else
   7877  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7878  1.1  christos #line $LINENO "configure"
   7879  1.1  christos #include "confdefs.h"
   7880  1.1  christos $ac_includes_default
   7881  1.1  christos #ifdef F77_DUMMY_MAIN
   7882  1.1  christos #  ifdef __cplusplus
   7883  1.1  christos      extern "C"
   7884  1.1  christos #  endif
   7885  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7886  1.1  christos #endif
   7887  1.1  christos int
   7888  1.1  christos main ()
   7889  1.1  christos {
   7890  1.1  christos #ifndef fread_unlocked
   7891  1.1  christos   char *p = (char *) fread_unlocked;
   7892  1.1  christos #endif
   7893  1.1  christos 
   7894  1.1  christos   ;
   7895  1.1  christos   return 0;
   7896  1.1  christos }
   7897  1.1  christos _ACEOF
   7898  1.1  christos rm -f conftest.$ac_objext
   7899  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7900  1.1  christos   (eval $ac_compile) 2>&5
   7901  1.1  christos   ac_status=$?
   7902  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7903  1.1  christos   (exit $ac_status); } &&
   7904  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7905  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7906  1.1  christos   (eval $ac_try) 2>&5
   7907  1.1  christos   ac_status=$?
   7908  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7909  1.1  christos   (exit $ac_status); }; }; then
   7910  1.1  christos   ac_cv_have_decl_fread_unlocked=yes
   7911  1.1  christos else
   7912  1.1  christos   echo "$as_me: failed program was:" >&5
   7913  1.1  christos cat conftest.$ac_ext >&5
   7914  1.1  christos ac_cv_have_decl_fread_unlocked=no
   7915  1.1  christos fi
   7916  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7917  1.1  christos fi
   7918  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
   7919  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
   7920  1.1  christos if test $ac_cv_have_decl_fread_unlocked = yes; then
   7921  1.1  christos 
   7922  1.1  christos cat >>confdefs.h <<_ACEOF
   7923  1.1  christos #define HAVE_DECL_FREAD_UNLOCKED 1
   7924  1.1  christos _ACEOF
   7925  1.1  christos 
   7926  1.1  christos 
   7927  1.1  christos else
   7928  1.1  christos   cat >>confdefs.h <<_ACEOF
   7929  1.1  christos #define HAVE_DECL_FREAD_UNLOCKED 0
   7930  1.1  christos _ACEOF
   7931  1.1  christos 
   7932  1.1  christos 
   7933  1.1  christos fi
   7934  1.1  christos echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
   7935  1.1  christos echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
   7936  1.1  christos if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
   7937  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7938  1.1  christos else
   7939  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7940  1.1  christos #line $LINENO "configure"
   7941  1.1  christos #include "confdefs.h"
   7942  1.1  christos $ac_includes_default
   7943  1.1  christos #ifdef F77_DUMMY_MAIN
   7944  1.1  christos #  ifdef __cplusplus
   7945  1.1  christos      extern "C"
   7946  1.1  christos #  endif
   7947  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   7948  1.1  christos #endif
   7949  1.1  christos int
   7950  1.1  christos main ()
   7951  1.1  christos {
   7952  1.1  christos #ifndef fwrite_unlocked
   7953  1.1  christos   char *p = (char *) fwrite_unlocked;
   7954  1.1  christos #endif
   7955  1.1  christos 
   7956  1.1  christos   ;
   7957  1.1  christos   return 0;
   7958  1.1  christos }
   7959  1.1  christos _ACEOF
   7960  1.1  christos rm -f conftest.$ac_objext
   7961  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7962  1.1  christos   (eval $ac_compile) 2>&5
   7963  1.1  christos   ac_status=$?
   7964  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7965  1.1  christos   (exit $ac_status); } &&
   7966  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   7967  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7968  1.1  christos   (eval $ac_try) 2>&5
   7969  1.1  christos   ac_status=$?
   7970  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7971  1.1  christos   (exit $ac_status); }; }; then
   7972  1.1  christos   ac_cv_have_decl_fwrite_unlocked=yes
   7973  1.1  christos else
   7974  1.1  christos   echo "$as_me: failed program was:" >&5
   7975  1.1  christos cat conftest.$ac_ext >&5
   7976  1.1  christos ac_cv_have_decl_fwrite_unlocked=no
   7977  1.1  christos fi
   7978  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   7979  1.1  christos fi
   7980  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
   7981  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
   7982  1.1  christos if test $ac_cv_have_decl_fwrite_unlocked = yes; then
   7983  1.1  christos 
   7984  1.1  christos cat >>confdefs.h <<_ACEOF
   7985  1.1  christos #define HAVE_DECL_FWRITE_UNLOCKED 1
   7986  1.1  christos _ACEOF
   7987  1.1  christos 
   7988  1.1  christos 
   7989  1.1  christos else
   7990  1.1  christos   cat >>confdefs.h <<_ACEOF
   7991  1.1  christos #define HAVE_DECL_FWRITE_UNLOCKED 0
   7992  1.1  christos _ACEOF
   7993  1.1  christos 
   7994  1.1  christos 
   7995  1.1  christos fi
   7996  1.1  christos echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
   7997  1.1  christos echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
   7998  1.1  christos if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
   7999  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8000  1.1  christos else
   8001  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8002  1.1  christos #line $LINENO "configure"
   8003  1.1  christos #include "confdefs.h"
   8004  1.1  christos $ac_includes_default
   8005  1.1  christos #ifdef F77_DUMMY_MAIN
   8006  1.1  christos #  ifdef __cplusplus
   8007  1.1  christos      extern "C"
   8008  1.1  christos #  endif
   8009  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8010  1.1  christos #endif
   8011  1.1  christos int
   8012  1.1  christos main ()
   8013  1.1  christos {
   8014  1.1  christos #ifndef getc_unlocked
   8015  1.1  christos   char *p = (char *) getc_unlocked;
   8016  1.1  christos #endif
   8017  1.1  christos 
   8018  1.1  christos   ;
   8019  1.1  christos   return 0;
   8020  1.1  christos }
   8021  1.1  christos _ACEOF
   8022  1.1  christos rm -f conftest.$ac_objext
   8023  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8024  1.1  christos   (eval $ac_compile) 2>&5
   8025  1.1  christos   ac_status=$?
   8026  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8027  1.1  christos   (exit $ac_status); } &&
   8028  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8029  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8030  1.1  christos   (eval $ac_try) 2>&5
   8031  1.1  christos   ac_status=$?
   8032  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8033  1.1  christos   (exit $ac_status); }; }; then
   8034  1.1  christos   ac_cv_have_decl_getc_unlocked=yes
   8035  1.1  christos else
   8036  1.1  christos   echo "$as_me: failed program was:" >&5
   8037  1.1  christos cat conftest.$ac_ext >&5
   8038  1.1  christos ac_cv_have_decl_getc_unlocked=no
   8039  1.1  christos fi
   8040  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8041  1.1  christos fi
   8042  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
   8043  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
   8044  1.1  christos if test $ac_cv_have_decl_getc_unlocked = yes; then
   8045  1.1  christos 
   8046  1.1  christos cat >>confdefs.h <<_ACEOF
   8047  1.1  christos #define HAVE_DECL_GETC_UNLOCKED 1
   8048  1.1  christos _ACEOF
   8049  1.1  christos 
   8050  1.1  christos 
   8051  1.1  christos else
   8052  1.1  christos   cat >>confdefs.h <<_ACEOF
   8053  1.1  christos #define HAVE_DECL_GETC_UNLOCKED 0
   8054  1.1  christos _ACEOF
   8055  1.1  christos 
   8056  1.1  christos 
   8057  1.1  christos fi
   8058  1.1  christos echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
   8059  1.1  christos echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
   8060  1.1  christos if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
   8061  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8062  1.1  christos else
   8063  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8064  1.1  christos #line $LINENO "configure"
   8065  1.1  christos #include "confdefs.h"
   8066  1.1  christos $ac_includes_default
   8067  1.1  christos #ifdef F77_DUMMY_MAIN
   8068  1.1  christos #  ifdef __cplusplus
   8069  1.1  christos      extern "C"
   8070  1.1  christos #  endif
   8071  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8072  1.1  christos #endif
   8073  1.1  christos int
   8074  1.1  christos main ()
   8075  1.1  christos {
   8076  1.1  christos #ifndef getchar_unlocked
   8077  1.1  christos   char *p = (char *) getchar_unlocked;
   8078  1.1  christos #endif
   8079  1.1  christos 
   8080  1.1  christos   ;
   8081  1.1  christos   return 0;
   8082  1.1  christos }
   8083  1.1  christos _ACEOF
   8084  1.1  christos rm -f conftest.$ac_objext
   8085  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8086  1.1  christos   (eval $ac_compile) 2>&5
   8087  1.1  christos   ac_status=$?
   8088  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8089  1.1  christos   (exit $ac_status); } &&
   8090  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8091  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8092  1.1  christos   (eval $ac_try) 2>&5
   8093  1.1  christos   ac_status=$?
   8094  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8095  1.1  christos   (exit $ac_status); }; }; then
   8096  1.1  christos   ac_cv_have_decl_getchar_unlocked=yes
   8097  1.1  christos else
   8098  1.1  christos   echo "$as_me: failed program was:" >&5
   8099  1.1  christos cat conftest.$ac_ext >&5
   8100  1.1  christos ac_cv_have_decl_getchar_unlocked=no
   8101  1.1  christos fi
   8102  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8103  1.1  christos fi
   8104  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
   8105  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
   8106  1.1  christos if test $ac_cv_have_decl_getchar_unlocked = yes; then
   8107  1.1  christos 
   8108  1.1  christos cat >>confdefs.h <<_ACEOF
   8109  1.1  christos #define HAVE_DECL_GETCHAR_UNLOCKED 1
   8110  1.1  christos _ACEOF
   8111  1.1  christos 
   8112  1.1  christos 
   8113  1.1  christos else
   8114  1.1  christos   cat >>confdefs.h <<_ACEOF
   8115  1.1  christos #define HAVE_DECL_GETCHAR_UNLOCKED 0
   8116  1.1  christos _ACEOF
   8117  1.1  christos 
   8118  1.1  christos 
   8119  1.1  christos fi
   8120  1.1  christos echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
   8121  1.1  christos echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
   8122  1.1  christos if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
   8123  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8124  1.1  christos else
   8125  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8126  1.1  christos #line $LINENO "configure"
   8127  1.1  christos #include "confdefs.h"
   8128  1.1  christos $ac_includes_default
   8129  1.1  christos #ifdef F77_DUMMY_MAIN
   8130  1.1  christos #  ifdef __cplusplus
   8131  1.1  christos      extern "C"
   8132  1.1  christos #  endif
   8133  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8134  1.1  christos #endif
   8135  1.1  christos int
   8136  1.1  christos main ()
   8137  1.1  christos {
   8138  1.1  christos #ifndef putc_unlocked
   8139  1.1  christos   char *p = (char *) putc_unlocked;
   8140  1.1  christos #endif
   8141  1.1  christos 
   8142  1.1  christos   ;
   8143  1.1  christos   return 0;
   8144  1.1  christos }
   8145  1.1  christos _ACEOF
   8146  1.1  christos rm -f conftest.$ac_objext
   8147  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8148  1.1  christos   (eval $ac_compile) 2>&5
   8149  1.1  christos   ac_status=$?
   8150  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8151  1.1  christos   (exit $ac_status); } &&
   8152  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8153  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8154  1.1  christos   (eval $ac_try) 2>&5
   8155  1.1  christos   ac_status=$?
   8156  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8157  1.1  christos   (exit $ac_status); }; }; then
   8158  1.1  christos   ac_cv_have_decl_putc_unlocked=yes
   8159  1.1  christos else
   8160  1.1  christos   echo "$as_me: failed program was:" >&5
   8161  1.1  christos cat conftest.$ac_ext >&5
   8162  1.1  christos ac_cv_have_decl_putc_unlocked=no
   8163  1.1  christos fi
   8164  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8165  1.1  christos fi
   8166  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
   8167  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
   8168  1.1  christos if test $ac_cv_have_decl_putc_unlocked = yes; then
   8169  1.1  christos 
   8170  1.1  christos cat >>confdefs.h <<_ACEOF
   8171  1.1  christos #define HAVE_DECL_PUTC_UNLOCKED 1
   8172  1.1  christos _ACEOF
   8173  1.1  christos 
   8174  1.1  christos 
   8175  1.1  christos else
   8176  1.1  christos   cat >>confdefs.h <<_ACEOF
   8177  1.1  christos #define HAVE_DECL_PUTC_UNLOCKED 0
   8178  1.1  christos _ACEOF
   8179  1.1  christos 
   8180  1.1  christos 
   8181  1.1  christos fi
   8182  1.1  christos echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
   8183  1.1  christos echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
   8184  1.1  christos if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
   8185  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8186  1.1  christos else
   8187  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8188  1.1  christos #line $LINENO "configure"
   8189  1.1  christos #include "confdefs.h"
   8190  1.1  christos $ac_includes_default
   8191  1.1  christos #ifdef F77_DUMMY_MAIN
   8192  1.1  christos #  ifdef __cplusplus
   8193  1.1  christos      extern "C"
   8194  1.1  christos #  endif
   8195  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8196  1.1  christos #endif
   8197  1.1  christos int
   8198  1.1  christos main ()
   8199  1.1  christos {
   8200  1.1  christos #ifndef putchar_unlocked
   8201  1.1  christos   char *p = (char *) putchar_unlocked;
   8202  1.1  christos #endif
   8203  1.1  christos 
   8204  1.1  christos   ;
   8205  1.1  christos   return 0;
   8206  1.1  christos }
   8207  1.1  christos _ACEOF
   8208  1.1  christos rm -f conftest.$ac_objext
   8209  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8210  1.1  christos   (eval $ac_compile) 2>&5
   8211  1.1  christos   ac_status=$?
   8212  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8213  1.1  christos   (exit $ac_status); } &&
   8214  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8215  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8216  1.1  christos   (eval $ac_try) 2>&5
   8217  1.1  christos   ac_status=$?
   8218  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8219  1.1  christos   (exit $ac_status); }; }; then
   8220  1.1  christos   ac_cv_have_decl_putchar_unlocked=yes
   8221  1.1  christos else
   8222  1.1  christos   echo "$as_me: failed program was:" >&5
   8223  1.1  christos cat conftest.$ac_ext >&5
   8224  1.1  christos ac_cv_have_decl_putchar_unlocked=no
   8225  1.1  christos fi
   8226  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8227  1.1  christos fi
   8228  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
   8229  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
   8230  1.1  christos if test $ac_cv_have_decl_putchar_unlocked = yes; then
   8231  1.1  christos 
   8232  1.1  christos cat >>confdefs.h <<_ACEOF
   8233  1.1  christos #define HAVE_DECL_PUTCHAR_UNLOCKED 1
   8234  1.1  christos _ACEOF
   8235  1.1  christos 
   8236  1.1  christos 
   8237  1.1  christos else
   8238  1.1  christos   cat >>confdefs.h <<_ACEOF
   8239  1.1  christos #define HAVE_DECL_PUTCHAR_UNLOCKED 0
   8240  1.1  christos _ACEOF
   8241  1.1  christos 
   8242  1.1  christos 
   8243  1.1  christos fi
   8244  1.1  christos 
   8245  1.1  christos 
   8246  1.1  christos echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   8247  1.1  christos echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   8248  1.1  christos if test "${ac_cv_header_time+set}" = set; then
   8249  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8250  1.1  christos else
   8251  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8252  1.1  christos #line $LINENO "configure"
   8253  1.1  christos #include "confdefs.h"
   8254  1.1  christos #include <sys/types.h>
   8255  1.1  christos #include <sys/time.h>
   8256  1.1  christos #include <time.h>
   8257  1.1  christos 
   8258  1.1  christos #ifdef F77_DUMMY_MAIN
   8259  1.1  christos #  ifdef __cplusplus
   8260  1.1  christos      extern "C"
   8261  1.1  christos #  endif
   8262  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8263  1.1  christos #endif
   8264  1.1  christos int
   8265  1.1  christos main ()
   8266  1.1  christos {
   8267  1.1  christos if ((struct tm *) 0)
   8268  1.1  christos return 0;
   8269  1.1  christos   ;
   8270  1.1  christos   return 0;
   8271  1.1  christos }
   8272  1.1  christos _ACEOF
   8273  1.1  christos rm -f conftest.$ac_objext
   8274  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8275  1.1  christos   (eval $ac_compile) 2>&5
   8276  1.1  christos   ac_status=$?
   8277  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8278  1.1  christos   (exit $ac_status); } &&
   8279  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8280  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8281  1.1  christos   (eval $ac_try) 2>&5
   8282  1.1  christos   ac_status=$?
   8283  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8284  1.1  christos   (exit $ac_status); }; }; then
   8285  1.1  christos   ac_cv_header_time=yes
   8286  1.1  christos else
   8287  1.1  christos   echo "$as_me: failed program was:" >&5
   8288  1.1  christos cat conftest.$ac_ext >&5
   8289  1.1  christos ac_cv_header_time=no
   8290  1.1  christos fi
   8291  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8292  1.1  christos fi
   8293  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   8294  1.1  christos echo "${ECHO_T}$ac_cv_header_time" >&6
   8295  1.1  christos if test $ac_cv_header_time = yes; then
   8296  1.1  christos 
   8297  1.1  christos cat >>confdefs.h <<\_ACEOF
   8298  1.1  christos #define TIME_WITH_SYS_TIME 1
   8299  1.1  christos _ACEOF
   8300  1.1  christos 
   8301  1.1  christos fi
   8302  1.1  christos 
   8303  1.1  christos echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
   8304  1.1  christos echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
   8305  1.1  christos if test "${ac_cv_struct_tm+set}" = set; then
   8306  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8307  1.1  christos else
   8308  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8309  1.1  christos #line $LINENO "configure"
   8310  1.1  christos #include "confdefs.h"
   8311  1.1  christos #include <sys/types.h>
   8312  1.1  christos #include <time.h>
   8313  1.1  christos 
   8314  1.1  christos #ifdef F77_DUMMY_MAIN
   8315  1.1  christos #  ifdef __cplusplus
   8316  1.1  christos      extern "C"
   8317  1.1  christos #  endif
   8318  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8319  1.1  christos #endif
   8320  1.1  christos int
   8321  1.1  christos main ()
   8322  1.1  christos {
   8323  1.1  christos struct tm *tp; tp->tm_sec;
   8324  1.1  christos   ;
   8325  1.1  christos   return 0;
   8326  1.1  christos }
   8327  1.1  christos _ACEOF
   8328  1.1  christos rm -f conftest.$ac_objext
   8329  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8330  1.1  christos   (eval $ac_compile) 2>&5
   8331  1.1  christos   ac_status=$?
   8332  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8333  1.1  christos   (exit $ac_status); } &&
   8334  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8335  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8336  1.1  christos   (eval $ac_try) 2>&5
   8337  1.1  christos   ac_status=$?
   8338  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8339  1.1  christos   (exit $ac_status); }; }; then
   8340  1.1  christos   ac_cv_struct_tm=time.h
   8341  1.1  christos else
   8342  1.1  christos   echo "$as_me: failed program was:" >&5
   8343  1.1  christos cat conftest.$ac_ext >&5
   8344  1.1  christos ac_cv_struct_tm=sys/time.h
   8345  1.1  christos fi
   8346  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8347  1.1  christos fi
   8348  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
   8349  1.1  christos echo "${ECHO_T}$ac_cv_struct_tm" >&6
   8350  1.1  christos if test $ac_cv_struct_tm = sys/time.h; then
   8351  1.1  christos 
   8352  1.1  christos cat >>confdefs.h <<\_ACEOF
   8353  1.1  christos #define TM_IN_SYS_TIME 1
   8354  1.1  christos _ACEOF
   8355  1.1  christos 
   8356  1.1  christos fi
   8357  1.1  christos 
   8358  1.1  christos 
   8359  1.1  christos 
   8360  1.1  christos 
   8361  1.1  christos 
   8362  1.1  christos for ac_func in localtime_r strftime
   8363  1.1  christos do
   8364  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8365  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   8366  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8367  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   8368  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8369  1.1  christos else
   8370  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8371  1.1  christos #line $LINENO "configure"
   8372  1.1  christos #include "confdefs.h"
   8373  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8374  1.1  christos     which can conflict with char $ac_func (); below.  */
   8375  1.1  christos #include <assert.h>
   8376  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   8377  1.1  christos #ifdef __cplusplus
   8378  1.1  christos extern "C"
   8379  1.1  christos #endif
   8380  1.1  christos /* We use char because int might match the return type of a gcc2
   8381  1.1  christos    builtin and then its argument prototype would still apply.  */
   8382  1.1  christos char $ac_func ();
   8383  1.1  christos char (*f) ();
   8384  1.1  christos 
   8385  1.1  christos #ifdef F77_DUMMY_MAIN
   8386  1.1  christos #  ifdef __cplusplus
   8387  1.1  christos      extern "C"
   8388  1.1  christos #  endif
   8389  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8390  1.1  christos #endif
   8391  1.1  christos int
   8392  1.1  christos main ()
   8393  1.1  christos {
   8394  1.1  christos /* The GNU C library defines this for functions which it implements
   8395  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8396  1.1  christos     something starting with __ and the normal name is an alias.  */
   8397  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8398  1.1  christos choke me
   8399  1.1  christos #else
   8400  1.1  christos f = $ac_func;
   8401  1.1  christos #endif
   8402  1.1  christos 
   8403  1.1  christos   ;
   8404  1.1  christos   return 0;
   8405  1.1  christos }
   8406  1.1  christos _ACEOF
   8407  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8408  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8409  1.1  christos   (eval $ac_link) 2>&5
   8410  1.1  christos   ac_status=$?
   8411  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8412  1.1  christos   (exit $ac_status); } &&
   8413  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   8414  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8415  1.1  christos   (eval $ac_try) 2>&5
   8416  1.1  christos   ac_status=$?
   8417  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8418  1.1  christos   (exit $ac_status); }; }; then
   8419  1.1  christos   eval "$as_ac_var=yes"
   8420  1.1  christos else
   8421  1.1  christos   echo "$as_me: failed program was:" >&5
   8422  1.1  christos cat conftest.$ac_ext >&5
   8423  1.1  christos eval "$as_ac_var=no"
   8424  1.1  christos fi
   8425  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8426  1.1  christos fi
   8427  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8428  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8429  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8430  1.1  christos   cat >>confdefs.h <<_ACEOF
   8431  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8432  1.1  christos _ACEOF
   8433  1.1  christos 
   8434  1.1  christos fi
   8435  1.1  christos done
   8436  1.1  christos 
   8437  1.1  christos 
   8438  1.1  christos 
   8439  1.1  christos for ac_header in limits.h
   8440  1.1  christos do
   8441  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8442  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8443  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   8444  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8445  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8446  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8447  1.1  christos fi
   8448  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8449  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8450  1.1  christos else
   8451  1.1  christos   # Is the header compilable?
   8452  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8453  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   8454  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8455  1.1  christos #line $LINENO "configure"
   8456  1.1  christos #include "confdefs.h"
   8457  1.1  christos $ac_includes_default
   8458  1.1  christos #include <$ac_header>
   8459  1.1  christos _ACEOF
   8460  1.1  christos rm -f conftest.$ac_objext
   8461  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8462  1.1  christos   (eval $ac_compile) 2>&5
   8463  1.1  christos   ac_status=$?
   8464  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8465  1.1  christos   (exit $ac_status); } &&
   8466  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8467  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8468  1.1  christos   (eval $ac_try) 2>&5
   8469  1.1  christos   ac_status=$?
   8470  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8471  1.1  christos   (exit $ac_status); }; }; then
   8472  1.1  christos   ac_header_compiler=yes
   8473  1.1  christos else
   8474  1.1  christos   echo "$as_me: failed program was:" >&5
   8475  1.1  christos cat conftest.$ac_ext >&5
   8476  1.1  christos ac_header_compiler=no
   8477  1.1  christos fi
   8478  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8479  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8480  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   8481  1.1  christos 
   8482  1.1  christos # Is the header present?
   8483  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8484  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   8485  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8486  1.1  christos #line $LINENO "configure"
   8487  1.1  christos #include "confdefs.h"
   8488  1.1  christos #include <$ac_header>
   8489  1.1  christos _ACEOF
   8490  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8491  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8492  1.1  christos   ac_status=$?
   8493  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   8494  1.1  christos   rm -f conftest.er1
   8495  1.1  christos   cat conftest.err >&5
   8496  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8497  1.1  christos   (exit $ac_status); } >/dev/null; then
   8498  1.1  christos   if test -s conftest.err; then
   8499  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   8500  1.1  christos   else
   8501  1.1  christos     ac_cpp_err=
   8502  1.1  christos   fi
   8503  1.1  christos else
   8504  1.1  christos   ac_cpp_err=yes
   8505  1.1  christos fi
   8506  1.1  christos if test -z "$ac_cpp_err"; then
   8507  1.1  christos   ac_header_preproc=yes
   8508  1.1  christos else
   8509  1.1  christos   echo "$as_me: failed program was:" >&5
   8510  1.1  christos   cat conftest.$ac_ext >&5
   8511  1.1  christos   ac_header_preproc=no
   8512  1.1  christos fi
   8513  1.1  christos rm -f conftest.err conftest.$ac_ext
   8514  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8515  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   8516  1.1  christos 
   8517  1.1  christos # So?  What about this header?
   8518  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   8519  1.1  christos   yes:no )
   8520  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8521  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8522  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8523  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   8524  1.1  christos   no:yes )
   8525  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8526  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8527  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   8528  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   8529  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8530  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   8531  1.1  christos esac
   8532  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   8533  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8534  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8535  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8536  1.1  christos else
   8537  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   8538  1.1  christos fi
   8539  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8540  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8541  1.1  christos 
   8542  1.1  christos fi
   8543  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8544  1.1  christos   cat >>confdefs.h <<_ACEOF
   8545  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8546  1.1  christos _ACEOF
   8547  1.1  christos 
   8548  1.1  christos fi
   8549  1.1  christos 
   8550  1.1  christos done
   8551  1.1  christos 
   8552  1.1  christos 
   8553  1.1  christos 
   8554  1.1  christos 
   8555  1.1  christos 
   8556  1.1  christos 
   8557  1.1  christos for ac_func in bcopy tzset mempcpy memcpy memset
   8558  1.1  christos do
   8559  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8560  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   8561  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8562  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   8563  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8564  1.1  christos else
   8565  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8566  1.1  christos #line $LINENO "configure"
   8567  1.1  christos #include "confdefs.h"
   8568  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8569  1.1  christos     which can conflict with char $ac_func (); below.  */
   8570  1.1  christos #include <assert.h>
   8571  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   8572  1.1  christos #ifdef __cplusplus
   8573  1.1  christos extern "C"
   8574  1.1  christos #endif
   8575  1.1  christos /* We use char because int might match the return type of a gcc2
   8576  1.1  christos    builtin and then its argument prototype would still apply.  */
   8577  1.1  christos char $ac_func ();
   8578  1.1  christos char (*f) ();
   8579  1.1  christos 
   8580  1.1  christos #ifdef F77_DUMMY_MAIN
   8581  1.1  christos #  ifdef __cplusplus
   8582  1.1  christos      extern "C"
   8583  1.1  christos #  endif
   8584  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8585  1.1  christos #endif
   8586  1.1  christos int
   8587  1.1  christos main ()
   8588  1.1  christos {
   8589  1.1  christos /* The GNU C library defines this for functions which it implements
   8590  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8591  1.1  christos     something starting with __ and the normal name is an alias.  */
   8592  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8593  1.1  christos choke me
   8594  1.1  christos #else
   8595  1.1  christos f = $ac_func;
   8596  1.1  christos #endif
   8597  1.1  christos 
   8598  1.1  christos   ;
   8599  1.1  christos   return 0;
   8600  1.1  christos }
   8601  1.1  christos _ACEOF
   8602  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8603  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8604  1.1  christos   (eval $ac_link) 2>&5
   8605  1.1  christos   ac_status=$?
   8606  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8607  1.1  christos   (exit $ac_status); } &&
   8608  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   8609  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8610  1.1  christos   (eval $ac_try) 2>&5
   8611  1.1  christos   ac_status=$?
   8612  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8613  1.1  christos   (exit $ac_status); }; }; then
   8614  1.1  christos   eval "$as_ac_var=yes"
   8615  1.1  christos else
   8616  1.1  christos   echo "$as_me: failed program was:" >&5
   8617  1.1  christos cat conftest.$ac_ext >&5
   8618  1.1  christos eval "$as_ac_var=no"
   8619  1.1  christos fi
   8620  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8621  1.1  christos fi
   8622  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8623  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8624  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8625  1.1  christos   cat >>confdefs.h <<_ACEOF
   8626  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8627  1.1  christos _ACEOF
   8628  1.1  christos 
   8629  1.1  christos fi
   8630  1.1  christos done
   8631  1.1  christos 
   8632  1.1  christos 
   8633  1.1  christos  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
   8634  1.1  christos  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
   8635  1.1  christos echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
   8636  1.1  christos if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
   8637  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8638  1.1  christos else
   8639  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8640  1.1  christos #line $LINENO "configure"
   8641  1.1  christos #include "confdefs.h"
   8642  1.1  christos #include <sys/types.h>
   8643  1.1  christos #include <$ac_cv_struct_tm>
   8644  1.1  christos 
   8645  1.1  christos 
   8646  1.1  christos #ifdef F77_DUMMY_MAIN
   8647  1.1  christos #  ifdef __cplusplus
   8648  1.1  christos      extern "C"
   8649  1.1  christos #  endif
   8650  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8651  1.1  christos #endif
   8652  1.1  christos int
   8653  1.1  christos main ()
   8654  1.1  christos {
   8655  1.1  christos static struct tm ac_aggr;
   8656  1.1  christos if (ac_aggr.tm_zone)
   8657  1.1  christos return 0;
   8658  1.1  christos   ;
   8659  1.1  christos   return 0;
   8660  1.1  christos }
   8661  1.1  christos _ACEOF
   8662  1.1  christos rm -f conftest.$ac_objext
   8663  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8664  1.1  christos   (eval $ac_compile) 2>&5
   8665  1.1  christos   ac_status=$?
   8666  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8667  1.1  christos   (exit $ac_status); } &&
   8668  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8669  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8670  1.1  christos   (eval $ac_try) 2>&5
   8671  1.1  christos   ac_status=$?
   8672  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8673  1.1  christos   (exit $ac_status); }; }; then
   8674  1.1  christos   ac_cv_member_struct_tm_tm_zone=yes
   8675  1.1  christos else
   8676  1.1  christos   echo "$as_me: failed program was:" >&5
   8677  1.1  christos cat conftest.$ac_ext >&5
   8678  1.1  christos ac_cv_member_struct_tm_tm_zone=no
   8679  1.1  christos fi
   8680  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8681  1.1  christos fi
   8682  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
   8683  1.1  christos echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
   8684  1.1  christos if test $ac_cv_member_struct_tm_tm_zone = yes; then
   8685  1.1  christos 
   8686  1.1  christos cat >>confdefs.h <<_ACEOF
   8687  1.1  christos #define HAVE_STRUCT_TM_TM_ZONE 1
   8688  1.1  christos _ACEOF
   8689  1.1  christos 
   8690  1.1  christos 
   8691  1.1  christos fi
   8692  1.1  christos 
   8693  1.1  christos if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   8694  1.1  christos 
   8695  1.1  christos cat >>confdefs.h <<\_ACEOF
   8696  1.1  christos #define HAVE_TM_ZONE 1
   8697  1.1  christos _ACEOF
   8698  1.1  christos 
   8699  1.1  christos else
   8700  1.1  christos   echo "$as_me:$LINENO: checking for tzname" >&5
   8701  1.1  christos echo $ECHO_N "checking for tzname... $ECHO_C" >&6
   8702  1.1  christos if test "${ac_cv_var_tzname+set}" = set; then
   8703  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8704  1.1  christos else
   8705  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8706  1.1  christos #line $LINENO "configure"
   8707  1.1  christos #include "confdefs.h"
   8708  1.1  christos #include <time.h>
   8709  1.1  christos #ifndef tzname /* For SGI.  */
   8710  1.1  christos extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
   8711  1.1  christos #endif
   8712  1.1  christos 
   8713  1.1  christos #ifdef F77_DUMMY_MAIN
   8714  1.1  christos #  ifdef __cplusplus
   8715  1.1  christos      extern "C"
   8716  1.1  christos #  endif
   8717  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8718  1.1  christos #endif
   8719  1.1  christos int
   8720  1.1  christos main ()
   8721  1.1  christos {
   8722  1.1  christos atoi(*tzname);
   8723  1.1  christos   ;
   8724  1.1  christos   return 0;
   8725  1.1  christos }
   8726  1.1  christos _ACEOF
   8727  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8728  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8729  1.1  christos   (eval $ac_link) 2>&5
   8730  1.1  christos   ac_status=$?
   8731  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8732  1.1  christos   (exit $ac_status); } &&
   8733  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   8734  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8735  1.1  christos   (eval $ac_try) 2>&5
   8736  1.1  christos   ac_status=$?
   8737  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8738  1.1  christos   (exit $ac_status); }; }; then
   8739  1.1  christos   ac_cv_var_tzname=yes
   8740  1.1  christos else
   8741  1.1  christos   echo "$as_me: failed program was:" >&5
   8742  1.1  christos cat conftest.$ac_ext >&5
   8743  1.1  christos ac_cv_var_tzname=no
   8744  1.1  christos fi
   8745  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8746  1.1  christos fi
   8747  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
   8748  1.1  christos echo "${ECHO_T}$ac_cv_var_tzname" >&6
   8749  1.1  christos   if test $ac_cv_var_tzname = yes; then
   8750  1.1  christos 
   8751  1.1  christos cat >>confdefs.h <<\_ACEOF
   8752  1.1  christos #define HAVE_TZNAME 1
   8753  1.1  christos _ACEOF
   8754  1.1  christos 
   8755  1.1  christos   fi
   8756  1.1  christos fi
   8757  1.1  christos 
   8758  1.1  christos 
   8759  1.1  christos 
   8760  1.1  christos 
   8761  1.1  christos for ac_func in mblen mbrlen
   8762  1.1  christos do
   8763  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8764  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   8765  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8766  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   8767  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8768  1.1  christos else
   8769  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8770  1.1  christos #line $LINENO "configure"
   8771  1.1  christos #include "confdefs.h"
   8772  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8773  1.1  christos     which can conflict with char $ac_func (); below.  */
   8774  1.1  christos #include <assert.h>
   8775  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   8776  1.1  christos #ifdef __cplusplus
   8777  1.1  christos extern "C"
   8778  1.1  christos #endif
   8779  1.1  christos /* We use char because int might match the return type of a gcc2
   8780  1.1  christos    builtin and then its argument prototype would still apply.  */
   8781  1.1  christos char $ac_func ();
   8782  1.1  christos char (*f) ();
   8783  1.1  christos 
   8784  1.1  christos #ifdef F77_DUMMY_MAIN
   8785  1.1  christos #  ifdef __cplusplus
   8786  1.1  christos      extern "C"
   8787  1.1  christos #  endif
   8788  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8789  1.1  christos #endif
   8790  1.1  christos int
   8791  1.1  christos main ()
   8792  1.1  christos {
   8793  1.1  christos /* The GNU C library defines this for functions which it implements
   8794  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8795  1.1  christos     something starting with __ and the normal name is an alias.  */
   8796  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8797  1.1  christos choke me
   8798  1.1  christos #else
   8799  1.1  christos f = $ac_func;
   8800  1.1  christos #endif
   8801  1.1  christos 
   8802  1.1  christos   ;
   8803  1.1  christos   return 0;
   8804  1.1  christos }
   8805  1.1  christos _ACEOF
   8806  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8807  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8808  1.1  christos   (eval $ac_link) 2>&5
   8809  1.1  christos   ac_status=$?
   8810  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8811  1.1  christos   (exit $ac_status); } &&
   8812  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   8813  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8814  1.1  christos   (eval $ac_try) 2>&5
   8815  1.1  christos   ac_status=$?
   8816  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8817  1.1  christos   (exit $ac_status); }; }; then
   8818  1.1  christos   eval "$as_ac_var=yes"
   8819  1.1  christos else
   8820  1.1  christos   echo "$as_me: failed program was:" >&5
   8821  1.1  christos cat conftest.$ac_ext >&5
   8822  1.1  christos eval "$as_ac_var=no"
   8823  1.1  christos fi
   8824  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8825  1.1  christos fi
   8826  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8827  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8828  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8829  1.1  christos   cat >>confdefs.h <<_ACEOF
   8830  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8831  1.1  christos _ACEOF
   8832  1.1  christos 
   8833  1.1  christos fi
   8834  1.1  christos done
   8835  1.1  christos 
   8836  1.1  christos 
   8837  1.1  christos  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
   8838  1.1  christos echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
   8839  1.1  christos if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
   8840  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8841  1.1  christos else
   8842  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8843  1.1  christos #line $LINENO "configure"
   8844  1.1  christos #include "confdefs.h"
   8845  1.1  christos #include <time.h>
   8846  1.1  christos 
   8847  1.1  christos #ifdef F77_DUMMY_MAIN
   8848  1.1  christos #  ifdef __cplusplus
   8849  1.1  christos      extern "C"
   8850  1.1  christos #  endif
   8851  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   8852  1.1  christos #endif
   8853  1.1  christos int
   8854  1.1  christos main ()
   8855  1.1  christos {
   8856  1.1  christos static struct tm ac_aggr;
   8857  1.1  christos if (ac_aggr.tm_gmtoff)
   8858  1.1  christos return 0;
   8859  1.1  christos   ;
   8860  1.1  christos   return 0;
   8861  1.1  christos }
   8862  1.1  christos _ACEOF
   8863  1.1  christos rm -f conftest.$ac_objext
   8864  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8865  1.1  christos   (eval $ac_compile) 2>&5
   8866  1.1  christos   ac_status=$?
   8867  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8868  1.1  christos   (exit $ac_status); } &&
   8869  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8870  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8871  1.1  christos   (eval $ac_try) 2>&5
   8872  1.1  christos   ac_status=$?
   8873  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8874  1.1  christos   (exit $ac_status); }; }; then
   8875  1.1  christos   ac_cv_member_struct_tm_tm_gmtoff=yes
   8876  1.1  christos else
   8877  1.1  christos   echo "$as_me: failed program was:" >&5
   8878  1.1  christos cat conftest.$ac_ext >&5
   8879  1.1  christos ac_cv_member_struct_tm_tm_gmtoff=no
   8880  1.1  christos fi
   8881  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8882  1.1  christos fi
   8883  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
   8884  1.1  christos echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
   8885  1.1  christos if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
   8886  1.1  christos 
   8887  1.1  christos cat >>confdefs.h <<\_ACEOF
   8888  1.1  christos #define HAVE_TM_GMTOFF 1
   8889  1.1  christos _ACEOF
   8890  1.1  christos 
   8891  1.1  christos fi
   8892  1.1  christos 
   8893  1.1  christos 
   8894  1.1  christos 
   8895  1.1  christos 
   8896  1.1  christos for ac_header in sys/time.h
   8897  1.1  christos do
   8898  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8899  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8900  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   8901  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8902  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8903  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8904  1.1  christos fi
   8905  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8906  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8907  1.1  christos else
   8908  1.1  christos   # Is the header compilable?
   8909  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8910  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   8911  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8912  1.1  christos #line $LINENO "configure"
   8913  1.1  christos #include "confdefs.h"
   8914  1.1  christos $ac_includes_default
   8915  1.1  christos #include <$ac_header>
   8916  1.1  christos _ACEOF
   8917  1.1  christos rm -f conftest.$ac_objext
   8918  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8919  1.1  christos   (eval $ac_compile) 2>&5
   8920  1.1  christos   ac_status=$?
   8921  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8922  1.1  christos   (exit $ac_status); } &&
   8923  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   8924  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8925  1.1  christos   (eval $ac_try) 2>&5
   8926  1.1  christos   ac_status=$?
   8927  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8928  1.1  christos   (exit $ac_status); }; }; then
   8929  1.1  christos   ac_header_compiler=yes
   8930  1.1  christos else
   8931  1.1  christos   echo "$as_me: failed program was:" >&5
   8932  1.1  christos cat conftest.$ac_ext >&5
   8933  1.1  christos ac_header_compiler=no
   8934  1.1  christos fi
   8935  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   8936  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8937  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   8938  1.1  christos 
   8939  1.1  christos # Is the header present?
   8940  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8941  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   8942  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8943  1.1  christos #line $LINENO "configure"
   8944  1.1  christos #include "confdefs.h"
   8945  1.1  christos #include <$ac_header>
   8946  1.1  christos _ACEOF
   8947  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8948  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8949  1.1  christos   ac_status=$?
   8950  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   8951  1.1  christos   rm -f conftest.er1
   8952  1.1  christos   cat conftest.err >&5
   8953  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8954  1.1  christos   (exit $ac_status); } >/dev/null; then
   8955  1.1  christos   if test -s conftest.err; then
   8956  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   8957  1.1  christos   else
   8958  1.1  christos     ac_cpp_err=
   8959  1.1  christos   fi
   8960  1.1  christos else
   8961  1.1  christos   ac_cpp_err=yes
   8962  1.1  christos fi
   8963  1.1  christos if test -z "$ac_cpp_err"; then
   8964  1.1  christos   ac_header_preproc=yes
   8965  1.1  christos else
   8966  1.1  christos   echo "$as_me: failed program was:" >&5
   8967  1.1  christos   cat conftest.$ac_ext >&5
   8968  1.1  christos   ac_header_preproc=no
   8969  1.1  christos fi
   8970  1.1  christos rm -f conftest.err conftest.$ac_ext
   8971  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8972  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   8973  1.1  christos 
   8974  1.1  christos # So?  What about this header?
   8975  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   8976  1.1  christos   yes:no )
   8977  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8978  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8979  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8980  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   8981  1.1  christos   no:yes )
   8982  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8983  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8984  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   8985  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   8986  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8987  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   8988  1.1  christos esac
   8989  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   8990  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8991  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8992  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8993  1.1  christos else
   8994  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   8995  1.1  christos fi
   8996  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8997  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8998  1.1  christos 
   8999  1.1  christos fi
   9000  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   9001  1.1  christos   cat >>confdefs.h <<_ACEOF
   9002  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9003  1.1  christos _ACEOF
   9004  1.1  christos 
   9005  1.1  christos fi
   9006  1.1  christos 
   9007  1.1  christos done
   9008  1.1  christos 
   9009  1.1  christos 
   9010  1.1  christos cat >>confdefs.h <<\_ACEOF
   9011  1.1  christos #define my_strftime nstrftime
   9012  1.1  christos _ACEOF
   9013  1.1  christos 
   9014  1.1  christos 
   9015  1.1  christos # No need for AC_FUNC_MEMCMP, since memcmp is used only to test for equality.
   9016  1.1  christos 
   9017  1.1  christos 
   9018  1.1  christos cat >>confdefs.h <<\_ACEOF
   9019  1.1  christos #define HAVE_DONE_WORKING_MALLOC_CHECK 1
   9020  1.1  christos _ACEOF
   9021  1.1  christos 
   9022  1.1  christos 
   9023  1.1  christos  echo "$as_me:$LINENO: checking for working malloc" >&5
   9024  1.1  christos echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
   9025  1.1  christos if test "${jm_cv_func_working_malloc+set}" = set; then
   9026  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9027  1.1  christos else
   9028  1.1  christos   if test "$cross_compiling" = yes; then
   9029  1.1  christos   	 jm_cv_func_working_malloc=no
   9030  1.1  christos else
   9031  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9032  1.1  christos #line $LINENO "configure"
   9033  1.1  christos #include "confdefs.h"
   9034  1.1  christos 
   9035  1.1  christos     char *malloc ();
   9036  1.1  christos     int
   9037  1.1  christos     main ()
   9038  1.1  christos     {
   9039  1.1  christos       exit (malloc (0) ? 0 : 1);
   9040  1.1  christos     }
   9041  1.1  christos 
   9042  1.1  christos _ACEOF
   9043  1.1  christos rm -f conftest$ac_exeext
   9044  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9045  1.1  christos   (eval $ac_link) 2>&5
   9046  1.1  christos   ac_status=$?
   9047  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9048  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9049  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9050  1.1  christos   (eval $ac_try) 2>&5
   9051  1.1  christos   ac_status=$?
   9052  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9053  1.1  christos   (exit $ac_status); }; }; then
   9054  1.1  christos   jm_cv_func_working_malloc=yes
   9055  1.1  christos else
   9056  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   9057  1.1  christos echo "$as_me: failed program was:" >&5
   9058  1.1  christos cat conftest.$ac_ext >&5
   9059  1.1  christos ( exit $ac_status )
   9060  1.1  christos jm_cv_func_working_malloc=no
   9061  1.1  christos fi
   9062  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9063  1.1  christos fi
   9064  1.1  christos 
   9065  1.1  christos fi
   9066  1.1  christos echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
   9067  1.1  christos echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
   9068  1.1  christos   if test $jm_cv_func_working_malloc = no; then
   9069  1.1  christos     LIBOBJS="$LIBOBJS malloc.$ac_objext"
   9070  1.1  christos 
   9071  1.1  christos cat >>confdefs.h <<\_ACEOF
   9072  1.1  christos #define malloc rpl_malloc
   9073  1.1  christos _ACEOF
   9074  1.1  christos 
   9075  1.1  christos   fi
   9076  1.1  christos 
   9077  1.1  christos 
   9078  1.1  christos 
   9079  1.1  christos cat >>confdefs.h <<\_ACEOF
   9080  1.1  christos #define HAVE_DONE_WORKING_REALLOC_CHECK 1
   9081  1.1  christos _ACEOF
   9082  1.1  christos 
   9083  1.1  christos 
   9084  1.1  christos  echo "$as_me:$LINENO: checking for working realloc" >&5
   9085  1.1  christos echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
   9086  1.1  christos if test "${jm_cv_func_working_realloc+set}" = set; then
   9087  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9088  1.1  christos else
   9089  1.1  christos   if test "$cross_compiling" = yes; then
   9090  1.1  christos   	 jm_cv_func_working_realloc=no
   9091  1.1  christos else
   9092  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9093  1.1  christos #line $LINENO "configure"
   9094  1.1  christos #include "confdefs.h"
   9095  1.1  christos 
   9096  1.1  christos     char *realloc ();
   9097  1.1  christos     int
   9098  1.1  christos     main ()
   9099  1.1  christos     {
   9100  1.1  christos       exit (realloc (0, 0) ? 0 : 1);
   9101  1.1  christos     }
   9102  1.1  christos 
   9103  1.1  christos _ACEOF
   9104  1.1  christos rm -f conftest$ac_exeext
   9105  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9106  1.1  christos   (eval $ac_link) 2>&5
   9107  1.1  christos   ac_status=$?
   9108  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9109  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9110  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9111  1.1  christos   (eval $ac_try) 2>&5
   9112  1.1  christos   ac_status=$?
   9113  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9114  1.1  christos   (exit $ac_status); }; }; then
   9115  1.1  christos   jm_cv_func_working_realloc=yes
   9116  1.1  christos else
   9117  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   9118  1.1  christos echo "$as_me: failed program was:" >&5
   9119  1.1  christos cat conftest.$ac_ext >&5
   9120  1.1  christos ( exit $ac_status )
   9121  1.1  christos jm_cv_func_working_realloc=no
   9122  1.1  christos fi
   9123  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9124  1.1  christos fi
   9125  1.1  christos 
   9126  1.1  christos fi
   9127  1.1  christos echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
   9128  1.1  christos echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
   9129  1.1  christos   if test $jm_cv_func_working_realloc = no; then
   9130  1.1  christos     LIBOBJS="$LIBOBJS realloc.$ac_objext"
   9131  1.1  christos 
   9132  1.1  christos cat >>confdefs.h <<\_ACEOF
   9133  1.1  christos #define realloc rpl_realloc
   9134  1.1  christos _ACEOF
   9135  1.1  christos 
   9136  1.1  christos   fi
   9137  1.1  christos 
   9138  1.1  christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   9139  1.1  christos # for constant arguments.  Useless!
   9140  1.1  christos echo "$as_me:$LINENO: checking for working alloca.h" >&5
   9141  1.1  christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
   9142  1.1  christos if test "${ac_cv_working_alloca_h+set}" = set; then
   9143  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9144  1.1  christos else
   9145  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9146  1.1  christos #line $LINENO "configure"
   9147  1.1  christos #include "confdefs.h"
   9148  1.1  christos #include <alloca.h>
   9149  1.1  christos #ifdef F77_DUMMY_MAIN
   9150  1.1  christos #  ifdef __cplusplus
   9151  1.1  christos      extern "C"
   9152  1.1  christos #  endif
   9153  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9154  1.1  christos #endif
   9155  1.1  christos int
   9156  1.1  christos main ()
   9157  1.1  christos {
   9158  1.1  christos char *p = (char *) alloca (2 * sizeof (int));
   9159  1.1  christos   ;
   9160  1.1  christos   return 0;
   9161  1.1  christos }
   9162  1.1  christos _ACEOF
   9163  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9164  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9165  1.1  christos   (eval $ac_link) 2>&5
   9166  1.1  christos   ac_status=$?
   9167  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9168  1.1  christos   (exit $ac_status); } &&
   9169  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   9170  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9171  1.1  christos   (eval $ac_try) 2>&5
   9172  1.1  christos   ac_status=$?
   9173  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9174  1.1  christos   (exit $ac_status); }; }; then
   9175  1.1  christos   ac_cv_working_alloca_h=yes
   9176  1.1  christos else
   9177  1.1  christos   echo "$as_me: failed program was:" >&5
   9178  1.1  christos cat conftest.$ac_ext >&5
   9179  1.1  christos ac_cv_working_alloca_h=no
   9180  1.1  christos fi
   9181  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9182  1.1  christos fi
   9183  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
   9184  1.1  christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
   9185  1.1  christos if test $ac_cv_working_alloca_h = yes; then
   9186  1.1  christos 
   9187  1.1  christos cat >>confdefs.h <<\_ACEOF
   9188  1.1  christos #define HAVE_ALLOCA_H 1
   9189  1.1  christos _ACEOF
   9190  1.1  christos 
   9191  1.1  christos fi
   9192  1.1  christos 
   9193  1.1  christos echo "$as_me:$LINENO: checking for alloca" >&5
   9194  1.1  christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6
   9195  1.1  christos if test "${ac_cv_func_alloca_works+set}" = set; then
   9196  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9197  1.1  christos else
   9198  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9199  1.1  christos #line $LINENO "configure"
   9200  1.1  christos #include "confdefs.h"
   9201  1.1  christos #ifdef __GNUC__
   9202  1.1  christos # define alloca __builtin_alloca
   9203  1.1  christos #else
   9204  1.1  christos # ifdef _MSC_VER
   9205  1.1  christos #  include <malloc.h>
   9206  1.1  christos #  define alloca _alloca
   9207  1.1  christos # else
   9208  1.1  christos #  if HAVE_ALLOCA_H
   9209  1.1  christos #   include <alloca.h>
   9210  1.1  christos #  else
   9211  1.1  christos #   ifdef _AIX
   9212  1.1  christos  #pragma alloca
   9213  1.1  christos #   else
   9214  1.1  christos #    ifndef alloca /* predefined by HP cc +Olibcalls */
   9215  1.1  christos char *alloca ();
   9216  1.1  christos #    endif
   9217  1.1  christos #   endif
   9218  1.1  christos #  endif
   9219  1.1  christos # endif
   9220  1.1  christos #endif
   9221  1.1  christos 
   9222  1.1  christos #ifdef F77_DUMMY_MAIN
   9223  1.1  christos #  ifdef __cplusplus
   9224  1.1  christos      extern "C"
   9225  1.1  christos #  endif
   9226  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9227  1.1  christos #endif
   9228  1.1  christos int
   9229  1.1  christos main ()
   9230  1.1  christos {
   9231  1.1  christos char *p = (char *) alloca (1);
   9232  1.1  christos   ;
   9233  1.1  christos   return 0;
   9234  1.1  christos }
   9235  1.1  christos _ACEOF
   9236  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9237  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9238  1.1  christos   (eval $ac_link) 2>&5
   9239  1.1  christos   ac_status=$?
   9240  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9241  1.1  christos   (exit $ac_status); } &&
   9242  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   9243  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9244  1.1  christos   (eval $ac_try) 2>&5
   9245  1.1  christos   ac_status=$?
   9246  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9247  1.1  christos   (exit $ac_status); }; }; then
   9248  1.1  christos   ac_cv_func_alloca_works=yes
   9249  1.1  christos else
   9250  1.1  christos   echo "$as_me: failed program was:" >&5
   9251  1.1  christos cat conftest.$ac_ext >&5
   9252  1.1  christos ac_cv_func_alloca_works=no
   9253  1.1  christos fi
   9254  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9255  1.1  christos fi
   9256  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
   9257  1.1  christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
   9258  1.1  christos 
   9259  1.1  christos if test $ac_cv_func_alloca_works = yes; then
   9260  1.1  christos 
   9261  1.1  christos cat >>confdefs.h <<\_ACEOF
   9262  1.1  christos #define HAVE_ALLOCA 1
   9263  1.1  christos _ACEOF
   9264  1.1  christos 
   9265  1.1  christos else
   9266  1.1  christos   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   9267  1.1  christos # that cause trouble.  Some versions do not even contain alloca or
   9268  1.1  christos # contain a buggy version.  If you still want to use their alloca,
   9269  1.1  christos # use ar to extract alloca.o from them instead of compiling alloca.c.
   9270  1.1  christos 
   9271  1.1  christos ALLOCA=alloca.$ac_objext
   9272  1.1  christos 
   9273  1.1  christos cat >>confdefs.h <<\_ACEOF
   9274  1.1  christos #define C_ALLOCA 1
   9275  1.1  christos _ACEOF
   9276  1.1  christos 
   9277  1.1  christos 
   9278  1.1  christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
   9279  1.1  christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
   9280  1.1  christos if test "${ac_cv_os_cray+set}" = set; then
   9281  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9282  1.1  christos else
   9283  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9284  1.1  christos #line $LINENO "configure"
   9285  1.1  christos #include "confdefs.h"
   9286  1.1  christos #if defined(CRAY) && ! defined(CRAY2)
   9287  1.1  christos webecray
   9288  1.1  christos #else
   9289  1.1  christos wenotbecray
   9290  1.1  christos #endif
   9291  1.1  christos 
   9292  1.1  christos _ACEOF
   9293  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9294  1.1  christos   egrep "webecray" >/dev/null 2>&1; then
   9295  1.1  christos   ac_cv_os_cray=yes
   9296  1.1  christos else
   9297  1.1  christos   ac_cv_os_cray=no
   9298  1.1  christos fi
   9299  1.1  christos rm -f conftest*
   9300  1.1  christos 
   9301  1.1  christos fi
   9302  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
   9303  1.1  christos echo "${ECHO_T}$ac_cv_os_cray" >&6
   9304  1.1  christos if test $ac_cv_os_cray = yes; then
   9305  1.1  christos   for ac_func in _getb67 GETB67 getb67; do
   9306  1.1  christos     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9307  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   9308  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9309  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   9310  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9311  1.1  christos else
   9312  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9313  1.1  christos #line $LINENO "configure"
   9314  1.1  christos #include "confdefs.h"
   9315  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9316  1.1  christos     which can conflict with char $ac_func (); below.  */
   9317  1.1  christos #include <assert.h>
   9318  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   9319  1.1  christos #ifdef __cplusplus
   9320  1.1  christos extern "C"
   9321  1.1  christos #endif
   9322  1.1  christos /* We use char because int might match the return type of a gcc2
   9323  1.1  christos    builtin and then its argument prototype would still apply.  */
   9324  1.1  christos char $ac_func ();
   9325  1.1  christos char (*f) ();
   9326  1.1  christos 
   9327  1.1  christos #ifdef F77_DUMMY_MAIN
   9328  1.1  christos #  ifdef __cplusplus
   9329  1.1  christos      extern "C"
   9330  1.1  christos #  endif
   9331  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9332  1.1  christos #endif
   9333  1.1  christos int
   9334  1.1  christos main ()
   9335  1.1  christos {
   9336  1.1  christos /* The GNU C library defines this for functions which it implements
   9337  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9338  1.1  christos     something starting with __ and the normal name is an alias.  */
   9339  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9340  1.1  christos choke me
   9341  1.1  christos #else
   9342  1.1  christos f = $ac_func;
   9343  1.1  christos #endif
   9344  1.1  christos 
   9345  1.1  christos   ;
   9346  1.1  christos   return 0;
   9347  1.1  christos }
   9348  1.1  christos _ACEOF
   9349  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9350  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9351  1.1  christos   (eval $ac_link) 2>&5
   9352  1.1  christos   ac_status=$?
   9353  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9354  1.1  christos   (exit $ac_status); } &&
   9355  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   9356  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9357  1.1  christos   (eval $ac_try) 2>&5
   9358  1.1  christos   ac_status=$?
   9359  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9360  1.1  christos   (exit $ac_status); }; }; then
   9361  1.1  christos   eval "$as_ac_var=yes"
   9362  1.1  christos else
   9363  1.1  christos   echo "$as_me: failed program was:" >&5
   9364  1.1  christos cat conftest.$ac_ext >&5
   9365  1.1  christos eval "$as_ac_var=no"
   9366  1.1  christos fi
   9367  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9368  1.1  christos fi
   9369  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9370  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9371  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9372  1.1  christos 
   9373  1.1  christos cat >>confdefs.h <<_ACEOF
   9374  1.1  christos #define CRAY_STACKSEG_END $ac_func
   9375  1.1  christos _ACEOF
   9376  1.1  christos 
   9377  1.1  christos     break
   9378  1.1  christos fi
   9379  1.1  christos 
   9380  1.1  christos   done
   9381  1.1  christos fi
   9382  1.1  christos 
   9383  1.1  christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
   9384  1.1  christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
   9385  1.1  christos if test "${ac_cv_c_stack_direction+set}" = set; then
   9386  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9387  1.1  christos else
   9388  1.1  christos   if test "$cross_compiling" = yes; then
   9389  1.1  christos   ac_cv_c_stack_direction=0
   9390  1.1  christos else
   9391  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9392  1.1  christos #line $LINENO "configure"
   9393  1.1  christos #include "confdefs.h"
   9394  1.1  christos int
   9395  1.1  christos find_stack_direction ()
   9396  1.1  christos {
   9397  1.1  christos   static char *addr = 0;
   9398  1.1  christos   auto char dummy;
   9399  1.1  christos   if (addr == 0)
   9400  1.1  christos     {
   9401  1.1  christos       addr = &dummy;
   9402  1.1  christos       return find_stack_direction ();
   9403  1.1  christos     }
   9404  1.1  christos   else
   9405  1.1  christos     return (&dummy > addr) ? 1 : -1;
   9406  1.1  christos }
   9407  1.1  christos 
   9408  1.1  christos int
   9409  1.1  christos main ()
   9410  1.1  christos {
   9411  1.1  christos   exit (find_stack_direction () < 0);
   9412  1.1  christos }
   9413  1.1  christos _ACEOF
   9414  1.1  christos rm -f conftest$ac_exeext
   9415  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9416  1.1  christos   (eval $ac_link) 2>&5
   9417  1.1  christos   ac_status=$?
   9418  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9419  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9420  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9421  1.1  christos   (eval $ac_try) 2>&5
   9422  1.1  christos   ac_status=$?
   9423  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9424  1.1  christos   (exit $ac_status); }; }; then
   9425  1.1  christos   ac_cv_c_stack_direction=1
   9426  1.1  christos else
   9427  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   9428  1.1  christos echo "$as_me: failed program was:" >&5
   9429  1.1  christos cat conftest.$ac_ext >&5
   9430  1.1  christos ( exit $ac_status )
   9431  1.1  christos ac_cv_c_stack_direction=-1
   9432  1.1  christos fi
   9433  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9434  1.1  christos fi
   9435  1.1  christos fi
   9436  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
   9437  1.1  christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
   9438  1.1  christos 
   9439  1.1  christos cat >>confdefs.h <<_ACEOF
   9440  1.1  christos #define STACK_DIRECTION $ac_cv_c_stack_direction
   9441  1.1  christos _ACEOF
   9442  1.1  christos 
   9443  1.1  christos 
   9444  1.1  christos fi
   9445  1.1  christos 
   9446  1.1  christos # for STACK_DIRECTION
   9447  1.1  christos 
   9448  1.1  christos 
   9449  1.1  christos    echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
   9450  1.1  christos echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
   9451  1.1  christos if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
   9452  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9453  1.1  christos else
   9454  1.1  christos   if test "$cross_compiling" = yes; then
   9455  1.1  christos   ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
   9456  1.1  christos else
   9457  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9458  1.1  christos #line $LINENO "configure"
   9459  1.1  christos #include "confdefs.h"
   9460  1.1  christos 
   9461  1.1  christos 	 #include <signal.h>
   9462  1.1  christos 	 #include <ucontext.h>
   9463  1.1  christos 
   9464  1.1  christos 	 static union
   9465  1.1  christos 	 {
   9466  1.1  christos 	   char buffer[SIGSTKSZ];
   9467  1.1  christos 	   long double ld;
   9468  1.1  christos 	   uintmax_t u;
   9469  1.1  christos 	   void *p;
   9470  1.1  christos 	 } alternate_signal_stack;
   9471  1.1  christos 
   9472  1.1  christos 	 #if STACK_DIRECTION
   9473  1.1  christos 	 # define find_stack_direction(ptr) STACK_DIRECTION
   9474  1.1  christos 	 #else
   9475  1.1  christos 	 static int
   9476  1.1  christos 	 find_stack_direction (char const *addr)
   9477  1.1  christos 	 {
   9478  1.1  christos 	   char dummy;
   9479  1.1  christos 	   return (! addr ? find_stack_direction (&dummy)
   9480  1.1  christos 		   : addr < &dummy ? 1 : -1);
   9481  1.1  christos 	 }
   9482  1.1  christos 	 #endif
   9483  1.1  christos 
   9484  1.1  christos 	 static void
   9485  1.1  christos 	 segv_handler (int signo, siginfo_t *info, void *context)
   9486  1.1  christos 	 {
   9487  1.1  christos 	   if (0 < info->si_code)
   9488  1.1  christos 	     {
   9489  1.1  christos 	       ucontext_t const *user_context = context;
   9490  1.1  christos 	       char const *stack_min = user_context->uc_stack.ss_sp;
   9491  1.1  christos 	       size_t stack_size = user_context->uc_stack.ss_size;
   9492  1.1  christos 	       char const *faulting_address = info->si_addr;
   9493  1.1  christos 	       size_t s = faulting_address - stack_min;
   9494  1.1  christos 	       size_t page_size = sysconf (_SC_PAGESIZE);
   9495  1.1  christos 	       if (find_stack_direction (0) < 0)
   9496  1.1  christos 		 s += page_size;
   9497  1.1  christos 	       if (s < stack_size + page_size)
   9498  1.1  christos 		 _exit (0);
   9499  1.1  christos 	     }
   9500  1.1  christos 
   9501  1.1  christos 	   _exit (1);
   9502  1.1  christos 	 }
   9503  1.1  christos 
   9504  1.1  christos 	 static int
   9505  1.1  christos 	 c_stack_action (void)
   9506  1.1  christos 	 {
   9507  1.1  christos 	   stack_t st;
   9508  1.1  christos 	   struct sigaction act;
   9509  1.1  christos 	   int r;
   9510  1.1  christos 
   9511  1.1  christos 	   st.ss_flags = 0;
   9512  1.1  christos 	   st.ss_sp = alternate_signal_stack.buffer;
   9513  1.1  christos 	   st.ss_size = sizeof alternate_signal_stack.buffer;
   9514  1.1  christos 	   r = sigaltstack (&st, 0);
   9515  1.1  christos 	   if (r != 0)
   9516  1.1  christos 	     return r;
   9517  1.1  christos 
   9518  1.1  christos 	   sigemptyset (&act.sa_mask);
   9519  1.1  christos 	   act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
   9520  1.1  christos 	   act.sa_sigaction = segv_handler;
   9521  1.1  christos 	   return sigaction (SIGSEGV, &act, 0);
   9522  1.1  christos 	 }
   9523  1.1  christos 
   9524  1.1  christos 	 static int
   9525  1.1  christos 	 recurse (char *p)
   9526  1.1  christos 	 {
   9527  1.1  christos 	   char array[500];
   9528  1.1  christos 	   array[0] = 1;
   9529  1.1  christos 	   return *p + recurse (array);
   9530  1.1  christos 	 }
   9531  1.1  christos 
   9532  1.1  christos 	 int
   9533  1.1  christos 	 main (void)
   9534  1.1  christos 	 {
   9535  1.1  christos 	   c_stack_action ();
   9536  1.1  christos 	   return recurse ("\1");
   9537  1.1  christos 	 }
   9538  1.1  christos 
   9539  1.1  christos _ACEOF
   9540  1.1  christos rm -f conftest$ac_exeext
   9541  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9542  1.1  christos   (eval $ac_link) 2>&5
   9543  1.1  christos   ac_status=$?
   9544  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9545  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9546  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9547  1.1  christos   (eval $ac_try) 2>&5
   9548  1.1  christos   ac_status=$?
   9549  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9550  1.1  christos   (exit $ac_status); }; }; then
   9551  1.1  christos   ac_cv_sys_xsi_stack_overflow_heuristic=yes
   9552  1.1  christos else
   9553  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   9554  1.1  christos echo "$as_me: failed program was:" >&5
   9555  1.1  christos cat conftest.$ac_ext >&5
   9556  1.1  christos ( exit $ac_status )
   9557  1.1  christos ac_cv_sys_xsi_stack_overflow_heuristic=no
   9558  1.1  christos fi
   9559  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9560  1.1  christos fi
   9561  1.1  christos fi
   9562  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
   9563  1.1  christos echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
   9564  1.1  christos 
   9565  1.1  christos    if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
   9566  1.1  christos 
   9567  1.1  christos cat >>confdefs.h <<\_ACEOF
   9568  1.1  christos #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
   9569  1.1  christos _ACEOF
   9570  1.1  christos 
   9571  1.1  christos    fi
   9572  1.1  christos 
   9573  1.1  christos 
   9574  1.1  christos 
   9575  1.1  christos    # for STACK_DIRECTION
   9576  1.1  christos 
   9577  1.1  christos 
   9578  1.1  christos 
   9579  1.1  christos for ac_header in unistd.h
   9580  1.1  christos do
   9581  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9582  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   9583  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   9584  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   9585  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   9586  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9587  1.1  christos fi
   9588  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   9589  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   9590  1.1  christos else
   9591  1.1  christos   # Is the header compilable?
   9592  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   9593  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   9594  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   9595  1.1  christos #line $LINENO "configure"
   9596  1.1  christos #include "confdefs.h"
   9597  1.1  christos $ac_includes_default
   9598  1.1  christos #include <$ac_header>
   9599  1.1  christos _ACEOF
   9600  1.1  christos rm -f conftest.$ac_objext
   9601  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9602  1.1  christos   (eval $ac_compile) 2>&5
   9603  1.1  christos   ac_status=$?
   9604  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9605  1.1  christos   (exit $ac_status); } &&
   9606  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   9607  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9608  1.1  christos   (eval $ac_try) 2>&5
   9609  1.1  christos   ac_status=$?
   9610  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9611  1.1  christos   (exit $ac_status); }; }; then
   9612  1.1  christos   ac_header_compiler=yes
   9613  1.1  christos else
   9614  1.1  christos   echo "$as_me: failed program was:" >&5
   9615  1.1  christos cat conftest.$ac_ext >&5
   9616  1.1  christos ac_header_compiler=no
   9617  1.1  christos fi
   9618  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   9619  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   9620  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   9621  1.1  christos 
   9622  1.1  christos # Is the header present?
   9623  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   9624  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   9625  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   9626  1.1  christos #line $LINENO "configure"
   9627  1.1  christos #include "confdefs.h"
   9628  1.1  christos #include <$ac_header>
   9629  1.1  christos _ACEOF
   9630  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   9631  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   9632  1.1  christos   ac_status=$?
   9633  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   9634  1.1  christos   rm -f conftest.er1
   9635  1.1  christos   cat conftest.err >&5
   9636  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9637  1.1  christos   (exit $ac_status); } >/dev/null; then
   9638  1.1  christos   if test -s conftest.err; then
   9639  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   9640  1.1  christos   else
   9641  1.1  christos     ac_cpp_err=
   9642  1.1  christos   fi
   9643  1.1  christos else
   9644  1.1  christos   ac_cpp_err=yes
   9645  1.1  christos fi
   9646  1.1  christos if test -z "$ac_cpp_err"; then
   9647  1.1  christos   ac_header_preproc=yes
   9648  1.1  christos else
   9649  1.1  christos   echo "$as_me: failed program was:" >&5
   9650  1.1  christos   cat conftest.$ac_ext >&5
   9651  1.1  christos   ac_header_preproc=no
   9652  1.1  christos fi
   9653  1.1  christos rm -f conftest.err conftest.$ac_ext
   9654  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   9655  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   9656  1.1  christos 
   9657  1.1  christos # So?  What about this header?
   9658  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   9659  1.1  christos   yes:no )
   9660  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   9661  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   9662  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   9663  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   9664  1.1  christos   no:yes )
   9665  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   9666  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   9667  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   9668  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   9669  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   9670  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   9671  1.1  christos esac
   9672  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   9673  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   9674  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   9675  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9676  1.1  christos else
   9677  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   9678  1.1  christos fi
   9679  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   9680  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   9681  1.1  christos 
   9682  1.1  christos fi
   9683  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   9684  1.1  christos   cat >>confdefs.h <<_ACEOF
   9685  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9686  1.1  christos _ACEOF
   9687  1.1  christos 
   9688  1.1  christos fi
   9689  1.1  christos 
   9690  1.1  christos done
   9691  1.1  christos 
   9692  1.1  christos 
   9693  1.1  christos    echo "$as_me:$LINENO: checking for siginfo_t" >&5
   9694  1.1  christos echo $ECHO_N "checking for siginfo_t... $ECHO_C" >&6
   9695  1.1  christos if test "${ac_cv_type_siginfo_t+set}" = set; then
   9696  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9697  1.1  christos else
   9698  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9699  1.1  christos #line $LINENO "configure"
   9700  1.1  christos #include "confdefs.h"
   9701  1.1  christos #include <signal.h>
   9702  1.1  christos 
   9703  1.1  christos #ifdef F77_DUMMY_MAIN
   9704  1.1  christos #  ifdef __cplusplus
   9705  1.1  christos      extern "C"
   9706  1.1  christos #  endif
   9707  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9708  1.1  christos #endif
   9709  1.1  christos int
   9710  1.1  christos main ()
   9711  1.1  christos {
   9712  1.1  christos if ((siginfo_t *) 0)
   9713  1.1  christos   return 0;
   9714  1.1  christos if (sizeof (siginfo_t))
   9715  1.1  christos   return 0;
   9716  1.1  christos   ;
   9717  1.1  christos   return 0;
   9718  1.1  christos }
   9719  1.1  christos _ACEOF
   9720  1.1  christos rm -f conftest.$ac_objext
   9721  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9722  1.1  christos   (eval $ac_compile) 2>&5
   9723  1.1  christos   ac_status=$?
   9724  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9725  1.1  christos   (exit $ac_status); } &&
   9726  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   9727  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9728  1.1  christos   (eval $ac_try) 2>&5
   9729  1.1  christos   ac_status=$?
   9730  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9731  1.1  christos   (exit $ac_status); }; }; then
   9732  1.1  christos   ac_cv_type_siginfo_t=yes
   9733  1.1  christos else
   9734  1.1  christos   echo "$as_me: failed program was:" >&5
   9735  1.1  christos cat conftest.$ac_ext >&5
   9736  1.1  christos ac_cv_type_siginfo_t=no
   9737  1.1  christos fi
   9738  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   9739  1.1  christos fi
   9740  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_siginfo_t" >&5
   9741  1.1  christos echo "${ECHO_T}$ac_cv_type_siginfo_t" >&6
   9742  1.1  christos if test $ac_cv_type_siginfo_t = yes; then
   9743  1.1  christos 
   9744  1.1  christos cat >>confdefs.h <<_ACEOF
   9745  1.1  christos #define HAVE_SIGINFO_T 1
   9746  1.1  christos _ACEOF
   9747  1.1  christos 
   9748  1.1  christos 
   9749  1.1  christos fi
   9750  1.1  christos echo "$as_me:$LINENO: checking for stack_t" >&5
   9751  1.1  christos echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
   9752  1.1  christos if test "${ac_cv_type_stack_t+set}" = set; then
   9753  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9754  1.1  christos else
   9755  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9756  1.1  christos #line $LINENO "configure"
   9757  1.1  christos #include "confdefs.h"
   9758  1.1  christos #include <signal.h>
   9759  1.1  christos 
   9760  1.1  christos #ifdef F77_DUMMY_MAIN
   9761  1.1  christos #  ifdef __cplusplus
   9762  1.1  christos      extern "C"
   9763  1.1  christos #  endif
   9764  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9765  1.1  christos #endif
   9766  1.1  christos int
   9767  1.1  christos main ()
   9768  1.1  christos {
   9769  1.1  christos if ((stack_t *) 0)
   9770  1.1  christos   return 0;
   9771  1.1  christos if (sizeof (stack_t))
   9772  1.1  christos   return 0;
   9773  1.1  christos   ;
   9774  1.1  christos   return 0;
   9775  1.1  christos }
   9776  1.1  christos _ACEOF
   9777  1.1  christos rm -f conftest.$ac_objext
   9778  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9779  1.1  christos   (eval $ac_compile) 2>&5
   9780  1.1  christos   ac_status=$?
   9781  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9782  1.1  christos   (exit $ac_status); } &&
   9783  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   9784  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9785  1.1  christos   (eval $ac_try) 2>&5
   9786  1.1  christos   ac_status=$?
   9787  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9788  1.1  christos   (exit $ac_status); }; }; then
   9789  1.1  christos   ac_cv_type_stack_t=yes
   9790  1.1  christos else
   9791  1.1  christos   echo "$as_me: failed program was:" >&5
   9792  1.1  christos cat conftest.$ac_ext >&5
   9793  1.1  christos ac_cv_type_stack_t=no
   9794  1.1  christos fi
   9795  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   9796  1.1  christos fi
   9797  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
   9798  1.1  christos echo "${ECHO_T}$ac_cv_type_stack_t" >&6
   9799  1.1  christos if test $ac_cv_type_stack_t = yes; then
   9800  1.1  christos 
   9801  1.1  christos cat >>confdefs.h <<_ACEOF
   9802  1.1  christos #define HAVE_STACK_T 1
   9803  1.1  christos _ACEOF
   9804  1.1  christos 
   9805  1.1  christos 
   9806  1.1  christos fi
   9807  1.1  christos 
   9808  1.1  christos 
   9809  1.1  christos 
   9810  1.1  christos 
   9811  1.1  christos 
   9812  1.1  christos for ac_func in strerror vprintf doprnt
   9813  1.1  christos do
   9814  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9815  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   9816  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9817  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   9818  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9819  1.1  christos else
   9820  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9821  1.1  christos #line $LINENO "configure"
   9822  1.1  christos #include "confdefs.h"
   9823  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9824  1.1  christos     which can conflict with char $ac_func (); below.  */
   9825  1.1  christos #include <assert.h>
   9826  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   9827  1.1  christos #ifdef __cplusplus
   9828  1.1  christos extern "C"
   9829  1.1  christos #endif
   9830  1.1  christos /* We use char because int might match the return type of a gcc2
   9831  1.1  christos    builtin and then its argument prototype would still apply.  */
   9832  1.1  christos char $ac_func ();
   9833  1.1  christos char (*f) ();
   9834  1.1  christos 
   9835  1.1  christos #ifdef F77_DUMMY_MAIN
   9836  1.1  christos #  ifdef __cplusplus
   9837  1.1  christos      extern "C"
   9838  1.1  christos #  endif
   9839  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9840  1.1  christos #endif
   9841  1.1  christos int
   9842  1.1  christos main ()
   9843  1.1  christos {
   9844  1.1  christos /* The GNU C library defines this for functions which it implements
   9845  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9846  1.1  christos     something starting with __ and the normal name is an alias.  */
   9847  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9848  1.1  christos choke me
   9849  1.1  christos #else
   9850  1.1  christos f = $ac_func;
   9851  1.1  christos #endif
   9852  1.1  christos 
   9853  1.1  christos   ;
   9854  1.1  christos   return 0;
   9855  1.1  christos }
   9856  1.1  christos _ACEOF
   9857  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9858  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9859  1.1  christos   (eval $ac_link) 2>&5
   9860  1.1  christos   ac_status=$?
   9861  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9862  1.1  christos   (exit $ac_status); } &&
   9863  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   9864  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9865  1.1  christos   (eval $ac_try) 2>&5
   9866  1.1  christos   ac_status=$?
   9867  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9868  1.1  christos   (exit $ac_status); }; }; then
   9869  1.1  christos   eval "$as_ac_var=yes"
   9870  1.1  christos else
   9871  1.1  christos   echo "$as_me: failed program was:" >&5
   9872  1.1  christos cat conftest.$ac_ext >&5
   9873  1.1  christos eval "$as_ac_var=no"
   9874  1.1  christos fi
   9875  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9876  1.1  christos fi
   9877  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9878  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9879  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9880  1.1  christos   cat >>confdefs.h <<_ACEOF
   9881  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9882  1.1  christos _ACEOF
   9883  1.1  christos 
   9884  1.1  christos fi
   9885  1.1  christos done
   9886  1.1  christos 
   9887  1.1  christos   echo "$as_me:$LINENO: checking whether strerror is declared" >&5
   9888  1.1  christos echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
   9889  1.1  christos if test "${ac_cv_have_decl_strerror+set}" = set; then
   9890  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9891  1.1  christos else
   9892  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9893  1.1  christos #line $LINENO "configure"
   9894  1.1  christos #include "confdefs.h"
   9895  1.1  christos $ac_includes_default
   9896  1.1  christos #ifdef F77_DUMMY_MAIN
   9897  1.1  christos #  ifdef __cplusplus
   9898  1.1  christos      extern "C"
   9899  1.1  christos #  endif
   9900  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9901  1.1  christos #endif
   9902  1.1  christos int
   9903  1.1  christos main ()
   9904  1.1  christos {
   9905  1.1  christos #ifndef strerror
   9906  1.1  christos   char *p = (char *) strerror;
   9907  1.1  christos #endif
   9908  1.1  christos 
   9909  1.1  christos   ;
   9910  1.1  christos   return 0;
   9911  1.1  christos }
   9912  1.1  christos _ACEOF
   9913  1.1  christos rm -f conftest.$ac_objext
   9914  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9915  1.1  christos   (eval $ac_compile) 2>&5
   9916  1.1  christos   ac_status=$?
   9917  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9918  1.1  christos   (exit $ac_status); } &&
   9919  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   9920  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9921  1.1  christos   (eval $ac_try) 2>&5
   9922  1.1  christos   ac_status=$?
   9923  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9924  1.1  christos   (exit $ac_status); }; }; then
   9925  1.1  christos   ac_cv_have_decl_strerror=yes
   9926  1.1  christos else
   9927  1.1  christos   echo "$as_me: failed program was:" >&5
   9928  1.1  christos cat conftest.$ac_ext >&5
   9929  1.1  christos ac_cv_have_decl_strerror=no
   9930  1.1  christos fi
   9931  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   9932  1.1  christos fi
   9933  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
   9934  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
   9935  1.1  christos if test $ac_cv_have_decl_strerror = yes; then
   9936  1.1  christos 
   9937  1.1  christos cat >>confdefs.h <<_ACEOF
   9938  1.1  christos #define HAVE_DECL_STRERROR 1
   9939  1.1  christos _ACEOF
   9940  1.1  christos 
   9941  1.1  christos 
   9942  1.1  christos else
   9943  1.1  christos   cat >>confdefs.h <<_ACEOF
   9944  1.1  christos #define HAVE_DECL_STRERROR 0
   9945  1.1  christos _ACEOF
   9946  1.1  christos 
   9947  1.1  christos 
   9948  1.1  christos fi
   9949  1.1  christos 
   9950  1.1  christos 
   9951  1.1  christos   echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
   9952  1.1  christos echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
   9953  1.1  christos if test "${ac_cv_have_decl_strerror_r+set}" = set; then
   9954  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9955  1.1  christos else
   9956  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9957  1.1  christos #line $LINENO "configure"
   9958  1.1  christos #include "confdefs.h"
   9959  1.1  christos $ac_includes_default
   9960  1.1  christos #ifdef F77_DUMMY_MAIN
   9961  1.1  christos #  ifdef __cplusplus
   9962  1.1  christos      extern "C"
   9963  1.1  christos #  endif
   9964  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   9965  1.1  christos #endif
   9966  1.1  christos int
   9967  1.1  christos main ()
   9968  1.1  christos {
   9969  1.1  christos #ifndef strerror_r
   9970  1.1  christos   char *p = (char *) strerror_r;
   9971  1.1  christos #endif
   9972  1.1  christos 
   9973  1.1  christos   ;
   9974  1.1  christos   return 0;
   9975  1.1  christos }
   9976  1.1  christos _ACEOF
   9977  1.1  christos rm -f conftest.$ac_objext
   9978  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9979  1.1  christos   (eval $ac_compile) 2>&5
   9980  1.1  christos   ac_status=$?
   9981  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9982  1.1  christos   (exit $ac_status); } &&
   9983  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   9984  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9985  1.1  christos   (eval $ac_try) 2>&5
   9986  1.1  christos   ac_status=$?
   9987  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9988  1.1  christos   (exit $ac_status); }; }; then
   9989  1.1  christos   ac_cv_have_decl_strerror_r=yes
   9990  1.1  christos else
   9991  1.1  christos   echo "$as_me: failed program was:" >&5
   9992  1.1  christos cat conftest.$ac_ext >&5
   9993  1.1  christos ac_cv_have_decl_strerror_r=no
   9994  1.1  christos fi
   9995  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   9996  1.1  christos fi
   9997  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
   9998  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
   9999  1.1  christos if test $ac_cv_have_decl_strerror_r = yes; then
   10000  1.1  christos 
   10001  1.1  christos cat >>confdefs.h <<_ACEOF
   10002  1.1  christos #define HAVE_DECL_STRERROR_R 1
   10003  1.1  christos _ACEOF
   10004  1.1  christos 
   10005  1.1  christos 
   10006  1.1  christos else
   10007  1.1  christos   cat >>confdefs.h <<_ACEOF
   10008  1.1  christos #define HAVE_DECL_STRERROR_R 0
   10009  1.1  christos _ACEOF
   10010  1.1  christos 
   10011  1.1  christos 
   10012  1.1  christos fi
   10013  1.1  christos 
   10014  1.1  christos 
   10015  1.1  christos 
   10016  1.1  christos for ac_func in strerror_r
   10017  1.1  christos do
   10018  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10019  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   10020  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   10021  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   10022  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10023  1.1  christos else
   10024  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10025  1.1  christos #line $LINENO "configure"
   10026  1.1  christos #include "confdefs.h"
   10027  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   10028  1.1  christos     which can conflict with char $ac_func (); below.  */
   10029  1.1  christos #include <assert.h>
   10030  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   10031  1.1  christos #ifdef __cplusplus
   10032  1.1  christos extern "C"
   10033  1.1  christos #endif
   10034  1.1  christos /* We use char because int might match the return type of a gcc2
   10035  1.1  christos    builtin and then its argument prototype would still apply.  */
   10036  1.1  christos char $ac_func ();
   10037  1.1  christos char (*f) ();
   10038  1.1  christos 
   10039  1.1  christos #ifdef F77_DUMMY_MAIN
   10040  1.1  christos #  ifdef __cplusplus
   10041  1.1  christos      extern "C"
   10042  1.1  christos #  endif
   10043  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10044  1.1  christos #endif
   10045  1.1  christos int
   10046  1.1  christos main ()
   10047  1.1  christos {
   10048  1.1  christos /* The GNU C library defines this for functions which it implements
   10049  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   10050  1.1  christos     something starting with __ and the normal name is an alias.  */
   10051  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   10052  1.1  christos choke me
   10053  1.1  christos #else
   10054  1.1  christos f = $ac_func;
   10055  1.1  christos #endif
   10056  1.1  christos 
   10057  1.1  christos   ;
   10058  1.1  christos   return 0;
   10059  1.1  christos }
   10060  1.1  christos _ACEOF
   10061  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   10062  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10063  1.1  christos   (eval $ac_link) 2>&5
   10064  1.1  christos   ac_status=$?
   10065  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10066  1.1  christos   (exit $ac_status); } &&
   10067  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   10068  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10069  1.1  christos   (eval $ac_try) 2>&5
   10070  1.1  christos   ac_status=$?
   10071  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10072  1.1  christos   (exit $ac_status); }; }; then
   10073  1.1  christos   eval "$as_ac_var=yes"
   10074  1.1  christos else
   10075  1.1  christos   echo "$as_me: failed program was:" >&5
   10076  1.1  christos cat conftest.$ac_ext >&5
   10077  1.1  christos eval "$as_ac_var=no"
   10078  1.1  christos fi
   10079  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10080  1.1  christos fi
   10081  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   10082  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   10083  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   10084  1.1  christos   cat >>confdefs.h <<_ACEOF
   10085  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10086  1.1  christos _ACEOF
   10087  1.1  christos 
   10088  1.1  christos fi
   10089  1.1  christos done
   10090  1.1  christos 
   10091  1.1  christos echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
   10092  1.1  christos echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
   10093  1.1  christos if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
   10094  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10095  1.1  christos else
   10096  1.1  christos 
   10097  1.1  christos     ac_cv_func_strerror_r_char_p=no
   10098  1.1  christos     if test $ac_cv_have_decl_strerror_r = yes; then
   10099  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   10100  1.1  christos #line $LINENO "configure"
   10101  1.1  christos #include "confdefs.h"
   10102  1.1  christos $ac_includes_default
   10103  1.1  christos #ifdef F77_DUMMY_MAIN
   10104  1.1  christos #  ifdef __cplusplus
   10105  1.1  christos      extern "C"
   10106  1.1  christos #  endif
   10107  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10108  1.1  christos #endif
   10109  1.1  christos int
   10110  1.1  christos main ()
   10111  1.1  christos {
   10112  1.1  christos 
   10113  1.1  christos 	  char buf[100];
   10114  1.1  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   10115  1.1  christos 	  char *p = strerror_r (0, buf, sizeof buf);
   10116  1.1  christos 
   10117  1.1  christos   ;
   10118  1.1  christos   return 0;
   10119  1.1  christos }
   10120  1.1  christos _ACEOF
   10121  1.1  christos rm -f conftest.$ac_objext
   10122  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10123  1.1  christos   (eval $ac_compile) 2>&5
   10124  1.1  christos   ac_status=$?
   10125  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10126  1.1  christos   (exit $ac_status); } &&
   10127  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   10128  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10129  1.1  christos   (eval $ac_try) 2>&5
   10130  1.1  christos   ac_status=$?
   10131  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10132  1.1  christos   (exit $ac_status); }; }; then
   10133  1.1  christos   ac_cv_func_strerror_r_char_p=yes
   10134  1.1  christos else
   10135  1.1  christos   echo "$as_me: failed program was:" >&5
   10136  1.1  christos cat conftest.$ac_ext >&5
   10137  1.1  christos fi
   10138  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   10139  1.1  christos     else
   10140  1.1  christos       # strerror_r is not declared.  Choose between
   10141  1.1  christos       # systems that have relatively inaccessible declarations for the
   10142  1.1  christos       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
   10143  1.1  christos       # former has a strerror_r that returns char*, while the latter
   10144  1.1  christos       # has a strerror_r that returns `int'.
   10145  1.1  christos       # This test should segfault on the DEC system.
   10146  1.1  christos       if test "$cross_compiling" = yes; then
   10147  1.1  christos   :
   10148  1.1  christos else
   10149  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10150  1.1  christos #line $LINENO "configure"
   10151  1.1  christos #include "confdefs.h"
   10152  1.1  christos $ac_includes_default
   10153  1.1  christos 	extern char *strerror_r ();
   10154  1.1  christos #ifdef F77_DUMMY_MAIN
   10155  1.1  christos #  ifdef __cplusplus
   10156  1.1  christos      extern "C"
   10157  1.1  christos #  endif
   10158  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10159  1.1  christos #endif
   10160  1.1  christos int
   10161  1.1  christos main ()
   10162  1.1  christos {
   10163  1.1  christos char buf[100];
   10164  1.1  christos 	  char x = *strerror_r (0, buf, sizeof buf);
   10165  1.1  christos 	  exit (!isalpha (x));
   10166  1.1  christos   ;
   10167  1.1  christos   return 0;
   10168  1.1  christos }
   10169  1.1  christos _ACEOF
   10170  1.1  christos rm -f conftest$ac_exeext
   10171  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10172  1.1  christos   (eval $ac_link) 2>&5
   10173  1.1  christos   ac_status=$?
   10174  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10175  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10176  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10177  1.1  christos   (eval $ac_try) 2>&5
   10178  1.1  christos   ac_status=$?
   10179  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10180  1.1  christos   (exit $ac_status); }; }; then
   10181  1.1  christos   ac_cv_func_strerror_r_char_p=yes
   10182  1.1  christos else
   10183  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10184  1.1  christos echo "$as_me: failed program was:" >&5
   10185  1.1  christos cat conftest.$ac_ext >&5
   10186  1.1  christos fi
   10187  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   10188  1.1  christos fi
   10189  1.1  christos     fi
   10190  1.1  christos 
   10191  1.1  christos fi
   10192  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
   10193  1.1  christos echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
   10194  1.1  christos if test $ac_cv_func_strerror_r_char_p = yes; then
   10195  1.1  christos 
   10196  1.1  christos cat >>confdefs.h <<\_ACEOF
   10197  1.1  christos #define STRERROR_R_CHAR_P 1
   10198  1.1  christos _ACEOF
   10199  1.1  christos 
   10200  1.1  christos fi
   10201  1.1  christos 
   10202  1.1  christos   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   10203  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   10204  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   10205  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10206  1.1  christos else
   10207  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10208  1.1  christos #line $LINENO "configure"
   10209  1.1  christos #include "confdefs.h"
   10210  1.1  christos #include <stdlib.h>
   10211  1.1  christos #include <stdarg.h>
   10212  1.1  christos #include <string.h>
   10213  1.1  christos #include <float.h>
   10214  1.1  christos 
   10215  1.1  christos _ACEOF
   10216  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   10217  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10218  1.1  christos   ac_status=$?
   10219  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   10220  1.1  christos   rm -f conftest.er1
   10221  1.1  christos   cat conftest.err >&5
   10222  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10223  1.1  christos   (exit $ac_status); } >/dev/null; then
   10224  1.1  christos   if test -s conftest.err; then
   10225  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   10226  1.1  christos   else
   10227  1.1  christos     ac_cpp_err=
   10228  1.1  christos   fi
   10229  1.1  christos else
   10230  1.1  christos   ac_cpp_err=yes
   10231  1.1  christos fi
   10232  1.1  christos if test -z "$ac_cpp_err"; then
   10233  1.1  christos   ac_cv_header_stdc=yes
   10234  1.1  christos else
   10235  1.1  christos   echo "$as_me: failed program was:" >&5
   10236  1.1  christos   cat conftest.$ac_ext >&5
   10237  1.1  christos   ac_cv_header_stdc=no
   10238  1.1  christos fi
   10239  1.1  christos rm -f conftest.err conftest.$ac_ext
   10240  1.1  christos 
   10241  1.1  christos if test $ac_cv_header_stdc = yes; then
   10242  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   10243  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10244  1.1  christos #line $LINENO "configure"
   10245  1.1  christos #include "confdefs.h"
   10246  1.1  christos #include <string.h>
   10247  1.1  christos 
   10248  1.1  christos _ACEOF
   10249  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10250  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   10251  1.1  christos   :
   10252  1.1  christos else
   10253  1.1  christos   ac_cv_header_stdc=no
   10254  1.1  christos fi
   10255  1.1  christos rm -f conftest*
   10256  1.1  christos 
   10257  1.1  christos fi
   10258  1.1  christos 
   10259  1.1  christos if test $ac_cv_header_stdc = yes; then
   10260  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   10261  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10262  1.1  christos #line $LINENO "configure"
   10263  1.1  christos #include "confdefs.h"
   10264  1.1  christos #include <stdlib.h>
   10265  1.1  christos 
   10266  1.1  christos _ACEOF
   10267  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10268  1.1  christos   egrep "free" >/dev/null 2>&1; then
   10269  1.1  christos   :
   10270  1.1  christos else
   10271  1.1  christos   ac_cv_header_stdc=no
   10272  1.1  christos fi
   10273  1.1  christos rm -f conftest*
   10274  1.1  christos 
   10275  1.1  christos fi
   10276  1.1  christos 
   10277  1.1  christos if test $ac_cv_header_stdc = yes; then
   10278  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   10279  1.1  christos   if test "$cross_compiling" = yes; then
   10280  1.1  christos   :
   10281  1.1  christos else
   10282  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10283  1.1  christos #line $LINENO "configure"
   10284  1.1  christos #include "confdefs.h"
   10285  1.1  christos #include <ctype.h>
   10286  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   10287  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   10288  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   10289  1.1  christos #else
   10290  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   10291  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   10292  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   10293  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   10294  1.1  christos #endif
   10295  1.1  christos 
   10296  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   10297  1.1  christos int
   10298  1.1  christos main ()
   10299  1.1  christos {
   10300  1.1  christos   int i;
   10301  1.1  christos   for (i = 0; i < 256; i++)
   10302  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   10303  1.1  christos         || toupper (i) != TOUPPER (i))
   10304  1.1  christos       exit(2);
   10305  1.1  christos   exit (0);
   10306  1.1  christos }
   10307  1.1  christos _ACEOF
   10308  1.1  christos rm -f conftest$ac_exeext
   10309  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10310  1.1  christos   (eval $ac_link) 2>&5
   10311  1.1  christos   ac_status=$?
   10312  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10313  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10314  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10315  1.1  christos   (eval $ac_try) 2>&5
   10316  1.1  christos   ac_status=$?
   10317  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10318  1.1  christos   (exit $ac_status); }; }; then
   10319  1.1  christos   :
   10320  1.1  christos else
   10321  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10322  1.1  christos echo "$as_me: failed program was:" >&5
   10323  1.1  christos cat conftest.$ac_ext >&5
   10324  1.1  christos ( exit $ac_status )
   10325  1.1  christos ac_cv_header_stdc=no
   10326  1.1  christos fi
   10327  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   10328  1.1  christos fi
   10329  1.1  christos fi
   10330  1.1  christos fi
   10331  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   10332  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   10333  1.1  christos if test $ac_cv_header_stdc = yes; then
   10334  1.1  christos 
   10335  1.1  christos cat >>confdefs.h <<\_ACEOF
   10336  1.1  christos #define STDC_HEADERS 1
   10337  1.1  christos _ACEOF
   10338  1.1  christos 
   10339  1.1  christos fi
   10340  1.1  christos 
   10341  1.1  christos 
   10342  1.1  christos 
   10343  1.1  christos   echo "$as_me:$LINENO: checking for function prototypes" >&5
   10344  1.1  christos echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
   10345  1.1  christos if test "$ac_cv_prog_cc_stdc" != no; then
   10346  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   10347  1.1  christos echo "${ECHO_T}yes" >&6
   10348  1.1  christos 
   10349  1.1  christos cat >>confdefs.h <<\_ACEOF
   10350  1.1  christos #define PROTOTYPES 1
   10351  1.1  christos _ACEOF
   10352  1.1  christos 
   10353  1.1  christos 
   10354  1.1  christos cat >>confdefs.h <<\_ACEOF
   10355  1.1  christos #define __PROTOTYPES 1
   10356  1.1  christos _ACEOF
   10357  1.1  christos 
   10358  1.1  christos else
   10359  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10360  1.1  christos echo "${ECHO_T}no" >&6
   10361  1.1  christos fi
   10362  1.1  christos 
   10363  1.1  christos 
   10364  1.1  christos for ac_func in setlocale
   10365  1.1  christos do
   10366  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10367  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   10368  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   10369  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   10370  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10371  1.1  christos else
   10372  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10373  1.1  christos #line $LINENO "configure"
   10374  1.1  christos #include "confdefs.h"
   10375  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   10376  1.1  christos     which can conflict with char $ac_func (); below.  */
   10377  1.1  christos #include <assert.h>
   10378  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   10379  1.1  christos #ifdef __cplusplus
   10380  1.1  christos extern "C"
   10381  1.1  christos #endif
   10382  1.1  christos /* We use char because int might match the return type of a gcc2
   10383  1.1  christos    builtin and then its argument prototype would still apply.  */
   10384  1.1  christos char $ac_func ();
   10385  1.1  christos char (*f) ();
   10386  1.1  christos 
   10387  1.1  christos #ifdef F77_DUMMY_MAIN
   10388  1.1  christos #  ifdef __cplusplus
   10389  1.1  christos      extern "C"
   10390  1.1  christos #  endif
   10391  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10392  1.1  christos #endif
   10393  1.1  christos int
   10394  1.1  christos main ()
   10395  1.1  christos {
   10396  1.1  christos /* The GNU C library defines this for functions which it implements
   10397  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   10398  1.1  christos     something starting with __ and the normal name is an alias.  */
   10399  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   10400  1.1  christos choke me
   10401  1.1  christos #else
   10402  1.1  christos f = $ac_func;
   10403  1.1  christos #endif
   10404  1.1  christos 
   10405  1.1  christos   ;
   10406  1.1  christos   return 0;
   10407  1.1  christos }
   10408  1.1  christos _ACEOF
   10409  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   10410  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10411  1.1  christos   (eval $ac_link) 2>&5
   10412  1.1  christos   ac_status=$?
   10413  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10414  1.1  christos   (exit $ac_status); } &&
   10415  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   10416  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10417  1.1  christos   (eval $ac_try) 2>&5
   10418  1.1  christos   ac_status=$?
   10419  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10420  1.1  christos   (exit $ac_status); }; }; then
   10421  1.1  christos   eval "$as_ac_var=yes"
   10422  1.1  christos else
   10423  1.1  christos   echo "$as_me: failed program was:" >&5
   10424  1.1  christos cat conftest.$ac_ext >&5
   10425  1.1  christos eval "$as_ac_var=no"
   10426  1.1  christos fi
   10427  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10428  1.1  christos fi
   10429  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   10430  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   10431  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   10432  1.1  christos   cat >>confdefs.h <<_ACEOF
   10433  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10434  1.1  christos _ACEOF
   10435  1.1  christos 
   10436  1.1  christos fi
   10437  1.1  christos done
   10438  1.1  christos 
   10439  1.1  christos 
   10440  1.1  christos 
   10441  1.1  christos 
   10442  1.1  christos for ac_header in locale.h stdlib.h string.h
   10443  1.1  christos do
   10444  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10445  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10446  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   10447  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10448  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10449  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10450  1.1  christos fi
   10451  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   10452  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   10453  1.1  christos else
   10454  1.1  christos   # Is the header compilable?
   10455  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10456  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   10457  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10458  1.1  christos #line $LINENO "configure"
   10459  1.1  christos #include "confdefs.h"
   10460  1.1  christos $ac_includes_default
   10461  1.1  christos #include <$ac_header>
   10462  1.1  christos _ACEOF
   10463  1.1  christos rm -f conftest.$ac_objext
   10464  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10465  1.1  christos   (eval $ac_compile) 2>&5
   10466  1.1  christos   ac_status=$?
   10467  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10468  1.1  christos   (exit $ac_status); } &&
   10469  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   10470  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10471  1.1  christos   (eval $ac_try) 2>&5
   10472  1.1  christos   ac_status=$?
   10473  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10474  1.1  christos   (exit $ac_status); }; }; then
   10475  1.1  christos   ac_header_compiler=yes
   10476  1.1  christos else
   10477  1.1  christos   echo "$as_me: failed program was:" >&5
   10478  1.1  christos cat conftest.$ac_ext >&5
   10479  1.1  christos ac_header_compiler=no
   10480  1.1  christos fi
   10481  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   10482  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10483  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   10484  1.1  christos 
   10485  1.1  christos # Is the header present?
   10486  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10487  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   10488  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10489  1.1  christos #line $LINENO "configure"
   10490  1.1  christos #include "confdefs.h"
   10491  1.1  christos #include <$ac_header>
   10492  1.1  christos _ACEOF
   10493  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   10494  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10495  1.1  christos   ac_status=$?
   10496  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   10497  1.1  christos   rm -f conftest.er1
   10498  1.1  christos   cat conftest.err >&5
   10499  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10500  1.1  christos   (exit $ac_status); } >/dev/null; then
   10501  1.1  christos   if test -s conftest.err; then
   10502  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   10503  1.1  christos   else
   10504  1.1  christos     ac_cpp_err=
   10505  1.1  christos   fi
   10506  1.1  christos else
   10507  1.1  christos   ac_cpp_err=yes
   10508  1.1  christos fi
   10509  1.1  christos if test -z "$ac_cpp_err"; then
   10510  1.1  christos   ac_header_preproc=yes
   10511  1.1  christos else
   10512  1.1  christos   echo "$as_me: failed program was:" >&5
   10513  1.1  christos   cat conftest.$ac_ext >&5
   10514  1.1  christos   ac_header_preproc=no
   10515  1.1  christos fi
   10516  1.1  christos rm -f conftest.err conftest.$ac_ext
   10517  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10518  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   10519  1.1  christos 
   10520  1.1  christos # So?  What about this header?
   10521  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   10522  1.1  christos   yes:no )
   10523  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10524  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10525  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10526  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   10527  1.1  christos   no:yes )
   10528  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10529  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10530  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   10531  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   10532  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10533  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   10534  1.1  christos esac
   10535  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   10536  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10537  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10538  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10539  1.1  christos else
   10540  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   10541  1.1  christos fi
   10542  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   10543  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   10544  1.1  christos 
   10545  1.1  christos fi
   10546  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10547  1.1  christos   cat >>confdefs.h <<_ACEOF
   10548  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10549  1.1  christos _ACEOF
   10550  1.1  christos 
   10551  1.1  christos fi
   10552  1.1  christos 
   10553  1.1  christos done
   10554  1.1  christos 
   10555  1.1  christos 
   10556  1.1  christos 
   10557  1.1  christos 
   10558  1.1  christos 
   10559  1.1  christos for ac_func in isascii iswprint
   10560  1.1  christos do
   10561  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10562  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   10563  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   10564  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   10565  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10566  1.1  christos else
   10567  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10568  1.1  christos #line $LINENO "configure"
   10569  1.1  christos #include "confdefs.h"
   10570  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   10571  1.1  christos     which can conflict with char $ac_func (); below.  */
   10572  1.1  christos #include <assert.h>
   10573  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   10574  1.1  christos #ifdef __cplusplus
   10575  1.1  christos extern "C"
   10576  1.1  christos #endif
   10577  1.1  christos /* We use char because int might match the return type of a gcc2
   10578  1.1  christos    builtin and then its argument prototype would still apply.  */
   10579  1.1  christos char $ac_func ();
   10580  1.1  christos char (*f) ();
   10581  1.1  christos 
   10582  1.1  christos #ifdef F77_DUMMY_MAIN
   10583  1.1  christos #  ifdef __cplusplus
   10584  1.1  christos      extern "C"
   10585  1.1  christos #  endif
   10586  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10587  1.1  christos #endif
   10588  1.1  christos int
   10589  1.1  christos main ()
   10590  1.1  christos {
   10591  1.1  christos /* The GNU C library defines this for functions which it implements
   10592  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   10593  1.1  christos     something starting with __ and the normal name is an alias.  */
   10594  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   10595  1.1  christos choke me
   10596  1.1  christos #else
   10597  1.1  christos f = $ac_func;
   10598  1.1  christos #endif
   10599  1.1  christos 
   10600  1.1  christos   ;
   10601  1.1  christos   return 0;
   10602  1.1  christos }
   10603  1.1  christos _ACEOF
   10604  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   10605  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10606  1.1  christos   (eval $ac_link) 2>&5
   10607  1.1  christos   ac_status=$?
   10608  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10609  1.1  christos   (exit $ac_status); } &&
   10610  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   10611  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10612  1.1  christos   (eval $ac_try) 2>&5
   10613  1.1  christos   ac_status=$?
   10614  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10615  1.1  christos   (exit $ac_status); }; }; then
   10616  1.1  christos   eval "$as_ac_var=yes"
   10617  1.1  christos else
   10618  1.1  christos   echo "$as_me: failed program was:" >&5
   10619  1.1  christos cat conftest.$ac_ext >&5
   10620  1.1  christos eval "$as_ac_var=no"
   10621  1.1  christos fi
   10622  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10623  1.1  christos fi
   10624  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   10625  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   10626  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   10627  1.1  christos   cat >>confdefs.h <<_ACEOF
   10628  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10629  1.1  christos _ACEOF
   10630  1.1  christos 
   10631  1.1  christos fi
   10632  1.1  christos done
   10633  1.1  christos 
   10634  1.1  christos 
   10635  1.1  christos   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
   10636  1.1  christos echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
   10637  1.1  christos if test "${jm_cv_func_mbrtowc+set}" = set; then
   10638  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10639  1.1  christos else
   10640  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10641  1.1  christos #line $LINENO "configure"
   10642  1.1  christos #include "confdefs.h"
   10643  1.1  christos #include <wchar.h>
   10644  1.1  christos #ifdef F77_DUMMY_MAIN
   10645  1.1  christos #  ifdef __cplusplus
   10646  1.1  christos      extern "C"
   10647  1.1  christos #  endif
   10648  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10649  1.1  christos #endif
   10650  1.1  christos int
   10651  1.1  christos main ()
   10652  1.1  christos {
   10653  1.1  christos mbstate_t state; return ! (sizeof state && mbrtowc);
   10654  1.1  christos   ;
   10655  1.1  christos   return 0;
   10656  1.1  christos }
   10657  1.1  christos _ACEOF
   10658  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   10659  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10660  1.1  christos   (eval $ac_link) 2>&5
   10661  1.1  christos   ac_status=$?
   10662  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10663  1.1  christos   (exit $ac_status); } &&
   10664  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   10665  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10666  1.1  christos   (eval $ac_try) 2>&5
   10667  1.1  christos   ac_status=$?
   10668  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10669  1.1  christos   (exit $ac_status); }; }; then
   10670  1.1  christos   jm_cv_func_mbrtowc=yes
   10671  1.1  christos else
   10672  1.1  christos   echo "$as_me: failed program was:" >&5
   10673  1.1  christos cat conftest.$ac_ext >&5
   10674  1.1  christos jm_cv_func_mbrtowc=no
   10675  1.1  christos fi
   10676  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10677  1.1  christos fi
   10678  1.1  christos echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
   10679  1.1  christos echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
   10680  1.1  christos   if test $jm_cv_func_mbrtowc = yes; then
   10681  1.1  christos 
   10682  1.1  christos cat >>confdefs.h <<\_ACEOF
   10683  1.1  christos #define HAVE_MBRTOWC 1
   10684  1.1  christos _ACEOF
   10685  1.1  christos 
   10686  1.1  christos   fi
   10687  1.1  christos 
   10688  1.1  christos 
   10689  1.1  christos 
   10690  1.1  christos 
   10691  1.1  christos 
   10692  1.1  christos 
   10693  1.1  christos 
   10694  1.1  christos for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
   10695  1.1  christos do
   10696  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10697  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10698  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   10699  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10700  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10701  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10702  1.1  christos fi
   10703  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   10704  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   10705  1.1  christos else
   10706  1.1  christos   # Is the header compilable?
   10707  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10708  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   10709  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10710  1.1  christos #line $LINENO "configure"
   10711  1.1  christos #include "confdefs.h"
   10712  1.1  christos $ac_includes_default
   10713  1.1  christos #include <$ac_header>
   10714  1.1  christos _ACEOF
   10715  1.1  christos rm -f conftest.$ac_objext
   10716  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10717  1.1  christos   (eval $ac_compile) 2>&5
   10718  1.1  christos   ac_status=$?
   10719  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10720  1.1  christos   (exit $ac_status); } &&
   10721  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   10722  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10723  1.1  christos   (eval $ac_try) 2>&5
   10724  1.1  christos   ac_status=$?
   10725  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10726  1.1  christos   (exit $ac_status); }; }; then
   10727  1.1  christos   ac_header_compiler=yes
   10728  1.1  christos else
   10729  1.1  christos   echo "$as_me: failed program was:" >&5
   10730  1.1  christos cat conftest.$ac_ext >&5
   10731  1.1  christos ac_header_compiler=no
   10732  1.1  christos fi
   10733  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   10734  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10735  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   10736  1.1  christos 
   10737  1.1  christos # Is the header present?
   10738  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10739  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   10740  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10741  1.1  christos #line $LINENO "configure"
   10742  1.1  christos #include "confdefs.h"
   10743  1.1  christos #include <$ac_header>
   10744  1.1  christos _ACEOF
   10745  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   10746  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10747  1.1  christos   ac_status=$?
   10748  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   10749  1.1  christos   rm -f conftest.er1
   10750  1.1  christos   cat conftest.err >&5
   10751  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10752  1.1  christos   (exit $ac_status); } >/dev/null; then
   10753  1.1  christos   if test -s conftest.err; then
   10754  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   10755  1.1  christos   else
   10756  1.1  christos     ac_cpp_err=
   10757  1.1  christos   fi
   10758  1.1  christos else
   10759  1.1  christos   ac_cpp_err=yes
   10760  1.1  christos fi
   10761  1.1  christos if test -z "$ac_cpp_err"; then
   10762  1.1  christos   ac_header_preproc=yes
   10763  1.1  christos else
   10764  1.1  christos   echo "$as_me: failed program was:" >&5
   10765  1.1  christos   cat conftest.$ac_ext >&5
   10766  1.1  christos   ac_header_preproc=no
   10767  1.1  christos fi
   10768  1.1  christos rm -f conftest.err conftest.$ac_ext
   10769  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10770  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   10771  1.1  christos 
   10772  1.1  christos # So?  What about this header?
   10773  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   10774  1.1  christos   yes:no )
   10775  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10776  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10777  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10778  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   10779  1.1  christos   no:yes )
   10780  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10781  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10782  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   10783  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   10784  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10785  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   10786  1.1  christos esac
   10787  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   10788  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10789  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10790  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10791  1.1  christos else
   10792  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   10793  1.1  christos fi
   10794  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   10795  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   10796  1.1  christos 
   10797  1.1  christos fi
   10798  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10799  1.1  christos   cat >>confdefs.h <<_ACEOF
   10800  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10801  1.1  christos _ACEOF
   10802  1.1  christos 
   10803  1.1  christos fi
   10804  1.1  christos 
   10805  1.1  christos done
   10806  1.1  christos 
   10807  1.1  christos   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   10808  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   10809  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   10810  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10811  1.1  christos else
   10812  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10813  1.1  christos #line $LINENO "configure"
   10814  1.1  christos #include "confdefs.h"
   10815  1.1  christos #include <stdlib.h>
   10816  1.1  christos #include <stdarg.h>
   10817  1.1  christos #include <string.h>
   10818  1.1  christos #include <float.h>
   10819  1.1  christos 
   10820  1.1  christos _ACEOF
   10821  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   10822  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10823  1.1  christos   ac_status=$?
   10824  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   10825  1.1  christos   rm -f conftest.er1
   10826  1.1  christos   cat conftest.err >&5
   10827  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10828  1.1  christos   (exit $ac_status); } >/dev/null; then
   10829  1.1  christos   if test -s conftest.err; then
   10830  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   10831  1.1  christos   else
   10832  1.1  christos     ac_cpp_err=
   10833  1.1  christos   fi
   10834  1.1  christos else
   10835  1.1  christos   ac_cpp_err=yes
   10836  1.1  christos fi
   10837  1.1  christos if test -z "$ac_cpp_err"; then
   10838  1.1  christos   ac_cv_header_stdc=yes
   10839  1.1  christos else
   10840  1.1  christos   echo "$as_me: failed program was:" >&5
   10841  1.1  christos   cat conftest.$ac_ext >&5
   10842  1.1  christos   ac_cv_header_stdc=no
   10843  1.1  christos fi
   10844  1.1  christos rm -f conftest.err conftest.$ac_ext
   10845  1.1  christos 
   10846  1.1  christos if test $ac_cv_header_stdc = yes; then
   10847  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   10848  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10849  1.1  christos #line $LINENO "configure"
   10850  1.1  christos #include "confdefs.h"
   10851  1.1  christos #include <string.h>
   10852  1.1  christos 
   10853  1.1  christos _ACEOF
   10854  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10855  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   10856  1.1  christos   :
   10857  1.1  christos else
   10858  1.1  christos   ac_cv_header_stdc=no
   10859  1.1  christos fi
   10860  1.1  christos rm -f conftest*
   10861  1.1  christos 
   10862  1.1  christos fi
   10863  1.1  christos 
   10864  1.1  christos if test $ac_cv_header_stdc = yes; then
   10865  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   10866  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10867  1.1  christos #line $LINENO "configure"
   10868  1.1  christos #include "confdefs.h"
   10869  1.1  christos #include <stdlib.h>
   10870  1.1  christos 
   10871  1.1  christos _ACEOF
   10872  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10873  1.1  christos   egrep "free" >/dev/null 2>&1; then
   10874  1.1  christos   :
   10875  1.1  christos else
   10876  1.1  christos   ac_cv_header_stdc=no
   10877  1.1  christos fi
   10878  1.1  christos rm -f conftest*
   10879  1.1  christos 
   10880  1.1  christos fi
   10881  1.1  christos 
   10882  1.1  christos if test $ac_cv_header_stdc = yes; then
   10883  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   10884  1.1  christos   if test "$cross_compiling" = yes; then
   10885  1.1  christos   :
   10886  1.1  christos else
   10887  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10888  1.1  christos #line $LINENO "configure"
   10889  1.1  christos #include "confdefs.h"
   10890  1.1  christos #include <ctype.h>
   10891  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   10892  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   10893  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   10894  1.1  christos #else
   10895  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   10896  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   10897  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   10898  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   10899  1.1  christos #endif
   10900  1.1  christos 
   10901  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   10902  1.1  christos int
   10903  1.1  christos main ()
   10904  1.1  christos {
   10905  1.1  christos   int i;
   10906  1.1  christos   for (i = 0; i < 256; i++)
   10907  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   10908  1.1  christos         || toupper (i) != TOUPPER (i))
   10909  1.1  christos       exit(2);
   10910  1.1  christos   exit (0);
   10911  1.1  christos }
   10912  1.1  christos _ACEOF
   10913  1.1  christos rm -f conftest$ac_exeext
   10914  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   10915  1.1  christos   (eval $ac_link) 2>&5
   10916  1.1  christos   ac_status=$?
   10917  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10918  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10919  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10920  1.1  christos   (eval $ac_try) 2>&5
   10921  1.1  christos   ac_status=$?
   10922  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10923  1.1  christos   (exit $ac_status); }; }; then
   10924  1.1  christos   :
   10925  1.1  christos else
   10926  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10927  1.1  christos echo "$as_me: failed program was:" >&5
   10928  1.1  christos cat conftest.$ac_ext >&5
   10929  1.1  christos ( exit $ac_status )
   10930  1.1  christos ac_cv_header_stdc=no
   10931  1.1  christos fi
   10932  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   10933  1.1  christos fi
   10934  1.1  christos fi
   10935  1.1  christos fi
   10936  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   10937  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   10938  1.1  christos if test $ac_cv_header_stdc = yes; then
   10939  1.1  christos 
   10940  1.1  christos cat >>confdefs.h <<\_ACEOF
   10941  1.1  christos #define STDC_HEADERS 1
   10942  1.1  christos _ACEOF
   10943  1.1  christos 
   10944  1.1  christos fi
   10945  1.1  christos 
   10946  1.1  christos 
   10947  1.1  christos   echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
   10948  1.1  christos echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
   10949  1.1  christos if test "${ac_cv_c_backslash_a+set}" = set; then
   10950  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10951  1.1  christos else
   10952  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10953  1.1  christos #line $LINENO "configure"
   10954  1.1  christos #include "confdefs.h"
   10955  1.1  christos 
   10956  1.1  christos #ifdef F77_DUMMY_MAIN
   10957  1.1  christos #  ifdef __cplusplus
   10958  1.1  christos      extern "C"
   10959  1.1  christos #  endif
   10960  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   10961  1.1  christos #endif
   10962  1.1  christos int
   10963  1.1  christos main ()
   10964  1.1  christos {
   10965  1.1  christos 
   10966  1.1  christos #if '\a' == 'a'
   10967  1.1  christos       syntax error;
   10968  1.1  christos #endif
   10969  1.1  christos       char buf['\a' == 'a' ? -1 : 1];
   10970  1.1  christos       buf[0] = '\a';
   10971  1.1  christos       return buf[0] != "\a"[0];
   10972  1.1  christos 
   10973  1.1  christos   ;
   10974  1.1  christos   return 0;
   10975  1.1  christos }
   10976  1.1  christos _ACEOF
   10977  1.1  christos rm -f conftest.$ac_objext
   10978  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10979  1.1  christos   (eval $ac_compile) 2>&5
   10980  1.1  christos   ac_status=$?
   10981  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10982  1.1  christos   (exit $ac_status); } &&
   10983  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   10984  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   10985  1.1  christos   (eval $ac_try) 2>&5
   10986  1.1  christos   ac_status=$?
   10987  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10988  1.1  christos   (exit $ac_status); }; }; then
   10989  1.1  christos   ac_cv_c_backslash_a=yes
   10990  1.1  christos else
   10991  1.1  christos   echo "$as_me: failed program was:" >&5
   10992  1.1  christos cat conftest.$ac_ext >&5
   10993  1.1  christos ac_cv_c_backslash_a=no
   10994  1.1  christos fi
   10995  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   10996  1.1  christos fi
   10997  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
   10998  1.1  christos echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
   10999  1.1  christos   if test $ac_cv_c_backslash_a = yes; then
   11000  1.1  christos 
   11001  1.1  christos cat >>confdefs.h <<\_ACEOF
   11002  1.1  christos #define HAVE_C_BACKSLASH_A 1
   11003  1.1  christos _ACEOF
   11004  1.1  christos 
   11005  1.1  christos   fi
   11006  1.1  christos 
   11007  1.1  christos 
   11008  1.1  christos 
   11009  1.1  christos for ac_header in stdlib.h
   11010  1.1  christos do
   11011  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11012  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11013  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   11014  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11015  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11016  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11017  1.1  christos fi
   11018  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11019  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11020  1.1  christos else
   11021  1.1  christos   # Is the header compilable?
   11022  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11023  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   11024  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11025  1.1  christos #line $LINENO "configure"
   11026  1.1  christos #include "confdefs.h"
   11027  1.1  christos $ac_includes_default
   11028  1.1  christos #include <$ac_header>
   11029  1.1  christos _ACEOF
   11030  1.1  christos rm -f conftest.$ac_objext
   11031  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11032  1.1  christos   (eval $ac_compile) 2>&5
   11033  1.1  christos   ac_status=$?
   11034  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11035  1.1  christos   (exit $ac_status); } &&
   11036  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   11037  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11038  1.1  christos   (eval $ac_try) 2>&5
   11039  1.1  christos   ac_status=$?
   11040  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11041  1.1  christos   (exit $ac_status); }; }; then
   11042  1.1  christos   ac_header_compiler=yes
   11043  1.1  christos else
   11044  1.1  christos   echo "$as_me: failed program was:" >&5
   11045  1.1  christos cat conftest.$ac_ext >&5
   11046  1.1  christos ac_header_compiler=no
   11047  1.1  christos fi
   11048  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   11049  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11050  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   11051  1.1  christos 
   11052  1.1  christos # Is the header present?
   11053  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11054  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   11055  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11056  1.1  christos #line $LINENO "configure"
   11057  1.1  christos #include "confdefs.h"
   11058  1.1  christos #include <$ac_header>
   11059  1.1  christos _ACEOF
   11060  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   11061  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11062  1.1  christos   ac_status=$?
   11063  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   11064  1.1  christos   rm -f conftest.er1
   11065  1.1  christos   cat conftest.err >&5
   11066  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11067  1.1  christos   (exit $ac_status); } >/dev/null; then
   11068  1.1  christos   if test -s conftest.err; then
   11069  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   11070  1.1  christos   else
   11071  1.1  christos     ac_cpp_err=
   11072  1.1  christos   fi
   11073  1.1  christos else
   11074  1.1  christos   ac_cpp_err=yes
   11075  1.1  christos fi
   11076  1.1  christos if test -z "$ac_cpp_err"; then
   11077  1.1  christos   ac_header_preproc=yes
   11078  1.1  christos else
   11079  1.1  christos   echo "$as_me: failed program was:" >&5
   11080  1.1  christos   cat conftest.$ac_ext >&5
   11081  1.1  christos   ac_header_preproc=no
   11082  1.1  christos fi
   11083  1.1  christos rm -f conftest.err conftest.$ac_ext
   11084  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11085  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   11086  1.1  christos 
   11087  1.1  christos # So?  What about this header?
   11088  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   11089  1.1  christos   yes:no )
   11090  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11091  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11092  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11093  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11094  1.1  christos   no:yes )
   11095  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11096  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11097  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   11098  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   11099  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11100  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11101  1.1  christos esac
   11102  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   11103  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11104  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11105  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11106  1.1  christos else
   11107  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   11108  1.1  christos fi
   11109  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11110  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11111  1.1  christos 
   11112  1.1  christos fi
   11113  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11114  1.1  christos   cat >>confdefs.h <<_ACEOF
   11115  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11116  1.1  christos _ACEOF
   11117  1.1  christos 
   11118  1.1  christos fi
   11119  1.1  christos 
   11120  1.1  christos done
   11121  1.1  christos 
   11122  1.1  christos 
   11123  1.1  christos    echo "$as_me:$LINENO: checking for mbstate_t" >&5
   11124  1.1  christos echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
   11125  1.1  christos if test "${ac_cv_type_mbstate_t+set}" = set; then
   11126  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11127  1.1  christos else
   11128  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11129  1.1  christos #line $LINENO "configure"
   11130  1.1  christos #include "confdefs.h"
   11131  1.1  christos 
   11132  1.1  christos #if HAVE_STDLIB_H
   11133  1.1  christos # include <stdlib.h>
   11134  1.1  christos #endif
   11135  1.1  christos #include <wchar.h>
   11136  1.1  christos #ifdef F77_DUMMY_MAIN
   11137  1.1  christos #  ifdef __cplusplus
   11138  1.1  christos      extern "C"
   11139  1.1  christos #  endif
   11140  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   11141  1.1  christos #endif
   11142  1.1  christos int
   11143  1.1  christos main ()
   11144  1.1  christos {
   11145  1.1  christos mbstate_t x; return sizeof x;
   11146  1.1  christos   ;
   11147  1.1  christos   return 0;
   11148  1.1  christos }
   11149  1.1  christos _ACEOF
   11150  1.1  christos rm -f conftest.$ac_objext
   11151  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11152  1.1  christos   (eval $ac_compile) 2>&5
   11153  1.1  christos   ac_status=$?
   11154  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11155  1.1  christos   (exit $ac_status); } &&
   11156  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   11157  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11158  1.1  christos   (eval $ac_try) 2>&5
   11159  1.1  christos   ac_status=$?
   11160  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11161  1.1  christos   (exit $ac_status); }; }; then
   11162  1.1  christos   ac_cv_type_mbstate_t=yes
   11163  1.1  christos else
   11164  1.1  christos   echo "$as_me: failed program was:" >&5
   11165  1.1  christos cat conftest.$ac_ext >&5
   11166  1.1  christos ac_cv_type_mbstate_t=no
   11167  1.1  christos fi
   11168  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   11169  1.1  christos fi
   11170  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
   11171  1.1  christos echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
   11172  1.1  christos    if test $ac_cv_type_mbstate_t = no; then
   11173  1.1  christos 
   11174  1.1  christos cat >>confdefs.h <<\_ACEOF
   11175  1.1  christos #define mbstate_t int
   11176  1.1  christos _ACEOF
   11177  1.1  christos 
   11178  1.1  christos    fi
   11179  1.1  christos 
   11180  1.1  christos 
   11181  1.1  christos echo "$as_me:$LINENO: checking for function prototypes" >&5
   11182  1.1  christos echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
   11183  1.1  christos if test "$am_cv_prog_cc_stdc" != no; then
   11184  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   11185  1.1  christos echo "${ECHO_T}yes" >&6
   11186  1.1  christos 
   11187  1.1  christos cat >>confdefs.h <<\_ACEOF
   11188  1.1  christos #define PROTOTYPES 1
   11189  1.1  christos _ACEOF
   11190  1.1  christos 
   11191  1.1  christos   U= ANSI2KNR=
   11192  1.1  christos else
   11193  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   11194  1.1  christos echo "${ECHO_T}no" >&6
   11195  1.1  christos   U=_ ANSI2KNR=./ansi2knr
   11196  1.1  christos fi
   11197  1.1  christos # Ensure some checks needed by ansi2knr itself.
   11198  1.1  christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   11199  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   11200  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   11201  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11202  1.1  christos else
   11203  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11204  1.1  christos #line $LINENO "configure"
   11205  1.1  christos #include "confdefs.h"
   11206  1.1  christos #include <stdlib.h>
   11207  1.1  christos #include <stdarg.h>
   11208  1.1  christos #include <string.h>
   11209  1.1  christos #include <float.h>
   11210  1.1  christos 
   11211  1.1  christos _ACEOF
   11212  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   11213  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11214  1.1  christos   ac_status=$?
   11215  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   11216  1.1  christos   rm -f conftest.er1
   11217  1.1  christos   cat conftest.err >&5
   11218  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11219  1.1  christos   (exit $ac_status); } >/dev/null; then
   11220  1.1  christos   if test -s conftest.err; then
   11221  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   11222  1.1  christos   else
   11223  1.1  christos     ac_cpp_err=
   11224  1.1  christos   fi
   11225  1.1  christos else
   11226  1.1  christos   ac_cpp_err=yes
   11227  1.1  christos fi
   11228  1.1  christos if test -z "$ac_cpp_err"; then
   11229  1.1  christos   ac_cv_header_stdc=yes
   11230  1.1  christos else
   11231  1.1  christos   echo "$as_me: failed program was:" >&5
   11232  1.1  christos   cat conftest.$ac_ext >&5
   11233  1.1  christos   ac_cv_header_stdc=no
   11234  1.1  christos fi
   11235  1.1  christos rm -f conftest.err conftest.$ac_ext
   11236  1.1  christos 
   11237  1.1  christos if test $ac_cv_header_stdc = yes; then
   11238  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   11239  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11240  1.1  christos #line $LINENO "configure"
   11241  1.1  christos #include "confdefs.h"
   11242  1.1  christos #include <string.h>
   11243  1.1  christos 
   11244  1.1  christos _ACEOF
   11245  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11246  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   11247  1.1  christos   :
   11248  1.1  christos else
   11249  1.1  christos   ac_cv_header_stdc=no
   11250  1.1  christos fi
   11251  1.1  christos rm -f conftest*
   11252  1.1  christos 
   11253  1.1  christos fi
   11254  1.1  christos 
   11255  1.1  christos if test $ac_cv_header_stdc = yes; then
   11256  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   11257  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11258  1.1  christos #line $LINENO "configure"
   11259  1.1  christos #include "confdefs.h"
   11260  1.1  christos #include <stdlib.h>
   11261  1.1  christos 
   11262  1.1  christos _ACEOF
   11263  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11264  1.1  christos   egrep "free" >/dev/null 2>&1; then
   11265  1.1  christos   :
   11266  1.1  christos else
   11267  1.1  christos   ac_cv_header_stdc=no
   11268  1.1  christos fi
   11269  1.1  christos rm -f conftest*
   11270  1.1  christos 
   11271  1.1  christos fi
   11272  1.1  christos 
   11273  1.1  christos if test $ac_cv_header_stdc = yes; then
   11274  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   11275  1.1  christos   if test "$cross_compiling" = yes; then
   11276  1.1  christos   :
   11277  1.1  christos else
   11278  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11279  1.1  christos #line $LINENO "configure"
   11280  1.1  christos #include "confdefs.h"
   11281  1.1  christos #include <ctype.h>
   11282  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   11283  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   11284  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   11285  1.1  christos #else
   11286  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   11287  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   11288  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   11289  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   11290  1.1  christos #endif
   11291  1.1  christos 
   11292  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   11293  1.1  christos int
   11294  1.1  christos main ()
   11295  1.1  christos {
   11296  1.1  christos   int i;
   11297  1.1  christos   for (i = 0; i < 256; i++)
   11298  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   11299  1.1  christos         || toupper (i) != TOUPPER (i))
   11300  1.1  christos       exit(2);
   11301  1.1  christos   exit (0);
   11302  1.1  christos }
   11303  1.1  christos _ACEOF
   11304  1.1  christos rm -f conftest$ac_exeext
   11305  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   11306  1.1  christos   (eval $ac_link) 2>&5
   11307  1.1  christos   ac_status=$?
   11308  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11309  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   11310  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11311  1.1  christos   (eval $ac_try) 2>&5
   11312  1.1  christos   ac_status=$?
   11313  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11314  1.1  christos   (exit $ac_status); }; }; then
   11315  1.1  christos   :
   11316  1.1  christos else
   11317  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   11318  1.1  christos echo "$as_me: failed program was:" >&5
   11319  1.1  christos cat conftest.$ac_ext >&5
   11320  1.1  christos ( exit $ac_status )
   11321  1.1  christos ac_cv_header_stdc=no
   11322  1.1  christos fi
   11323  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11324  1.1  christos fi
   11325  1.1  christos fi
   11326  1.1  christos fi
   11327  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   11328  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   11329  1.1  christos if test $ac_cv_header_stdc = yes; then
   11330  1.1  christos 
   11331  1.1  christos cat >>confdefs.h <<\_ACEOF
   11332  1.1  christos #define STDC_HEADERS 1
   11333  1.1  christos _ACEOF
   11334  1.1  christos 
   11335  1.1  christos fi
   11336  1.1  christos 
   11337  1.1  christos 
   11338  1.1  christos for ac_header in string.h
   11339  1.1  christos do
   11340  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11341  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11342  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   11343  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11344  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11345  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11346  1.1  christos fi
   11347  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11348  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11349  1.1  christos else
   11350  1.1  christos   # Is the header compilable?
   11351  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11352  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   11353  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11354  1.1  christos #line $LINENO "configure"
   11355  1.1  christos #include "confdefs.h"
   11356  1.1  christos $ac_includes_default
   11357  1.1  christos #include <$ac_header>
   11358  1.1  christos _ACEOF
   11359  1.1  christos rm -f conftest.$ac_objext
   11360  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11361  1.1  christos   (eval $ac_compile) 2>&5
   11362  1.1  christos   ac_status=$?
   11363  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11364  1.1  christos   (exit $ac_status); } &&
   11365  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   11366  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11367  1.1  christos   (eval $ac_try) 2>&5
   11368  1.1  christos   ac_status=$?
   11369  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11370  1.1  christos   (exit $ac_status); }; }; then
   11371  1.1  christos   ac_header_compiler=yes
   11372  1.1  christos else
   11373  1.1  christos   echo "$as_me: failed program was:" >&5
   11374  1.1  christos cat conftest.$ac_ext >&5
   11375  1.1  christos ac_header_compiler=no
   11376  1.1  christos fi
   11377  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   11378  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11379  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   11380  1.1  christos 
   11381  1.1  christos # Is the header present?
   11382  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11383  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   11384  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11385  1.1  christos #line $LINENO "configure"
   11386  1.1  christos #include "confdefs.h"
   11387  1.1  christos #include <$ac_header>
   11388  1.1  christos _ACEOF
   11389  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   11390  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11391  1.1  christos   ac_status=$?
   11392  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   11393  1.1  christos   rm -f conftest.er1
   11394  1.1  christos   cat conftest.err >&5
   11395  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11396  1.1  christos   (exit $ac_status); } >/dev/null; then
   11397  1.1  christos   if test -s conftest.err; then
   11398  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   11399  1.1  christos   else
   11400  1.1  christos     ac_cpp_err=
   11401  1.1  christos   fi
   11402  1.1  christos else
   11403  1.1  christos   ac_cpp_err=yes
   11404  1.1  christos fi
   11405  1.1  christos if test -z "$ac_cpp_err"; then
   11406  1.1  christos   ac_header_preproc=yes
   11407  1.1  christos else
   11408  1.1  christos   echo "$as_me: failed program was:" >&5
   11409  1.1  christos   cat conftest.$ac_ext >&5
   11410  1.1  christos   ac_header_preproc=no
   11411  1.1  christos fi
   11412  1.1  christos rm -f conftest.err conftest.$ac_ext
   11413  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11414  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   11415  1.1  christos 
   11416  1.1  christos # So?  What about this header?
   11417  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   11418  1.1  christos   yes:no )
   11419  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11420  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11421  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11422  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11423  1.1  christos   no:yes )
   11424  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11425  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11426  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   11427  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   11428  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11429  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11430  1.1  christos esac
   11431  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   11432  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11433  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11434  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11435  1.1  christos else
   11436  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   11437  1.1  christos fi
   11438  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11439  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11440  1.1  christos 
   11441  1.1  christos fi
   11442  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11443  1.1  christos   cat >>confdefs.h <<_ACEOF
   11444  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11445  1.1  christos _ACEOF
   11446  1.1  christos 
   11447  1.1  christos fi
   11448  1.1  christos 
   11449  1.1  christos done
   11450  1.1  christos 
   11451  1.1  christos 
   11452  1.1  christos 
   11453  1.1  christos 
   11454  1.1  christos 
   11455  1.1  christos 
   11456  1.1  christos 
   11457  1.1  christos 
   11458  1.1  christos for ac_func in bzero bcopy isascii btowc
   11459  1.1  christos do
   11460  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11461  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   11462  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   11463  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   11464  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11465  1.1  christos else
   11466  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11467  1.1  christos #line $LINENO "configure"
   11468  1.1  christos #include "confdefs.h"
   11469  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   11470  1.1  christos     which can conflict with char $ac_func (); below.  */
   11471  1.1  christos #include <assert.h>
   11472  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   11473  1.1  christos #ifdef __cplusplus
   11474  1.1  christos extern "C"
   11475  1.1  christos #endif
   11476  1.1  christos /* We use char because int might match the return type of a gcc2
   11477  1.1  christos    builtin and then its argument prototype would still apply.  */
   11478  1.1  christos char $ac_func ();
   11479  1.1  christos char (*f) ();
   11480  1.1  christos 
   11481  1.1  christos #ifdef F77_DUMMY_MAIN
   11482  1.1  christos #  ifdef __cplusplus
   11483  1.1  christos      extern "C"
   11484  1.1  christos #  endif
   11485  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   11486  1.1  christos #endif
   11487  1.1  christos int
   11488  1.1  christos main ()
   11489  1.1  christos {
   11490  1.1  christos /* The GNU C library defines this for functions which it implements
   11491  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   11492  1.1  christos     something starting with __ and the normal name is an alias.  */
   11493  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   11494  1.1  christos choke me
   11495  1.1  christos #else
   11496  1.1  christos f = $ac_func;
   11497  1.1  christos #endif
   11498  1.1  christos 
   11499  1.1  christos   ;
   11500  1.1  christos   return 0;
   11501  1.1  christos }
   11502  1.1  christos _ACEOF
   11503  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   11504  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   11505  1.1  christos   (eval $ac_link) 2>&5
   11506  1.1  christos   ac_status=$?
   11507  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11508  1.1  christos   (exit $ac_status); } &&
   11509  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   11510  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11511  1.1  christos   (eval $ac_try) 2>&5
   11512  1.1  christos   ac_status=$?
   11513  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11514  1.1  christos   (exit $ac_status); }; }; then
   11515  1.1  christos   eval "$as_ac_var=yes"
   11516  1.1  christos else
   11517  1.1  christos   echo "$as_me: failed program was:" >&5
   11518  1.1  christos cat conftest.$ac_ext >&5
   11519  1.1  christos eval "$as_ac_var=no"
   11520  1.1  christos fi
   11521  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11522  1.1  christos fi
   11523  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   11524  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   11525  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   11526  1.1  christos   cat >>confdefs.h <<_ACEOF
   11527  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11528  1.1  christos _ACEOF
   11529  1.1  christos 
   11530  1.1  christos fi
   11531  1.1  christos done
   11532  1.1  christos 
   11533  1.1  christos 
   11534  1.1  christos 
   11535  1.1  christos 
   11536  1.1  christos 
   11537  1.1  christos for ac_header in alloca.h libintl.h wctype.h wchar.h
   11538  1.1  christos do
   11539  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11540  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11541  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   11542  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11543  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11544  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11545  1.1  christos fi
   11546  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11547  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11548  1.1  christos else
   11549  1.1  christos   # Is the header compilable?
   11550  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11551  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   11552  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11553  1.1  christos #line $LINENO "configure"
   11554  1.1  christos #include "confdefs.h"
   11555  1.1  christos $ac_includes_default
   11556  1.1  christos #include <$ac_header>
   11557  1.1  christos _ACEOF
   11558  1.1  christos rm -f conftest.$ac_objext
   11559  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11560  1.1  christos   (eval $ac_compile) 2>&5
   11561  1.1  christos   ac_status=$?
   11562  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11563  1.1  christos   (exit $ac_status); } &&
   11564  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   11565  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11566  1.1  christos   (eval $ac_try) 2>&5
   11567  1.1  christos   ac_status=$?
   11568  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11569  1.1  christos   (exit $ac_status); }; }; then
   11570  1.1  christos   ac_header_compiler=yes
   11571  1.1  christos else
   11572  1.1  christos   echo "$as_me: failed program was:" >&5
   11573  1.1  christos cat conftest.$ac_ext >&5
   11574  1.1  christos ac_header_compiler=no
   11575  1.1  christos fi
   11576  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   11577  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11578  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   11579  1.1  christos 
   11580  1.1  christos # Is the header present?
   11581  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11582  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   11583  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11584  1.1  christos #line $LINENO "configure"
   11585  1.1  christos #include "confdefs.h"
   11586  1.1  christos #include <$ac_header>
   11587  1.1  christos _ACEOF
   11588  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   11589  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11590  1.1  christos   ac_status=$?
   11591  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   11592  1.1  christos   rm -f conftest.er1
   11593  1.1  christos   cat conftest.err >&5
   11594  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11595  1.1  christos   (exit $ac_status); } >/dev/null; then
   11596  1.1  christos   if test -s conftest.err; then
   11597  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   11598  1.1  christos   else
   11599  1.1  christos     ac_cpp_err=
   11600  1.1  christos   fi
   11601  1.1  christos else
   11602  1.1  christos   ac_cpp_err=yes
   11603  1.1  christos fi
   11604  1.1  christos if test -z "$ac_cpp_err"; then
   11605  1.1  christos   ac_header_preproc=yes
   11606  1.1  christos else
   11607  1.1  christos   echo "$as_me: failed program was:" >&5
   11608  1.1  christos   cat conftest.$ac_ext >&5
   11609  1.1  christos   ac_header_preproc=no
   11610  1.1  christos fi
   11611  1.1  christos rm -f conftest.err conftest.$ac_ext
   11612  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11613  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   11614  1.1  christos 
   11615  1.1  christos # So?  What about this header?
   11616  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   11617  1.1  christos   yes:no )
   11618  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11619  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11620  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11621  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11622  1.1  christos   no:yes )
   11623  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11624  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11625  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   11626  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   11627  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11628  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   11629  1.1  christos esac
   11630  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   11631  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   11632  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   11633  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11634  1.1  christos else
   11635  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   11636  1.1  christos fi
   11637  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11638  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11639  1.1  christos 
   11640  1.1  christos fi
   11641  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11642  1.1  christos   cat >>confdefs.h <<_ACEOF
   11643  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11644  1.1  christos _ACEOF
   11645  1.1  christos 
   11646  1.1  christos fi
   11647  1.1  christos 
   11648  1.1  christos done
   11649  1.1  christos 
   11650  1.1  christos   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   11651  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   11652  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   11653  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11654  1.1  christos else
   11655  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11656  1.1  christos #line $LINENO "configure"
   11657  1.1  christos #include "confdefs.h"
   11658  1.1  christos #include <stdlib.h>
   11659  1.1  christos #include <stdarg.h>
   11660  1.1  christos #include <string.h>
   11661  1.1  christos #include <float.h>
   11662  1.1  christos 
   11663  1.1  christos _ACEOF
   11664  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   11665  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11666  1.1  christos   ac_status=$?
   11667  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   11668  1.1  christos   rm -f conftest.er1
   11669  1.1  christos   cat conftest.err >&5
   11670  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11671  1.1  christos   (exit $ac_status); } >/dev/null; then
   11672  1.1  christos   if test -s conftest.err; then
   11673  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   11674  1.1  christos   else
   11675  1.1  christos     ac_cpp_err=
   11676  1.1  christos   fi
   11677  1.1  christos else
   11678  1.1  christos   ac_cpp_err=yes
   11679  1.1  christos fi
   11680  1.1  christos if test -z "$ac_cpp_err"; then
   11681  1.1  christos   ac_cv_header_stdc=yes
   11682  1.1  christos else
   11683  1.1  christos   echo "$as_me: failed program was:" >&5
   11684  1.1  christos   cat conftest.$ac_ext >&5
   11685  1.1  christos   ac_cv_header_stdc=no
   11686  1.1  christos fi
   11687  1.1  christos rm -f conftest.err conftest.$ac_ext
   11688  1.1  christos 
   11689  1.1  christos if test $ac_cv_header_stdc = yes; then
   11690  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   11691  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11692  1.1  christos #line $LINENO "configure"
   11693  1.1  christos #include "confdefs.h"
   11694  1.1  christos #include <string.h>
   11695  1.1  christos 
   11696  1.1  christos _ACEOF
   11697  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11698  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   11699  1.1  christos   :
   11700  1.1  christos else
   11701  1.1  christos   ac_cv_header_stdc=no
   11702  1.1  christos fi
   11703  1.1  christos rm -f conftest*
   11704  1.1  christos 
   11705  1.1  christos fi
   11706  1.1  christos 
   11707  1.1  christos if test $ac_cv_header_stdc = yes; then
   11708  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   11709  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11710  1.1  christos #line $LINENO "configure"
   11711  1.1  christos #include "confdefs.h"
   11712  1.1  christos #include <stdlib.h>
   11713  1.1  christos 
   11714  1.1  christos _ACEOF
   11715  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11716  1.1  christos   egrep "free" >/dev/null 2>&1; then
   11717  1.1  christos   :
   11718  1.1  christos else
   11719  1.1  christos   ac_cv_header_stdc=no
   11720  1.1  christos fi
   11721  1.1  christos rm -f conftest*
   11722  1.1  christos 
   11723  1.1  christos fi
   11724  1.1  christos 
   11725  1.1  christos if test $ac_cv_header_stdc = yes; then
   11726  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   11727  1.1  christos   if test "$cross_compiling" = yes; then
   11728  1.1  christos   :
   11729  1.1  christos else
   11730  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11731  1.1  christos #line $LINENO "configure"
   11732  1.1  christos #include "confdefs.h"
   11733  1.1  christos #include <ctype.h>
   11734  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   11735  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   11736  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   11737  1.1  christos #else
   11738  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   11739  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   11740  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   11741  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   11742  1.1  christos #endif
   11743  1.1  christos 
   11744  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   11745  1.1  christos int
   11746  1.1  christos main ()
   11747  1.1  christos {
   11748  1.1  christos   int i;
   11749  1.1  christos   for (i = 0; i < 256; i++)
   11750  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   11751  1.1  christos         || toupper (i) != TOUPPER (i))
   11752  1.1  christos       exit(2);
   11753  1.1  christos   exit (0);
   11754  1.1  christos }
   11755  1.1  christos _ACEOF
   11756  1.1  christos rm -f conftest$ac_exeext
   11757  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   11758  1.1  christos   (eval $ac_link) 2>&5
   11759  1.1  christos   ac_status=$?
   11760  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11761  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   11762  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11763  1.1  christos   (eval $ac_try) 2>&5
   11764  1.1  christos   ac_status=$?
   11765  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11766  1.1  christos   (exit $ac_status); }; }; then
   11767  1.1  christos   :
   11768  1.1  christos else
   11769  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   11770  1.1  christos echo "$as_me: failed program was:" >&5
   11771  1.1  christos cat conftest.$ac_ext >&5
   11772  1.1  christos ( exit $ac_status )
   11773  1.1  christos ac_cv_header_stdc=no
   11774  1.1  christos fi
   11775  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11776  1.1  christos fi
   11777  1.1  christos fi
   11778  1.1  christos fi
   11779  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   11780  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   11781  1.1  christos if test $ac_cv_header_stdc = yes; then
   11782  1.1  christos 
   11783  1.1  christos cat >>confdefs.h <<\_ACEOF
   11784  1.1  christos #define STDC_HEADERS 1
   11785  1.1  christos _ACEOF
   11786  1.1  christos 
   11787  1.1  christos fi
   11788  1.1  christos 
   11789  1.1  christos   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   11790  1.1  christos # for constant arguments.  Useless!
   11791  1.1  christos echo "$as_me:$LINENO: checking for working alloca.h" >&5
   11792  1.1  christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
   11793  1.1  christos if test "${ac_cv_working_alloca_h+set}" = set; then
   11794  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11795  1.1  christos else
   11796  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11797  1.1  christos #line $LINENO "configure"
   11798  1.1  christos #include "confdefs.h"
   11799  1.1  christos #include <alloca.h>
   11800  1.1  christos #ifdef F77_DUMMY_MAIN
   11801  1.1  christos #  ifdef __cplusplus
   11802  1.1  christos      extern "C"
   11803  1.1  christos #  endif
   11804  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   11805  1.1  christos #endif
   11806  1.1  christos int
   11807  1.1  christos main ()
   11808  1.1  christos {
   11809  1.1  christos char *p = (char *) alloca (2 * sizeof (int));
   11810  1.1  christos   ;
   11811  1.1  christos   return 0;
   11812  1.1  christos }
   11813  1.1  christos _ACEOF
   11814  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   11815  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   11816  1.1  christos   (eval $ac_link) 2>&5
   11817  1.1  christos   ac_status=$?
   11818  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11819  1.1  christos   (exit $ac_status); } &&
   11820  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   11821  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11822  1.1  christos   (eval $ac_try) 2>&5
   11823  1.1  christos   ac_status=$?
   11824  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11825  1.1  christos   (exit $ac_status); }; }; then
   11826  1.1  christos   ac_cv_working_alloca_h=yes
   11827  1.1  christos else
   11828  1.1  christos   echo "$as_me: failed program was:" >&5
   11829  1.1  christos cat conftest.$ac_ext >&5
   11830  1.1  christos ac_cv_working_alloca_h=no
   11831  1.1  christos fi
   11832  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11833  1.1  christos fi
   11834  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
   11835  1.1  christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
   11836  1.1  christos if test $ac_cv_working_alloca_h = yes; then
   11837  1.1  christos 
   11838  1.1  christos cat >>confdefs.h <<\_ACEOF
   11839  1.1  christos #define HAVE_ALLOCA_H 1
   11840  1.1  christos _ACEOF
   11841  1.1  christos 
   11842  1.1  christos fi
   11843  1.1  christos 
   11844  1.1  christos echo "$as_me:$LINENO: checking for alloca" >&5
   11845  1.1  christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6
   11846  1.1  christos if test "${ac_cv_func_alloca_works+set}" = set; then
   11847  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11848  1.1  christos else
   11849  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11850  1.1  christos #line $LINENO "configure"
   11851  1.1  christos #include "confdefs.h"
   11852  1.1  christos #ifdef __GNUC__
   11853  1.1  christos # define alloca __builtin_alloca
   11854  1.1  christos #else
   11855  1.1  christos # ifdef _MSC_VER
   11856  1.1  christos #  include <malloc.h>
   11857  1.1  christos #  define alloca _alloca
   11858  1.1  christos # else
   11859  1.1  christos #  if HAVE_ALLOCA_H
   11860  1.1  christos #   include <alloca.h>
   11861  1.1  christos #  else
   11862  1.1  christos #   ifdef _AIX
   11863  1.1  christos  #pragma alloca
   11864  1.1  christos #   else
   11865  1.1  christos #    ifndef alloca /* predefined by HP cc +Olibcalls */
   11866  1.1  christos char *alloca ();
   11867  1.1  christos #    endif
   11868  1.1  christos #   endif
   11869  1.1  christos #  endif
   11870  1.1  christos # endif
   11871  1.1  christos #endif
   11872  1.1  christos 
   11873  1.1  christos #ifdef F77_DUMMY_MAIN
   11874  1.1  christos #  ifdef __cplusplus
   11875  1.1  christos      extern "C"
   11876  1.1  christos #  endif
   11877  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   11878  1.1  christos #endif
   11879  1.1  christos int
   11880  1.1  christos main ()
   11881  1.1  christos {
   11882  1.1  christos char *p = (char *) alloca (1);
   11883  1.1  christos   ;
   11884  1.1  christos   return 0;
   11885  1.1  christos }
   11886  1.1  christos _ACEOF
   11887  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   11888  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   11889  1.1  christos   (eval $ac_link) 2>&5
   11890  1.1  christos   ac_status=$?
   11891  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11892  1.1  christos   (exit $ac_status); } &&
   11893  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   11894  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   11895  1.1  christos   (eval $ac_try) 2>&5
   11896  1.1  christos   ac_status=$?
   11897  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11898  1.1  christos   (exit $ac_status); }; }; then
   11899  1.1  christos   ac_cv_func_alloca_works=yes
   11900  1.1  christos else
   11901  1.1  christos   echo "$as_me: failed program was:" >&5
   11902  1.1  christos cat conftest.$ac_ext >&5
   11903  1.1  christos ac_cv_func_alloca_works=no
   11904  1.1  christos fi
   11905  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11906  1.1  christos fi
   11907  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
   11908  1.1  christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
   11909  1.1  christos 
   11910  1.1  christos if test $ac_cv_func_alloca_works = yes; then
   11911  1.1  christos 
   11912  1.1  christos cat >>confdefs.h <<\_ACEOF
   11913  1.1  christos #define HAVE_ALLOCA 1
   11914  1.1  christos _ACEOF
   11915  1.1  christos 
   11916  1.1  christos else
   11917  1.1  christos   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   11918  1.1  christos # that cause trouble.  Some versions do not even contain alloca or
   11919  1.1  christos # contain a buggy version.  If you still want to use their alloca,
   11920  1.1  christos # use ar to extract alloca.o from them instead of compiling alloca.c.
   11921  1.1  christos 
   11922  1.1  christos ALLOCA=alloca.$ac_objext
   11923  1.1  christos 
   11924  1.1  christos cat >>confdefs.h <<\_ACEOF
   11925  1.1  christos #define C_ALLOCA 1
   11926  1.1  christos _ACEOF
   11927  1.1  christos 
   11928  1.1  christos 
   11929  1.1  christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
   11930  1.1  christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
   11931  1.1  christos if test "${ac_cv_os_cray+set}" = set; then
   11932  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11933  1.1  christos else
   11934  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11935  1.1  christos #line $LINENO "configure"
   11936  1.1  christos #include "confdefs.h"
   11937  1.1  christos #if defined(CRAY) && ! defined(CRAY2)
   11938  1.1  christos webecray
   11939  1.1  christos #else
   11940  1.1  christos wenotbecray
   11941  1.1  christos #endif
   11942  1.1  christos 
   11943  1.1  christos _ACEOF
   11944  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11945  1.1  christos   egrep "webecray" >/dev/null 2>&1; then
   11946  1.1  christos   ac_cv_os_cray=yes
   11947  1.1  christos else
   11948  1.1  christos   ac_cv_os_cray=no
   11949  1.1  christos fi
   11950  1.1  christos rm -f conftest*
   11951  1.1  christos 
   11952  1.1  christos fi
   11953  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
   11954  1.1  christos echo "${ECHO_T}$ac_cv_os_cray" >&6
   11955  1.1  christos if test $ac_cv_os_cray = yes; then
   11956  1.1  christos   for ac_func in _getb67 GETB67 getb67; do
   11957  1.1  christos     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11958  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   11959  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   11960  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   11961  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11962  1.1  christos else
   11963  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11964  1.1  christos #line $LINENO "configure"
   11965  1.1  christos #include "confdefs.h"
   11966  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   11967  1.1  christos     which can conflict with char $ac_func (); below.  */
   11968  1.1  christos #include <assert.h>
   11969  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   11970  1.1  christos #ifdef __cplusplus
   11971  1.1  christos extern "C"
   11972  1.1  christos #endif
   11973  1.1  christos /* We use char because int might match the return type of a gcc2
   11974  1.1  christos    builtin and then its argument prototype would still apply.  */
   11975  1.1  christos char $ac_func ();
   11976  1.1  christos char (*f) ();
   11977  1.1  christos 
   11978  1.1  christos #ifdef F77_DUMMY_MAIN
   11979  1.1  christos #  ifdef __cplusplus
   11980  1.1  christos      extern "C"
   11981  1.1  christos #  endif
   11982  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   11983  1.1  christos #endif
   11984  1.1  christos int
   11985  1.1  christos main ()
   11986  1.1  christos {
   11987  1.1  christos /* The GNU C library defines this for functions which it implements
   11988  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   11989  1.1  christos     something starting with __ and the normal name is an alias.  */
   11990  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   11991  1.1  christos choke me
   11992  1.1  christos #else
   11993  1.1  christos f = $ac_func;
   11994  1.1  christos #endif
   11995  1.1  christos 
   11996  1.1  christos   ;
   11997  1.1  christos   return 0;
   11998  1.1  christos }
   11999  1.1  christos _ACEOF
   12000  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   12001  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12002  1.1  christos   (eval $ac_link) 2>&5
   12003  1.1  christos   ac_status=$?
   12004  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12005  1.1  christos   (exit $ac_status); } &&
   12006  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   12007  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12008  1.1  christos   (eval $ac_try) 2>&5
   12009  1.1  christos   ac_status=$?
   12010  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12011  1.1  christos   (exit $ac_status); }; }; then
   12012  1.1  christos   eval "$as_ac_var=yes"
   12013  1.1  christos else
   12014  1.1  christos   echo "$as_me: failed program was:" >&5
   12015  1.1  christos cat conftest.$ac_ext >&5
   12016  1.1  christos eval "$as_ac_var=no"
   12017  1.1  christos fi
   12018  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12019  1.1  christos fi
   12020  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   12021  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   12022  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   12023  1.1  christos 
   12024  1.1  christos cat >>confdefs.h <<_ACEOF
   12025  1.1  christos #define CRAY_STACKSEG_END $ac_func
   12026  1.1  christos _ACEOF
   12027  1.1  christos 
   12028  1.1  christos     break
   12029  1.1  christos fi
   12030  1.1  christos 
   12031  1.1  christos   done
   12032  1.1  christos fi
   12033  1.1  christos 
   12034  1.1  christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
   12035  1.1  christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
   12036  1.1  christos if test "${ac_cv_c_stack_direction+set}" = set; then
   12037  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12038  1.1  christos else
   12039  1.1  christos   if test "$cross_compiling" = yes; then
   12040  1.1  christos   ac_cv_c_stack_direction=0
   12041  1.1  christos else
   12042  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12043  1.1  christos #line $LINENO "configure"
   12044  1.1  christos #include "confdefs.h"
   12045  1.1  christos int
   12046  1.1  christos find_stack_direction ()
   12047  1.1  christos {
   12048  1.1  christos   static char *addr = 0;
   12049  1.1  christos   auto char dummy;
   12050  1.1  christos   if (addr == 0)
   12051  1.1  christos     {
   12052  1.1  christos       addr = &dummy;
   12053  1.1  christos       return find_stack_direction ();
   12054  1.1  christos     }
   12055  1.1  christos   else
   12056  1.1  christos     return (&dummy > addr) ? 1 : -1;
   12057  1.1  christos }
   12058  1.1  christos 
   12059  1.1  christos int
   12060  1.1  christos main ()
   12061  1.1  christos {
   12062  1.1  christos   exit (find_stack_direction () < 0);
   12063  1.1  christos }
   12064  1.1  christos _ACEOF
   12065  1.1  christos rm -f conftest$ac_exeext
   12066  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12067  1.1  christos   (eval $ac_link) 2>&5
   12068  1.1  christos   ac_status=$?
   12069  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12070  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12071  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12072  1.1  christos   (eval $ac_try) 2>&5
   12073  1.1  christos   ac_status=$?
   12074  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12075  1.1  christos   (exit $ac_status); }; }; then
   12076  1.1  christos   ac_cv_c_stack_direction=1
   12077  1.1  christos else
   12078  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   12079  1.1  christos echo "$as_me: failed program was:" >&5
   12080  1.1  christos cat conftest.$ac_ext >&5
   12081  1.1  christos ( exit $ac_status )
   12082  1.1  christos ac_cv_c_stack_direction=-1
   12083  1.1  christos fi
   12084  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12085  1.1  christos fi
   12086  1.1  christos fi
   12087  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
   12088  1.1  christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
   12089  1.1  christos 
   12090  1.1  christos cat >>confdefs.h <<_ACEOF
   12091  1.1  christos #define STACK_DIRECTION $ac_cv_c_stack_direction
   12092  1.1  christos _ACEOF
   12093  1.1  christos 
   12094  1.1  christos 
   12095  1.1  christos fi
   12096  1.1  christos 
   12097  1.1  christos 
   12098  1.1  christos 
   12099  1.1  christos cat >>confdefs.h <<\_ACEOF
   12100  1.1  christos #define REGEX_MALLOC 1
   12101  1.1  christos _ACEOF
   12102  1.1  christos 
   12103  1.1  christos 
   12104  1.1  christos   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   12105  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   12106  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   12107  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12108  1.1  christos else
   12109  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12110  1.1  christos #line $LINENO "configure"
   12111  1.1  christos #include "confdefs.h"
   12112  1.1  christos #include <stdlib.h>
   12113  1.1  christos #include <stdarg.h>
   12114  1.1  christos #include <string.h>
   12115  1.1  christos #include <float.h>
   12116  1.1  christos 
   12117  1.1  christos _ACEOF
   12118  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   12119  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   12120  1.1  christos   ac_status=$?
   12121  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   12122  1.1  christos   rm -f conftest.er1
   12123  1.1  christos   cat conftest.err >&5
   12124  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12125  1.1  christos   (exit $ac_status); } >/dev/null; then
   12126  1.1  christos   if test -s conftest.err; then
   12127  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   12128  1.1  christos   else
   12129  1.1  christos     ac_cpp_err=
   12130  1.1  christos   fi
   12131  1.1  christos else
   12132  1.1  christos   ac_cpp_err=yes
   12133  1.1  christos fi
   12134  1.1  christos if test -z "$ac_cpp_err"; then
   12135  1.1  christos   ac_cv_header_stdc=yes
   12136  1.1  christos else
   12137  1.1  christos   echo "$as_me: failed program was:" >&5
   12138  1.1  christos   cat conftest.$ac_ext >&5
   12139  1.1  christos   ac_cv_header_stdc=no
   12140  1.1  christos fi
   12141  1.1  christos rm -f conftest.err conftest.$ac_ext
   12142  1.1  christos 
   12143  1.1  christos if test $ac_cv_header_stdc = yes; then
   12144  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   12145  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12146  1.1  christos #line $LINENO "configure"
   12147  1.1  christos #include "confdefs.h"
   12148  1.1  christos #include <string.h>
   12149  1.1  christos 
   12150  1.1  christos _ACEOF
   12151  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12152  1.1  christos   egrep "memchr" >/dev/null 2>&1; then
   12153  1.1  christos   :
   12154  1.1  christos else
   12155  1.1  christos   ac_cv_header_stdc=no
   12156  1.1  christos fi
   12157  1.1  christos rm -f conftest*
   12158  1.1  christos 
   12159  1.1  christos fi
   12160  1.1  christos 
   12161  1.1  christos if test $ac_cv_header_stdc = yes; then
   12162  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   12163  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12164  1.1  christos #line $LINENO "configure"
   12165  1.1  christos #include "confdefs.h"
   12166  1.1  christos #include <stdlib.h>
   12167  1.1  christos 
   12168  1.1  christos _ACEOF
   12169  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12170  1.1  christos   egrep "free" >/dev/null 2>&1; then
   12171  1.1  christos   :
   12172  1.1  christos else
   12173  1.1  christos   ac_cv_header_stdc=no
   12174  1.1  christos fi
   12175  1.1  christos rm -f conftest*
   12176  1.1  christos 
   12177  1.1  christos fi
   12178  1.1  christos 
   12179  1.1  christos if test $ac_cv_header_stdc = yes; then
   12180  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   12181  1.1  christos   if test "$cross_compiling" = yes; then
   12182  1.1  christos   :
   12183  1.1  christos else
   12184  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12185  1.1  christos #line $LINENO "configure"
   12186  1.1  christos #include "confdefs.h"
   12187  1.1  christos #include <ctype.h>
   12188  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   12189  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   12190  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   12191  1.1  christos #else
   12192  1.1  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   12193  1.1  christos                      || ('j' <= (c) && (c) <= 'r') \
   12194  1.1  christos                      || ('s' <= (c) && (c) <= 'z'))
   12195  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   12196  1.1  christos #endif
   12197  1.1  christos 
   12198  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   12199  1.1  christos int
   12200  1.1  christos main ()
   12201  1.1  christos {
   12202  1.1  christos   int i;
   12203  1.1  christos   for (i = 0; i < 256; i++)
   12204  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   12205  1.1  christos         || toupper (i) != TOUPPER (i))
   12206  1.1  christos       exit(2);
   12207  1.1  christos   exit (0);
   12208  1.1  christos }
   12209  1.1  christos _ACEOF
   12210  1.1  christos rm -f conftest$ac_exeext
   12211  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12212  1.1  christos   (eval $ac_link) 2>&5
   12213  1.1  christos   ac_status=$?
   12214  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12215  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12216  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12217  1.1  christos   (eval $ac_try) 2>&5
   12218  1.1  christos   ac_status=$?
   12219  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12220  1.1  christos   (exit $ac_status); }; }; then
   12221  1.1  christos   :
   12222  1.1  christos else
   12223  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   12224  1.1  christos echo "$as_me: failed program was:" >&5
   12225  1.1  christos cat conftest.$ac_ext >&5
   12226  1.1  christos ( exit $ac_status )
   12227  1.1  christos ac_cv_header_stdc=no
   12228  1.1  christos fi
   12229  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12230  1.1  christos fi
   12231  1.1  christos fi
   12232  1.1  christos fi
   12233  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   12234  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   12235  1.1  christos if test $ac_cv_header_stdc = yes; then
   12236  1.1  christos 
   12237  1.1  christos cat >>confdefs.h <<\_ACEOF
   12238  1.1  christos #define STDC_HEADERS 1
   12239  1.1  christos _ACEOF
   12240  1.1  christos 
   12241  1.1  christos fi
   12242  1.1  christos 
   12243  1.1  christos   echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
   12244  1.1  christos echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
   12245  1.1  christos if test "${ac_cv_header_stat_broken+set}" = set; then
   12246  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12247  1.1  christos else
   12248  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12249  1.1  christos #line $LINENO "configure"
   12250  1.1  christos #include "confdefs.h"
   12251  1.1  christos #include <sys/types.h>
   12252  1.1  christos #include <sys/stat.h>
   12253  1.1  christos 
   12254  1.1  christos #if defined(S_ISBLK) && defined(S_IFDIR)
   12255  1.1  christos # if S_ISBLK (S_IFDIR)
   12256  1.1  christos You lose.
   12257  1.1  christos # endif
   12258  1.1  christos #endif
   12259  1.1  christos 
   12260  1.1  christos #if defined(S_ISBLK) && defined(S_IFCHR)
   12261  1.1  christos # if S_ISBLK (S_IFCHR)
   12262  1.1  christos You lose.
   12263  1.1  christos # endif
   12264  1.1  christos #endif
   12265  1.1  christos 
   12266  1.1  christos #if defined(S_ISLNK) && defined(S_IFREG)
   12267  1.1  christos # if S_ISLNK (S_IFREG)
   12268  1.1  christos You lose.
   12269  1.1  christos # endif
   12270  1.1  christos #endif
   12271  1.1  christos 
   12272  1.1  christos #if defined(S_ISSOCK) && defined(S_IFREG)
   12273  1.1  christos # if S_ISSOCK (S_IFREG)
   12274  1.1  christos You lose.
   12275  1.1  christos # endif
   12276  1.1  christos #endif
   12277  1.1  christos 
   12278  1.1  christos _ACEOF
   12279  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12280  1.1  christos   egrep "You lose" >/dev/null 2>&1; then
   12281  1.1  christos   ac_cv_header_stat_broken=yes
   12282  1.1  christos else
   12283  1.1  christos   ac_cv_header_stat_broken=no
   12284  1.1  christos fi
   12285  1.1  christos rm -f conftest*
   12286  1.1  christos 
   12287  1.1  christos fi
   12288  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
   12289  1.1  christos echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
   12290  1.1  christos if test $ac_cv_header_stat_broken = yes; then
   12291  1.1  christos 
   12292  1.1  christos cat >>confdefs.h <<\_ACEOF
   12293  1.1  christos #define STAT_MACROS_BROKEN 1
   12294  1.1  christos _ACEOF
   12295  1.1  christos 
   12296  1.1  christos fi
   12297  1.1  christos 
   12298  1.1  christos 
   12299  1.1  christos 
   12300  1.1  christos 
   12301  1.1  christos 
   12302  1.1  christos for ac_header in fcntl.h sys/time.h stdint.h unistd.h
   12303  1.1  christos do
   12304  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12305  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   12306  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   12307  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   12308  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   12309  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12310  1.1  christos fi
   12311  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   12312  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   12313  1.1  christos else
   12314  1.1  christos   # Is the header compilable?
   12315  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   12316  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   12317  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   12318  1.1  christos #line $LINENO "configure"
   12319  1.1  christos #include "confdefs.h"
   12320  1.1  christos $ac_includes_default
   12321  1.1  christos #include <$ac_header>
   12322  1.1  christos _ACEOF
   12323  1.1  christos rm -f conftest.$ac_objext
   12324  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12325  1.1  christos   (eval $ac_compile) 2>&5
   12326  1.1  christos   ac_status=$?
   12327  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12328  1.1  christos   (exit $ac_status); } &&
   12329  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12330  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12331  1.1  christos   (eval $ac_try) 2>&5
   12332  1.1  christos   ac_status=$?
   12333  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12334  1.1  christos   (exit $ac_status); }; }; then
   12335  1.1  christos   ac_header_compiler=yes
   12336  1.1  christos else
   12337  1.1  christos   echo "$as_me: failed program was:" >&5
   12338  1.1  christos cat conftest.$ac_ext >&5
   12339  1.1  christos ac_header_compiler=no
   12340  1.1  christos fi
   12341  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12342  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12343  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   12344  1.1  christos 
   12345  1.1  christos # Is the header present?
   12346  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   12347  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   12348  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   12349  1.1  christos #line $LINENO "configure"
   12350  1.1  christos #include "confdefs.h"
   12351  1.1  christos #include <$ac_header>
   12352  1.1  christos _ACEOF
   12353  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   12354  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   12355  1.1  christos   ac_status=$?
   12356  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   12357  1.1  christos   rm -f conftest.er1
   12358  1.1  christos   cat conftest.err >&5
   12359  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12360  1.1  christos   (exit $ac_status); } >/dev/null; then
   12361  1.1  christos   if test -s conftest.err; then
   12362  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   12363  1.1  christos   else
   12364  1.1  christos     ac_cpp_err=
   12365  1.1  christos   fi
   12366  1.1  christos else
   12367  1.1  christos   ac_cpp_err=yes
   12368  1.1  christos fi
   12369  1.1  christos if test -z "$ac_cpp_err"; then
   12370  1.1  christos   ac_header_preproc=yes
   12371  1.1  christos else
   12372  1.1  christos   echo "$as_me: failed program was:" >&5
   12373  1.1  christos   cat conftest.$ac_ext >&5
   12374  1.1  christos   ac_header_preproc=no
   12375  1.1  christos fi
   12376  1.1  christos rm -f conftest.err conftest.$ac_ext
   12377  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12378  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   12379  1.1  christos 
   12380  1.1  christos # So?  What about this header?
   12381  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   12382  1.1  christos   yes:no )
   12383  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   12384  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12385  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12386  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   12387  1.1  christos   no:yes )
   12388  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   12389  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   12390  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   12391  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   12392  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12393  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   12394  1.1  christos esac
   12395  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   12396  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   12397  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   12398  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12399  1.1  christos else
   12400  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   12401  1.1  christos fi
   12402  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   12403  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   12404  1.1  christos 
   12405  1.1  christos fi
   12406  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   12407  1.1  christos   cat >>confdefs.h <<_ACEOF
   12408  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12409  1.1  christos _ACEOF
   12410  1.1  christos 
   12411  1.1  christos fi
   12412  1.1  christos 
   12413  1.1  christos done
   12414  1.1  christos 
   12415  1.1  christos 
   12416  1.1  christos 
   12417  1.1  christos for ac_func in __secure_getenv gettimeofday
   12418  1.1  christos do
   12419  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12420  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   12421  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   12422  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   12423  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12424  1.1  christos else
   12425  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12426  1.1  christos #line $LINENO "configure"
   12427  1.1  christos #include "confdefs.h"
   12428  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   12429  1.1  christos     which can conflict with char $ac_func (); below.  */
   12430  1.1  christos #include <assert.h>
   12431  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   12432  1.1  christos #ifdef __cplusplus
   12433  1.1  christos extern "C"
   12434  1.1  christos #endif
   12435  1.1  christos /* We use char because int might match the return type of a gcc2
   12436  1.1  christos    builtin and then its argument prototype would still apply.  */
   12437  1.1  christos char $ac_func ();
   12438  1.1  christos char (*f) ();
   12439  1.1  christos 
   12440  1.1  christos #ifdef F77_DUMMY_MAIN
   12441  1.1  christos #  ifdef __cplusplus
   12442  1.1  christos      extern "C"
   12443  1.1  christos #  endif
   12444  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12445  1.1  christos #endif
   12446  1.1  christos int
   12447  1.1  christos main ()
   12448  1.1  christos {
   12449  1.1  christos /* The GNU C library defines this for functions which it implements
   12450  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   12451  1.1  christos     something starting with __ and the normal name is an alias.  */
   12452  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   12453  1.1  christos choke me
   12454  1.1  christos #else
   12455  1.1  christos f = $ac_func;
   12456  1.1  christos #endif
   12457  1.1  christos 
   12458  1.1  christos   ;
   12459  1.1  christos   return 0;
   12460  1.1  christos }
   12461  1.1  christos _ACEOF
   12462  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   12463  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12464  1.1  christos   (eval $ac_link) 2>&5
   12465  1.1  christos   ac_status=$?
   12466  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12467  1.1  christos   (exit $ac_status); } &&
   12468  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   12469  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12470  1.1  christos   (eval $ac_try) 2>&5
   12471  1.1  christos   ac_status=$?
   12472  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12473  1.1  christos   (exit $ac_status); }; }; then
   12474  1.1  christos   eval "$as_ac_var=yes"
   12475  1.1  christos else
   12476  1.1  christos   echo "$as_me: failed program was:" >&5
   12477  1.1  christos cat conftest.$ac_ext >&5
   12478  1.1  christos eval "$as_ac_var=no"
   12479  1.1  christos fi
   12480  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12481  1.1  christos fi
   12482  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   12483  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   12484  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   12485  1.1  christos   cat >>confdefs.h <<_ACEOF
   12486  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12487  1.1  christos _ACEOF
   12488  1.1  christos 
   12489  1.1  christos fi
   12490  1.1  christos done
   12491  1.1  christos 
   12492  1.1  christos   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
   12493  1.1  christos echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
   12494  1.1  christos if test "${ac_cv_have_decl_getenv+set}" = set; then
   12495  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12496  1.1  christos else
   12497  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12498  1.1  christos #line $LINENO "configure"
   12499  1.1  christos #include "confdefs.h"
   12500  1.1  christos $ac_includes_default
   12501  1.1  christos #ifdef F77_DUMMY_MAIN
   12502  1.1  christos #  ifdef __cplusplus
   12503  1.1  christos      extern "C"
   12504  1.1  christos #  endif
   12505  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12506  1.1  christos #endif
   12507  1.1  christos int
   12508  1.1  christos main ()
   12509  1.1  christos {
   12510  1.1  christos #ifndef getenv
   12511  1.1  christos   char *p = (char *) getenv;
   12512  1.1  christos #endif
   12513  1.1  christos 
   12514  1.1  christos   ;
   12515  1.1  christos   return 0;
   12516  1.1  christos }
   12517  1.1  christos _ACEOF
   12518  1.1  christos rm -f conftest.$ac_objext
   12519  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12520  1.1  christos   (eval $ac_compile) 2>&5
   12521  1.1  christos   ac_status=$?
   12522  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12523  1.1  christos   (exit $ac_status); } &&
   12524  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12525  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12526  1.1  christos   (eval $ac_try) 2>&5
   12527  1.1  christos   ac_status=$?
   12528  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12529  1.1  christos   (exit $ac_status); }; }; then
   12530  1.1  christos   ac_cv_have_decl_getenv=yes
   12531  1.1  christos else
   12532  1.1  christos   echo "$as_me: failed program was:" >&5
   12533  1.1  christos cat conftest.$ac_ext >&5
   12534  1.1  christos ac_cv_have_decl_getenv=no
   12535  1.1  christos fi
   12536  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12537  1.1  christos fi
   12538  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
   12539  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
   12540  1.1  christos if test $ac_cv_have_decl_getenv = yes; then
   12541  1.1  christos 
   12542  1.1  christos cat >>confdefs.h <<_ACEOF
   12543  1.1  christos #define HAVE_DECL_GETENV 1
   12544  1.1  christos _ACEOF
   12545  1.1  christos 
   12546  1.1  christos 
   12547  1.1  christos else
   12548  1.1  christos   cat >>confdefs.h <<_ACEOF
   12549  1.1  christos #define HAVE_DECL_GETENV 0
   12550  1.1  christos _ACEOF
   12551  1.1  christos 
   12552  1.1  christos 
   12553  1.1  christos fi
   12554  1.1  christos 
   12555  1.1  christos 
   12556  1.1  christos 
   12557  1.1  christos 
   12558  1.1  christos   echo "$as_me:$LINENO: checking for long long" >&5
   12559  1.1  christos echo $ECHO_N "checking for long long... $ECHO_C" >&6
   12560  1.1  christos if test "${ac_cv_type_long_long+set}" = set; then
   12561  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12562  1.1  christos else
   12563  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12564  1.1  christos #line $LINENO "configure"
   12565  1.1  christos #include "confdefs.h"
   12566  1.1  christos long long ll = 1; int i = 63;
   12567  1.1  christos #ifdef F77_DUMMY_MAIN
   12568  1.1  christos #  ifdef __cplusplus
   12569  1.1  christos      extern "C"
   12570  1.1  christos #  endif
   12571  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12572  1.1  christos #endif
   12573  1.1  christos int
   12574  1.1  christos main ()
   12575  1.1  christos {
   12576  1.1  christos long long llmax = (long long) -1;
   12577  1.1  christos      return ll << i | ll >> i | llmax / ll | llmax % ll;
   12578  1.1  christos   ;
   12579  1.1  christos   return 0;
   12580  1.1  christos }
   12581  1.1  christos _ACEOF
   12582  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   12583  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12584  1.1  christos   (eval $ac_link) 2>&5
   12585  1.1  christos   ac_status=$?
   12586  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12587  1.1  christos   (exit $ac_status); } &&
   12588  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   12589  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12590  1.1  christos   (eval $ac_try) 2>&5
   12591  1.1  christos   ac_status=$?
   12592  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12593  1.1  christos   (exit $ac_status); }; }; then
   12594  1.1  christos   ac_cv_type_long_long=yes
   12595  1.1  christos else
   12596  1.1  christos   echo "$as_me: failed program was:" >&5
   12597  1.1  christos cat conftest.$ac_ext >&5
   12598  1.1  christos ac_cv_type_long_long=no
   12599  1.1  christos fi
   12600  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12601  1.1  christos fi
   12602  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
   12603  1.1  christos echo "${ECHO_T}$ac_cv_type_long_long" >&6
   12604  1.1  christos   if test $ac_cv_type_long_long = yes; then
   12605  1.1  christos 
   12606  1.1  christos cat >>confdefs.h <<\_ACEOF
   12607  1.1  christos #define HAVE_LONG_LONG 1
   12608  1.1  christos _ACEOF
   12609  1.1  christos 
   12610  1.1  christos   fi
   12611  1.1  christos 
   12612  1.1  christos 
   12613  1.1  christos 
   12614  1.1  christos   echo "$as_me:$LINENO: checking for intmax_t" >&5
   12615  1.1  christos echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
   12616  1.1  christos if test "${ac_cv_type_intmax_t+set}" = set; then
   12617  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12618  1.1  christos else
   12619  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12620  1.1  christos #line $LINENO "configure"
   12621  1.1  christos #include "confdefs.h"
   12622  1.1  christos $ac_includes_default
   12623  1.1  christos #ifdef F77_DUMMY_MAIN
   12624  1.1  christos #  ifdef __cplusplus
   12625  1.1  christos      extern "C"
   12626  1.1  christos #  endif
   12627  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12628  1.1  christos #endif
   12629  1.1  christos int
   12630  1.1  christos main ()
   12631  1.1  christos {
   12632  1.1  christos if ((intmax_t *) 0)
   12633  1.1  christos   return 0;
   12634  1.1  christos if (sizeof (intmax_t))
   12635  1.1  christos   return 0;
   12636  1.1  christos   ;
   12637  1.1  christos   return 0;
   12638  1.1  christos }
   12639  1.1  christos _ACEOF
   12640  1.1  christos rm -f conftest.$ac_objext
   12641  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12642  1.1  christos   (eval $ac_compile) 2>&5
   12643  1.1  christos   ac_status=$?
   12644  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12645  1.1  christos   (exit $ac_status); } &&
   12646  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12647  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12648  1.1  christos   (eval $ac_try) 2>&5
   12649  1.1  christos   ac_status=$?
   12650  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12651  1.1  christos   (exit $ac_status); }; }; then
   12652  1.1  christos   ac_cv_type_intmax_t=yes
   12653  1.1  christos else
   12654  1.1  christos   echo "$as_me: failed program was:" >&5
   12655  1.1  christos cat conftest.$ac_ext >&5
   12656  1.1  christos ac_cv_type_intmax_t=no
   12657  1.1  christos fi
   12658  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12659  1.1  christos fi
   12660  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
   12661  1.1  christos echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
   12662  1.1  christos if test $ac_cv_type_intmax_t = yes; then
   12663  1.1  christos   :
   12664  1.1  christos else
   12665  1.1  christos   test $ac_cv_type_long_long = yes \
   12666  1.1  christos        && ac_type='long long' \
   12667  1.1  christos        || ac_type='long'
   12668  1.1  christos 
   12669  1.1  christos cat >>confdefs.h <<_ACEOF
   12670  1.1  christos #define intmax_t $ac_type
   12671  1.1  christos _ACEOF
   12672  1.1  christos 
   12673  1.1  christos fi
   12674  1.1  christos 
   12675  1.1  christos 
   12676  1.1  christos 
   12677  1.1  christos 
   12678  1.1  christos 
   12679  1.1  christos 
   12680  1.1  christos 
   12681  1.1  christos   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
   12682  1.1  christos echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
   12683  1.1  christos if test "${ac_cv_have_decl_strtol+set}" = set; then
   12684  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12685  1.1  christos else
   12686  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12687  1.1  christos #line $LINENO "configure"
   12688  1.1  christos #include "confdefs.h"
   12689  1.1  christos $ac_includes_default
   12690  1.1  christos #ifdef F77_DUMMY_MAIN
   12691  1.1  christos #  ifdef __cplusplus
   12692  1.1  christos      extern "C"
   12693  1.1  christos #  endif
   12694  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12695  1.1  christos #endif
   12696  1.1  christos int
   12697  1.1  christos main ()
   12698  1.1  christos {
   12699  1.1  christos #ifndef strtol
   12700  1.1  christos   char *p = (char *) strtol;
   12701  1.1  christos #endif
   12702  1.1  christos 
   12703  1.1  christos   ;
   12704  1.1  christos   return 0;
   12705  1.1  christos }
   12706  1.1  christos _ACEOF
   12707  1.1  christos rm -f conftest.$ac_objext
   12708  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12709  1.1  christos   (eval $ac_compile) 2>&5
   12710  1.1  christos   ac_status=$?
   12711  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12712  1.1  christos   (exit $ac_status); } &&
   12713  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12714  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12715  1.1  christos   (eval $ac_try) 2>&5
   12716  1.1  christos   ac_status=$?
   12717  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12718  1.1  christos   (exit $ac_status); }; }; then
   12719  1.1  christos   ac_cv_have_decl_strtol=yes
   12720  1.1  christos else
   12721  1.1  christos   echo "$as_me: failed program was:" >&5
   12722  1.1  christos cat conftest.$ac_ext >&5
   12723  1.1  christos ac_cv_have_decl_strtol=no
   12724  1.1  christos fi
   12725  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12726  1.1  christos fi
   12727  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
   12728  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
   12729  1.1  christos if test $ac_cv_have_decl_strtol = yes; then
   12730  1.1  christos 
   12731  1.1  christos cat >>confdefs.h <<_ACEOF
   12732  1.1  christos #define HAVE_DECL_STRTOL 1
   12733  1.1  christos _ACEOF
   12734  1.1  christos 
   12735  1.1  christos 
   12736  1.1  christos else
   12737  1.1  christos   cat >>confdefs.h <<_ACEOF
   12738  1.1  christos #define HAVE_DECL_STRTOL 0
   12739  1.1  christos _ACEOF
   12740  1.1  christos 
   12741  1.1  christos 
   12742  1.1  christos fi
   12743  1.1  christos echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
   12744  1.1  christos echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
   12745  1.1  christos if test "${ac_cv_have_decl_strtoul+set}" = set; then
   12746  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12747  1.1  christos else
   12748  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12749  1.1  christos #line $LINENO "configure"
   12750  1.1  christos #include "confdefs.h"
   12751  1.1  christos $ac_includes_default
   12752  1.1  christos #ifdef F77_DUMMY_MAIN
   12753  1.1  christos #  ifdef __cplusplus
   12754  1.1  christos      extern "C"
   12755  1.1  christos #  endif
   12756  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12757  1.1  christos #endif
   12758  1.1  christos int
   12759  1.1  christos main ()
   12760  1.1  christos {
   12761  1.1  christos #ifndef strtoul
   12762  1.1  christos   char *p = (char *) strtoul;
   12763  1.1  christos #endif
   12764  1.1  christos 
   12765  1.1  christos   ;
   12766  1.1  christos   return 0;
   12767  1.1  christos }
   12768  1.1  christos _ACEOF
   12769  1.1  christos rm -f conftest.$ac_objext
   12770  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12771  1.1  christos   (eval $ac_compile) 2>&5
   12772  1.1  christos   ac_status=$?
   12773  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12774  1.1  christos   (exit $ac_status); } &&
   12775  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12776  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12777  1.1  christos   (eval $ac_try) 2>&5
   12778  1.1  christos   ac_status=$?
   12779  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12780  1.1  christos   (exit $ac_status); }; }; then
   12781  1.1  christos   ac_cv_have_decl_strtoul=yes
   12782  1.1  christos else
   12783  1.1  christos   echo "$as_me: failed program was:" >&5
   12784  1.1  christos cat conftest.$ac_ext >&5
   12785  1.1  christos ac_cv_have_decl_strtoul=no
   12786  1.1  christos fi
   12787  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12788  1.1  christos fi
   12789  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
   12790  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
   12791  1.1  christos if test $ac_cv_have_decl_strtoul = yes; then
   12792  1.1  christos 
   12793  1.1  christos cat >>confdefs.h <<_ACEOF
   12794  1.1  christos #define HAVE_DECL_STRTOUL 1
   12795  1.1  christos _ACEOF
   12796  1.1  christos 
   12797  1.1  christos 
   12798  1.1  christos else
   12799  1.1  christos   cat >>confdefs.h <<_ACEOF
   12800  1.1  christos #define HAVE_DECL_STRTOUL 0
   12801  1.1  christos _ACEOF
   12802  1.1  christos 
   12803  1.1  christos 
   12804  1.1  christos fi
   12805  1.1  christos echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
   12806  1.1  christos echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
   12807  1.1  christos if test "${ac_cv_have_decl_strtoull+set}" = set; then
   12808  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12809  1.1  christos else
   12810  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12811  1.1  christos #line $LINENO "configure"
   12812  1.1  christos #include "confdefs.h"
   12813  1.1  christos $ac_includes_default
   12814  1.1  christos #ifdef F77_DUMMY_MAIN
   12815  1.1  christos #  ifdef __cplusplus
   12816  1.1  christos      extern "C"
   12817  1.1  christos #  endif
   12818  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12819  1.1  christos #endif
   12820  1.1  christos int
   12821  1.1  christos main ()
   12822  1.1  christos {
   12823  1.1  christos #ifndef strtoull
   12824  1.1  christos   char *p = (char *) strtoull;
   12825  1.1  christos #endif
   12826  1.1  christos 
   12827  1.1  christos   ;
   12828  1.1  christos   return 0;
   12829  1.1  christos }
   12830  1.1  christos _ACEOF
   12831  1.1  christos rm -f conftest.$ac_objext
   12832  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12833  1.1  christos   (eval $ac_compile) 2>&5
   12834  1.1  christos   ac_status=$?
   12835  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12836  1.1  christos   (exit $ac_status); } &&
   12837  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12838  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12839  1.1  christos   (eval $ac_try) 2>&5
   12840  1.1  christos   ac_status=$?
   12841  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12842  1.1  christos   (exit $ac_status); }; }; then
   12843  1.1  christos   ac_cv_have_decl_strtoull=yes
   12844  1.1  christos else
   12845  1.1  christos   echo "$as_me: failed program was:" >&5
   12846  1.1  christos cat conftest.$ac_ext >&5
   12847  1.1  christos ac_cv_have_decl_strtoull=no
   12848  1.1  christos fi
   12849  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12850  1.1  christos fi
   12851  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
   12852  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
   12853  1.1  christos if test $ac_cv_have_decl_strtoull = yes; then
   12854  1.1  christos 
   12855  1.1  christos cat >>confdefs.h <<_ACEOF
   12856  1.1  christos #define HAVE_DECL_STRTOULL 1
   12857  1.1  christos _ACEOF
   12858  1.1  christos 
   12859  1.1  christos 
   12860  1.1  christos else
   12861  1.1  christos   cat >>confdefs.h <<_ACEOF
   12862  1.1  christos #define HAVE_DECL_STRTOULL 0
   12863  1.1  christos _ACEOF
   12864  1.1  christos 
   12865  1.1  christos 
   12866  1.1  christos fi
   12867  1.1  christos echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
   12868  1.1  christos echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
   12869  1.1  christos if test "${ac_cv_have_decl_strtoimax+set}" = set; then
   12870  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12871  1.1  christos else
   12872  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12873  1.1  christos #line $LINENO "configure"
   12874  1.1  christos #include "confdefs.h"
   12875  1.1  christos $ac_includes_default
   12876  1.1  christos #ifdef F77_DUMMY_MAIN
   12877  1.1  christos #  ifdef __cplusplus
   12878  1.1  christos      extern "C"
   12879  1.1  christos #  endif
   12880  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12881  1.1  christos #endif
   12882  1.1  christos int
   12883  1.1  christos main ()
   12884  1.1  christos {
   12885  1.1  christos #ifndef strtoimax
   12886  1.1  christos   char *p = (char *) strtoimax;
   12887  1.1  christos #endif
   12888  1.1  christos 
   12889  1.1  christos   ;
   12890  1.1  christos   return 0;
   12891  1.1  christos }
   12892  1.1  christos _ACEOF
   12893  1.1  christos rm -f conftest.$ac_objext
   12894  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12895  1.1  christos   (eval $ac_compile) 2>&5
   12896  1.1  christos   ac_status=$?
   12897  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12898  1.1  christos   (exit $ac_status); } &&
   12899  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12900  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12901  1.1  christos   (eval $ac_try) 2>&5
   12902  1.1  christos   ac_status=$?
   12903  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12904  1.1  christos   (exit $ac_status); }; }; then
   12905  1.1  christos   ac_cv_have_decl_strtoimax=yes
   12906  1.1  christos else
   12907  1.1  christos   echo "$as_me: failed program was:" >&5
   12908  1.1  christos cat conftest.$ac_ext >&5
   12909  1.1  christos ac_cv_have_decl_strtoimax=no
   12910  1.1  christos fi
   12911  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12912  1.1  christos fi
   12913  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
   12914  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
   12915  1.1  christos if test $ac_cv_have_decl_strtoimax = yes; then
   12916  1.1  christos 
   12917  1.1  christos cat >>confdefs.h <<_ACEOF
   12918  1.1  christos #define HAVE_DECL_STRTOIMAX 1
   12919  1.1  christos _ACEOF
   12920  1.1  christos 
   12921  1.1  christos 
   12922  1.1  christos else
   12923  1.1  christos   cat >>confdefs.h <<_ACEOF
   12924  1.1  christos #define HAVE_DECL_STRTOIMAX 0
   12925  1.1  christos _ACEOF
   12926  1.1  christos 
   12927  1.1  christos 
   12928  1.1  christos fi
   12929  1.1  christos echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
   12930  1.1  christos echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
   12931  1.1  christos if test "${ac_cv_have_decl_strtoumax+set}" = set; then
   12932  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   12933  1.1  christos else
   12934  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   12935  1.1  christos #line $LINENO "configure"
   12936  1.1  christos #include "confdefs.h"
   12937  1.1  christos $ac_includes_default
   12938  1.1  christos #ifdef F77_DUMMY_MAIN
   12939  1.1  christos #  ifdef __cplusplus
   12940  1.1  christos      extern "C"
   12941  1.1  christos #  endif
   12942  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   12943  1.1  christos #endif
   12944  1.1  christos int
   12945  1.1  christos main ()
   12946  1.1  christos {
   12947  1.1  christos #ifndef strtoumax
   12948  1.1  christos   char *p = (char *) strtoumax;
   12949  1.1  christos #endif
   12950  1.1  christos 
   12951  1.1  christos   ;
   12952  1.1  christos   return 0;
   12953  1.1  christos }
   12954  1.1  christos _ACEOF
   12955  1.1  christos rm -f conftest.$ac_objext
   12956  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   12957  1.1  christos   (eval $ac_compile) 2>&5
   12958  1.1  christos   ac_status=$?
   12959  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12960  1.1  christos   (exit $ac_status); } &&
   12961  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   12962  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   12963  1.1  christos   (eval $ac_try) 2>&5
   12964  1.1  christos   ac_status=$?
   12965  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12966  1.1  christos   (exit $ac_status); }; }; then
   12967  1.1  christos   ac_cv_have_decl_strtoumax=yes
   12968  1.1  christos else
   12969  1.1  christos   echo "$as_me: failed program was:" >&5
   12970  1.1  christos cat conftest.$ac_ext >&5
   12971  1.1  christos ac_cv_have_decl_strtoumax=no
   12972  1.1  christos fi
   12973  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   12974  1.1  christos fi
   12975  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
   12976  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
   12977  1.1  christos if test $ac_cv_have_decl_strtoumax = yes; then
   12978  1.1  christos 
   12979  1.1  christos cat >>confdefs.h <<_ACEOF
   12980  1.1  christos #define HAVE_DECL_STRTOUMAX 1
   12981  1.1  christos _ACEOF
   12982  1.1  christos 
   12983  1.1  christos 
   12984  1.1  christos else
   12985  1.1  christos   cat >>confdefs.h <<_ACEOF
   12986  1.1  christos #define HAVE_DECL_STRTOUMAX 0
   12987  1.1  christos _ACEOF
   12988  1.1  christos 
   12989  1.1  christos 
   12990  1.1  christos fi
   12991  1.1  christos 
   12992  1.1  christos 
   12993  1.1  christos 
   12994  1.1  christos 
   12995  1.1  christos 
   12996  1.1  christos for ac_header in limits.h stdlib.h inttypes.h
   12997  1.1  christos do
   12998  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12999  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13000  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   13001  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   13002  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13003  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13004  1.1  christos fi
   13005  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   13006  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   13007  1.1  christos else
   13008  1.1  christos   # Is the header compilable?
   13009  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13010  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   13011  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   13012  1.1  christos #line $LINENO "configure"
   13013  1.1  christos #include "confdefs.h"
   13014  1.1  christos $ac_includes_default
   13015  1.1  christos #include <$ac_header>
   13016  1.1  christos _ACEOF
   13017  1.1  christos rm -f conftest.$ac_objext
   13018  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   13019  1.1  christos   (eval $ac_compile) 2>&5
   13020  1.1  christos   ac_status=$?
   13021  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13022  1.1  christos   (exit $ac_status); } &&
   13023  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   13024  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13025  1.1  christos   (eval $ac_try) 2>&5
   13026  1.1  christos   ac_status=$?
   13027  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13028  1.1  christos   (exit $ac_status); }; }; then
   13029  1.1  christos   ac_header_compiler=yes
   13030  1.1  christos else
   13031  1.1  christos   echo "$as_me: failed program was:" >&5
   13032  1.1  christos cat conftest.$ac_ext >&5
   13033  1.1  christos ac_header_compiler=no
   13034  1.1  christos fi
   13035  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   13036  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13037  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   13038  1.1  christos 
   13039  1.1  christos # Is the header present?
   13040  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13041  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   13042  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   13043  1.1  christos #line $LINENO "configure"
   13044  1.1  christos #include "confdefs.h"
   13045  1.1  christos #include <$ac_header>
   13046  1.1  christos _ACEOF
   13047  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   13048  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   13049  1.1  christos   ac_status=$?
   13050  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   13051  1.1  christos   rm -f conftest.er1
   13052  1.1  christos   cat conftest.err >&5
   13053  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13054  1.1  christos   (exit $ac_status); } >/dev/null; then
   13055  1.1  christos   if test -s conftest.err; then
   13056  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   13057  1.1  christos   else
   13058  1.1  christos     ac_cpp_err=
   13059  1.1  christos   fi
   13060  1.1  christos else
   13061  1.1  christos   ac_cpp_err=yes
   13062  1.1  christos fi
   13063  1.1  christos if test -z "$ac_cpp_err"; then
   13064  1.1  christos   ac_header_preproc=yes
   13065  1.1  christos else
   13066  1.1  christos   echo "$as_me: failed program was:" >&5
   13067  1.1  christos   cat conftest.$ac_ext >&5
   13068  1.1  christos   ac_header_preproc=no
   13069  1.1  christos fi
   13070  1.1  christos rm -f conftest.err conftest.$ac_ext
   13071  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13072  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   13073  1.1  christos 
   13074  1.1  christos # So?  What about this header?
   13075  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   13076  1.1  christos   yes:no )
   13077  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13078  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13079  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13080  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   13081  1.1  christos   no:yes )
   13082  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13083  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13084  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   13085  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   13086  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13087  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   13088  1.1  christos esac
   13089  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   13090  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   13091  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13092  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13093  1.1  christos else
   13094  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   13095  1.1  christos fi
   13096  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   13097  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   13098  1.1  christos 
   13099  1.1  christos fi
   13100  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13101  1.1  christos   cat >>confdefs.h <<_ACEOF
   13102  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13103  1.1  christos _ACEOF
   13104  1.1  christos 
   13105  1.1  christos fi
   13106  1.1  christos 
   13107  1.1  christos done
   13108  1.1  christos 
   13109  1.1  christos 
   13110  1.1  christos   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
   13111  1.1  christos echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
   13112  1.1  christos if test "${jm_cv_func_strtoumax_macro+set}" = set; then
   13113  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13114  1.1  christos else
   13115  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13116  1.1  christos #line $LINENO "configure"
   13117  1.1  christos #include "confdefs.h"
   13118  1.1  christos #include <inttypes.h>
   13119  1.1  christos #ifdef strtoumax
   13120  1.1  christos  inttypes_h_defines_strtoumax
   13121  1.1  christos #endif
   13122  1.1  christos _ACEOF
   13123  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13124  1.1  christos   egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
   13125  1.1  christos   jm_cv_func_strtoumax_macro=yes
   13126  1.1  christos else
   13127  1.1  christos   jm_cv_func_strtoumax_macro=no
   13128  1.1  christos fi
   13129  1.1  christos rm -f conftest*
   13130  1.1  christos 
   13131  1.1  christos fi
   13132  1.1  christos echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
   13133  1.1  christos echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
   13134  1.1  christos 
   13135  1.1  christos   if test "$jm_cv_func_strtoumax_macro" != yes; then
   13136  1.1  christos 
   13137  1.1  christos for ac_func in strtoumax
   13138  1.1  christos do
   13139  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13140  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   13141  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   13142  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   13143  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13144  1.1  christos else
   13145  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13146  1.1  christos #line $LINENO "configure"
   13147  1.1  christos #include "confdefs.h"
   13148  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   13149  1.1  christos     which can conflict with char $ac_func (); below.  */
   13150  1.1  christos #include <assert.h>
   13151  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13152  1.1  christos #ifdef __cplusplus
   13153  1.1  christos extern "C"
   13154  1.1  christos #endif
   13155  1.1  christos /* We use char because int might match the return type of a gcc2
   13156  1.1  christos    builtin and then its argument prototype would still apply.  */
   13157  1.1  christos char $ac_func ();
   13158  1.1  christos char (*f) ();
   13159  1.1  christos 
   13160  1.1  christos #ifdef F77_DUMMY_MAIN
   13161  1.1  christos #  ifdef __cplusplus
   13162  1.1  christos      extern "C"
   13163  1.1  christos #  endif
   13164  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13165  1.1  christos #endif
   13166  1.1  christos int
   13167  1.1  christos main ()
   13168  1.1  christos {
   13169  1.1  christos /* The GNU C library defines this for functions which it implements
   13170  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   13171  1.1  christos     something starting with __ and the normal name is an alias.  */
   13172  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   13173  1.1  christos choke me
   13174  1.1  christos #else
   13175  1.1  christos f = $ac_func;
   13176  1.1  christos #endif
   13177  1.1  christos 
   13178  1.1  christos   ;
   13179  1.1  christos   return 0;
   13180  1.1  christos }
   13181  1.1  christos _ACEOF
   13182  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13183  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13184  1.1  christos   (eval $ac_link) 2>&5
   13185  1.1  christos   ac_status=$?
   13186  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13187  1.1  christos   (exit $ac_status); } &&
   13188  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13189  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13190  1.1  christos   (eval $ac_try) 2>&5
   13191  1.1  christos   ac_status=$?
   13192  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13193  1.1  christos   (exit $ac_status); }; }; then
   13194  1.1  christos   eval "$as_ac_var=yes"
   13195  1.1  christos else
   13196  1.1  christos   echo "$as_me: failed program was:" >&5
   13197  1.1  christos cat conftest.$ac_ext >&5
   13198  1.1  christos eval "$as_ac_var=no"
   13199  1.1  christos fi
   13200  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13201  1.1  christos fi
   13202  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   13203  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   13204  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   13205  1.1  christos   cat >>confdefs.h <<_ACEOF
   13206  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13207  1.1  christos _ACEOF
   13208  1.1  christos 
   13209  1.1  christos else
   13210  1.1  christos   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13211  1.1  christos fi
   13212  1.1  christos done
   13213  1.1  christos 
   13214  1.1  christos 
   13215  1.1  christos   fi
   13216  1.1  christos 
   13217  1.1  christos       case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
   13218  1.1  christos     no,no)
   13219  1.1  christos 
   13220  1.1  christos for ac_func in strtoul
   13221  1.1  christos do
   13222  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13223  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   13224  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   13225  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   13226  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13227  1.1  christos else
   13228  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13229  1.1  christos #line $LINENO "configure"
   13230  1.1  christos #include "confdefs.h"
   13231  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   13232  1.1  christos     which can conflict with char $ac_func (); below.  */
   13233  1.1  christos #include <assert.h>
   13234  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13235  1.1  christos #ifdef __cplusplus
   13236  1.1  christos extern "C"
   13237  1.1  christos #endif
   13238  1.1  christos /* We use char because int might match the return type of a gcc2
   13239  1.1  christos    builtin and then its argument prototype would still apply.  */
   13240  1.1  christos char $ac_func ();
   13241  1.1  christos char (*f) ();
   13242  1.1  christos 
   13243  1.1  christos #ifdef F77_DUMMY_MAIN
   13244  1.1  christos #  ifdef __cplusplus
   13245  1.1  christos      extern "C"
   13246  1.1  christos #  endif
   13247  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13248  1.1  christos #endif
   13249  1.1  christos int
   13250  1.1  christos main ()
   13251  1.1  christos {
   13252  1.1  christos /* The GNU C library defines this for functions which it implements
   13253  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   13254  1.1  christos     something starting with __ and the normal name is an alias.  */
   13255  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   13256  1.1  christos choke me
   13257  1.1  christos #else
   13258  1.1  christos f = $ac_func;
   13259  1.1  christos #endif
   13260  1.1  christos 
   13261  1.1  christos   ;
   13262  1.1  christos   return 0;
   13263  1.1  christos }
   13264  1.1  christos _ACEOF
   13265  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13266  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13267  1.1  christos   (eval $ac_link) 2>&5
   13268  1.1  christos   ac_status=$?
   13269  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13270  1.1  christos   (exit $ac_status); } &&
   13271  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13272  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13273  1.1  christos   (eval $ac_try) 2>&5
   13274  1.1  christos   ac_status=$?
   13275  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13276  1.1  christos   (exit $ac_status); }; }; then
   13277  1.1  christos   eval "$as_ac_var=yes"
   13278  1.1  christos else
   13279  1.1  christos   echo "$as_me: failed program was:" >&5
   13280  1.1  christos cat conftest.$ac_ext >&5
   13281  1.1  christos eval "$as_ac_var=no"
   13282  1.1  christos fi
   13283  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13284  1.1  christos fi
   13285  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   13286  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   13287  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   13288  1.1  christos   cat >>confdefs.h <<_ACEOF
   13289  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13290  1.1  christos _ACEOF
   13291  1.1  christos 
   13292  1.1  christos else
   13293  1.1  christos   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13294  1.1  christos fi
   13295  1.1  christos done
   13296  1.1  christos 
   13297  1.1  christos 
   13298  1.1  christos 
   13299  1.1  christos                   if test "$ac_cv_type_unsigned_long_long" = yes; then
   13300  1.1  christos 
   13301  1.1  christos for ac_func in strtoull
   13302  1.1  christos do
   13303  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13304  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   13305  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   13306  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   13307  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13308  1.1  christos else
   13309  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13310  1.1  christos #line $LINENO "configure"
   13311  1.1  christos #include "confdefs.h"
   13312  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   13313  1.1  christos     which can conflict with char $ac_func (); below.  */
   13314  1.1  christos #include <assert.h>
   13315  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13316  1.1  christos #ifdef __cplusplus
   13317  1.1  christos extern "C"
   13318  1.1  christos #endif
   13319  1.1  christos /* We use char because int might match the return type of a gcc2
   13320  1.1  christos    builtin and then its argument prototype would still apply.  */
   13321  1.1  christos char $ac_func ();
   13322  1.1  christos char (*f) ();
   13323  1.1  christos 
   13324  1.1  christos #ifdef F77_DUMMY_MAIN
   13325  1.1  christos #  ifdef __cplusplus
   13326  1.1  christos      extern "C"
   13327  1.1  christos #  endif
   13328  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13329  1.1  christos #endif
   13330  1.1  christos int
   13331  1.1  christos main ()
   13332  1.1  christos {
   13333  1.1  christos /* The GNU C library defines this for functions which it implements
   13334  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   13335  1.1  christos     something starting with __ and the normal name is an alias.  */
   13336  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   13337  1.1  christos choke me
   13338  1.1  christos #else
   13339  1.1  christos f = $ac_func;
   13340  1.1  christos #endif
   13341  1.1  christos 
   13342  1.1  christos   ;
   13343  1.1  christos   return 0;
   13344  1.1  christos }
   13345  1.1  christos _ACEOF
   13346  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13347  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13348  1.1  christos   (eval $ac_link) 2>&5
   13349  1.1  christos   ac_status=$?
   13350  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13351  1.1  christos   (exit $ac_status); } &&
   13352  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13353  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13354  1.1  christos   (eval $ac_try) 2>&5
   13355  1.1  christos   ac_status=$?
   13356  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13357  1.1  christos   (exit $ac_status); }; }; then
   13358  1.1  christos   eval "$as_ac_var=yes"
   13359  1.1  christos else
   13360  1.1  christos   echo "$as_me: failed program was:" >&5
   13361  1.1  christos cat conftest.$ac_ext >&5
   13362  1.1  christos eval "$as_ac_var=no"
   13363  1.1  christos fi
   13364  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13365  1.1  christos fi
   13366  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   13367  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   13368  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   13369  1.1  christos   cat >>confdefs.h <<_ACEOF
   13370  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13371  1.1  christos _ACEOF
   13372  1.1  christos 
   13373  1.1  christos else
   13374  1.1  christos   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   13375  1.1  christos fi
   13376  1.1  christos done
   13377  1.1  christos 
   13378  1.1  christos 
   13379  1.1  christos       fi
   13380  1.1  christos       ;;
   13381  1.1  christos   esac
   13382  1.1  christos 
   13383  1.1  christos 
   13384  1.1  christos # Check for clock_gettime and its library.  Solaris puts it in -lrt or
   13385  1.1  christos # -lposix4, but we don't want to link that library unless we have to.
   13386  1.1  christos diff_saved_libs=$LIBS
   13387  1.1  christos echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
   13388  1.1  christos echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
   13389  1.1  christos if test "${ac_cv_search_clock_gettime+set}" = set; then
   13390  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13391  1.1  christos else
   13392  1.1  christos   ac_func_search_save_LIBS=$LIBS
   13393  1.1  christos ac_cv_search_clock_gettime=no
   13394  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   13395  1.1  christos #line $LINENO "configure"
   13396  1.1  christos #include "confdefs.h"
   13397  1.1  christos 
   13398  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13399  1.1  christos #ifdef __cplusplus
   13400  1.1  christos extern "C"
   13401  1.1  christos #endif
   13402  1.1  christos /* We use char because int might match the return type of a gcc2
   13403  1.1  christos    builtin and then its argument prototype would still apply.  */
   13404  1.1  christos char clock_gettime ();
   13405  1.1  christos #ifdef F77_DUMMY_MAIN
   13406  1.1  christos #  ifdef __cplusplus
   13407  1.1  christos      extern "C"
   13408  1.1  christos #  endif
   13409  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13410  1.1  christos #endif
   13411  1.1  christos int
   13412  1.1  christos main ()
   13413  1.1  christos {
   13414  1.1  christos clock_gettime ();
   13415  1.1  christos   ;
   13416  1.1  christos   return 0;
   13417  1.1  christos }
   13418  1.1  christos _ACEOF
   13419  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13420  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13421  1.1  christos   (eval $ac_link) 2>&5
   13422  1.1  christos   ac_status=$?
   13423  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13424  1.1  christos   (exit $ac_status); } &&
   13425  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13426  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13427  1.1  christos   (eval $ac_try) 2>&5
   13428  1.1  christos   ac_status=$?
   13429  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13430  1.1  christos   (exit $ac_status); }; }; then
   13431  1.1  christos   ac_cv_search_clock_gettime="none required"
   13432  1.1  christos else
   13433  1.1  christos   echo "$as_me: failed program was:" >&5
   13434  1.1  christos cat conftest.$ac_ext >&5
   13435  1.1  christos fi
   13436  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13437  1.1  christos if test "$ac_cv_search_clock_gettime" = no; then
   13438  1.1  christos   for ac_lib in rt posix4; do
   13439  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13440  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   13441  1.1  christos #line $LINENO "configure"
   13442  1.1  christos #include "confdefs.h"
   13443  1.1  christos 
   13444  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13445  1.1  christos #ifdef __cplusplus
   13446  1.1  christos extern "C"
   13447  1.1  christos #endif
   13448  1.1  christos /* We use char because int might match the return type of a gcc2
   13449  1.1  christos    builtin and then its argument prototype would still apply.  */
   13450  1.1  christos char clock_gettime ();
   13451  1.1  christos #ifdef F77_DUMMY_MAIN
   13452  1.1  christos #  ifdef __cplusplus
   13453  1.1  christos      extern "C"
   13454  1.1  christos #  endif
   13455  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13456  1.1  christos #endif
   13457  1.1  christos int
   13458  1.1  christos main ()
   13459  1.1  christos {
   13460  1.1  christos clock_gettime ();
   13461  1.1  christos   ;
   13462  1.1  christos   return 0;
   13463  1.1  christos }
   13464  1.1  christos _ACEOF
   13465  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13466  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13467  1.1  christos   (eval $ac_link) 2>&5
   13468  1.1  christos   ac_status=$?
   13469  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13470  1.1  christos   (exit $ac_status); } &&
   13471  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13472  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13473  1.1  christos   (eval $ac_try) 2>&5
   13474  1.1  christos   ac_status=$?
   13475  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13476  1.1  christos   (exit $ac_status); }; }; then
   13477  1.1  christos   ac_cv_search_clock_gettime="-l$ac_lib"
   13478  1.1  christos break
   13479  1.1  christos else
   13480  1.1  christos   echo "$as_me: failed program was:" >&5
   13481  1.1  christos cat conftest.$ac_ext >&5
   13482  1.1  christos fi
   13483  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13484  1.1  christos   done
   13485  1.1  christos fi
   13486  1.1  christos LIBS=$ac_func_search_save_LIBS
   13487  1.1  christos fi
   13488  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
   13489  1.1  christos echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
   13490  1.1  christos if test "$ac_cv_search_clock_gettime" != no; then
   13491  1.1  christos   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
   13492  1.1  christos 
   13493  1.1  christos fi
   13494  1.1  christos 
   13495  1.1  christos case $ac_cv_search_clock_gettime in
   13496  1.1  christos no | 'none required')
   13497  1.1  christos   LIB_CLOCK_GETTIME=;;
   13498  1.1  christos *)
   13499  1.1  christos   LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
   13500  1.1  christos esac
   13501  1.1  christos 
   13502  1.1  christos 
   13503  1.1  christos for ac_func in clock_gettime
   13504  1.1  christos do
   13505  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13506  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   13507  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   13508  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   13509  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13510  1.1  christos else
   13511  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13512  1.1  christos #line $LINENO "configure"
   13513  1.1  christos #include "confdefs.h"
   13514  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   13515  1.1  christos     which can conflict with char $ac_func (); below.  */
   13516  1.1  christos #include <assert.h>
   13517  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   13518  1.1  christos #ifdef __cplusplus
   13519  1.1  christos extern "C"
   13520  1.1  christos #endif
   13521  1.1  christos /* We use char because int might match the return type of a gcc2
   13522  1.1  christos    builtin and then its argument prototype would still apply.  */
   13523  1.1  christos char $ac_func ();
   13524  1.1  christos char (*f) ();
   13525  1.1  christos 
   13526  1.1  christos #ifdef F77_DUMMY_MAIN
   13527  1.1  christos #  ifdef __cplusplus
   13528  1.1  christos      extern "C"
   13529  1.1  christos #  endif
   13530  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13531  1.1  christos #endif
   13532  1.1  christos int
   13533  1.1  christos main ()
   13534  1.1  christos {
   13535  1.1  christos /* The GNU C library defines this for functions which it implements
   13536  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   13537  1.1  christos     something starting with __ and the normal name is an alias.  */
   13538  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   13539  1.1  christos choke me
   13540  1.1  christos #else
   13541  1.1  christos f = $ac_func;
   13542  1.1  christos #endif
   13543  1.1  christos 
   13544  1.1  christos   ;
   13545  1.1  christos   return 0;
   13546  1.1  christos }
   13547  1.1  christos _ACEOF
   13548  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13549  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13550  1.1  christos   (eval $ac_link) 2>&5
   13551  1.1  christos   ac_status=$?
   13552  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13553  1.1  christos   (exit $ac_status); } &&
   13554  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13555  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13556  1.1  christos   (eval $ac_try) 2>&5
   13557  1.1  christos   ac_status=$?
   13558  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13559  1.1  christos   (exit $ac_status); }; }; then
   13560  1.1  christos   eval "$as_ac_var=yes"
   13561  1.1  christos else
   13562  1.1  christos   echo "$as_me: failed program was:" >&5
   13563  1.1  christos cat conftest.$ac_ext >&5
   13564  1.1  christos eval "$as_ac_var=no"
   13565  1.1  christos fi
   13566  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13567  1.1  christos fi
   13568  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   13569  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   13570  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   13571  1.1  christos   cat >>confdefs.h <<_ACEOF
   13572  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13573  1.1  christos _ACEOF
   13574  1.1  christos 
   13575  1.1  christos fi
   13576  1.1  christos done
   13577  1.1  christos 
   13578  1.1  christos LIBS=$diff_saved_libs
   13579  1.1  christos 
   13580  1.1  christos # fnmatch
   13581  1.1  christos echo "$as_me:$LINENO: checking for working GNU-style fnmatch" >&5
   13582  1.1  christos echo $ECHO_N "checking for working GNU-style fnmatch... $ECHO_C" >&6
   13583  1.1  christos if test "${ac_cv_func_fnmatch_works+set}" = set; then
   13584  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13585  1.1  christos else
   13586  1.1  christos   # Some versions of Solaris, SCO, and the GNU C Library
   13587  1.1  christos # have a broken or incompatible fnmatch.
   13588  1.1  christos # So we run a test program.  If we are cross-compiling, take no chance.
   13589  1.1  christos # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
   13590  1.1  christos if test "$cross_compiling" = yes; then
   13591  1.1  christos   ac_cv_func_fnmatch_works=no
   13592  1.1  christos else
   13593  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13594  1.1  christos #line $LINENO "configure"
   13595  1.1  christos #include "confdefs.h"
   13596  1.1  christos #include <fnmatch.h>
   13597  1.1  christos #ifdef F77_DUMMY_MAIN
   13598  1.1  christos #  ifdef __cplusplus
   13599  1.1  christos      extern "C"
   13600  1.1  christos #  endif
   13601  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13602  1.1  christos #endif
   13603  1.1  christos int
   13604  1.1  christos main ()
   13605  1.1  christos {
   13606  1.1  christos exit (fnmatch ("a*", "abc", 0) != 0
   13607  1.1  christos 	|| fnmatch ("xxXX", "xXxX", FNM_CASEFOLD) != 0
   13608  1.1  christos 	|| fnmatch ("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH
   13609  1.1  christos 	|| fnmatch ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
   13610  1.1  christos 	|| fnmatch ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
   13611  1.1  christos 	|| fnmatch ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);
   13612  1.1  christos   ;
   13613  1.1  christos   return 0;
   13614  1.1  christos }
   13615  1.1  christos _ACEOF
   13616  1.1  christos rm -f conftest$ac_exeext
   13617  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13618  1.1  christos   (eval $ac_link) 2>&5
   13619  1.1  christos   ac_status=$?
   13620  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13621  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   13622  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13623  1.1  christos   (eval $ac_try) 2>&5
   13624  1.1  christos   ac_status=$?
   13625  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13626  1.1  christos   (exit $ac_status); }; }; then
   13627  1.1  christos   ac_cv_func_fnmatch_works=yes
   13628  1.1  christos else
   13629  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   13630  1.1  christos echo "$as_me: failed program was:" >&5
   13631  1.1  christos cat conftest.$ac_ext >&5
   13632  1.1  christos ( exit $ac_status )
   13633  1.1  christos ac_cv_func_fnmatch_works=no
   13634  1.1  christos fi
   13635  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   13636  1.1  christos fi
   13637  1.1  christos fi
   13638  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
   13639  1.1  christos echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
   13640  1.1  christos if test $ac_cv_func_fnmatch_works = yes; then
   13641  1.1  christos 
   13642  1.1  christos cat >>confdefs.h <<\_ACEOF
   13643  1.1  christos #define HAVE_FNMATCH 1
   13644  1.1  christos _ACEOF
   13645  1.1  christos 
   13646  1.1  christos fi
   13647  1.1  christos 
   13648  1.1  christos if test $ac_cv_func_fnmatch_works = yes; then
   13649  1.1  christos   rm -f lib/fnmatch.h
   13650  1.1  christos else
   13651  1.1  christos   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
   13652  1.1  christos   ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.hin"
   13653  1.1  christos 
   13654  1.1  christos fi
   13655  1.1  christos 
   13656  1.1  christos # regex
   13657  1.1  christos 
   13658  1.1  christos 
   13659  1.1  christos     # Assume we'll default to using the included regex.c.
   13660  1.1  christos     ac_use_included_regex=yes
   13661  1.1  christos 
   13662  1.1  christos     # However, if the system regex support is good enough that it passes the
   13663  1.1  christos     # the following run test, then default to *not* using the included regex.c.
   13664  1.1  christos     # If cross compiling, assume the test would fail and use the included
   13665  1.1  christos     # regex.c.  The first failing regular expression is from `Spencer ere
   13666  1.1  christos     # test #75' in grep-2.3.
   13667  1.1  christos     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
   13668  1.1  christos echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
   13669  1.1  christos if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
   13670  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13671  1.1  christos else
   13672  1.1  christos   if test "$cross_compiling" = yes; then
   13673  1.1  christos   	       jm_cv_func_working_re_compile_pattern=no
   13674  1.1  christos else
   13675  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13676  1.1  christos #line $LINENO "configure"
   13677  1.1  christos #include "confdefs.h"
   13678  1.1  christos #include <stdio.h>
   13679  1.1  christos #include <regex.h>
   13680  1.1  christos 	  int
   13681  1.1  christos 	  main ()
   13682  1.1  christos 	  {
   13683  1.1  christos 	    static struct re_pattern_buffer regex;
   13684  1.1  christos 	    const char *s;
   13685  1.1  christos 	    struct re_registers regs;
   13686  1.1  christos 	    re_set_syntax (RE_SYNTAX_POSIX_EGREP);
   13687  1.1  christos 	    s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
   13688  1.1  christos 	    /* This should fail with _Invalid character class name_ error.  */
   13689  1.1  christos 	    if (!s)
   13690  1.1  christos 	      exit (1);
   13691  1.1  christos 
   13692  1.1  christos 	    /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
   13693  1.1  christos 	    s = re_compile_pattern ("{1", 2, &regex);
   13694  1.1  christos 
   13695  1.1  christos 	    if (s)
   13696  1.1  christos 	      exit (1);
   13697  1.1  christos 
   13698  1.1  christos 	    /* The following example is derived from a problem report
   13699  1.1  christos                against gawk from Jorge Stolfi <stolfi (at] ic.unicamp.br>.  */
   13700  1.1  christos 	    s = re_compile_pattern ("[an]*n", 7, &regex);
   13701  1.1  christos 	    if (s)
   13702  1.1  christos 	      exit (1);
   13703  1.1  christos 
   13704  1.1  christos 	    /* This should match, but doesn't for e.g. glibc-2.2.1.  */
   13705  1.1  christos 	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
   13706  1.1  christos 	      exit (1);
   13707  1.1  christos 
   13708  1.1  christos 	    exit (0);
   13709  1.1  christos 	  }
   13710  1.1  christos 
   13711  1.1  christos _ACEOF
   13712  1.1  christos rm -f conftest$ac_exeext
   13713  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13714  1.1  christos   (eval $ac_link) 2>&5
   13715  1.1  christos   ac_status=$?
   13716  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13717  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   13718  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13719  1.1  christos   (eval $ac_try) 2>&5
   13720  1.1  christos   ac_status=$?
   13721  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13722  1.1  christos   (exit $ac_status); }; }; then
   13723  1.1  christos   jm_cv_func_working_re_compile_pattern=yes
   13724  1.1  christos else
   13725  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   13726  1.1  christos echo "$as_me: failed program was:" >&5
   13727  1.1  christos cat conftest.$ac_ext >&5
   13728  1.1  christos ( exit $ac_status )
   13729  1.1  christos jm_cv_func_working_re_compile_pattern=no
   13730  1.1  christos fi
   13731  1.1  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   13732  1.1  christos fi
   13733  1.1  christos fi
   13734  1.1  christos echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
   13735  1.1  christos echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
   13736  1.1  christos     if test $jm_cv_func_working_re_compile_pattern = yes; then
   13737  1.1  christos       ac_use_included_regex=no
   13738  1.1  christos     fi
   13739  1.1  christos 
   13740  1.1  christos     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
   13741  1.1  christos echo "$as_me: error: missing argument" >&2;}
   13742  1.1  christos    { (exit 1); exit 1; }; }
   13743  1.1  christos 
   13744  1.1  christos 
   13745  1.1  christos 
   13746  1.1  christos # Check whether --with-included-regex or --without-included-regex was given.
   13747  1.1  christos if test "${with_included_regex+set}" = set; then
   13748  1.1  christos   withval="$with_included_regex"
   13749  1.1  christos   jm_with_regex=$withval
   13750  1.1  christos else
   13751  1.1  christos   jm_with_regex=$ac_use_included_regex
   13752  1.1  christos fi;
   13753  1.1  christos 	if test "$jm_with_regex" = yes; then
   13754  1.1  christos 	  LIBOBJS="$LIBOBJS regex.$ac_objext"
   13755  1.1  christos 	fi
   13756  1.1  christos 
   13757  1.1  christos 
   13758  1.1  christos 
   13759  1.1  christos if test "$jm_with_regex" = yes; then
   13760  1.1  christos   ac_config_links="$ac_config_links lib/regex.h:lib/regex.hin"
   13761  1.1  christos 
   13762  1.1  christos else
   13763  1.1  christos   rm -f lib/regex.h
   13764  1.1  christos fi
   13765  1.1  christos 
   13766  1.1  christos 
   13767  1.1  christos     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
   13768  1.1  christos echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
   13769  1.1  christos if test "${ac_cv_win_or_dos+set}" = set; then
   13770  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13771  1.1  christos else
   13772  1.1  christos 
   13773  1.1  christos         cat >conftest.$ac_ext <<_ACEOF
   13774  1.1  christos #line $LINENO "configure"
   13775  1.1  christos #include "confdefs.h"
   13776  1.1  christos 
   13777  1.1  christos #ifdef F77_DUMMY_MAIN
   13778  1.1  christos #  ifdef __cplusplus
   13779  1.1  christos      extern "C"
   13780  1.1  christos #  endif
   13781  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13782  1.1  christos #endif
   13783  1.1  christos int
   13784  1.1  christos main ()
   13785  1.1  christos {
   13786  1.1  christos #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
   13787  1.1  christos neither MSDOS nor Windows
   13788  1.1  christos #endif
   13789  1.1  christos   ;
   13790  1.1  christos   return 0;
   13791  1.1  christos }
   13792  1.1  christos _ACEOF
   13793  1.1  christos rm -f conftest.$ac_objext
   13794  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   13795  1.1  christos   (eval $ac_compile) 2>&5
   13796  1.1  christos   ac_status=$?
   13797  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13798  1.1  christos   (exit $ac_status); } &&
   13799  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   13800  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13801  1.1  christos   (eval $ac_try) 2>&5
   13802  1.1  christos   ac_status=$?
   13803  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13804  1.1  christos   (exit $ac_status); }; }; then
   13805  1.1  christos   ac_cv_win_or_dos=yes
   13806  1.1  christos else
   13807  1.1  christos   echo "$as_me: failed program was:" >&5
   13808  1.1  christos cat conftest.$ac_ext >&5
   13809  1.1  christos ac_cv_win_or_dos=no
   13810  1.1  christos fi
   13811  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   13812  1.1  christos 
   13813  1.1  christos fi
   13814  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
   13815  1.1  christos echo "${ECHO_T}$ac_cv_win_or_dos" >&6
   13816  1.1  christos 
   13817  1.1  christos     if test x"$ac_cv_win_or_dos" = xyes; then
   13818  1.1  christos       ac_fs_accepts_drive_letter_prefix=1
   13819  1.1  christos       ac_fs_backslash_is_file_name_separator=1
   13820  1.1  christos     else
   13821  1.1  christos       ac_fs_accepts_drive_letter_prefix=0
   13822  1.1  christos       ac_fs_backslash_is_file_name_separator=0
   13823  1.1  christos     fi
   13824  1.1  christos 
   13825  1.1  christos 
   13826  1.1  christos 
   13827  1.1  christos 
   13828  1.1  christos 
   13829  1.1  christos cat >>confdefs.h <<_ACEOF
   13830  1.1  christos #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
   13831  1.1  christos _ACEOF
   13832  1.1  christos 
   13833  1.1  christos 
   13834  1.1  christos 
   13835  1.1  christos 
   13836  1.1  christos 
   13837  1.1  christos 
   13838  1.1  christos cat >>confdefs.h <<_ACEOF
   13839  1.1  christos #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
   13840  1.1  christos _ACEOF
   13841  1.1  christos 
   13842  1.1  christos 
   13843  1.1  christos 
   13844  1.1  christos 
   13845  1.1  christos for ac_header in fcntl.h unistd.h
   13846  1.1  christos do
   13847  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13848  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13849  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   13850  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   13851  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13852  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13853  1.1  christos fi
   13854  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   13855  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   13856  1.1  christos else
   13857  1.1  christos   # Is the header compilable?
   13858  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13859  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   13860  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   13861  1.1  christos #line $LINENO "configure"
   13862  1.1  christos #include "confdefs.h"
   13863  1.1  christos $ac_includes_default
   13864  1.1  christos #include <$ac_header>
   13865  1.1  christos _ACEOF
   13866  1.1  christos rm -f conftest.$ac_objext
   13867  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   13868  1.1  christos   (eval $ac_compile) 2>&5
   13869  1.1  christos   ac_status=$?
   13870  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13871  1.1  christos   (exit $ac_status); } &&
   13872  1.1  christos          { ac_try='test -s conftest.$ac_objext'
   13873  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13874  1.1  christos   (eval $ac_try) 2>&5
   13875  1.1  christos   ac_status=$?
   13876  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13877  1.1  christos   (exit $ac_status); }; }; then
   13878  1.1  christos   ac_header_compiler=yes
   13879  1.1  christos else
   13880  1.1  christos   echo "$as_me: failed program was:" >&5
   13881  1.1  christos cat conftest.$ac_ext >&5
   13882  1.1  christos ac_header_compiler=no
   13883  1.1  christos fi
   13884  1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   13885  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13886  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   13887  1.1  christos 
   13888  1.1  christos # Is the header present?
   13889  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13890  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   13891  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   13892  1.1  christos #line $LINENO "configure"
   13893  1.1  christos #include "confdefs.h"
   13894  1.1  christos #include <$ac_header>
   13895  1.1  christos _ACEOF
   13896  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   13897  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   13898  1.1  christos   ac_status=$?
   13899  1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   13900  1.1  christos   rm -f conftest.er1
   13901  1.1  christos   cat conftest.err >&5
   13902  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13903  1.1  christos   (exit $ac_status); } >/dev/null; then
   13904  1.1  christos   if test -s conftest.err; then
   13905  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   13906  1.1  christos   else
   13907  1.1  christos     ac_cpp_err=
   13908  1.1  christos   fi
   13909  1.1  christos else
   13910  1.1  christos   ac_cpp_err=yes
   13911  1.1  christos fi
   13912  1.1  christos if test -z "$ac_cpp_err"; then
   13913  1.1  christos   ac_header_preproc=yes
   13914  1.1  christos else
   13915  1.1  christos   echo "$as_me: failed program was:" >&5
   13916  1.1  christos   cat conftest.$ac_ext >&5
   13917  1.1  christos   ac_header_preproc=no
   13918  1.1  christos fi
   13919  1.1  christos rm -f conftest.err conftest.$ac_ext
   13920  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13921  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   13922  1.1  christos 
   13923  1.1  christos # So?  What about this header?
   13924  1.1  christos case $ac_header_compiler:$ac_header_preproc in
   13925  1.1  christos   yes:no )
   13926  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13927  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13928  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13929  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   13930  1.1  christos   no:yes )
   13931  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13932  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13933  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
   13934  1.1  christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
   13935  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13936  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
   13937  1.1  christos esac
   13938  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   13939  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   13940  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   13941  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13942  1.1  christos else
   13943  1.1  christos   eval "$as_ac_Header=$ac_header_preproc"
   13944  1.1  christos fi
   13945  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   13946  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   13947  1.1  christos 
   13948  1.1  christos fi
   13949  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13950  1.1  christos   cat >>confdefs.h <<_ACEOF
   13951  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13952  1.1  christos _ACEOF
   13953  1.1  christos 
   13954  1.1  christos fi
   13955  1.1  christos 
   13956  1.1  christos done
   13957  1.1  christos 
   13958  1.1  christos    echo "$as_me:$LINENO: checking for DOS-style setmode" >&5
   13959  1.1  christos echo $ECHO_N "checking for DOS-style setmode... $ECHO_C" >&6
   13960  1.1  christos if test "${ac_cv_func_setmode_dos+set}" = set; then
   13961  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   13962  1.1  christos else
   13963  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   13964  1.1  christos #line $LINENO "configure"
   13965  1.1  christos #include "confdefs.h"
   13966  1.1  christos #include <io.h>
   13967  1.1  christos 	 #if HAVE_FCNTL_H
   13968  1.1  christos 	 # include <fcntl.h>
   13969  1.1  christos 	 #endif
   13970  1.1  christos 	 #if HAVE_UNISTD_H
   13971  1.1  christos 	 # include <unistd.h>
   13972  1.1  christos 	 #endif
   13973  1.1  christos #ifdef F77_DUMMY_MAIN
   13974  1.1  christos #  ifdef __cplusplus
   13975  1.1  christos      extern "C"
   13976  1.1  christos #  endif
   13977  1.1  christos    int F77_DUMMY_MAIN() { return 1; }
   13978  1.1  christos #endif
   13979  1.1  christos int
   13980  1.1  christos main ()
   13981  1.1  christos {
   13982  1.1  christos int ret = setmode && setmode (1, O_BINARY);
   13983  1.1  christos   ;
   13984  1.1  christos   return 0;
   13985  1.1  christos }
   13986  1.1  christos _ACEOF
   13987  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   13988  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   13989  1.1  christos   (eval $ac_link) 2>&5
   13990  1.1  christos   ac_status=$?
   13991  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13992  1.1  christos   (exit $ac_status); } &&
   13993  1.1  christos          { ac_try='test -s conftest$ac_exeext'
   13994  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   13995  1.1  christos   (eval $ac_try) 2>&5
   13996  1.1  christos   ac_status=$?
   13997  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13998  1.1  christos   (exit $ac_status); }; }; then
   13999  1.1  christos   ac_cv_func_setmode_dos=yes
   14000  1.1  christos else
   14001  1.1  christos   echo "$as_me: failed program was:" >&5
   14002  1.1  christos cat conftest.$ac_ext >&5
   14003  1.1  christos ac_cv_func_setmode_dos=no
   14004  1.1  christos fi
   14005  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14006  1.1  christos fi
   14007  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_setmode_dos" >&5
   14008  1.1  christos echo "${ECHO_T}$ac_cv_func_setmode_dos" >&6
   14009  1.1  christos    if test $ac_cv_func_setmode_dos = yes; then
   14010  1.1  christos 
   14011  1.1  christos cat >>confdefs.h <<\_ACEOF
   14012  1.1  christos #define HAVE_SETMODE_DOS 1
   14013  1.1  christos _ACEOF
   14014  1.1  christos 
   14015  1.1  christos    fi
   14016  1.1  christos 
   14017  1.1  christos ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile lib/posix/Makefile man/Makefile m4/Makefile ms/Makefile po/Makefile.in src/Makefile"
   14018  1.1  christos 
   14019  1.1  christos ac_config_commands="$ac_config_commands default"
   14020  1.1  christos 
   14021  1.1  christos cat >confcache <<\_ACEOF
   14022  1.1  christos # This file is a shell script that caches the results of configure
   14023  1.1  christos # tests run on this system so they can be shared between configure
   14024  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   14025  1.1  christos # It is not useful on other systems.  If it contains results you don't
   14026  1.1  christos # want to keep, you may remove or edit it.
   14027  1.1  christos #
   14028  1.1  christos # config.status only pays attention to the cache file if you give it
   14029  1.1  christos # the --recheck option to rerun configure.
   14030  1.1  christos #
   14031  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
   14032  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   14033  1.1  christos # following values.
   14034  1.1  christos 
   14035  1.1  christos _ACEOF
   14036  1.1  christos 
   14037  1.1  christos # The following way of writing the cache mishandles newlines in values,
   14038  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   14039  1.1  christos # So, don't put newlines in cache variables' values.
   14040  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   14041  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   14042  1.1  christos {
   14043  1.1  christos   (set) 2>&1 |
   14044  1.1  christos     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   14045  1.1  christos     *ac_space=\ *)
   14046  1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   14047  1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   14048  1.1  christos       sed -n \
   14049  1.1  christos         "s/'/'\\\\''/g;
   14050  1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   14051  1.1  christos       ;;
   14052  1.1  christos     *)
   14053  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   14054  1.1  christos       sed -n \
   14055  1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   14056  1.1  christos       ;;
   14057  1.1  christos     esac;
   14058  1.1  christos } |
   14059  1.1  christos   sed '
   14060  1.1  christos      t clear
   14061  1.1  christos      : clear
   14062  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   14063  1.1  christos      t end
   14064  1.1  christos      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   14065  1.1  christos      : end' >>confcache
   14066  1.1  christos if cmp -s $cache_file confcache; then :; else
   14067  1.1  christos   if test -w $cache_file; then
   14068  1.1  christos     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   14069  1.1  christos     cat confcache >$cache_file
   14070  1.1  christos   else
   14071  1.1  christos     echo "not updating unwritable cache $cache_file"
   14072  1.1  christos   fi
   14073  1.1  christos fi
   14074  1.1  christos rm -f confcache
   14075  1.1  christos 
   14076  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   14077  1.1  christos # Let make expand exec_prefix.
   14078  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   14079  1.1  christos 
   14080  1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   14081  1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   14082  1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   14083  1.1  christos # (actually we leave an empty line to preserve line numbers).
   14084  1.1  christos if test "x$srcdir" = x.; then
   14085  1.1  christos   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   14086  1.1  christos s/:*\$(srcdir):*/:/;
   14087  1.1  christos s/:*\${srcdir}:*/:/;
   14088  1.1  christos s/:*@srcdir@:*/:/;
   14089  1.1  christos s/^\([^=]*=[ 	]*\):*/\1/;
   14090  1.1  christos s/:*$//;
   14091  1.1  christos s/^[^=]*=[ 	]*$//;
   14092  1.1  christos }'
   14093  1.1  christos fi
   14094  1.1  christos 
   14095  1.1  christos DEFS=-DHAVE_CONFIG_H
   14096  1.1  christos 
   14097  1.1  christos if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   14098  1.1  christos   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
   14099  1.1  christos Usually this means the macro was only invoked conditionally." >&5
   14100  1.1  christos echo "$as_me: error: conditional \"AMDEP\" was never defined.
   14101  1.1  christos Usually this means the macro was only invoked conditionally." >&2;}
   14102  1.1  christos    { (exit 1); exit 1; }; }
   14103  1.1  christos fi
   14104  1.1  christos 
   14105  1.1  christos : ${CONFIG_STATUS=./config.status}
   14106  1.1  christos ac_clean_files_save=$ac_clean_files
   14107  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   14108  1.1  christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   14109  1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   14110  1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   14111  1.1  christos #! $SHELL
   14112  1.1  christos # Generated by $as_me.
   14113  1.1  christos # Run this file to recreate the current configuration.
   14114  1.1  christos # Compiler output produced by configure, useful for debugging
   14115  1.1  christos # configure, is in config.log if it exists.
   14116  1.1  christos 
   14117  1.1  christos debug=false
   14118  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   14119  1.1  christos _ACEOF
   14120  1.1  christos 
   14121  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14122  1.1  christos 
   14123  1.1  christos ## --------------------- ##
   14124  1.1  christos ## M4sh Initialization.  ##
   14125  1.1  christos ## --------------------- ##
   14126  1.1  christos 
   14127  1.1  christos # Be Bourne compatible
   14128  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   14129  1.1  christos   emulate sh
   14130  1.1  christos   NULLCMD=:
   14131  1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   14132  1.1  christos   set -o posix
   14133  1.1  christos fi
   14134  1.1  christos 
   14135  1.1  christos # NLS nuisances.
   14136  1.1  christos # Support unset when possible.
   14137  1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   14138  1.1  christos   as_unset=unset
   14139  1.1  christos else
   14140  1.1  christos   as_unset=false
   14141  1.1  christos fi
   14142  1.1  christos 
   14143  1.1  christos (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
   14144  1.1  christos     { $as_unset LANG || test "${LANG+set}" != set; } ||
   14145  1.1  christos       { LANG=C; export LANG; }
   14146  1.1  christos (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
   14147  1.1  christos     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
   14148  1.1  christos       { LC_ALL=C; export LC_ALL; }
   14149  1.1  christos (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
   14150  1.1  christos     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
   14151  1.1  christos       { LC_TIME=C; export LC_TIME; }
   14152  1.1  christos (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
   14153  1.1  christos     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
   14154  1.1  christos       { LC_CTYPE=C; export LC_CTYPE; }
   14155  1.1  christos (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
   14156  1.1  christos     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
   14157  1.1  christos       { LANGUAGE=C; export LANGUAGE; }
   14158  1.1  christos (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
   14159  1.1  christos     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
   14160  1.1  christos       { LC_COLLATE=C; export LC_COLLATE; }
   14161  1.1  christos (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
   14162  1.1  christos     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
   14163  1.1  christos       { LC_NUMERIC=C; export LC_NUMERIC; }
   14164  1.1  christos (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
   14165  1.1  christos     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
   14166  1.1  christos       { LC_MESSAGES=C; export LC_MESSAGES; }
   14167  1.1  christos 
   14168  1.1  christos 
   14169  1.1  christos # Name of the executable.
   14170  1.1  christos as_me=`(basename "$0") 2>/dev/null ||
   14171  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   14172  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   14173  1.1  christos 	 X"$0" : 'X\(/\)$' \| \
   14174  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   14175  1.1  christos echo X/"$0" |
   14176  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   14177  1.1  christos   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   14178  1.1  christos   	  /^X\/\(\/\).*/{ s//\1/; q; }
   14179  1.1  christos   	  s/.*/./; q'`
   14180  1.1  christos 
   14181  1.1  christos # PATH needs CR, and LINENO needs CR and PATH.
   14182  1.1  christos # Avoid depending upon Character Ranges.
   14183  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   14184  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   14185  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   14186  1.1  christos as_cr_digits='0123456789'
   14187  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   14188  1.1  christos 
   14189  1.1  christos # The user is always right.
   14190  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
   14191  1.1  christos   echo "#! /bin/sh" >conftest.sh
   14192  1.1  christos   echo  "exit 0"   >>conftest.sh
   14193  1.1  christos   chmod +x conftest.sh
   14194  1.1  christos   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
   14195  1.1  christos     PATH_SEPARATOR=';'
   14196  1.1  christos   else
   14197  1.1  christos     PATH_SEPARATOR=:
   14198  1.1  christos   fi
   14199  1.1  christos   rm -f conftest.sh
   14200  1.1  christos fi
   14201  1.1  christos 
   14202  1.1  christos 
   14203  1.1  christos   as_lineno_1=$LINENO
   14204  1.1  christos   as_lineno_2=$LINENO
   14205  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   14206  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
   14207  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
   14208  1.1  christos   # Find who we are.  Look in the path if we contain no path at all
   14209  1.1  christos   # relative or not.
   14210  1.1  christos   case $0 in
   14211  1.1  christos     *[\\/]* ) as_myself=$0 ;;
   14212  1.1  christos     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14213  1.1  christos for as_dir in $PATH
   14214  1.1  christos do
   14215  1.1  christos   IFS=$as_save_IFS
   14216  1.1  christos   test -z "$as_dir" && as_dir=.
   14217  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   14218  1.1  christos done
   14219  1.1  christos 
   14220  1.1  christos        ;;
   14221  1.1  christos   esac
   14222  1.1  christos   # We did not find ourselves, most probably we were run as `sh COMMAND'
   14223  1.1  christos   # in which case we are not to be found in the path.
   14224  1.1  christos   if test "x$as_myself" = x; then
   14225  1.1  christos     as_myself=$0
   14226  1.1  christos   fi
   14227  1.1  christos   if test ! -f "$as_myself"; then
   14228  1.1  christos     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
   14229  1.1  christos echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   14230  1.1  christos    { (exit 1); exit 1; }; }
   14231  1.1  christos   fi
   14232  1.1  christos   case $CONFIG_SHELL in
   14233  1.1  christos   '')
   14234  1.1  christos     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14235  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   14236  1.1  christos do
   14237  1.1  christos   IFS=$as_save_IFS
   14238  1.1  christos   test -z "$as_dir" && as_dir=.
   14239  1.1  christos   for as_base in sh bash ksh sh5; do
   14240  1.1  christos 	 case $as_dir in
   14241  1.1  christos 	 /*)
   14242  1.1  christos 	   if ("$as_dir/$as_base" -c '
   14243  1.1  christos   as_lineno_1=$LINENO
   14244  1.1  christos   as_lineno_2=$LINENO
   14245  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   14246  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
   14247  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
   14248  1.1  christos 	     CONFIG_SHELL=$as_dir/$as_base
   14249  1.1  christos 	     export CONFIG_SHELL
   14250  1.1  christos 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
   14251  1.1  christos 	   fi;;
   14252  1.1  christos 	 esac
   14253  1.1  christos        done
   14254  1.1  christos done
   14255  1.1  christos ;;
   14256  1.1  christos   esac
   14257  1.1  christos 
   14258  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   14259  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
   14260  1.1  christos   # line-number line before each line; the second 'sed' does the real
   14261  1.1  christos   # work.  The second script uses 'N' to pair each line-number line
   14262  1.1  christos   # with the numbered line, and appends trailing '-' during
   14263  1.1  christos   # substitution so that $LINENO is not a special case at line end.
   14264  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   14265  1.1  christos   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
   14266  1.1  christos   sed '=' <$as_myself |
   14267  1.1  christos     sed '
   14268  1.1  christos       N
   14269  1.1  christos       s,$,-,
   14270  1.1  christos       : loop
   14271  1.1  christos       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
   14272  1.1  christos       t loop
   14273  1.1  christos       s,-$,,
   14274  1.1  christos       s,^['$as_cr_digits']*\n,,
   14275  1.1  christos     ' >$as_me.lineno &&
   14276  1.1  christos   chmod +x $as_me.lineno ||
   14277  1.1  christos     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
   14278  1.1  christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   14279  1.1  christos    { (exit 1); exit 1; }; }
   14280  1.1  christos 
   14281  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
   14282  1.1  christos   # (the dirname of $[0] is not the place where we might find the
   14283  1.1  christos   # original and so on.  Autoconf is especially sensible to this).
   14284  1.1  christos   . ./$as_me.lineno
   14285  1.1  christos   # Exit status is that of the last command.
   14286  1.1  christos   exit
   14287  1.1  christos }
   14288  1.1  christos 
   14289  1.1  christos 
   14290  1.1  christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   14291  1.1  christos   *c*,-n*) ECHO_N= ECHO_C='
   14292  1.1  christos ' ECHO_T='	' ;;
   14293  1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   14294  1.1  christos   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   14295  1.1  christos esac
   14296  1.1  christos 
   14297  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   14298  1.1  christos   as_expr=expr
   14299  1.1  christos else
   14300  1.1  christos   as_expr=false
   14301  1.1  christos fi
   14302  1.1  christos 
   14303  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   14304  1.1  christos echo >conf$$.file
   14305  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   14306  1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
   14307  1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   14308  1.1  christos   if test -f conf$$.exe; then
   14309  1.1  christos     # Don't use ln at all; we don't have any links
   14310  1.1  christos     as_ln_s='cp -p'
   14311  1.1  christos   else
   14312  1.1  christos     as_ln_s='ln -s'
   14313  1.1  christos   fi
   14314  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   14315  1.1  christos   as_ln_s=ln
   14316  1.1  christos else
   14317  1.1  christos   as_ln_s='cp -p'
   14318  1.1  christos fi
   14319  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   14320  1.1  christos 
   14321  1.1  christos as_executable_p="test -f"
   14322  1.1  christos 
   14323  1.1  christos # Sed expression to map a string onto a valid CPP name.
   14324  1.1  christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
   14325  1.1  christos 
   14326  1.1  christos # Sed expression to map a string onto a valid variable name.
   14327  1.1  christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
   14328  1.1  christos 
   14329  1.1  christos 
   14330  1.1  christos # IFS
   14331  1.1  christos # We need space, tab and new line, in precisely that order.
   14332  1.1  christos as_nl='
   14333  1.1  christos '
   14334  1.1  christos IFS=" 	$as_nl"
   14335  1.1  christos 
   14336  1.1  christos # CDPATH.
   14337  1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
   14338  1.1  christos 
   14339  1.1  christos exec 6>&1
   14340  1.1  christos 
   14341  1.1  christos # Open the log real soon, to keep \$[0] and so on meaningful, and to
   14342  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   14343  1.1  christos # values after options handling.  Logging --version etc. is OK.
   14344  1.1  christos exec 5>>config.log
   14345  1.1  christos {
   14346  1.1  christos   echo
   14347  1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   14348  1.1  christos ## Running $as_me. ##
   14349  1.1  christos _ASBOX
   14350  1.1  christos } >&5
   14351  1.1  christos cat >&5 <<_CSEOF
   14352  1.1  christos 
   14353  1.1  christos This file was extended by GNU diffutils $as_me 2.8.1, which was
   14354  1.1  christos generated by GNU Autoconf 2.53.  Invocation command line was
   14355  1.1  christos 
   14356  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   14357  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   14358  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   14359  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   14360  1.1  christos   $ $0 $@
   14361  1.1  christos 
   14362  1.1  christos _CSEOF
   14363  1.1  christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
   14364  1.1  christos echo >&5
   14365  1.1  christos _ACEOF
   14366  1.1  christos 
   14367  1.1  christos # Files that config.status was made for.
   14368  1.1  christos if test -n "$ac_config_files"; then
   14369  1.1  christos   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   14370  1.1  christos fi
   14371  1.1  christos 
   14372  1.1  christos if test -n "$ac_config_headers"; then
   14373  1.1  christos   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   14374  1.1  christos fi
   14375  1.1  christos 
   14376  1.1  christos if test -n "$ac_config_links"; then
   14377  1.1  christos   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   14378  1.1  christos fi
   14379  1.1  christos 
   14380  1.1  christos if test -n "$ac_config_commands"; then
   14381  1.1  christos   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   14382  1.1  christos fi
   14383  1.1  christos 
   14384  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14385  1.1  christos 
   14386  1.1  christos ac_cs_usage="\
   14387  1.1  christos \`$as_me' instantiates files from templates according to the
   14388  1.1  christos current configuration.
   14389  1.1  christos 
   14390  1.1  christos Usage: $0 [OPTIONS] [FILE]...
   14391  1.1  christos 
   14392  1.1  christos   -h, --help       print this help, then exit
   14393  1.1  christos   -V, --version    print version number, then exit
   14394  1.1  christos   -d, --debug      don't remove temporary files
   14395  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   14396  1.1  christos   --file=FILE[:TEMPLATE]
   14397  1.1  christos                    instantiate the configuration file FILE
   14398  1.1  christos   --header=FILE[:TEMPLATE]
   14399  1.1  christos                    instantiate the configuration header FILE
   14400  1.1  christos 
   14401  1.1  christos Configuration files:
   14402  1.1  christos $config_files
   14403  1.1  christos 
   14404  1.1  christos Configuration headers:
   14405  1.1  christos $config_headers
   14406  1.1  christos 
   14407  1.1  christos Configuration links:
   14408  1.1  christos $config_links
   14409  1.1  christos 
   14410  1.1  christos Configuration commands:
   14411  1.1  christos $config_commands
   14412  1.1  christos 
   14413  1.1  christos Report bugs to <bug-autoconf@gnu.org>."
   14414  1.1  christos _ACEOF
   14415  1.1  christos 
   14416  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   14417  1.1  christos ac_cs_version="\\
   14418  1.1  christos GNU diffutils config.status 2.8.1
   14419  1.1  christos configured by $0, generated by GNU Autoconf 2.53,
   14420  1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   14421  1.1  christos 
   14422  1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   14423  1.1  christos Free Software Foundation, Inc.
   14424  1.1  christos This config.status script is free software; the Free Software Foundation
   14425  1.1  christos gives unlimited permission to copy, distribute and modify it."
   14426  1.1  christos srcdir=$srcdir
   14427  1.1  christos INSTALL="$INSTALL"
   14428  1.1  christos _ACEOF
   14429  1.1  christos 
   14430  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14431  1.1  christos # If no file are specified by the user, then we need to provide default
   14432  1.1  christos # value.  By we need to know if files were specified by the user.
   14433  1.1  christos ac_need_defaults=:
   14434  1.1  christos while test $# != 0
   14435  1.1  christos do
   14436  1.1  christos   case $1 in
   14437  1.1  christos   --*=*)
   14438  1.1  christos     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   14439  1.1  christos     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   14440  1.1  christos     shift
   14441  1.1  christos     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   14442  1.1  christos     shift
   14443  1.1  christos     ;;
   14444  1.1  christos   -*);;
   14445  1.1  christos   *) # This is not an option, so the user has probably given explicit
   14446  1.1  christos      # arguments.
   14447  1.1  christos      ac_need_defaults=false;;
   14448  1.1  christos   esac
   14449  1.1  christos 
   14450  1.1  christos   case $1 in
   14451  1.1  christos   # Handling of the options.
   14452  1.1  christos _ACEOF
   14453  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   14454  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   14455  1.1  christos     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   14456  1.1  christos     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   14457  1.1  christos _ACEOF
   14458  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14459  1.1  christos   --version | --vers* | -V )
   14460  1.1  christos     echo "$ac_cs_version"; exit 0 ;;
   14461  1.1  christos   --he | --h)
   14462  1.1  christos     # Conflict between --help and --header
   14463  1.1  christos     { { echo "$as_me:$LINENO: error: ambiguous option: $1
   14464  1.1  christos Try \`$0 --help' for more information." >&5
   14465  1.1  christos echo "$as_me: error: ambiguous option: $1
   14466  1.1  christos Try \`$0 --help' for more information." >&2;}
   14467  1.1  christos    { (exit 1); exit 1; }; };;
   14468  1.1  christos   --help | --hel | -h )
   14469  1.1  christos     echo "$ac_cs_usage"; exit 0 ;;
   14470  1.1  christos   --debug | --d* | -d )
   14471  1.1  christos     debug=: ;;
   14472  1.1  christos   --file | --fil | --fi | --f )
   14473  1.1  christos     shift
   14474  1.1  christos     CONFIG_FILES="$CONFIG_FILES $1"
   14475  1.1  christos     ac_need_defaults=false;;
   14476  1.1  christos   --header | --heade | --head | --hea )
   14477  1.1  christos     shift
   14478  1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   14479  1.1  christos     ac_need_defaults=false;;
   14480  1.1  christos 
   14481  1.1  christos   # This is an error.
   14482  1.1  christos   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
   14483  1.1  christos Try \`$0 --help' for more information." >&5
   14484  1.1  christos echo "$as_me: error: unrecognized option: $1
   14485  1.1  christos Try \`$0 --help' for more information." >&2;}
   14486  1.1  christos    { (exit 1); exit 1; }; } ;;
   14487  1.1  christos 
   14488  1.1  christos   *) ac_config_targets="$ac_config_targets $1" ;;
   14489  1.1  christos 
   14490  1.1  christos   esac
   14491  1.1  christos   shift
   14492  1.1  christos done
   14493  1.1  christos 
   14494  1.1  christos _ACEOF
   14495  1.1  christos 
   14496  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   14497  1.1  christos #
   14498  1.1  christos # INIT-COMMANDS section.
   14499  1.1  christos #
   14500  1.1  christos 
   14501  1.1  christos AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   14502  1.1  christos # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
   14503  1.1  christos     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
   14504  1.1  christos     # from automake.
   14505  1.1  christos     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
   14506  1.1  christos     # Capture the value of LINGUAS because we need it to compute CATALOGS.
   14507  1.1  christos     LINGUAS="${LINGUAS-%UNSET%}"
   14508  1.1  christos 
   14509  1.1  christos 
   14510  1.1  christos _ACEOF
   14511  1.1  christos 
   14512  1.1  christos 
   14513  1.1  christos 
   14514  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14515  1.1  christos for ac_config_target in $ac_config_targets
   14516  1.1  christos do
   14517  1.1  christos   case "$ac_config_target" in
   14518  1.1  christos   # Handling of arguments.
   14519  1.1  christos   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   14520  1.1  christos   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   14521  1.1  christos   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   14522  1.1  christos   "lib/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/posix/Makefile" ;;
   14523  1.1  christos   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
   14524  1.1  christos   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
   14525  1.1  christos   "ms/Makefile" ) CONFIG_FILES="$CONFIG_FILES ms/Makefile" ;;
   14526  1.1  christos   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
   14527  1.1  christos   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
   14528  1.1  christos   "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.hin" ;;
   14529  1.1  christos   "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex.hin" ;;
   14530  1.1  christos   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   14531  1.1  christos   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
   14532  1.1  christos   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   14533  1.1  christos   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
   14534  1.1  christos   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   14535  1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   14536  1.1  christos    { (exit 1); exit 1; }; };;
   14537  1.1  christos   esac
   14538  1.1  christos done
   14539  1.1  christos 
   14540  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   14541  1.1  christos # then the envvar interface is used.  Set only those that are not.
   14542  1.1  christos # We use the long form for the default assignment because of an extremely
   14543  1.1  christos # bizarre bug on SunOS 4.1.3.
   14544  1.1  christos if $ac_need_defaults; then
   14545  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   14546  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   14547  1.1  christos   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   14548  1.1  christos   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   14549  1.1  christos fi
   14550  1.1  christos 
   14551  1.1  christos # Create a temporary directory, and hook for its removal unless debugging.
   14552  1.1  christos $debug ||
   14553  1.1  christos {
   14554  1.1  christos   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   14555  1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   14556  1.1  christos }
   14557  1.1  christos 
   14558  1.1  christos # Create a (secure) tmp directory for tmp files.
   14559  1.1  christos : ${TMPDIR=/tmp}
   14560  1.1  christos {
   14561  1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   14562  1.1  christos   test -n "$tmp" && test -d "$tmp"
   14563  1.1  christos }  ||
   14564  1.1  christos {
   14565  1.1  christos   tmp=$TMPDIR/cs$$-$RANDOM
   14566  1.1  christos   (umask 077 && mkdir $tmp)
   14567  1.1  christos } ||
   14568  1.1  christos {
   14569  1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   14570  1.1  christos    { (exit 1); exit 1; }
   14571  1.1  christos }
   14572  1.1  christos 
   14573  1.1  christos _ACEOF
   14574  1.1  christos 
   14575  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   14576  1.1  christos 
   14577  1.1  christos #
   14578  1.1  christos # CONFIG_FILES section.
   14579  1.1  christos #
   14580  1.1  christos 
   14581  1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   14582  1.1  christos # This happens for instance when ./config.status config.h
   14583  1.1  christos if test -n "\$CONFIG_FILES"; then
   14584  1.1  christos   # Protect against being on the right side of a sed subst in config.status.
   14585  1.1  christos   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   14586  1.1  christos    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   14587  1.1  christos s,@SHELL@,$SHELL,;t t
   14588  1.1  christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   14589  1.1  christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   14590  1.1  christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   14591  1.1  christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   14592  1.1  christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   14593  1.1  christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   14594  1.1  christos s,@exec_prefix@,$exec_prefix,;t t
   14595  1.1  christos s,@prefix@,$prefix,;t t
   14596  1.1  christos s,@program_transform_name@,$program_transform_name,;t t
   14597  1.1  christos s,@bindir@,$bindir,;t t
   14598  1.1  christos s,@sbindir@,$sbindir,;t t
   14599  1.1  christos s,@libexecdir@,$libexecdir,;t t
   14600  1.1  christos s,@datadir@,$datadir,;t t
   14601  1.1  christos s,@sysconfdir@,$sysconfdir,;t t
   14602  1.1  christos s,@sharedstatedir@,$sharedstatedir,;t t
   14603  1.1  christos s,@localstatedir@,$localstatedir,;t t
   14604  1.1  christos s,@libdir@,$libdir,;t t
   14605  1.1  christos s,@includedir@,$includedir,;t t
   14606  1.1  christos s,@oldincludedir@,$oldincludedir,;t t
   14607  1.1  christos s,@infodir@,$infodir,;t t
   14608  1.1  christos s,@mandir@,$mandir,;t t
   14609  1.1  christos s,@build_alias@,$build_alias,;t t
   14610  1.1  christos s,@host_alias@,$host_alias,;t t
   14611  1.1  christos s,@target_alias@,$target_alias,;t t
   14612  1.1  christos s,@DEFS@,$DEFS,;t t
   14613  1.1  christos s,@ECHO_C@,$ECHO_C,;t t
   14614  1.1  christos s,@ECHO_N@,$ECHO_N,;t t
   14615  1.1  christos s,@ECHO_T@,$ECHO_T,;t t
   14616  1.1  christos s,@LIBS@,$LIBS,;t t
   14617  1.1  christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   14618  1.1  christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   14619  1.1  christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   14620  1.1  christos s,@PACKAGE@,$PACKAGE,;t t
   14621  1.1  christos s,@VERSION@,$VERSION,;t t
   14622  1.1  christos s,@ACLOCAL@,$ACLOCAL,;t t
   14623  1.1  christos s,@AUTOCONF@,$AUTOCONF,;t t
   14624  1.1  christos s,@AUTOMAKE@,$AUTOMAKE,;t t
   14625  1.1  christos s,@AUTOHEADER@,$AUTOHEADER,;t t
   14626  1.1  christos s,@MAKEINFO@,$MAKEINFO,;t t
   14627  1.1  christos s,@AMTAR@,$AMTAR,;t t
   14628  1.1  christos s,@install_sh@,$install_sh,;t t
   14629  1.1  christos s,@STRIP@,$STRIP,;t t
   14630  1.1  christos s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
   14631  1.1  christos s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
   14632  1.1  christos s,@AWK@,$AWK,;t t
   14633  1.1  christos s,@SET_MAKE@,$SET_MAKE,;t t
   14634  1.1  christos s,@CC@,$CC,;t t
   14635  1.1  christos s,@CFLAGS@,$CFLAGS,;t t
   14636  1.1  christos s,@LDFLAGS@,$LDFLAGS,;t t
   14637  1.1  christos s,@CPPFLAGS@,$CPPFLAGS,;t t
   14638  1.1  christos s,@ac_ct_CC@,$ac_ct_CC,;t t
   14639  1.1  christos s,@EXEEXT@,$EXEEXT,;t t
   14640  1.1  christos s,@OBJEXT@,$OBJEXT,;t t
   14641  1.1  christos s,@DEPDIR@,$DEPDIR,;t t
   14642  1.1  christos s,@am__include@,$am__include,;t t
   14643  1.1  christos s,@am__quote@,$am__quote,;t t
   14644  1.1  christos s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
   14645  1.1  christos s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
   14646  1.1  christos s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
   14647  1.1  christos s,@CCDEPMODE@,$CCDEPMODE,;t t
   14648  1.1  christos s,@CPP@,$CPP,;t t
   14649  1.1  christos s,@HELP2MAN@,$HELP2MAN,;t t
   14650  1.1  christos s,@RANLIB@,$RANLIB,;t t
   14651  1.1  christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
   14652  1.1  christos s,@PR_PROGRAM@,$PR_PROGRAM,;t t
   14653  1.1  christos s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
   14654  1.1  christos s,@MSGFMT@,$MSGFMT,;t t
   14655  1.1  christos s,@GMSGFMT@,$GMSGFMT,;t t
   14656  1.1  christos s,@XGETTEXT@,$XGETTEXT,;t t
   14657  1.1  christos s,@MSGMERGE@,$MSGMERGE,;t t
   14658  1.1  christos s,@build@,$build,;t t
   14659  1.1  christos s,@build_cpu@,$build_cpu,;t t
   14660  1.1  christos s,@build_vendor@,$build_vendor,;t t
   14661  1.1  christos s,@build_os@,$build_os,;t t
   14662  1.1  christos s,@host@,$host,;t t
   14663  1.1  christos s,@host_cpu@,$host_cpu,;t t
   14664  1.1  christos s,@host_vendor@,$host_vendor,;t t
   14665  1.1  christos s,@host_os@,$host_os,;t t
   14666  1.1  christos s,@USE_NLS@,$USE_NLS,;t t
   14667  1.1  christos s,@LIBICONV@,$LIBICONV,;t t
   14668  1.1  christos s,@LTLIBICONV@,$LTLIBICONV,;t t
   14669  1.1  christos s,@INTLLIBS@,$INTLLIBS,;t t
   14670  1.1  christos s,@LIBINTL@,$LIBINTL,;t t
   14671  1.1  christos s,@LTLIBINTL@,$LTLIBINTL,;t t
   14672  1.1  christos s,@POSUB@,$POSUB,;t t
   14673  1.1  christos s,@LIBOBJS@,$LIBOBJS,;t t
   14674  1.1  christos s,@ALLOCA@,$ALLOCA,;t t
   14675  1.1  christos s,@U@,$U,;t t
   14676  1.1  christos s,@ANSI2KNR@,$ANSI2KNR,;t t
   14677  1.1  christos s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
   14678  1.1  christos CEOF
   14679  1.1  christos 
   14680  1.1  christos _ACEOF
   14681  1.1  christos 
   14682  1.1  christos   cat >>$CONFIG_STATUS <<\_ACEOF
   14683  1.1  christos   # Split the substitutions into bite-sized pieces for seds with
   14684  1.1  christos   # small command number limits, like on Digital OSF/1 and HP-UX.
   14685  1.1  christos   ac_max_sed_lines=48
   14686  1.1  christos   ac_sed_frag=1 # Number of current file.
   14687  1.1  christos   ac_beg=1 # First line for current file.
   14688  1.1  christos   ac_end=$ac_max_sed_lines # Line after last line for current file.
   14689  1.1  christos   ac_more_lines=:
   14690  1.1  christos   ac_sed_cmds=
   14691  1.1  christos   while $ac_more_lines; do
   14692  1.1  christos     if test $ac_beg -gt 1; then
   14693  1.1  christos       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   14694  1.1  christos     else
   14695  1.1  christos       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   14696  1.1  christos     fi
   14697  1.1  christos     if test ! -s $tmp/subs.frag; then
   14698  1.1  christos       ac_more_lines=false
   14699  1.1  christos     else
   14700  1.1  christos       # The purpose of the label and of the branching condition is to
   14701  1.1  christos       # speed up the sed processing (if there are no `@' at all, there
   14702  1.1  christos       # is no need to browse any of the substitutions).
   14703  1.1  christos       # These are the two extra sed commands mentioned above.
   14704  1.1  christos       (echo ':t
   14705  1.1  christos   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   14706  1.1  christos       if test -z "$ac_sed_cmds"; then
   14707  1.1  christos   	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   14708  1.1  christos       else
   14709  1.1  christos   	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   14710  1.1  christos       fi
   14711  1.1  christos       ac_sed_frag=`expr $ac_sed_frag + 1`
   14712  1.1  christos       ac_beg=$ac_end
   14713  1.1  christos       ac_end=`expr $ac_end + $ac_max_sed_lines`
   14714  1.1  christos     fi
   14715  1.1  christos   done
   14716  1.1  christos   if test -z "$ac_sed_cmds"; then
   14717  1.1  christos     ac_sed_cmds=cat
   14718  1.1  christos   fi
   14719  1.1  christos fi # test -n "$CONFIG_FILES"
   14720  1.1  christos 
   14721  1.1  christos _ACEOF
   14722  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14723  1.1  christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   14724  1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   14725  1.1  christos   case $ac_file in
   14726  1.1  christos   - | *:- | *:-:* ) # input from stdin
   14727  1.1  christos         cat >$tmp/stdin
   14728  1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   14729  1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   14730  1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   14731  1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   14732  1.1  christos   * )   ac_file_in=$ac_file.in ;;
   14733  1.1  christos   esac
   14734  1.1  christos 
   14735  1.1  christos   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   14736  1.1  christos   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   14737  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14738  1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   14739  1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   14740  1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   14741  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   14742  1.1  christos echo X"$ac_file" |
   14743  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   14744  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   14745  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   14746  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   14747  1.1  christos   	  s/.*/./; q'`
   14748  1.1  christos   { if $as_mkdir_p; then
   14749  1.1  christos     mkdir -p "$ac_dir"
   14750  1.1  christos   else
   14751  1.1  christos     as_dir="$ac_dir"
   14752  1.1  christos     as_dirs=
   14753  1.1  christos     while test ! -d "$as_dir"; do
   14754  1.1  christos       as_dirs="$as_dir $as_dirs"
   14755  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   14756  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14757  1.1  christos          X"$as_dir" : 'X\(//\)[^/]' \| \
   14758  1.1  christos          X"$as_dir" : 'X\(//\)$' \| \
   14759  1.1  christos          X"$as_dir" : 'X\(/\)' \| \
   14760  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   14761  1.1  christos echo X"$as_dir" |
   14762  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   14763  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   14764  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   14765  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   14766  1.1  christos   	  s/.*/./; q'`
   14767  1.1  christos     done
   14768  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   14769  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   14770  1.1  christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   14771  1.1  christos    { (exit 1); exit 1; }; }; }
   14772  1.1  christos 
   14773  1.1  christos   ac_builddir=.
   14774  1.1  christos 
   14775  1.1  christos if test "$ac_dir" != .; then
   14776  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   14777  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
   14778  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   14779  1.1  christos else
   14780  1.1  christos   ac_dir_suffix= ac_top_builddir=
   14781  1.1  christos fi
   14782  1.1  christos 
   14783  1.1  christos case $srcdir in
   14784  1.1  christos   .)  # No --srcdir option.  We are building in place.
   14785  1.1  christos     ac_srcdir=.
   14786  1.1  christos     if test -z "$ac_top_builddir"; then
   14787  1.1  christos        ac_top_srcdir=.
   14788  1.1  christos     else
   14789  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   14790  1.1  christos     fi ;;
   14791  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute path.
   14792  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   14793  1.1  christos     ac_top_srcdir=$srcdir ;;
   14794  1.1  christos   *) # Relative path.
   14795  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   14796  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   14797  1.1  christos esac
   14798  1.1  christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
   14799  1.1  christos # absolute.
   14800  1.1  christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
   14801  1.1  christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
   14802  1.1  christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
   14803  1.1  christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
   14804  1.1  christos 
   14805  1.1  christos 
   14806  1.1  christos   case $INSTALL in
   14807  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   14808  1.1  christos   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   14809  1.1  christos   esac
   14810  1.1  christos 
   14811  1.1  christos   if test x"$ac_file" != x-; then
   14812  1.1  christos     { echo "$as_me:$LINENO: creating $ac_file" >&5
   14813  1.1  christos echo "$as_me: creating $ac_file" >&6;}
   14814  1.1  christos     rm -f "$ac_file"
   14815  1.1  christos   fi
   14816  1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   14817  1.1  christos   # use $as_me), people would be surprised to read:
   14818  1.1  christos   #    /* config.h.  Generated by config.status.  */
   14819  1.1  christos   if test x"$ac_file" = x-; then
   14820  1.1  christos     configure_input=
   14821  1.1  christos   else
   14822  1.1  christos     configure_input="$ac_file.  "
   14823  1.1  christos   fi
   14824  1.1  christos   configure_input=$configure_input"Generated from `echo $ac_file_in |
   14825  1.1  christos                                      sed 's,.*/,,'` by configure."
   14826  1.1  christos 
   14827  1.1  christos   # First look for the input files in the build tree, otherwise in the
   14828  1.1  christos   # src tree.
   14829  1.1  christos   ac_file_inputs=`IFS=:
   14830  1.1  christos     for f in $ac_file_in; do
   14831  1.1  christos       case $f in
   14832  1.1  christos       -) echo $tmp/stdin ;;
   14833  1.1  christos       [\\/$]*)
   14834  1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   14835  1.1  christos          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   14836  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   14837  1.1  christos    { (exit 1); exit 1; }; }
   14838  1.1  christos          echo $f;;
   14839  1.1  christos       *) # Relative
   14840  1.1  christos          if test -f "$f"; then
   14841  1.1  christos            # Build tree
   14842  1.1  christos            echo $f
   14843  1.1  christos          elif test -f "$srcdir/$f"; then
   14844  1.1  christos            # Source tree
   14845  1.1  christos            echo $srcdir/$f
   14846  1.1  christos          else
   14847  1.1  christos            # /dev/null tree
   14848  1.1  christos            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   14849  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   14850  1.1  christos    { (exit 1); exit 1; }; }
   14851  1.1  christos          fi;;
   14852  1.1  christos       esac
   14853  1.1  christos     done` || { (exit 1); exit 1; }
   14854  1.1  christos _ACEOF
   14855  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   14856  1.1  christos   sed "$ac_vpsub
   14857  1.1  christos $extrasub
   14858  1.1  christos _ACEOF
   14859  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14860  1.1  christos :t
   14861  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   14862  1.1  christos s,@configure_input@,$configure_input,;t t
   14863  1.1  christos s,@srcdir@,$ac_srcdir,;t t
   14864  1.1  christos s,@abs_srcdir@,$ac_abs_srcdir,;t t
   14865  1.1  christos s,@top_srcdir@,$ac_top_srcdir,;t t
   14866  1.1  christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
   14867  1.1  christos s,@builddir@,$ac_builddir,;t t
   14868  1.1  christos s,@abs_builddir@,$ac_abs_builddir,;t t
   14869  1.1  christos s,@top_builddir@,$ac_top_builddir,;t t
   14870  1.1  christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
   14871  1.1  christos s,@INSTALL@,$ac_INSTALL,;t t
   14872  1.1  christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   14873  1.1  christos   rm -f $tmp/stdin
   14874  1.1  christos   if test x"$ac_file" != x-; then
   14875  1.1  christos     mv $tmp/out $ac_file
   14876  1.1  christos   else
   14877  1.1  christos     cat $tmp/out
   14878  1.1  christos     rm -f $tmp/out
   14879  1.1  christos   fi
   14880  1.1  christos 
   14881  1.1  christos done
   14882  1.1  christos _ACEOF
   14883  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   14884  1.1  christos 
   14885  1.1  christos #
   14886  1.1  christos # CONFIG_HEADER section.
   14887  1.1  christos #
   14888  1.1  christos 
   14889  1.1  christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   14890  1.1  christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
   14891  1.1  christos #
   14892  1.1  christos # ac_d sets the value in "#define NAME VALUE" lines.
   14893  1.1  christos ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   14894  1.1  christos ac_dB='[ 	].*$,\1#\2'
   14895  1.1  christos ac_dC=' '
   14896  1.1  christos ac_dD=',;t'
   14897  1.1  christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   14898  1.1  christos ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   14899  1.1  christos ac_uB='$,\1#\2define\3'
   14900  1.1  christos ac_uC=' '
   14901  1.1  christos ac_uD=',;t'
   14902  1.1  christos 
   14903  1.1  christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   14904  1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   14905  1.1  christos   case $ac_file in
   14906  1.1  christos   - | *:- | *:-:* ) # input from stdin
   14907  1.1  christos         cat >$tmp/stdin
   14908  1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   14909  1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   14910  1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   14911  1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   14912  1.1  christos   * )   ac_file_in=$ac_file.in ;;
   14913  1.1  christos   esac
   14914  1.1  christos 
   14915  1.1  christos   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
   14916  1.1  christos echo "$as_me: creating $ac_file" >&6;}
   14917  1.1  christos 
   14918  1.1  christos   # First look for the input files in the build tree, otherwise in the
   14919  1.1  christos   # src tree.
   14920  1.1  christos   ac_file_inputs=`IFS=:
   14921  1.1  christos     for f in $ac_file_in; do
   14922  1.1  christos       case $f in
   14923  1.1  christos       -) echo $tmp/stdin ;;
   14924  1.1  christos       [\\/$]*)
   14925  1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   14926  1.1  christos          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   14927  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   14928  1.1  christos    { (exit 1); exit 1; }; }
   14929  1.1  christos          echo $f;;
   14930  1.1  christos       *) # Relative
   14931  1.1  christos          if test -f "$f"; then
   14932  1.1  christos            # Build tree
   14933  1.1  christos            echo $f
   14934  1.1  christos          elif test -f "$srcdir/$f"; then
   14935  1.1  christos            # Source tree
   14936  1.1  christos            echo $srcdir/$f
   14937  1.1  christos          else
   14938  1.1  christos            # /dev/null tree
   14939  1.1  christos            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   14940  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   14941  1.1  christos    { (exit 1); exit 1; }; }
   14942  1.1  christos          fi;;
   14943  1.1  christos       esac
   14944  1.1  christos     done` || { (exit 1); exit 1; }
   14945  1.1  christos   # Remove the trailing spaces.
   14946  1.1  christos   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   14947  1.1  christos 
   14948  1.1  christos _ACEOF
   14949  1.1  christos 
   14950  1.1  christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
   14951  1.1  christos # `conftest.undefs', that substitutes the proper values into
   14952  1.1  christos # config.h.in to produce config.h.  The first handles `#define'
   14953  1.1  christos # templates, and the second `#undef' templates.
   14954  1.1  christos # And first: Protect against being on the right side of a sed subst in
   14955  1.1  christos # config.status.  Protect against being in an unquoted here document
   14956  1.1  christos # in config.status.
   14957  1.1  christos rm -f conftest.defines conftest.undefs
   14958  1.1  christos # Using a here document instead of a string reduces the quoting nightmare.
   14959  1.1  christos # Putting comments in sed scripts is not portable.
   14960  1.1  christos #
   14961  1.1  christos # `end' is used to avoid that the second main sed command (meant for
   14962  1.1  christos # 0-ary CPP macros) applies to n-ary macro definitions.
   14963  1.1  christos # See the Autoconf documentation for `clear'.
   14964  1.1  christos cat >confdef2sed.sed <<\_ACEOF
   14965  1.1  christos s/[\\&,]/\\&/g
   14966  1.1  christos s,[\\$`],\\&,g
   14967  1.1  christos t clear
   14968  1.1  christos : clear
   14969  1.1  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
   14970  1.1  christos t end
   14971  1.1  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   14972  1.1  christos : end
   14973  1.1  christos _ACEOF
   14974  1.1  christos # If some macros were called several times there might be several times
   14975  1.1  christos # the same #defines, which is useless.  Nevertheless, we may not want to
   14976  1.1  christos # sort them, since we want the *last* AC-DEFINE to be honored.
   14977  1.1  christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   14978  1.1  christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   14979  1.1  christos rm -f confdef2sed.sed
   14980  1.1  christos 
   14981  1.1  christos # This sed command replaces #undef with comments.  This is necessary, for
   14982  1.1  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   14983  1.1  christos # on some systems where configure will not decide to define it.
   14984  1.1  christos cat >>conftest.undefs <<\_ACEOF
   14985  1.1  christos s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   14986  1.1  christos _ACEOF
   14987  1.1  christos 
   14988  1.1  christos # Break up conftest.defines because some shells have a limit on the size
   14989  1.1  christos # of here documents, and old seds have small limits too (100 cmds).
   14990  1.1  christos echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   14991  1.1  christos echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   14992  1.1  christos echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   14993  1.1  christos echo '  :' >>$CONFIG_STATUS
   14994  1.1  christos rm -f conftest.tail
   14995  1.1  christos while grep . conftest.defines >/dev/null
   14996  1.1  christos do
   14997  1.1  christos   # Write a limited-size here document to $tmp/defines.sed.
   14998  1.1  christos   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   14999  1.1  christos   # Speed up: don't consider the non `#define' lines.
   15000  1.1  christos   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   15001  1.1  christos   # Work around the forget-to-reset-the-flag bug.
   15002  1.1  christos   echo 't clr' >>$CONFIG_STATUS
   15003  1.1  christos   echo ': clr' >>$CONFIG_STATUS
   15004  1.1  christos   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   15005  1.1  christos   echo 'CEOF
   15006  1.1  christos   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   15007  1.1  christos   rm -f $tmp/in
   15008  1.1  christos   mv $tmp/out $tmp/in
   15009  1.1  christos ' >>$CONFIG_STATUS
   15010  1.1  christos   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   15011  1.1  christos   rm -f conftest.defines
   15012  1.1  christos   mv conftest.tail conftest.defines
   15013  1.1  christos done
   15014  1.1  christos rm -f conftest.defines
   15015  1.1  christos echo '  fi # egrep' >>$CONFIG_STATUS
   15016  1.1  christos echo >>$CONFIG_STATUS
   15017  1.1  christos 
   15018  1.1  christos # Break up conftest.undefs because some shells have a limit on the size
   15019  1.1  christos # of here documents, and old seds have small limits too (100 cmds).
   15020  1.1  christos echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   15021  1.1  christos rm -f conftest.tail
   15022  1.1  christos while grep . conftest.undefs >/dev/null
   15023  1.1  christos do
   15024  1.1  christos   # Write a limited-size here document to $tmp/undefs.sed.
   15025  1.1  christos   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   15026  1.1  christos   # Speed up: don't consider the non `#undef'
   15027  1.1  christos   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   15028  1.1  christos   # Work around the forget-to-reset-the-flag bug.
   15029  1.1  christos   echo 't clr' >>$CONFIG_STATUS
   15030  1.1  christos   echo ': clr' >>$CONFIG_STATUS
   15031  1.1  christos   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   15032  1.1  christos   echo 'CEOF
   15033  1.1  christos   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   15034  1.1  christos   rm -f $tmp/in
   15035  1.1  christos   mv $tmp/out $tmp/in
   15036  1.1  christos ' >>$CONFIG_STATUS
   15037  1.1  christos   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   15038  1.1  christos   rm -f conftest.undefs
   15039  1.1  christos   mv conftest.tail conftest.undefs
   15040  1.1  christos done
   15041  1.1  christos rm -f conftest.undefs
   15042  1.1  christos 
   15043  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   15044  1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   15045  1.1  christos   # use $as_me), people would be surprised to read:
   15046  1.1  christos   #    /* config.h.  Generated by config.status.  */
   15047  1.1  christos   if test x"$ac_file" = x-; then
   15048  1.1  christos     echo "/* Generated by configure.  */" >$tmp/config.h
   15049  1.1  christos   else
   15050  1.1  christos     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   15051  1.1  christos   fi
   15052  1.1  christos   cat $tmp/in >>$tmp/config.h
   15053  1.1  christos   rm -f $tmp/in
   15054  1.1  christos   if test x"$ac_file" != x-; then
   15055  1.1  christos     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   15056  1.1  christos       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   15057  1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   15058  1.1  christos     else
   15059  1.1  christos       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   15060  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15061  1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   15062  1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   15063  1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   15064  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15065  1.1  christos echo X"$ac_file" |
   15066  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15067  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15068  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15069  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15070  1.1  christos   	  s/.*/./; q'`
   15071  1.1  christos       { if $as_mkdir_p; then
   15072  1.1  christos     mkdir -p "$ac_dir"
   15073  1.1  christos   else
   15074  1.1  christos     as_dir="$ac_dir"
   15075  1.1  christos     as_dirs=
   15076  1.1  christos     while test ! -d "$as_dir"; do
   15077  1.1  christos       as_dirs="$as_dir $as_dirs"
   15078  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   15079  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15080  1.1  christos          X"$as_dir" : 'X\(//\)[^/]' \| \
   15081  1.1  christos          X"$as_dir" : 'X\(//\)$' \| \
   15082  1.1  christos          X"$as_dir" : 'X\(/\)' \| \
   15083  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15084  1.1  christos echo X"$as_dir" |
   15085  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15086  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15087  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15088  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15089  1.1  christos   	  s/.*/./; q'`
   15090  1.1  christos     done
   15091  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   15092  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   15093  1.1  christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   15094  1.1  christos    { (exit 1); exit 1; }; }; }
   15095  1.1  christos 
   15096  1.1  christos       rm -f $ac_file
   15097  1.1  christos       mv $tmp/config.h $ac_file
   15098  1.1  christos     fi
   15099  1.1  christos   else
   15100  1.1  christos     cat $tmp/config.h
   15101  1.1  christos     rm -f $tmp/config.h
   15102  1.1  christos   fi
   15103  1.1  christos   # Run the commands associated with the file.
   15104  1.1  christos   case $ac_file in
   15105  1.1  christos     config.h ) # update the timestamp
   15106  1.1  christos echo 'timestamp for config.h:config.hin' >"./stamp-h1"
   15107  1.1  christos  ;;
   15108  1.1  christos   esac
   15109  1.1  christos done
   15110  1.1  christos _ACEOF
   15111  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   15112  1.1  christos 
   15113  1.1  christos #
   15114  1.1  christos # CONFIG_LINKS section.
   15115  1.1  christos #
   15116  1.1  christos 
   15117  1.1  christos for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
   15118  1.1  christos   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
   15119  1.1  christos   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
   15120  1.1  christos 
   15121  1.1  christos   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
   15122  1.1  christos echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
   15123  1.1  christos 
   15124  1.1  christos   if test ! -r $srcdir/$ac_source; then
   15125  1.1  christos     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
   15126  1.1  christos echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
   15127  1.1  christos    { (exit 1); exit 1; }; }
   15128  1.1  christos   fi
   15129  1.1  christos   rm -f $ac_dest
   15130  1.1  christos 
   15131  1.1  christos   # Make relative symlinks.
   15132  1.1  christos   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
   15133  1.1  christos $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15134  1.1  christos          X"$ac_dest" : 'X\(//\)[^/]' \| \
   15135  1.1  christos          X"$ac_dest" : 'X\(//\)$' \| \
   15136  1.1  christos          X"$ac_dest" : 'X\(/\)' \| \
   15137  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15138  1.1  christos echo X"$ac_dest" |
   15139  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15140  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15141  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15142  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15143  1.1  christos   	  s/.*/./; q'`
   15144  1.1  christos   { if $as_mkdir_p; then
   15145  1.1  christos     mkdir -p "$ac_dest_dir"
   15146  1.1  christos   else
   15147  1.1  christos     as_dir="$ac_dest_dir"
   15148  1.1  christos     as_dirs=
   15149  1.1  christos     while test ! -d "$as_dir"; do
   15150  1.1  christos       as_dirs="$as_dir $as_dirs"
   15151  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   15152  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15153  1.1  christos          X"$as_dir" : 'X\(//\)[^/]' \| \
   15154  1.1  christos          X"$as_dir" : 'X\(//\)$' \| \
   15155  1.1  christos          X"$as_dir" : 'X\(/\)' \| \
   15156  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15157  1.1  christos echo X"$as_dir" |
   15158  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15159  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15160  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15161  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15162  1.1  christos   	  s/.*/./; q'`
   15163  1.1  christos     done
   15164  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   15165  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
   15166  1.1  christos echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
   15167  1.1  christos    { (exit 1); exit 1; }; }; }
   15168  1.1  christos 
   15169  1.1  christos   ac_builddir=.
   15170  1.1  christos 
   15171  1.1  christos if test "$ac_dest_dir" != .; then
   15172  1.1  christos   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
   15173  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
   15174  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   15175  1.1  christos else
   15176  1.1  christos   ac_dir_suffix= ac_top_builddir=
   15177  1.1  christos fi
   15178  1.1  christos 
   15179  1.1  christos case $srcdir in
   15180  1.1  christos   .)  # No --srcdir option.  We are building in place.
   15181  1.1  christos     ac_srcdir=.
   15182  1.1  christos     if test -z "$ac_top_builddir"; then
   15183  1.1  christos        ac_top_srcdir=.
   15184  1.1  christos     else
   15185  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   15186  1.1  christos     fi ;;
   15187  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute path.
   15188  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   15189  1.1  christos     ac_top_srcdir=$srcdir ;;
   15190  1.1  christos   *) # Relative path.
   15191  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   15192  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   15193  1.1  christos esac
   15194  1.1  christos # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
   15195  1.1  christos # absolute.
   15196  1.1  christos ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
   15197  1.1  christos ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
   15198  1.1  christos ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
   15199  1.1  christos ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
   15200  1.1  christos 
   15201  1.1  christos 
   15202  1.1  christos   case $srcdir in
   15203  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
   15204  1.1  christos       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
   15205  1.1  christos   esac
   15206  1.1  christos 
   15207  1.1  christos   # Make a symlink if possible; otherwise try a hard link.
   15208  1.1  christos   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
   15209  1.1  christos     ln $srcdir/$ac_source $ac_dest ||
   15210  1.1  christos     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
   15211  1.1  christos echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
   15212  1.1  christos    { (exit 1); exit 1; }; }
   15213  1.1  christos done
   15214  1.1  christos _ACEOF
   15215  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   15216  1.1  christos 
   15217  1.1  christos #
   15218  1.1  christos # CONFIG_COMMANDS section.
   15219  1.1  christos #
   15220  1.1  christos for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
   15221  1.1  christos   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
   15222  1.1  christos   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
   15223  1.1  christos   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
   15224  1.1  christos $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15225  1.1  christos          X"$ac_dest" : 'X\(//\)[^/]' \| \
   15226  1.1  christos          X"$ac_dest" : 'X\(//\)$' \| \
   15227  1.1  christos          X"$ac_dest" : 'X\(/\)' \| \
   15228  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15229  1.1  christos echo X"$ac_dest" |
   15230  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15231  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15232  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15233  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15234  1.1  christos   	  s/.*/./; q'`
   15235  1.1  christos   ac_builddir=.
   15236  1.1  christos 
   15237  1.1  christos if test "$ac_dir" != .; then
   15238  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   15239  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
   15240  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   15241  1.1  christos else
   15242  1.1  christos   ac_dir_suffix= ac_top_builddir=
   15243  1.1  christos fi
   15244  1.1  christos 
   15245  1.1  christos case $srcdir in
   15246  1.1  christos   .)  # No --srcdir option.  We are building in place.
   15247  1.1  christos     ac_srcdir=.
   15248  1.1  christos     if test -z "$ac_top_builddir"; then
   15249  1.1  christos        ac_top_srcdir=.
   15250  1.1  christos     else
   15251  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   15252  1.1  christos     fi ;;
   15253  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute path.
   15254  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   15255  1.1  christos     ac_top_srcdir=$srcdir ;;
   15256  1.1  christos   *) # Relative path.
   15257  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   15258  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   15259  1.1  christos esac
   15260  1.1  christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
   15261  1.1  christos # absolute.
   15262  1.1  christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
   15263  1.1  christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
   15264  1.1  christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
   15265  1.1  christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
   15266  1.1  christos 
   15267  1.1  christos 
   15268  1.1  christos   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
   15269  1.1  christos echo "$as_me: executing $ac_dest commands" >&6;}
   15270  1.1  christos   case $ac_dest in
   15271  1.1  christos     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
   15272  1.1  christos   # Strip MF so we end up with the name of the file.
   15273  1.1  christos   mf=`echo "$mf" | sed -e 's/:.*$//'`
   15274  1.1  christos   if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
   15275  1.1  christos     dirpart=`(dirname "$mf") 2>/dev/null ||
   15276  1.1  christos $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15277  1.1  christos          X"$mf" : 'X\(//\)[^/]' \| \
   15278  1.1  christos          X"$mf" : 'X\(//\)$' \| \
   15279  1.1  christos          X"$mf" : 'X\(/\)' \| \
   15280  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15281  1.1  christos echo X"$mf" |
   15282  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15283  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15284  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15285  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15286  1.1  christos   	  s/.*/./; q'`
   15287  1.1  christos   else
   15288  1.1  christos     continue
   15289  1.1  christos   fi
   15290  1.1  christos   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
   15291  1.1  christos   # Extract the definition of DEP_FILES from the Makefile without
   15292  1.1  christos   # running `make'.
   15293  1.1  christos   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
   15294  1.1  christos   test -z "$DEPDIR" && continue
   15295  1.1  christos   # When using ansi2knr, U may be empty or an underscore; expand it
   15296  1.1  christos   U=`sed -n -e '/^U = / s///p' < "$mf"`
   15297  1.1  christos   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
   15298  1.1  christos   # We invoke sed twice because it is the simplest approach to
   15299  1.1  christos   # changing $(DEPDIR) to its actual value in the expansion.
   15300  1.1  christos   for file in `sed -n -e '
   15301  1.1  christos     /^DEP_FILES = .*\\\\$/ {
   15302  1.1  christos       s/^DEP_FILES = //
   15303  1.1  christos       :loop
   15304  1.1  christos 	s/\\\\$//
   15305  1.1  christos 	p
   15306  1.1  christos 	n
   15307  1.1  christos 	/\\\\$/ b loop
   15308  1.1  christos       p
   15309  1.1  christos     }
   15310  1.1  christos     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
   15311  1.1  christos        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   15312  1.1  christos     # Make sure the directory exists.
   15313  1.1  christos     test -f "$dirpart/$file" && continue
   15314  1.1  christos     fdir=`(dirname "$file") 2>/dev/null ||
   15315  1.1  christos $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15316  1.1  christos          X"$file" : 'X\(//\)[^/]' \| \
   15317  1.1  christos          X"$file" : 'X\(//\)$' \| \
   15318  1.1  christos          X"$file" : 'X\(/\)' \| \
   15319  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15320  1.1  christos echo X"$file" |
   15321  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15322  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15323  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15324  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15325  1.1  christos   	  s/.*/./; q'`
   15326  1.1  christos     { if $as_mkdir_p; then
   15327  1.1  christos     mkdir -p $dirpart/$fdir
   15328  1.1  christos   else
   15329  1.1  christos     as_dir=$dirpart/$fdir
   15330  1.1  christos     as_dirs=
   15331  1.1  christos     while test ! -d "$as_dir"; do
   15332  1.1  christos       as_dirs="$as_dir $as_dirs"
   15333  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   15334  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15335  1.1  christos          X"$as_dir" : 'X\(//\)[^/]' \| \
   15336  1.1  christos          X"$as_dir" : 'X\(//\)$' \| \
   15337  1.1  christos          X"$as_dir" : 'X\(/\)' \| \
   15338  1.1  christos          .     : '\(.\)' 2>/dev/null ||
   15339  1.1  christos echo X"$as_dir" |
   15340  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   15341  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   15342  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   15343  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   15344  1.1  christos   	  s/.*/./; q'`
   15345  1.1  christos     done
   15346  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   15347  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
   15348  1.1  christos echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
   15349  1.1  christos    { (exit 1); exit 1; }; }; }
   15350  1.1  christos 
   15351  1.1  christos     # echo "creating $dirpart/$file"
   15352  1.1  christos     echo '# dummy' > "$dirpart/$file"
   15353  1.1  christos   done
   15354  1.1  christos done
   15355  1.1  christos  ;;
   15356  1.1  christos     default-1 )
   15357  1.1  christos     for ac_file in $CONFIG_FILES; do
   15358  1.1  christos       # Support "outfile[:infile[:infile...]]"
   15359  1.1  christos       case "$ac_file" in
   15360  1.1  christos         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
   15361  1.1  christos       esac
   15362  1.1  christos       # PO directories have a Makefile.in generated from Makefile.in.in.
   15363  1.1  christos       case "$ac_file" in */Makefile.in)
   15364  1.1  christos         # Adjust a relative srcdir.
   15365  1.1  christos         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
   15366  1.1  christos         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
   15367  1.1  christos         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
   15368  1.1  christos         # In autoconf-2.13 it is called $ac_given_srcdir.
   15369  1.1  christos         # In autoconf-2.50 it is called $srcdir.
   15370  1.1  christos         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
   15371  1.1  christos         case "$ac_given_srcdir" in
   15372  1.1  christos           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
   15373  1.1  christos           /*) top_srcdir="$ac_given_srcdir" ;;
   15374  1.1  christos           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
   15375  1.1  christos         esac
   15376  1.1  christos         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
   15377  1.1  christos           rm -f "$ac_dir/POTFILES"
   15378  1.1  christos           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
   15379  1.1  christos           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
   15380  1.1  christos           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
   15381  1.1  christos           # on $ac_dir but don't depend on user-specified configuration
   15382  1.1  christos           # parameters.
   15383  1.1  christos           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
   15384  1.1  christos             # The LINGUAS file contains the set of available languages.
   15385  1.1  christos             if test -n "$ALL_LINGUAS"; then
   15386  1.1  christos               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
   15387  1.1  christos             fi
   15388  1.1  christos             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
   15389  1.1  christos             # Hide the ALL_LINGUAS assigment from automake.
   15390  1.1  christos             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
   15391  1.1  christos           fi
   15392  1.1  christos           case "$ac_given_srcdir" in
   15393  1.1  christos             .) srcdirpre= ;;
   15394  1.1  christos             *) srcdirpre='$(srcdir)/' ;;
   15395  1.1  christos           esac
   15396  1.1  christos           POFILES=
   15397  1.1  christos           GMOFILES=
   15398  1.1  christos           UPDATEPOFILES=
   15399  1.1  christos           DUMMYPOFILES=
   15400  1.1  christos           for lang in $ALL_LINGUAS; do
   15401  1.1  christos             POFILES="$POFILES $srcdirpre$lang.po"
   15402  1.1  christos             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
   15403  1.1  christos             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
   15404  1.1  christos             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
   15405  1.1  christos           done
   15406  1.1  christos           # CATALOGS depends on both $ac_dir and the user's LINGUAS
   15407  1.1  christos           # environment variable.
   15408  1.1  christos           INST_LINGUAS=
   15409  1.1  christos           if test -n "$ALL_LINGUAS"; then
   15410  1.1  christos             for presentlang in $ALL_LINGUAS; do
   15411  1.1  christos               useit=no
   15412  1.1  christos               if test "%UNSET%" != "$LINGUAS"; then
   15413  1.1  christos                 desiredlanguages="$LINGUAS"
   15414  1.1  christos               else
   15415  1.1  christos                 desiredlanguages="$ALL_LINGUAS"
   15416  1.1  christos               fi
   15417  1.1  christos               for desiredlang in $desiredlanguages; do
   15418  1.1  christos                 # Use the presentlang catalog if desiredlang is
   15419  1.1  christos                 #   a. equal to presentlang, or
   15420  1.1  christos                 #   b. a variant of presentlang (because in this case,
   15421  1.1  christos                 #      presentlang can be used as a fallback for messages
   15422  1.1  christos                 #      which are not translated in the desiredlang catalog).
   15423  1.1  christos                 case "$desiredlang" in
   15424  1.1  christos                   "$presentlang"*) useit=yes;;
   15425  1.1  christos                 esac
   15426  1.1  christos               done
   15427  1.1  christos               if test $useit = yes; then
   15428  1.1  christos                 INST_LINGUAS="$INST_LINGUAS $presentlang"
   15429  1.1  christos               fi
   15430  1.1  christos             done
   15431  1.1  christos           fi
   15432  1.1  christos           CATALOGS=
   15433  1.1  christos           if test -n "$INST_LINGUAS"; then
   15434  1.1  christos             for lang in $INST_LINGUAS; do
   15435  1.1  christos               CATALOGS="$CATALOGS $lang.gmo"
   15436  1.1  christos             done
   15437  1.1  christos           fi
   15438  1.1  christos           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
   15439  1.1  christos           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
   15440  1.1  christos           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
   15441  1.1  christos             if test -f "$f"; then
   15442  1.1  christos               case "$f" in
   15443  1.1  christos                 *.orig | *.bak | *~) ;;
   15444  1.1  christos                 *) cat "$f" >> "$ac_dir/Makefile" ;;
   15445  1.1  christos               esac
   15446  1.1  christos             fi
   15447  1.1  christos           done
   15448  1.1  christos         fi
   15449  1.1  christos         ;;
   15450  1.1  christos       esac
   15451  1.1  christos     done ;;
   15452  1.1  christos     default ) date > stamp-h ;;
   15453  1.1  christos   esac
   15454  1.1  christos done
   15455  1.1  christos _ACEOF
   15456  1.1  christos 
   15457  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   15458  1.1  christos 
   15459  1.1  christos { (exit 0); exit 0; }
   15460  1.1  christos _ACEOF
   15461  1.1  christos chmod +x $CONFIG_STATUS
   15462  1.1  christos ac_clean_files=$ac_clean_files_save
   15463  1.1  christos 
   15464  1.1  christos 
   15465  1.1  christos # configure is writing to config.log, and then calls config.status.
   15466  1.1  christos # config.status does its own redirection, appending to config.log.
   15467  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   15468  1.1  christos # by configure, so config.status won't be able to write to it; its
   15469  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   15470  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   15471  1.1  christos # appended to by config.status.  When coming back to configure, we
   15472  1.1  christos # need to make the FD available again.
   15473  1.1  christos if test "$no_create" != yes; then
   15474  1.1  christos   ac_cs_success=:
   15475  1.1  christos   exec 5>/dev/null
   15476  1.1  christos   $SHELL $CONFIG_STATUS || ac_cs_success=false
   15477  1.1  christos   exec 5>>config.log
   15478  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   15479  1.1  christos   # would make configure fail if this is the last instruction.
   15480  1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   15481  1.1  christos fi
   15482  1.1  christos 
   15483